/* ==========================================================================
   Resolva CPA — site styles
   Mobile-first. Edit colors and fonts in :root only.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #1E2D4D;        /* hero, headings, nav, footer */
  --navy-deep: #15213A;
  --steel: #334766;       /* secondary elements, links */
  --ivory: #F8F6F0;       /* main backgrounds */
  --white: #FFFFFF;
  --orange: #B4592D;      /* primary CTA ONLY (burnt orange, darkened for readable white text) */
  --orange-hover: #9C4B24;
  --gold: #D1B882;        /* small accents, icons, highlights */
  --gold-deep: #B8963E;   /* logo gold */
  --gold-text: #946F1E;   /* gold for text on light backgrounds (readable contrast) */
  --ink: #1B2233;         /* body text */
  --muted: #4A5468;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --max: 1160px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--steel); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 14px 24px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-lg { min-height: 60px; padding: 18px 16px; font-size: 1.0625rem; width: 100%; white-space: nowrap; }
@media (max-width: 374px) {
  .btn-lg { white-space: normal; text-align: center; font-size: 1rem; line-height: 1.3; padding: 16px 14px; }
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #E6E2D8;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

/* Logo file has wide whitespace; this frame crops to the artwork */
.logo { display: block; width: 190px; flex-shrink: 0; }
.logo-frame { display: block; overflow: hidden; aspect-ratio: 1900 / 535; }
.logo-frame img { width: 105.27%; height: auto; max-width: none; margin-left: -2.9%; margin-top: -4.48%; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 0; border-radius: 8px; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid #E6E2D8;
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 12px 24px rgba(21, 33, 58, .08);
}
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 14px 4px;
  font-weight: 600; font-size: 1.0625rem; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid #EEEBE3;
}
.nav-list a[aria-current="page"] { color: var(--steel); }
.nav-actions { display: grid; gap: 12px; margin-top: 16px; }
.nav-actions .btn { width: 100%; }

/* ---------- Hero (headline section) ---------- */
.hero {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 85% 15%, rgba(209, 184, 130, .12), transparent 55%);
  color: var(--white);
  padding: 32px 0 48px;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }

.rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  font-weight: 600; font-size: .9375rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
@media (max-width: 374px) {
  .rating { gap: 8px; padding: 7px 12px; font-size: .875rem; white-space: nowrap; }
  .rating .stars svg { width: 15px; height: 15px; }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 8.4vw, 3.5rem);
  font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 16px;
}
.hero-lead { font-size: 1.125rem; color: #DCE2EC; margin: 0 0 22px; max-width: 34em; }

.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.45; }
.check-icon { flex-shrink: 0; width: 26px; height: 26px; margin-top: -1px; }

.hero-cta { max-width: 460px; }

