/* ============================================================
   Handled Tax & Advisory. Brand Tokens and Typography
   Handled Tax & Advisory
   ============================================================ */

:root {
  /* Primary brand */
  --brand-teal-deep: #5e7253;
  --brand-teal: #7a8f6b;
  --brand-teal-light: #9cad8e;

  /* Warm tones */
  --brand-cream: #efe7d4;
  --brand-cream-light: #f5efe2;
  --brand-paper: #faf6ee;

  /* Accents */
  --brand-burgundy: #4e6142;
  --brand-burgundy-dark: #3e4c34;
  --brand-gold: #d1b97a;
  --brand-gold-light: #e0caa0;

  /* Neutrals */
  --brand-ink: #2b2a26;
  --brand-stone-50: #faf6ee;
  --brand-stone-200: #e8e0ce;
  --brand-stone-400: #a59a82;
  --brand-stone-600: #6b6555;
  --brand-stone-800: #2b2a26;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing / motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(43, 42, 38, 0.05), 0 8px 24px rgba(43, 42, 38, 0.07);
  --shadow-raised: 0 2px 6px rgba(43, 42, 38, 0.07), 0 20px 48px rgba(43, 42, 38, 0.10);
}

/* ---------- base ---------- */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--brand-ink);
  background: var(--brand-paper);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-teal-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em 0; color: var(--brand-stone-800); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-teal-deep); text-decoration: none; transition: color 180ms var(--ease-out); }
a:hover { color: var(--brand-burgundy); }

em, .accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/* ---------- selection ---------- */
::selection { background: var(--brand-gold); color: var(--brand-teal-deep); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* ---------- surfaces ---------- */
.surface-paper { background: var(--brand-paper); }
.surface-cream { background: var(--brand-cream-light); }
.surface-teal  { background: var(--brand-teal); color: var(--brand-cream-light); }
.surface-teal-deep { background: var(--brand-teal-deep); color: var(--brand-cream-light); }
.surface-teal  h1, .surface-teal  h2, .surface-teal  h3,
.surface-teal-deep h1, .surface-teal-deep h2, .surface-teal-deep h3 { color: var(--brand-cream-light); }

/* ---------- sunburst + noise ---------- */
.bg-sunburst {
  background-color: var(--brand-cream-light);
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 0%,
      rgba(122, 143, 107, 0.05) 0deg 6deg,
      transparent 6deg 12deg
    );
}

.bg-noise {
  position: relative;
}
.bg-noise::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.16 0 0 0 0 0.15 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* ---------- utility: divider ---------- */
.rule-gold {
  display: inline-block; width: 3rem; height: 2px;
  background: var(--brand-gold);
  margin: 0 0 1rem 0;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-burgundy);
}
.surface-teal .eyebrow, .surface-teal-deep .eyebrow { color: var(--brand-gold); }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* sage-calm-rhythm-21 ============================================
   Calm rhythm refresh. Generous vertical space, soft button treatment.
   Appended so these rules win when brand.css loads last.
   ============================================================ */

