/* ============================================
   WealthSteer — Design System & Styles
   ============================================
   Palette:  Parchment / Stone / Navy / Brass
   Fonts:    Fraunces (headings), Nunito (body)
   Approach: Desktop-first, restrained, premium
   ============================================ */


/* ------------------------------------
   1. DESIGN TOKENS
   ------------------------------------ */

:root {
  /* Colour palette */
  --bg:              #FAF9F6;
  --bg-alt:          #F3F0EB;
  --fg:              #1C2B39;
  --fg-muted:        #5C6A72;
  --primary:         #1E3A5F;
  --primary-light:   #2A4D72;
  --primary-fg:      #FAFAFA;
  --accent:          #8C7355;
  --accent-light:    #A8906E;
  --border:          #DDD8D0;
  --border-light:    #EBE7E0;

  /* Typography */
  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;   /*  8px */
  --space-sm:  1rem;     /* 16px */
  --space-md:  1.5rem;   /* 24px */
  --space-lg:  2rem;     /* 32px */
  --space-xl:  3rem;     /* 48px */
  --space-2xl: 5rem;     /* 80px */
  --space-3xl: 6.25rem;  /* 100px */
  --space-4xl: 7.5rem;   /* 120px */
  --space-5xl: 8.75rem;  /* 140px */

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(28, 43, 57, 0.04);
  --shadow-soft:   0 4px 16px rgba(28, 43, 57, 0.06);
  --shadow-medium: 0 8px 30px rgba(28, 43, 57, 0.08);

  /* Radii */
  --radius:     0.75rem;
  --radius-sm:  0.5rem;
  --radius-pill: 100vw;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* ------------------------------------
   2. RESET & BASE
   ------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;    /* 17px */
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.015em;
}

blockquote {
  margin: 0;
  padding: 0;
}


/* ------------------------------------
   3. CONTAINERS
   ------------------------------------ */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: 48rem;    /* 768px */
}

.container--reading {
  max-width: 41.25rem; /* 660px */
}

.container--mid {
  max-width: 52rem;    /* 832px */
}

.container--wide {
  max-width: 60rem;    /* 960px */
}


/* ------------------------------------
   4. NAVIGATION
   ------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 4.5rem;     /* 72px */
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: opacity 0.2s var(--ease);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--fg);
  text-decoration-color: var(--border);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-fg);
  background-color: var(--primary);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-soft);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: var(--fg);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.active .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}


/* ------------------------------------
   6. BUTTONS
   ------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  font-size: 1rem;
  color: var(--primary-fg);
  background-color: var(--primary);
  padding: 0.875rem 2.25rem;
  box-shadow: var(--shadow-subtle);
}

.btn--primary:hover {
  background-color: var(--primary-light);
  box-shadow: var(--shadow-soft);
}

.btn--inverted {
  font-size: 1rem;
  color: var(--primary);
  background-color: #FFFFFF;
  padding: 0.875rem 2.5rem;
  box-shadow: var(--shadow-subtle);
}

.btn--inverted:hover {
  background-color: var(--bg);
  box-shadow: var(--shadow-medium);
}


/* ------------------------------------
   7. SECTIONS — SHARED
   ------------------------------------ */

.section {
  position: relative;
}

.section--hero,
.section--problem,
.section--how,
.section--about {
  background-color: var(--bg);
}

.section--reframe,
.section--who,
.section--commercial {
  background-color: var(--bg-alt);
}

.section--cta {
  background-color: var(--primary);
}


/* Section headlines */
.section-headline {
  font-size: 2.25rem;
  margin-bottom: var(--space-xl);
}

.section-headline--centred {
  text-align: center;
}

.section-headline--light {
  color: var(--primary-fg);
}


/* Prose blocks */
.prose p {
  margin-bottom: var(--space-md);
  color: var(--fg);
}

.prose p:last-child {
  margin-bottom: 0;
}


/* Pull quote */
.pull-quote {
  margin-top: var(--space-xl);
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--primary);
  letter-spacing: -0.01em;
}


/* Thin centred rule (divider) */
.section-rule {
  display: flex;
  justify-content: center;
  padding-top: var(--space-xl);
}

.section-rule span {
  display: block;
  width: 7.5rem;
  height: 1px;
  background-color: var(--border-light);
}


/* ------------------------------------
   8. HERO
   ------------------------------------ */

.section--hero {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-4xl);
}

/* Grain texture overlay */
.hero-grain,
.cta-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--primary);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-sub {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 34rem;
  margin: var(--space-lg) auto 0;
  text-align: center;
}

.hero-cta-group {
  text-align: center;
  margin-top: var(--space-xl);
}

.hero-supporting {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}


/* ------------------------------------
   9. THE PROBLEM
   ------------------------------------ */