.trust {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-weight: 600; font-size: .9375rem; color: #DCE2EC;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.hero-art { max-width: 420px; width: 100%; margin: 0 auto; }

/* Short phone screens (e.g. iPhone SE): tighten the headline section so the main button shows without scrolling */
@media (max-width: 480px) and (max-height: 760px) {
  .hero { padding-top: 18px; }
  .rating { margin-bottom: 12px; padding: 6px 12px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 10px; }
  .hero-lead { font-size: 1rem; line-height: 1.45; margin-bottom: 14px; }
  .checks { gap: 8px; margin-bottom: 18px; }
  .checks li { font-size: 1rem; line-height: 1.35; }
  .check-icon { width: 22px; height: 22px; margin-top: 0; }
}

/* ---------- Reviews ---------- */
.reviews { padding: 48px 0 56px; background: var(--ivory); }
.reviews h2 { font-size: clamp(1.625rem, 5.5vw, 2.25rem); text-align: center; margin-bottom: 28px; }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review {
  margin: 0; height: 100%;
  background: var(--white); border: 1px solid #E6E2D8; border-radius: 14px;
  padding: 24px; box-shadow: 0 2px 10px rgba(21, 33, 58, .04);
  display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.review figcaption { margin-top: auto; font-size: .9375rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--navy); font-size: 1rem; }

/* ---------- Generic sections ---------- */
.section { padding: 56px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.section-navy .section-head p { color: #DCE2EC; }
.section-head-wide { max-width: 900px; }
.section-head-wide h2 { font-size: clamp(1.5rem, 5.4vw, 2.5rem); }
.accent { color: var(--gold); }
.tm { font-size: 1em; vertical-align: baseline; } /* standard ™ glyph, as typed: Second Look™ */
.btn-label { text-align: center; } /* keeps "Second Look™" together as one piece inside buttons, even when it wraps */
.center { text-align: center; }
.mt-cta { margin-top: 36px; text-align: center; }

/* ---------- Growth + year-round approach section ---------- */
.section-approach {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(209, 184, 130, .14), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(209, 184, 130, .12), transparent 50%),
    #FFFFFF;
}
.grow-intro { text-align: center; max-width: 1040px; margin: 0 auto; }
.grow-intro h1, .grow-intro h2 { font-size: clamp(1.875rem, 7vw, 3.25rem); margin-bottom: 6px; letter-spacing: -.01em; }
.br-md { display: none; }
.swoosh-line {
  display: block; width: min(420px, 62%); height: 16px; margin: 0 auto 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 18' preserveAspectRatio='none'%3E%3Cpath d='M2 16 Q 210 -6 418 8 Q 210 3 2 16 Z' fill='%23B8963E'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.grow-tagline {
  font-family: var(--font-head); font-weight: 700; color: var(--gold-text);
  font-size: clamp(1.25rem, 4.4vw, 1.625rem); line-height: 1.3; margin: 0 0 14px;
}
.grow-body { color: var(--muted); font-size: 1.0625rem; margin: 0 auto; max-width: 46em; }

.approach { margin-top: 56px; text-align: center; }
.grow-intro .swoosh-line:last-child { margin-bottom: 0; }
.rule-heading {
  display: flex; align-items: center; gap: 18px;
  font-style: italic; font-size: clamp(1.5rem, 5vw, 2.125rem); margin: 0 0 10px;
}
.rule-heading { justify-content: center; }
.rule-heading::before, .rule-heading::after { content: ""; flex: 1; height: 1px; background: var(--gold-deep); min-width: 24px; display: none; }
@media (min-width: 640px) { .rule-heading::before, .rule-heading::after { display: block; } }
.approach-sub { color: var(--muted); margin: 0 auto 32px; max-width: 40em; }
.rule-heading + .approach-steps { margin-top: 28px; } /* Home: no sub-line under the heading */

.approach-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.approach-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .85); border: 1px solid #EDE4D0; border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 4px 16px rgba(30, 45, 77, .06);
}
.approach-icon { width: 46px; height: 46px; flex-shrink: 0; color: var(--gold-deep); }
.approach-text { border-left: 2px solid var(--gold); padding-left: 16px; }
.approach-text h3, .approach-text h4 { font-family: var(--font-head); font-size: 1.3125rem; color: var(--navy); margin: 0 0 4px; line-height: 1.2; }
.approach-text .num { color: var(--gold-text); margin-right: 4px; }
.approach-text p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

.approach-close {
  font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--navy);
  font-size: clamp(1.375rem, 4.6vw, 2.125rem); line-height: 1.35; margin: 44px 0 0;
}
.swoosh-under {
  white-space: nowrap;
  padding-bottom: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 18' preserveAspectRatio='none'%3E%3Cpath d='M2 16 Q 210 -6 418 8 Q 210 3 2 16 Z' fill='%23B8963E'/%3E%3C/svg%3E") left bottom / 100% .3em no-repeat;
}

/* ---------- About: Our firm ---------- */
.firm-wrap { max-width: 760px; margin: 0 auto; }
.firm-wrap h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 12px; }
.firm-rule { display: block; width: 64px; height: 3px; background: var(--gold-deep); border-radius: 2px; margin-bottom: 24px; }
.firm-wrap p { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; margin: 0 0 16px; }
.firm-wrap .firm-lead {
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  font-size: clamp(1.25rem, 4.2vw, 1.5rem); line-height: 1.45; margin-bottom: 20px;
}
.firm-wrap .firm-result { color: var(--navy); font-weight: 600; margin-bottom: 0; }
.firm-belief {
  margin: 36px 0 0; padding: 26px 28px;
  background: var(--navy); border-left: 4px solid var(--gold); border-radius: 12px;
}
.firm-belief p {
  margin: 0; color: var(--white);
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: clamp(1.1875rem, 3.8vw, 1.5rem); line-height: 1.45;
}
@media (min-width: 1024px) {
  .firm { padding-top: 80px; }
  .firm-belief { padding: 32px 36px; }
}