section { padding-block: clamp(4.5rem, 8vw, 7rem); }
section + section { padding-top: clamp(4.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }

.container { max-width: 1120px; }

body { font-size: 16.5px; line-height: 1.7; color: #2b2a26; }
h1, h2, h3, h4, h5, h6 { color: #3e4c34; letter-spacing: -0.005em; }
h2 { margin-block: 0 1.25rem; }
h3 { margin-block: 0 0.85rem; }
p  { color: #3a3a33; }

.btn { border-radius: 14px; padding: 0.9rem 1.7rem; font-weight: 500; letter-spacing: 0.005em; box-shadow: none; }
.btn:hover { transform: none; box-shadow: 0 2px 10px rgba(94, 114, 83, 0.14); }
.btn-primary { background: #7a8f6b; color: #faf6ee; border-color: transparent; }
.btn-primary:hover { background: #5e7253; color: #faf6ee; }
.btn-secondary { color: #5e7253; border-color: #7a8f6b; background: transparent; }
.btn-secondary:hover { background: #7a8f6b; color: #faf6ee; }
.btn-ghost { color: #5e7253; }
.btn-ghost:hover { color: #3e4c34; }

.surface-paper { background: #faf6ee; }
.surface-cream { background: #efe7d4; }
.surface-teal, .surface-teal-deep { background: #5e7253; color: #faf6ee; }

.nav-menu a:hover, .nav-menu a.active,
.brand-lockup .wordmark { color: #3e4c34; }
.brand-lockup .wordmark .dot { color: #d1b97a; }

.nav-dropdown .panel { background: #faf6ee; border-color: #e8e0ce; }
.nav-dropdown .panel .label { color: #3e4c34; }

footer { background: #3e4c34; color: #efe7d4; }
footer a { color: #e0caa0; }
footer a:hover { color: #faf6ee; }
footer h3, footer h4, footer .eyebrow { color: #faf6ee; }

.eyebrow { color: #5e7253; }

hr, .divider { border-color: #e8e0ce; }


/* sage-premium-lift-21 ==========================================
   Premium visual lift. Additive on top of sage-calm-rhythm-21.
   Dramatic typography, decorative marks, lift hover states, stat band,
   hero animations. Keeps calm voice; adds visual confidence.
   =============================================================== */

/* Hero typography dramatic lift */
.hero { position: relative; overflow: hidden; padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.hero h1[data-hero] { font-size: clamp(2.75rem, 7vw + 1rem, 5.5rem); line-height: 1.02; letter-spacing: -0.025em; color: #3e4c34; max-width: 14ch; }
.hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; }
.hero .sub { font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem); max-width: 58ch; color: #3a3a33; line-height: 1.65; }
.hero .trust-strip { margin-top: 2.5rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--brand-stone-600); }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero .bg-sunburst { --sunburst-opacity: 0.55; }

/* Rotating sunburst overlay (pure CSS so no JS needed) */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 160%;
  background-image:
    repeating-conic-gradient(from 0deg at 50% 10%, rgba(122,143,107,0.07) 0deg 5deg, transparent 5deg 12deg);
  animation: sage-sunrise 90s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes sage-sunrise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero > .container { position: relative; z-index: 2; }
.hero::after {
  content: ""; position: absolute; inset: auto -50% -80% -50%; height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(239,231,212,0.9) 0%, rgba(245,239,226,0) 70%);
  pointer-events: none; z-index: 1;
}

/* Decorative gold rule, bigger and with dot */
.rule-gold {
  display: inline-flex; align-items: center; gap: 0.65rem;
  width: auto; height: auto; background: transparent;
  margin: 0 0 1rem;
}
.rule-gold::before, .rule-gold::after { display: none; }
.rule-gold {
  position: relative;
}
.rule-gold::after {
  display: inline-block; content: ""; width: 3.5rem; height: 2px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, rgba(209,185,122,0.2) 100%);
}
.rule-gold::before {
  display: inline-block; content: ""; width: 0.4rem; height: 0.4rem;
  border-radius: 50%; background: var(--brand-gold);
}

/* Section heading rhythm */
.section-head { position: relative; }
.section-head h2 { letter-spacing: -0.015em; margin-top: 0.75rem; }

/* Editorial drop cap on first-letter paragraph when opted in */
.lead-paragraph::first-letter {
  float: left; font-family: var(--font-display);
  font-size: 4rem; line-height: 0.85;
  color: var(--brand-teal-deep);
  margin: 0.3rem 0.55rem 0 0;
  font-weight: 600;
}
.lead-paragraph { font-size: 1.175rem; line-height: 1.75; color: var(--brand-stone-800); }

/* Trust band / stat row */
.trust-band {
  background: #3e4c34;
  color: #efe7d4;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  position: relative;
}
.trust-band .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
}
.trust-band .stat { text-align: center; padding: 0.5rem; }
.trust-band .stat .num {
  display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
  font-weight: 600; color: var(--brand-gold-light); line-height: 1; letter-spacing: -0.02em;
}
.trust-band .stat .label {
  display: block; margin-top: 0.65rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(239,231,212,0.82);
}
.trust-band::before, .trust-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.trust-band::before { top: 0; transform: scaleY(-1); }
.trust-band::after { bottom: 0; }

/* SVG section divider wave */
.section-divider {
  display: block; width: 100%; height: 56px;
  fill: var(--brand-cream-light);
  margin: 0; padding: 0;
}
.section-divider.to-paper { fill: var(--brand-paper); }
.section-divider.from-deep { fill: #3e4c34; }

/* Card lift hover (cards, post cards, pricing) */
.card, .post-card {
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out);
}
.card:hover, .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(94,114,83,0.08), 0 24px 48px rgba(43,42,38,0.09);
  border-color: var(--brand-gold-light);
}
.card .icon-wrap {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(209,185,122,0.15);
  color: var(--brand-teal-deep);
  margin-bottom: 1rem;
  transition: transform 320ms var(--ease-out), background 320ms var(--ease-out);
}
.card:hover .icon-wrap { transform: scale(1.08) rotate(-3deg); background: rgba(209,185,122,0.3); }

/* Amanda portrait decorative frame */
.amanda-portrait {
  position: relative;
}
.amanda-portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 22px;
  border: 1px solid var(--brand-gold);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.amanda-portrait::after {
  content: ""; position: absolute; width: 80px; height: 80px;
  left: -24px; top: -24px;
  background-image: repeating-linear-gradient(45deg, var(--brand-gold) 0 1px, transparent 1px 8px);
  opacity: 0.45; border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}

/* Testimonial accent */
.testimonial-quote { position: relative; padding-left: 1.25rem; }
.testimonial-quote::before {
  content: "\201C"; position: absolute; left: -0.5rem; top: -0.9rem;
  font-family: var(--font-display); font-size: 3.25rem; line-height: 1;
  color: var(--brand-gold); opacity: 0.6;
}

/* Reveal base: hidden until .in class lands (sits behind animations.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Nav brand mark scaling */
.site-nav .brand-logo { transition: transform 220ms var(--ease-out); }
.site-nav:hover .brand-logo { transform: translateY(-1px); }

/* Focus ring polish */
:focus-visible { outline-width: 2px; outline-offset: 3px; outline-color: var(--brand-gold); box-shadow: 0 0 0 6px rgba(209,185,122,0.22); }

/* Cursor-glow visual */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; pointer-events: none; z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209,185,122,0.22) 0%, rgba(209,185,122,0) 65%);
  opacity: 0; transition: opacity 320ms var(--ease-out);
  mix-blend-mode: multiply;
}
.cursor-glow.visible { opacity: 1; }

/* Button polish */
.btn-primary { box-shadow: 0 2px 10px rgba(94,114,83,0.18); }
.btn-primary:hover { box-shadow: 0 6px 22px rgba(94,114,83,0.28); transform: translateY(-2px); }
.btn-secondary:hover { transform: translateY(-2px); }

/* Post card reading meta */
.post-card h3 a { transition: color 220ms var(--ease-out); }
.post-card:hover h3 a { color: var(--brand-burgundy); }

/* FAQ + article capsules */
.answer-capsule strong { color: var(--brand-teal-deep); }

/* Hero tagline chip */
.hero-tagchip {
  display: inline-flex; gap: 0.55rem; align-items: center;
  padding: 0.4rem 0.9rem; border: 1px solid var(--brand-gold-light);
  border-radius: 999px; background: rgba(209,185,122,0.08);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-teal-deep);
}
.hero-tagchip .dot { width: 6px; height: 6px; background: var(--brand-gold); border-radius: 50%; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}


/* ─── Fix: rule-gold visibility on dark teal/sage sections (per Amanda 2026-04-26) ─── */
.surface-teal .rule-gold::after,
.surface-teal-deep .rule-gold::after {
  background: linear-gradient(90deg, var(--brand-gold-light) 0%, var(--brand-gold-light) 100%);
  height: 3px;
  opacity: 1;
  width: 4rem;
}
.surface-teal .rule-gold::before,
.surface-teal-deep .rule-gold::before {
  background: var(--brand-gold-light);
  width: 0.5rem;
  height: 0.5rem;
}


/* ─── Fix: tier emphasis (per Amanda 2026-04-26) ─── */
/* Tier name (h2) = dominant. Tier intro (h3) = subordinate italic caption. */
.tier-name {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.tier-intro {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  font-style: italic;
  font-weight: 500;
  color: var(--brand-stone-600);
  letter-spacing: 0.005em;
  text-transform: none;
  margin: 0 0 1.25rem;
}

/* ─── Fix: hr/divider/rule visibility on dark sections (Amanda 2026-04-28 dark divider on dark sections) ─── */
.surface-teal hr,
.surface-teal-deep hr,
.surface-teal .divider,
.surface-teal-deep .divider,
.surface-teal .rule,
.surface-teal-deep .rule {
  border: none;
  height: 1px;
  background: rgba(250, 247, 242, 0.35);
  margin: 1.5rem auto;
  width: 60%;
}

/* Breadcrumb (Phase 1 Step 3, 2026-04-28) */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--brand-stone-600, #6c6a64);
  margin: 0.75rem 0 1.25rem;
  padding: 0;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.4rem 0 0;
  color: var(--brand-stone-400, #a8a59f);
}
.breadcrumb a {
  color: var(--brand-burgundy, #6c2c2f);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  color: var(--brand-stone-700, #4a4843);
  font-weight: 500;
}

/* Meta byline (Phase 1 Step 6, 2026-04-28) */
.meta-byline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--brand-stone-500, #8a8780);
  margin: 2rem 0 0.5rem;
  text-align: center;
}
.meta-byline time {
  font-style: normal;
}

/* Comparison tables (Phase 1 Step 8, 2026-04-28) */
.comparison-table {
  font-family: var(--font-body);
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  overflow: hidden;
}
.comparison-table thead {
  background: var(--brand-burgundy, #6c2c2f);
  color: var(--brand-cream-light, #faf7f2);
}
.comparison-table th, .comparison-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--brand-stone-200, #e6e3dc);
  vertical-align: top;
}
.comparison-table th[scope="col"] {
  font-weight: 600;
}
.comparison-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--brand-stone-700, #4a4843);
  background: rgba(245, 240, 232, 0.5);
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table a {
  color: var(--brand-burgundy, #6c2c2f);
  text-decoration: none;
}
.comparison-table a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 0.55rem 0.6rem; }
}

/* Circular 230 disclosure (Phase 1 Step 11, 2026-04-28) */
.disclosure {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--brand-stone-600, #6c6a64);
  background: rgba(245, 240, 232, 0.4);
  border-top: 1px solid var(--brand-stone-200, #e6e3dc);
  padding: 1.25rem 1rem 1rem;
  margin: 3rem auto 1rem;
  max-width: 780px;
}
.disclosure p {
  margin: 0;
}
.disclosure strong {
  color: var(--brand-stone-700, #4a4843);
  font-weight: 600;
}

/* Testimonial embed (Phase 4D, 2026-04-28) */
.testimonials-strip { padding: 2.5rem 0 1rem; }
.testimonial-embed {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  position: relative;
  padding: 1rem 1rem 0.5rem;
}
.testimonial-embed blockquote {
  font-family: var(--font-accent, "Playfair Display"), serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--brand-teal-deep, #2f4d4d);
  margin: 0;
  padding: 0;
  line-height: 1.55;
}
.testimonial-embed blockquote p {
  margin: 0;
}
.testimonial-embed figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--brand-stone-600, #6c6a64);
}
.testimonial-embed .t-name {
  font-weight: 600;
  color: var(--brand-stone-700, #4a4843);
}
