/* ============================================
   Senior Move Roadmap — Main Stylesheet
   ============================================ */

@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=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --navy:       #1B3A5E;
  --blue:       #2E6DA4;
  --blue-mid:   #4A8CBF;
  --blue-light: #7DB8D4;
  --sky:        #C8DFF0;
  --fog:        #EEF5FB;
  --off-white:  #F8F6F3;
  --white:      #FFFFFF;
  --grey-dark:  #1E2530;
  --grey:       #4A5568;
  --grey-mid:   #718096;
  --grey-light: #A0AEC0;
  --grey-rule:  #E2E8F0;
  --grey-bg:    #F4F6F8;
  --gold:       #C8943A;
  --gold-hover: #b07c2a;
  --red:        #C0392B;
  --red-hover:  #a93226;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --container:        1120px;
  --container-narrow: 740px;
  --container-wide:   1320px;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:      200ms;
  --dur-slow: 350ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Containers ── */
.container        { max-width: var(--container);        margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-lg); }
.container--wide  { max-width: var(--container-wide);   margin: 0 auto; padding: 0 var(--space-lg); }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1.0625rem; line-height: 1.75; color: var(--grey); }
p.lead { font-size: 1.2rem; line-height: 1.7; }

.caps {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Utility ── */
.text-navy   { color: var(--navy); }
.text-blue   { color: var(--blue); }
.text-gold   { color: var(--gold); }
.text-grey   { color: var(--grey-mid); }
.text-center { text-align: center; }
.italic      { font-style: italic; }
.bold        { font-weight: 600; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-rule);
}

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

.nav-logo { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo-tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links > li > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--navy); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-dropdown-toggle svg { transition: transform var(--dur) var(--ease); }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--grey-rule);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(27,58,94,0.14);
  min-width: 230px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  /* Bridge gap so mouse travel doesn't close menu */
  margin-top: 0;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--grey);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-dropdown-menu a:hover { background: var(--fog); color: var(--navy); }
.nav-dropdown-menu .menu-divider { height: 1px; background: var(--grey-rule); margin: 6px 0; }
.nav-dropdown-menu .menu-label {
  padding: 8px 18px 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-light);
}