/* ---------- Our Approach: repeating cycle = Build Wealth ---------- */
.cycle { background: var(--ivory); text-align: center; overflow: hidden; }
.cycle-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 0 0 40px; color: var(--navy); font-family: var(--font-body); font-weight: 700;
  font-size: .9375rem; line-height: 1.4; letter-spacing: .32em; text-transform: uppercase;
}
.cycle-eyebrow::before, .cycle-eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--gold-deep); flex-shrink: 0; }
@media (max-width: 479px) {
  .cycle-eyebrow { font-size: .8125rem; letter-spacing: .22em; gap: 10px; white-space: nowrap; }
  .cycle-eyebrow::before, .cycle-eyebrow::after { width: 28px; }
}
@media (max-width: 359px) {
  .cycle-eyebrow { font-size: .75rem; letter-spacing: .16em; gap: 8px; }
  .cycle-eyebrow::before, .cycle-eyebrow::after { width: 16px; }
}

/* Phone layout: everything stacks */
.cycle-flow { display: grid; gap: 30px; justify-items: center; }
.cycle-loopwrap { width: 100%; max-width: 360px; }
.cycle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.cycle-step {
  position: relative; z-index: 0; color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 190px; padding: 26px 24px;
}
/* Slanted card face (the text itself stays upright) */
.cycle-step::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px;
  transform: skewX(-8deg); border: 2px solid rgba(209, 184, 130, .55);
  box-shadow: 0 14px 30px rgba(30, 45, 77, .22);
}
.cs-1::before { background: linear-gradient(140deg, #2A4170, #15213A); }
.cs-2::before { background: linear-gradient(140deg, #2D6A8F, #1A3F5E); }
.cs-3::before { background: linear-gradient(140deg, #D9813F, #9C4B24); }
.cs-4::before { background: linear-gradient(140deg, #F0D98F, #C9A13B); box-shadow: 0 16px 44px rgba(201, 161, 59, .4); }
.cs-4 { color: var(--navy); }
.cycle-icon { width: 46px; height: 46px; margin-bottom: 12px; }
.cycle-step h3 { color: inherit; font-size: clamp(1.75rem, 5vw, 2.125rem); line-height: 1.05; margin: 0; }
.cycle-step p { margin: 10px 0 0; font-size: .8125rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
/* Gold arrow between cycle cards (down on phones, right on desktop) */
.cycle-steps .cycle-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -32px; width: 16px; height: 16px;
  border-right: 4px solid var(--gold-deep); border-bottom: 4px solid var(--gold-deep);
  transform: translateX(-50%) rotate(45deg);
}

/* "Repeat over time" */
.cycle-loop { margin-top: 28px; }
/* Phones: a small gold circular arrow shows the cycle repeats (desktop uses the loop line instead) */
.cycle-repeat { display: inline-flex; color: var(--gold-deep); }
.cycle-repeat svg { width: 34px; height: 34px; flex-shrink: 0; }

/* "=" between the cycle and the result */
.cycle-equals {
  display: block; width: 46px; height: 30px;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) top / 100% 8px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) bottom / 100% 8px no-repeat;
  border-radius: 3px;
}

/* The result: Build Wealth */
.cycle-result { width: 100%; max-width: 360px; min-height: 220px; }
.cycle-result .cycle-result-text { margin: 0; font-size: 1rem; letter-spacing: normal; text-transform: none; opacity: 1; }
.cycle-result-text strong { display: block; font-family: var(--font-head); font-size: clamp(2.125rem, 6vw, 2.75rem); line-height: 1.05; }
.cycle-result-text > span:not(.sr-only) { display: block; margin-top: 12px; font-size: .875rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.cycle-result .cycle-icon { width: 56px; height: 56px; }

@media (min-width: 1024px) {
  .cycle-flow { grid-template-columns: 1fr auto 270px; align-items: start; gap: 40px; justify-items: stretch; }
  .cycle-loopwrap { max-width: none; }
  .cycle-steps { grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 0 8px; }
  .cycle-step { min-height: 220px; }
  .cycle-steps .cycle-step:not(:last-child)::after {
    left: auto; right: -32px; top: 50%; bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
  /* Loop line from under "Drive Growth" back up into "Reduce Taxes" */
  .cycle-loop {
    position: relative; margin: 0 calc((100% - 96px) / 6); height: 70px;
    border: 3px solid var(--gold-deep); border-top: 0; border-radius: 0 0 34px 34px;
  }
  .cycle-loop::before {
    content: ""; position: absolute; left: -10px; top: -6px;
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--gold-deep);
  }
  .cycle-loop { height: 54px; }
  .cycle-repeat svg { display: none; }
  .cycle-equals { margin-top: 95px; }
  .cycle-result { max-width: none; min-height: 260px; margin-top: -20px; }
}
/* ---------- Services page ---------- */
.svc-head { max-width: 760px; margin: 0 auto 16px; }
.svc-head h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 12px; }
.svc-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.svc-row { display: grid; gap: 28px; align-items: center; padding: 44px 0; border-top: 1px solid #EEEBE3; scroll-margin-top: 100px; }
.svc-head + .svc-row { border-top: 0; }
.svc-text h2 { font-size: clamp(1.625rem, 5vw, 2.25rem); margin-bottom: 6px; }
.svc-tagline { font-family: var(--font-head); font-weight: 700; color: var(--gold-text); font-size: clamp(1.125rem, 3.6vw, 1.3125rem); margin: 0 0 14px; }
.svc-text > p:not(.svc-tagline) { color: var(--muted); margin: 0 0 18px; }
.svc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-points li { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.svc-points svg { width: 22px; height: 22px; flex-shrink: 0; }
.svc-art { width: 100%; max-width: 520px; margin: 0 auto; border-radius: 18px; box-shadow: 0 16px 40px rgba(30, 45, 77, .18); }
.svc-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 1024px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .svc-row-flip .svc-text { order: 2; }
  .svc-head { margin-bottom: 24px; }
}

/* Service graphics: animate when scrolled into view (main.js adds .in-view).
   Pieces only start hidden when JavaScript runs (html.js), so the graphics always show without it. */
.anim .pulse { opacity: 0; transform-box: fill-box; transform-origin: center; }
.js .anim .bar  { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
.js .anim .line { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.js .anim .pop  { transform: scale(0);  transform-box: fill-box; transform-origin: center; }
.js .anim .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .anim .fade { opacity: 0; }

.anim.in-view .bar  { animation: svc-grow .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.anim.in-view .line { animation: svc-fill .5s ease-out forwards; }
.anim.in-view .pop  { animation: svc-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.anim.in-view .draw { animation: svc-draw 1.3s ease-in-out forwards; }
.anim.in-view .fade { animation: svc-fade .9s ease forwards; }
.anim.in-view .pulse { animation: svc-pulse 2.2s ease-out 3s infinite; }

/* Growth chart: profit bars rise year by year, then the trend line draws up across them */
.anim-growth .b1 { animation-delay: .1s !important; }
.anim-growth .b2 { animation-delay: .3s !important; }
.anim-growth .b3 { animation-delay: .5s !important; }
.anim-growth .b4 { animation-delay: .7s !important; }
.anim-growth .trend { animation-delay: 1.1s !important; }
.anim-growth .dot { animation-delay: 2.3s !important; }
/* Tax return: each line fills in, gets checked, then the approval seal */
.anim-prep .l1 { animation-delay: .2s !important; }  .anim-prep .c1 { animation-delay: .6s !important; }
.anim-prep .l2 { animation-delay: .6s !important; }  .anim-prep .c2 { animation-delay: 1s !important; }
.anim-prep .l3 { animation-delay: 1s !important; }   .anim-prep .c3 { animation-delay: 1.4s !important; }
.anim-prep .l4 { animation-delay: 1.4s !important; } .anim-prep .c4 { animation-delay: 1.8s !important; }
.anim-prep .seal { animation-delay: 2.3s !important; }
/* Bookkeeping: cash-flow line draws, area fills, profit tag appears */
.anim-books .cash { animation-delay: .2s !important; animation-duration: 1.7s !important; }
.anim-books .area { animation-delay: 1.2s !important; }
.anim-books .dot { animation-delay: 1.9s !important; }
.anim-books .kpi { animation-delay: 2.1s !important; }

@keyframes svc-grow { to { transform: scaleY(1); } }
@keyframes svc-fill { to { transform: scaleX(1); } }
@keyframes svc-draw { to { stroke-dashoffset: 0; } }
@keyframes svc-fade { to { opacity: 1; } }
@keyframes svc-pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes svc-pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }

@media (prefers-reduced-motion: reduce) {
  .js .anim .bar, .js .anim .line, .js .anim .pop { transform: none; }
  .js .anim .draw { stroke-dashoffset: 0; }
  .js .anim .fade { opacity: 1; }
  .anim.in-view * { animation: none !important; }
}

/* Cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card {
  height: 100%; background: var(--white);
  border: 1px solid #E6E2D8; border-radius: 14px; padding: 26px 24px;
}
.section-white .card { background: var(--ivory); }
.card h3, .card .h3-like { font-size: 1.375rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--steel); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: var(--navy); color: var(--gold);
}
.icon-badge svg { width: 28px; height: 28px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 26px 24px 26px 82px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy); font: 700 1.125rem var(--font-body);
}
.step h3 { font-size: 1.3125rem; margin-bottom: 6px; }
.step p { margin: 0; color: #DCE2EC; }

/* Fit lists */
.fit-grid { display: grid; gap: 16px; max-width: 1000px; margin: 0 auto; }
.fit { background: var(--white); border: 1px solid #E6E2D8; border-radius: 14px; padding: 24px 26px 8px; }
.fit h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: grid; }
.fit li { display: flex; gap: 14px; align-items: center; line-height: 1.45; padding: 14px 0; border-top: 1px solid #EEEBE3; }
.fit li svg { flex-shrink: 0; width: 22px; height: 22px; }

/* Two columns: headings and each bullet row line up across both cards */
@media (min-width: 640px) {
  @supports (grid-template-rows: subgrid) {
    .fit-grid { grid-template-rows: repeat(4, auto); column-gap: 20px; row-gap: 0; }
    .fit { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
    .fit ul { grid-row: span 3; grid-template-rows: subgrid; }
  }
}
.fit-yes { border-top: 4px solid var(--gold-deep); }
.fit-no { border-top: 4px solid #9AA5B8; }

/* Split block (founder / story) */
.split { display: grid; gap: 32px; align-items: center; }
.split h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.split p { color: var(--muted); margin: 0 0 14px; }
.creds { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li {
  padding: 8px 14px; border-radius: 999px; background: var(--navy); color: var(--white);
  font-weight: 600; font-size: .9375rem;
}
.portrait {
  max-width: 380px; width: 100%; margin: 0 auto; aspect-ratio: 4 / 5;
  border-radius: 16px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portrait svg { width: 60%; height: auto; }
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  box-shadow: 0 0 0 1px rgba(209, 184, 130, .5);
}
.portrait:has(img) { background: none; box-shadow: 0 14px 34px rgba(30, 45, 77, .16); }
.split .founder-link { margin-top: 8px; }
.music-strip {
  list-style: none; margin: 6px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 520px;
  container-type: inline-size;
}
.music-strip li { margin: 0; grid-column: span 2; }
.music-strip li.wide { grid-column: span 3; }
.music-strip img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; box-shadow: 0 6px 16px rgba(30, 45, 77, .14);
}
.music-strip .wide img { aspect-ratio: 9 / 4; }
/* Exact equal row heights: a top-row photo is (width - 2 gaps) / 3 wide at 3:2 */
@supports (height: 1cqw) {
  .music-strip img, .music-strip .wide img { aspect-ratio: auto; height: calc((100cqw - 20px) / 4.5); }
}
.split .role { font-weight: 700; color: var(--gold-text); margin: -6px 0 14px; }

/* Compare table */
.compare { display: grid; gap: 16px; }
.compare-col { border-radius: 14px; padding: 26px 24px; }
.compare-col h3 { font-size: 1.375rem; }
.compare-col ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.compare-them { background: var(--white); border: 1px solid #E6E2D8; color: var(--muted); }
.compare-us { background: var(--navy); color: var(--white); }
.compare-us h3 { color: var(--white); }
.compare-us li::marker { color: var(--gold); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid #E6E2D8; border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--gold-deep);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.75rem, 6vw, 2.5rem); }
.cta-band p { color: #DCE2EC; font-size: 1.125rem; margin: 0 auto 26px; max-width: 34em; }

/* Inner page hero */
.page-hero { background: var(--navy); color: var(--white); padding: 44px 0 48px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 7.5vw, 3.25rem); margin-bottom: 12px; }
.page-hero p { color: #DCE2EC; font-size: 1.125rem; margin: 0; max-width: 36em; }

/* Service groups */
.service-group + .service-group { margin-top: 48px; }
.group-title { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 20px; }
.card[id] { scroll-margin-top: 100px; }

/* Contact */
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-card { text-align: center; }
.contact-card a.big { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 2px; font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-card a.big:hover { text-decoration: underline; }
.contact-card .icon-badge { margin-left: auto; margin-right: auto; }
.callout {
  max-width: 760px; margin: 32px auto 0; padding: 20px 22px;
  background: var(--white); border-left: 4px solid var(--gold-deep); border-radius: 8px;
}
.callout p { margin: 0; }

/* Portal page */
.portal-box { max-width: 640px; margin: 0 auto; text-align: center; }
.portal-box .btn { margin: 8px 0 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D1DE; padding: 48px 0 24px; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-logo { display: block; width: 210px; margin-bottom: 14px; }
.footer-logo img { filter: brightness(0) invert(1); }
.footer-brand p { margin: 0 0 20px; max-width: 26em; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; color: var(--gold); margin: 0 0 12px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer li > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer li:not(:has(a)) { padding: 10px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .btn-primary { color: var(--white); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9375rem; }

/* ---------- Screening page (embedded Jotform) ---------- */
.screening { padding: 40px 0 64px; }
.screening-head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.screening-head h1 { font-size: clamp(1.875rem, 7vw, 2.75rem); margin-bottom: 8px; }
.screening-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.screening-card {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border: 1px solid #E6E2D8; border-top: 4px solid var(--gold-deep); border-radius: 14px;
  padding: 8px 4px; box-shadow: 0 8px 28px rgba(30, 45, 77, .08); overflow: hidden;
}
.screening-card iframe { display: block; }
.screening-trust { justify-content: center; color: var(--muted); margin-top: 20px; }
.screening-trust svg { color: var(--gold-deep); }
.screening-help { text-align: center; color: var(--muted); margin: 14px 0 0; }
@media (min-width: 640px) { .screening-card { padding: 16px 12px; } .screening { padding: 56px 0 80px; } }

/* ---------- Simple page (placeholders like /screening/) ---------- */
.simple-page { padding: 72px 0; text-align: center; min-height: 50vh; }
.simple-page h1 { font-size: clamp(2rem, 7vw, 3rem); }
.simple-page p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .btn-lg { width: auto; padding: 18px 30px; font-size: 1.1875rem; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2, .fit-grid, .compare { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 > :last-child:nth-child(odd),
  .contact-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .br-md { display: inline; }
  .section, .cta-band { padding: 72px 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-art { max-width: 470px; margin-right: 0; }
  .reviews { padding: 72px 0 80px; }
}

/* ---------- Desktop header: full menu on one line (menu button below 1100px) ---------- */
@media (min-width: 1100px) {
  .logo { width: 180px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 18px;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav-list { display: flex; gap: 18px; }
  .nav-list a { padding: 8px 0; border: 0; font-size: .9375rem; white-space: nowrap; }
  .nav-list a:hover { color: var(--steel); text-decoration: underline; text-underline-offset: 6px; }
  .nav-actions { display: flex; margin: 0; gap: 8px; }
  .nav-actions .btn { width: auto; min-height: 44px; padding: 10px 14px; font-size: .875rem; white-space: nowrap; }
  .header-inner { min-height: 84px; }
}
@media (min-width: 1280px) {
  .logo { width: 200px; }
  .site-nav { gap: 22px; }
  .nav-list { gap: 22px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding: 10px 16px; font-size: .9375rem; }
}

@media (min-width: 1024px) {
  .card-grid.cols-3, .contact-grid, .steps { grid-template-columns: repeat(3, 1fr); }
  .approach-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .approach-card { padding: 18px 16px; gap: 12px; }
  .approach-icon { width: 40px; height: 40px; }
  .approach-text { padding-left: 12px; }
  .approach-card:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -29px; width: 30px; height: 2px;
    background: var(--gold-deep);
  }
  .card-grid.cols-3 > :last-child:nth-child(odd),
  .contact-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .split { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .section, .cta-band { padding: 88px 0; }
  .page-hero { padding: 64px 0 68px; }
}
