/* ============================================================
   Sunny Sage Financial — Stylesheet
   Brand tokens are declared once below; layout/components follow.
   ============================================================ */

:root {
  --cream: #F7F4EE;
  --sand: #E9DFD0;
  --charcoal: #2A2C30;
  --charcoal-soft: #3D4045;
  --deep-sage: #243B2E;
  --sage: #7C9A80;
  --sage-rich: #5C8567;
  --amber: #D6A75A;
  --hairline: #DCD5C7;

  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-serif: 'Lora', serif;
  --font-logo: 'Newsreader', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--deep-sage); text-decoration: none; }
a:hover { color: var(--sage); }

h1, h2, h3, p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Focus states — visible everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(214, 167, 90, 0.27); }

/* ============================================================
   Logo (shared: header + footer)
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--charcoal-soft);
}
.logo-mark {
  position: relative;
  width: 85px;
  height: 1px;
  background: var(--charcoal-soft);
  flex: none;
  top: -3px;
}
.logo-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--amber);
}
.logo-word { display: flex; flex-direction: column; white-space: nowrap; }
.logo-name {
  font-family: var(--font-logo);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal-soft);
}
.logo-sub {
  font-family: var(--font-logo);
  font-size: 9.3px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage-rich);
  margin-top: 0.8px;
  margin-left: 4.5px;
}

.logo-footer { color: #F7F4EEe6; }
.logo-mark-footer {
  width: 73px;
  top: -2.6px;
  background: rgba(247, 244, 238, 0.33);
}
.logo-mark-footer::after {
  width: 3.3px;
  height: 3.3px;
  margin: -1.65px 0 0 -1.65px;
}
.logo-footer .logo-name { color: rgba(247, 244, 238, 0.9); }
.logo-sub-footer { color: var(--amber); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(42, 44, 48, 0.8);
  white-space: nowrap;
}
.site-nav a.btn-primary { color: var(--cream); }
.btn-nav { flex-shrink: 0; }

.menu-toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.btn-primary { color: var(--cream); background: var(--charcoal); }
.btn-primary:hover {
  color: var(--cream);
  background: #43464b;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(42, 44, 48, 0.22);
}
.btn-secondary {
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 15px 26px;
}
.btn-secondary:hover {
  color: var(--charcoal);
  border-color: var(--sage);
  transform: translateY(-1.5px);
}
.btn-light { color: var(--charcoal); background: var(--cream); }
.btn-light:hover {
  color: var(--charcoal);
  background: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 22px rgba(247, 244, 238, 0.35);
}
.btn-nav { font-size: 14.5px; padding: 12px 24px; }

/* ============================================================
   Horizon mark (section dividers / hero / CTA / footer)
   ============================================================ */