.nav-crisis-link { color: var(--red) !important; font-weight: 600 !important; }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background var(--dur) var(--ease) !important;
}
.nav-cta:hover { background: var(--blue) !important; }

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  overflow-y: auto;
  padding: var(--space-lg);
  z-index: 199;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 1.0625rem;
  color: var(--grey-dark);
  border-bottom: 1px solid var(--grey-rule);
  font-weight: 500;
}
.nav-mobile a.mobile-crisis { color: var(--red); font-weight: 700; }
.nav-mobile a.mobile-cta {
  display: inline-block;
  margin-top: var(--space-md);
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  border-bottom: none;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500;
  padding: 13px 26px; border-radius: 6px; border: none;
  cursor: pointer; text-decoration: none; line-height: 1; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn--primary  { background: var(--navy); color: var(--white); }
.btn--primary:hover  { background: var(--blue); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(27,58,94,0.22); }
.btn--gold     { background: var(--gold); color: var(--white); }
.btn--gold:hover     { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(200,148,58,0.3); }
.btn--outline  { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover  { background: var(--navy); color: var(--white); }
.btn--white    { background: var(--white); color: var(--navy); }
.btn--white:hover    { background: var(--sky); }
.btn--outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--crisis   { background: var(--red); color: var(--white); }
.btn--crisis:hover   { background: var(--red-hover); transform: translateY(-1px); }
.btn--lg  { padding: 17px 34px; font-size: 1.0625rem; }
.btn--sm  { padding: 9px 18px; font-size: 0.8125rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: var(--space-2xl) 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(46,109,164,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(125,184,212,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--sky); margin-bottom: var(--space-md); }
.hero h1 { color: var(--white); max-width: 850px; margin-bottom: var(--space-md); }
.hero h1 em { color: var(--sky); font-style: italic; }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.125rem; max-width: 580px; line-height: 1.75;
  margin-bottom: var(--space-xl);
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.hero-actions .or-text { color: rgba(255,255,255,0.45); font-size: 0.875rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section        { padding: var(--space-2xl) 0; }
.section--sm    { padding: var(--space-xl) 0; }
.section--grey  { background: var(--grey-bg); }
.section--fog   { background: var(--fog); }
.section--navy  { background: var(--navy); }
.section--sky   { background: var(--sky); }
.section--off   { background: var(--off-white); }

.section-label  { color: var(--blue); margin-bottom: var(--space-sm); }
.section-label--white { color: var(--sky); }
.section h2     { color: var(--navy); margin-bottom: var(--space-sm); }
.section h2.white { color: var(--white); }
.section-sub    { color: var(--grey); margin-bottom: var(--space-xl); max-width: 600px; }
.section-sub--wide   { max-width: 800px; }
.section-sub--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================
   GUIDE STEP CARDS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}
.step-card {
  background: var(--white);
  border: 1px solid var(--grey-rule);
  border-radius: 12px;
  padding: var(--space-lg);
  position: relative; overflow: hidden;
  transition: all var(--dur-slow) var(--ease);
}
.step-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.step-card:hover { border-color: var(--sky); box-shadow: 0 8px 32px rgba(27,58,94,0.1); transform: translateY(-2px); }
.step-card:hover::after { transform: scaleX(1); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.75rem; font-weight: 700;
  color: var(--sky); line-height: 1;
  margin-bottom: var(--space-xs);
}
.step-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.3rem; }
.step-card p  { font-size: 0.9375rem; margin-bottom: var(--space-md); }
.step-card .card-link {
  font-size: 0.875rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.step-card:hover .card-link { gap: 10px; color: var(--navy); }

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
  border-left: 4px solid var(--blue);
  padding: var(--space-md) var(--space-lg);
  background: var(--fog);
  border-radius: 0 8px 8px 0;
  margin: var(--space-lg) 0;
}
.callout--crisis { border-color: var(--red); background: #fef5f5; }
.callout--gold   { border-color: var(--gold); background: #fdf8f0; }
.callout--navy   { border-color: var(--blue-light); background: rgba(27,58,94,0.06); }

.callout p {
  font-family: var(--font-display);
  font-size: 1.2rem; font-style: italic;
  color: var(--navy); line-height: 1.65;
}

/* ============================================
   DOWNLOAD BOX
   ============================================ */
.download-box {
  background: var(--navy);
  border-radius: 14px;
  padding: var(--space-xl) var(--space-lg);
  color: var(--white);
  text-align: center;
  position: relative; overflow: hidden;
}
.download-box::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(125,184,212,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.download-box h3   { color: var(--white); margin-bottom: var(--space-xs); }
.download-box p    { color: rgba(255,255,255,0.78); margin-bottom: var(--space-lg); max-width: 480px; margin-left: auto; margin-right: auto; }
.download-box small{ display: block; margin-top: var(--space-sm); color: rgba(255,255,255,0.45); font-size: 0.8125rem; }

/* ============================================
   FORMS
   ============================================ */
.form-group    { margin-bottom: var(--space-md); }
.form-label    { display: block; font-size: 0.875rem; font-weight: 500; color: var(--grey-dark); margin-bottom: 6px; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-rule);
  border-radius: 6px;
  font-family: var(--font-body); font-size: 1rem; color: var(--grey-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,109,164,0.13);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-hint     { font-size: 0.8125rem; color: var(--grey-mid); margin-top: 4px; }

.radio-group { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.radio-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; color: var(--grey); cursor: pointer;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--fog);
  border-top: 1px solid var(--grey-rule);
  border-bottom: 1px solid var(--grey-rule);
  padding: var(--space-lg) 0;
}
.trust-bar-inner {
  display: flex; align-items: center;
  justify-content: space-around;
  gap: var(--space-lg); flex-wrap: wrap;
}
.trust-item        { text-align: center; }
.trust-item-num    { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.trust-item-label  { font-size: 0.8rem; color: var(--grey-mid); font-weight: 500; }

/* ============================================
   GUIDE PAGE
   ============================================ */
.guide-hero {
  background: var(--fog);
  border-bottom: 1px solid var(--grey-rule);
  padding: var(--space-xl) 0 var(--space-2xl);
}
.guide-step-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
  background: rgba(46,109,164,0.1);
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: var(--space-md);
}
.guide-hero h1  { color: var(--navy); margin-bottom: var(--space-sm); }
.guide-hero p   { max-width: 620px; margin-bottom: var(--space-lg); }

.guide-content  { padding: var(--space-2xl) 0; }
.guide-content h2 {
  color: var(--navy);
  margin: var(--space-xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--grey-rule);
}
.guide-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.guide-content h3 { color: var(--navy); margin: var(--space-lg) 0 var(--space-sm); }
.guide-content p  { margin-bottom: var(--space-md); }
.guide-content ul {
  margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
  list-style: disc;
}
.guide-content ul li {
  margin-bottom: 10px;
  font-size: 1.0625rem; line-height: 1.75; color: var(--grey);
  padding-left: 4px;
}

/* ============================================
   NEXT STEP STRIP
   ============================================ */
.next-step { background: var(--navy); padding: var(--space-xl) 0; }
.next-step-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-lg); flex-wrap: wrap;
}
.next-step-label { color: var(--sky); margin-bottom: 6px; }
.next-step-title { color: var(--white); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--grey-mid);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   TWO / THREE COL LAYOUTS
   ============================================ */
.two-col     { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.two-col--60 { grid-template-columns: 3fr 2fr; }
.three-col   { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.four-col    { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ============================================
   ICON BOXES
   ============================================ */
.icon-box         { display: flex; gap: var(--space-md); align-items: flex-start; }
.icon-box-icon    { width: 46px; height: 46px; background: var(--fog); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; color: var(--blue); }
.icon-box-content h4 { color: var(--navy); margin-bottom: 6px; font-size: 1.1rem; }
.icon-box-content p  { font-size: 0.9375rem; }

/* ============================================
   CRISIS SPECIFIC
   ============================================ */
.crisis-banner {
  background: var(--red); color: var(--white);
  padding: 10px 0; text-align: center;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
}
.crisis-hero {
  background: linear-gradient(135deg, #7a1b1b 0%, var(--navy) 100%);
  padding: var(--space-2xl) 0;
}
.crisis-hero h1 { color: var(--white); }
.crisis-hero .hero-sub { color: rgba(255,255,255,0.85); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--grey-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-tag { font-size: 0.8125rem; line-height: 1.6; color: rgba(255,255,255,0.45); margin-bottom: var(--space-md); }
.footer-col-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-sm);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.62); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-links a.crisis-link { color: #e07070; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm);
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal-links { display: flex; gap: var(--space-md); }
.footer-legal-links a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color var(--dur) var(--ease); }
.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   HOUSTON SPECIFIC
   ============================================ */
.houston-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(125,184,212,0.2);
  color: var(--sky);
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.trec-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,0.55);
  padding: 10px 0;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trec-bar a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.trec-bar a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .two-col,
  .two-col--60       { grid-template-columns: 1fr; }
  .three-col         { grid-template-columns: 1fr 1fr; }
  .four-col          { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl:  3rem;
    --space-lg:  2rem;
  }
  .footer-grid       { grid-template-columns: 1fr; gap: var(--space-lg); }
  .three-col,
  .four-col          { grid-template-columns: 1fr; }
  .hero-actions      { flex-direction: column; align-items: flex-start; }
  .trust-bar-inner   { justify-content: center; }
  .next-step-inner   { flex-direction: column; text-align: center; }
  .form-row          { grid-template-columns: 1fr; }
  .steps-grid        { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container, .container--narrow, .container--wide { padding: 0 1.25rem; }
}
