/* ============================================================
   RETIRE REGAL® — Global Design System
   Session 1 | styles.css
   Deep Navy + Gold | Authoritative / Classic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #162236;
  --navy-light: #1E3050;
  --gold:       #C9A84C;
  --gold-light: #E2C97E;
  --gold-dark:  #A07830;
  --cream:      #F5F0E6;
  --cream-dark: #EDE5D0;
  --white:      #FFFFFF;
  --text-dark:  #1A1A1A;
  --text-mid:   #3D3D3D;
  --text-light: #7A7A7A;
  --text-cream: #C8BCA0;
  --border:     rgba(201,168,76,0.25);
  --border-mid: rgba(201,168,76,0.5);

  --font-display: 'Cinzel', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Lato', sans-serif;

  --max-w: 1160px;
  --section-pad: 96px 24px;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 400; }

.serif { font-family: var(--font-serif); }
.display { font-family: var(--font-display); }

p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cream);
  font-weight: 300;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }
.light-text { color: var(--text-cream); }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad); }

.section-light {
  background: var(--cream);
  color: var(--navy);
}
.section-light h1,
.section-light h2,
.section-light h3 { color: var(--navy); }
.section-light p { color: var(--navy); }
.section-light .lead { color: var(--navy); }
.section-light .eyebrow { color: var(--gold-dark); }

.card-light p { color: var(--navy); }

.section-mid {
  background: var(--navy-mid);
}

.section-dark {
  background: var(--navy);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Gold Rule Divider --- */
.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}
.gold-rule.left { margin-left: 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-secondary-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-secondary-navy:hover {
  background: rgba(13,27,42,0.08);
  color: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-group.center { justify-content: center; }

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links .btn-primary { color: var(--navy); }
.nav-links .btn-primary:hover { color: var(--navy); }

.nav-cta {
  margin-left: 8px;
}

/* Social icons — nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-cream);
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--gold); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 900px) { .nav-social { display: none; } }

/* Social icons — footer */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-cream);
  transition: all var(--transition);
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
  gap: 8px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 12px; width: 100%; text-align: center; }
.nav-mobile .btn-primary { color: var(--navy); }
.nav-mobile .btn-primary:hover { color: var(--navy); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(30,48,80,0.8) 0%, transparent 50%),
    linear-gradient(135deg, #0D1B2A 0%, #162236 50%, #0D1B2A 100%);
}

/* Subtle texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-body {
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-body p {
  font-size: 1.05rem;
  color: var(--text-cream);
  margin-bottom: 16px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 56px;
}
.section-header.center { text-align: center; }
.section-header.center .gold-rule { margin: 20px auto; }

/* --- Cards --- */
.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.card-light {
  background: var(--white);
  border: 1px solid var(--cream-dark);
}
.card-light:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.card h3 { margin-bottom: 12px; }
.card p  { font-size: 0.95rem; }

/* --- Realm Cards (REGAL) --- */
.realm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .realm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .realm-grid { grid-template-columns: 1fr 1fr; }
}

.realm-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}
.realm-card:hover {
  background: rgba(201,168,76,0.08);
  transform: translateY(-3px);
}

.realm-letter {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.realm-name {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cream);
}

/* --- Foemen Cards --- */
.foeman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.foeman-card {
  background: rgba(201,168,76,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.foeman-card:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

.foeman-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

/* --- Insight Cards --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .insights-grid { grid-template-columns: 1fr; }
}

.insight-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.insight-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.insight-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.insight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  flex: 1;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--text-cream);
  margin-bottom: 20px;
  flex: 2;
}

.insight-read-more {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.insight-read-more::after {
  content: '→';
  transition: transform var(--transition);
}
.insight-read-more:hover::after { transform: translateX(4px); }

/* --- Credibility Bar --- */
.cred-bar {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.cred-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cred-item {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cream);
  text-align: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.cred-item:hover { opacity: 1; color: var(--gold); }

.cred-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* --- Pull Quote --- */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  margin: 40px 0;
  background: rgba(201,168,76,0.05);
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 0;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

/* --- Disclosure / Note Block --- */
.disclosure {
  background: rgba(0,0,0,0.2);
  border-left: 2px solid var(--border-mid);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.disclosure p {
  font-size: 0.82rem;
  color: var(--text-cream);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Light section disclosure */
.section-light .disclosure {
  background: rgba(0,0,0,0.04);
  border-left-color: var(--gold-dark);
}
.section-light .disclosure p { color: var(--text-mid); }

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse-mobile > *:first-child { order: 2; }
}

/* --- CTA Section --- */
.cta-section {
  padding: 96px 24px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 65%);
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-cream);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Footer --- */
#footer {
  background: #08111A;
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand img { height: 40px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-cream);
  line-height: 1.6;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-cream);
  font-weight: 300;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-disclosures {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-bottom: 28px;
}

.footer-disclosures p {
  font-size: 0.72rem;
  color: rgba(200,188,160,0.55);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(200,188,160,0.4);
  font-weight: 300;
}

.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(200,188,160,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Utility --- */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/* --- Responsive helpers --- */
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group.center { align-items: center; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
}

/* --- Foeman Shield Grid --- */
.foeman-shield-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .foeman-shield-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .foeman-shield-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.foeman-shield-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.foeman-shield-card:hover {
  transform: translateY(-6px);
}

.foeman-shield-img {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 20px;
}
.foeman-shield-img img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(201,168,76,0.25));
  transition: filter var(--transition);
}
.foeman-shield-card:hover .foeman-shield-img img {
  filter: drop-shadow(0 12px 32px rgba(201,168,76,0.45));
}

.foeman-shield-placeholder {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 2/3;
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
}

.foeman-shield-card .foeman-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

.foeman-shield-card p {
  font-size: 0.85rem;
  color: var(--text-cream);
  line-height: 1.6;
}

/* ── Light-background section text overrides ──────────────────
   These page-specific sections use cream/white backgrounds but
   don't use the .section-light class, so text must be set here.
   ──────────────────────────────────────────────────────────── */
.philosophy-section p,
.philosophy-card p,
.philosophy-full-text p,
.for-section p,
.for-list li p,
.launch-section p,
.mechanic-card p,
.who-section p,
.who-section li,
.schedule-bar p,
.realms-section p,
.realm-item p,
.realm-body p {
  color: var(--navy);
}

.philosophy-section .lead,
.for-section .lead,
.launch-section .lead,
.who-section .lead,
.realms-section .lead {
  color: var(--navy);
}