.horizon { position: relative; height: 1px; background: var(--charcoal); margin: 0 auto; }
.horizon-hero { width: 100%; max-width: 640px; }
.horizon-cta { width: 100%; max-width: 900px; background: rgba(247, 244, 238, 0.2); }
.horizon-dot {
  position: absolute;
  left: 38.2%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--amber);
}
.horizon-dot-cta { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.footer-line {
  position: relative;
  height: 1px;
  background: rgba(247, 244, 238, 0.1);
  margin-bottom: 32px;
}
.horizon-dot-footer {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: rgba(214, 167, 90, 0.6);
}

/* ============================================================
   Scroll-reveal (progressive enhancement)
   Default state: fully visible — works with no JS and honors
   prefers-reduced-motion automatically.
   ============================================================ */
.reveal { opacity: 1; }
html.js-anim .reveal { opacity: 0; transform: translateY(16px); }
html.js-anim .reveal.in { animation: fadeUp 0.6s cubic-bezier(.2,.8,.2,1) forwards; }

.draw { transform-origin: left; }
html.js-anim .draw { transform: scaleX(0); }
html.js-anim .draw.in { animation: fadeUpLine 0.7s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUpLine { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal,
  html.js-anim .draw { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(96px, 14vw, 180px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: rgba(42, 44, 48, 0.7);
  max-width: 600px;
  margin: 0 auto 44px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-tagline { font-size: 14px; color: var(--sage); margin-bottom: 60px; }

/* ============================================================
   Problem
   ============================================================ */
.problem { padding: clamp(64px, 9vw, 96px) clamp(20px, 4vw, 48px); background: var(--sand); }
.problem-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.problem-inner h2 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 22px;
}
.problem-inner > p:not(.problem-answer) {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(42, 44, 48, 0.75);
  margin-bottom: 20px;
}
.problem-answer { font-size: 17px; font-weight: 600; color: var(--sage); }

/* ============================================================
   Services
   ============================================================ */
.services { padding: clamp(96px, 14vw, 160px) clamp(20px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 6vw, 80px); }
.services-intro h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.services-intro .eyebrow { margin-bottom: 20px; }
.services-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.services-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
}
.services-num { font-size: 13px; font-weight: 600; color: var(--sage); }
.services-list h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.services-list p { font-size: 16px; line-height: 1.65; color: rgba(42, 44, 48, 0.7); }

@media (max-width: 780px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Philosophy
   ============================================================ */
.philosophy {
  padding: clamp(100px, 16vw, 200px) clamp(20px, 4vw, 48px);
  background: var(--deep-sage);
  text-align: center;
}
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.32;
  font-style: italic;
  color: rgba(247, 244, 238, 0.96);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   Process
   ============================================================ */
.process { padding: clamp(96px, 14vw, 160px) clamp(20px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.process-intro { max-width: 640px; margin-bottom: clamp(48px, 7vw, 80px); }
.process-intro h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.process-intro .eyebrow { margin-bottom: 20px; }

.process-line { width: 100%; height: 1px; background: var(--hairline); display: flex; }
.process-line span { flex: 1; position: relative; }
.process-line span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
}

.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.process-list li { padding: 36px clamp(16px, 2vw, 28px) 0 0; }
.process-num { font-size: 13px; font-weight: 600; color: rgba(124, 154, 128, 0.6); }
.process-list h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 14px 0 12px; }
.process-list p { font-size: 15.5px; line-height: 1.6; color: rgba(42, 44, 48, 0.7); }

/* ============================================================
   About
   ============================================================ */
.about { padding: clamp(96px, 14vw, 160px) clamp(20px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy .eyebrow { margin-bottom: 22px; }
.about-copy h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 26px; }
.about-copy p { font-size: 17px; line-height: 1.8; color: rgba(42, 44, 48, 0.75); margin-bottom: 20px; }
.about-note { border-top: 1px solid rgba(124, 154, 128, 0.33); padding-top: 20px; max-width: 440px; margin-top: 12px; }
.about-note p { font-size: 14.5px; line-height: 1.6; color: rgba(42, 44, 48, 0.6); margin-bottom: 0; }

.about-graphic { position: relative; aspect-ratio: 1; max-width: 340px; justify-self: center; width: 100%; }
.about-glow, .about-ring, .about-dot { position: absolute; border-radius: 50%; }
.about-glow { inset: 0; background: radial-gradient(circle at 45% 40%, rgba(214,167,90,0.13), transparent 70%); }
.about-ring { width: 70%; height: 70%; top: 15%; left: 15%; border: 1px solid rgba(124,154,128,0.33); }
.about-dot { width: 44%; height: 44%; top: 28%; left: 28%; background: rgba(124,154,128,0.2); }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-graphic { order: -1; max-width: 220px; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  padding: clamp(100px, 16vw, 180px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
  text-align: center;
  background: var(--charcoal);
  color: var(--cream);
}
.final-cta h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 22px; }
.final-cta > p { font-size: 18px; color: rgba(247, 244, 238, 0.75); margin-bottom: 44px; }
.final-cta .btn { margin-bottom: 56px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px); background: var(--deep-sage); color: rgba(247, 244, 238, 0.6); }
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-row .logo { margin-bottom: 10px; }
.footer-copyright { font-size: 13px; color: rgba(247, 244, 238, 0.5); }
.footer-tagline { font-size: 13px; color: rgba(247, 244, 238, 0.5); }

/* ============================================================
   Mobile nav
   ============================================================ */
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
  .btn-nav { width: auto; margin-top: 8px; }
}