.section--problem {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}


/* ------------------------------------
   10. THE REFRAME
   ------------------------------------ */

.section--reframe {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}


/* ------------------------------------
   11. HOW IT WORKS
   ------------------------------------ */

.section--how {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.steps {
  position: relative;
  max-width: 36rem;
  margin: var(--space-xl) auto 0;
  padding-left: var(--space-lg);
  counter-reset: none;
}

/* Vertical connecting line */
.steps::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background-color: var(--border);
}

.step {
  padding-bottom: var(--space-xl);
}

.step:last-child {
  padding-bottom: 0;
}

.step-number {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.step-title {
  font-size: 1.3125rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.steps-supporting {
  max-width: 36rem;
  margin: var(--space-xl) auto 0;
  padding-left: var(--space-lg);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--fg-muted);
}


/* ------------------------------------
   12. WHO IT'S FOR
   ------------------------------------ */

.section--who {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.scenarios {
  max-width: 40rem;
  margin: var(--space-xl) auto 0;
}

.scenario {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg);
  padding: 0.625rem 0;
}

.scenario::before {
  content: '—';
  color: var(--accent);
  margin-right: 0.75rem;
  font-weight: 700;
}


/* ------------------------------------
   13. ABOUT / TRUST
   ------------------------------------ */

.section--about {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  max-width: 44rem;
  margin: var(--space-xl) auto 0;
}

.credential dt {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.credential dd {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.about-separator {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.about-separator span {
  display: block;
  width: 12.5rem;
  height: 1px;
  background-color: var(--border-light);
}

.about-people {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.about-people p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
}


/* ------------------------------------
   14. COMMERCIAL CASE
   ------------------------------------ */

.section--commercial {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}


/* ------------------------------------
   15. FINAL CTA
   ------------------------------------ */

.section--cta {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.cta-body {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.75;
}

.cta-actions {
  margin-top: var(--space-xl);
}

.cta-secondary {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
}

.cta-secondary a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.cta-secondary a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.cta-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ------------------------------------
   16. FOOTER
   ------------------------------------ */

.footer {
  background-color: #162D4A;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.75rem var(--space-md) 0;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.footer-company p {
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-linkedin {
  display: block;
  opacity: 0.4;
  transition: opacity 0.2s var(--ease);
}

.footer-linkedin:hover {
  opacity: 0.7;
}

.footer-copyright {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-lg);
}


/* ============================================
   17. RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 64rem) {

  .hero-headline {
    font-size: 2.75rem;
  }

  .section-headline {
    font-size: 2rem;
  }

  .pull-quote p {
    font-size: 1.375rem;
  }

  .section--hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .section--problem,
  .section--reframe,
  .section--who,
  .section--commercial {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section--how,
  .section--about {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .section--cta {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
  }
}


/* ============================================
   18. RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 48rem) {

  html {
    scroll-padding-top: 80px;
  }

  body {
    font-size: 1rem;
  }

  /* Nav */
  .nav-inner {
    height: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-cta {
    margin-top: var(--space-sm);
    text-align: center;
    width: 100%;
  }

  /* Hero */
  .section--hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero-headline {
    font-size: 2.25rem;
    text-align: left;
  }

  .hero-headline br {
    display: none;
  }

  .hero-sub {
    font-size: 1.0625rem;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta-group {
    text-align: left;
  }

  /* Sections */
  .section--problem,
  .section--reframe,
  .section--who,
  .section--commercial {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .section--how,
  .section--about {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .section--cta {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .section-headline {
    font-size: 1.75rem;
  }

  .pull-quote p {
    font-size: 1.25rem;
  }

  /* How it works */
  .steps {
    margin-top: var(--space-lg);
    padding-left: var(--space-md);
  }

  .steps-supporting {
    padding-left: var(--space-md);
  }

  /* Who it's for */
  .section-headline--centred {
    text-align: left;
  }

  .scenarios {
    margin-top: var(--space-lg);
  }

  .scenario {
    font-size: 1.0625rem;
  }

  /* About */
  .credentials {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }

  /* CTA */
  .section--cta {
    text-align: left;
  }

  .cta-body {
    margin-left: 0;
  }

  .btn--inverted {
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


/* ============================================
   19. FOCUS STATES (Accessibility)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

/* Skip to main content (screen reader) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================
   20. PRINT
   ============================================ */

@media print {
  .nav,
  .hero-grain,
  .cta-grain,
  .section-rule,
  .btn {
    display: none;
  }

  .section--cta {
    background-color: #FFFFFF;
    color: var(--fg);
  }

  .section-headline--light {
    color: var(--primary);
  }

  .cta-body,
  .cta-secondary,
  .cta-note {
    color: var(--fg);
  }

  body {
    font-size: 11pt;
  }
}
