/* ==========================================================================
   Whytcross Accounting — marketing site
   Light theme. Tokens + components; page layouts use inline styles that
   resolve against the custom properties defined here.
   ========================================================================== */

@font-face {
  font-family: 'Glancyr';
  src: url('/assets/fonts/Glancyr-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/Glancyr-Variable.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* green ramp */
  --green-50:#eef8ec; --green-100:#d6efd1; --green-200:#aedfa5; --green-300:#82cd74;
  --green-400:#55b948; --green-500:#46a23a; --green-600:#38842f; --green-700:#2c6725;
  --green-800:#234e1f; --green-900:#16330f;
  /* lime */
  --lime-300:#dedf1e;
  /* olive ramp */
  --olive-100:#e9e7c2; --olive-200:#d2ce82; --olive-300:#b0a934; --olive-600:#545228;
  --olive-700:#46431d; --olive-800:#3c3816; --olive-900:#2a2810;
  /* warm neutrals */
  --neutral-0:#ffffff; --neutral-50:#f8f8f4; --neutral-100:#f1f1ea; --neutral-200:#e4e4d8;
  --neutral-300:#d0d0c1; --neutral-400:#a8a89a; --neutral-500:#82826f; --neutral-600:#62614f;
  --neutral-700:#4a4938; --neutral-800:#33321f; --neutral-900:#1f1e10;

  /* semantic roles */
  --text-strong:#545228;      /* headings / brand ink */
  --text-body:#4a4938;
  --text-on-dark:#f6f5e8;
  --surface-page:#f8f8f4;
  --surface-dark:#3c3816;     /* flat deep-olive band */
  --border-subtle:#e4e4d8;
  --gradient-brand-dark: radial-gradient(125% 130% at 70% 18%,
    #75781f 0%, #5c5e1d 24%, #3a3c15 56%, #20210d 82%, #15160a 100%);

  /* type */
  --font-display:'Glancyr','Trebuchet MS',sans-serif;
  --font-body:'Nunito Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SFMono-Regular',monospace;

  /* radius */
  --radius-xs:4px; --radius-sm:8px; --radius-md:12px; --radius-lg:18px; --radius-xl:28px; --radius-pill:999px;
  /* warm shadows */
  --shadow-xs:0 1px 2px rgba(60,56,22,0.06); --shadow-sm:0 2px 6px rgba(60,56,22,0.08);
  --shadow-md:0 6px 18px rgba(60,56,22,0.10); --shadow-lg:0 16px 40px rgba(60,56,22,0.14);
  --shadow-brand:0 10px 30px rgba(85,185,72,0.30);
  --ease:cubic-bezier(0.22,1,0.36,1);
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  margin:0; background:var(--surface-page); color:var(--text-body);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img { display:block; max-width:100%; }
a { color:var(--green-600); text-decoration:none; }
a:hover { color:var(--green-700); }
::selection { background:color-mix(in srgb, var(--lime-300) 60%, transparent); color:var(--olive-800); }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-display); font-weight:600; font-size:15px; line-height:1;
  padding:12px 22px; border-radius:var(--radius-md); border:1px solid transparent;
  cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:background .2s var(--ease), transform .06s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn--lg { font-size:16px; padding:15px 28px; }
.btn--sm { font-size:14px; padding:9px 16px; }
.btn--full { width:100%; }
.btn--primary { background:var(--green-400); color:#fff; }
.btn--primary:hover { background:var(--green-500); color:#fff; }
.btn--primary:active { background:var(--green-600); transform:translateY(1px); }
.btn--lime { background:var(--lime-300); color:var(--olive-800); }
.btn--lime:hover { background:#cbcc19; color:var(--olive-900); }
.btn--lime:active { transform:translateY(1px); }
.btn--secondary { background:#fff; border-color:var(--border-subtle); color:var(--text-strong); }
.btn--secondary:hover { background:var(--green-50); color:var(--text-strong); border-color:var(--green-200); }
/* outline button on dark surfaces */
.btn-outline-light {
  display:inline-flex; align-items:center; gap:9px; padding:13px 22px;
  border:1px solid rgba(255,255,255,0.35); border-radius:var(--radius-md);
  color:#fff; font-family:var(--font-display); font-weight:600; font-size:16px;
  text-decoration:none; white-space:nowrap; transition:background .2s var(--ease);
}
.btn-outline-light:hover { background:rgba(255,255,255,0.14); color:#fff; }
.btn-outline-light.on-lime { border-color:rgba(255,255,255,0.4); background:rgba(255,255,255,0.12); }
.btn-outline-light.on-lime:hover { background:rgba(255,255,255,0.22); }

/* ghost "see our services" style link on dark */
.link-see { display:inline-flex; align-items:center; gap:8px; color:#fff; font-family:var(--font-display); font-weight:600; font-size:16px; text-decoration:none; padding:12px 6px; transition:color .2s var(--ease); }
.link-see:hover { color:var(--lime-300); }

/* ---------- Cards ---------- */
.wa-card {
  background:#fff; border:1px solid var(--border-subtle); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
.wa-card--pad-lg { padding:32px; }
.wa-card--pad-md { padding:22px; }
.wa-card--interactive { transition:box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); height:100%; }
a:hover > .wa-card--interactive, .wa-card--interactive:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); border-color:var(--green-200); }
.learn { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-display); font-weight:600; color:var(--green-600); }

/* ---------- Header / nav ---------- */
.wa-header { position:sticky; top:0; z-index:60; background:rgba(248,248,244,0.9); backdrop-filter:saturate(140%) blur(10px); -webkit-backdrop-filter:saturate(140%) blur(10px); border-bottom:1px solid var(--border-subtle); }
.wa-header-in { max-width:1200px; margin:0 auto; padding:14px 28px; display:flex; align-items:center; gap:28px; }
.wa-navlinks { display:flex; gap:4px; margin-left:auto; align-items:center; }
.navlink { font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--text-strong); padding:8px 14px; border-radius:8px; text-decoration:none; display:inline-flex; align-items:center; gap:5px; transition:background .2s var(--ease); }
.navlink:hover { background:rgba(85,185,72,0.12); color:var(--text-strong); }
.has-mega { position:relative; }
.mega { position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(-6px); width:520px; background:#fff; border:1px solid var(--border-subtle); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:12px; display:grid; grid-template-columns:1fr 1fr; gap:6px; opacity:0; visibility:hidden; transition:opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; z-index:70; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform:rotate(180deg); }
.caret { opacity:.6; transition:transform .2s var(--ease); }
.mega-item { display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:var(--radius-md); text-decoration:none; transition:background .15s var(--ease); }
.mega-item:hover { background:var(--green-50); }
.mega-ic { flex-shrink:0; width:38px; height:38px; border-radius:10px; background:var(--green-50); color:var(--green-600); display:flex; align-items:center; justify-content:center; }
.mega-t { display:block; font-family:var(--font-display); font-weight:700; font-size:14.5px; color:var(--text-strong); }
.mega-d { display:block; font-size:12.5px; color:var(--neutral-600); line-height:1.4; margin-top:2px; }
.nav-cta { margin-left:4px; }
.hamburger { display:none; margin-left:auto; background:none; border:1px solid var(--border-subtle); border-radius:8px; padding:8px; color:var(--text-strong); cursor:pointer; }
.mobile-menu { display:none; }

/* ---------- Footer link hovers ---------- */
.foot-link { color:var(--olive-100); text-decoration:none; transition:color .2s var(--ease); }
.foot-link:hover { color:#fff; }

/* ---------- Form fields ---------- */
.wa-field { display:block; }
.wa-label { display:block; font-family:var(--font-display); font-weight:600; font-size:13.5px; color:var(--text-strong); margin-bottom:7px; }
.wa-input {
  width:100%; font-family:var(--font-body); font-size:15px; color:var(--text-body);
  background:#fff; border:1px solid var(--border-subtle); border-radius:var(--radius-sm);
  padding:11px 13px; transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-input:focus { outline:none; border-color:var(--green-400); box-shadow:0 0 0 3px rgba(85,185,72,0.16); }
textarea.wa-input { resize:vertical; min-height:104px; line-height:1.5; }
select.wa-input { appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362614f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  .wa-g4 { grid-template-columns:repeat(2,1fr) !important; }
}
@media (max-width:820px) {
  .wa-header-in { gap:12px; }
  .wa-navlinks, .nav-cta { display:none; }
  .hamburger { display:inline-flex; }
  .wa-g2 { grid-template-columns:1fr !important; }
  .wa-gfoot { grid-template-columns:1fr 1fr !important; gap:32px !important; }
  .mobile-menu.open { display:block; border-top:1px solid var(--border-subtle); background:rgba(248,248,244,0.98); }
  .mobile-menu.open .mm-in { max-width:1200px; margin:0 auto; padding:12px 28px 20px; display:flex; flex-direction:column; gap:4px; }
  .mm-link { font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--text-strong); padding:11px 8px; border-radius:8px; text-decoration:none; }
  .mm-link:hover { background:rgba(85,185,72,0.10); }
  .mm-sub { font-size:14px; color:var(--neutral-600); padding-left:18px; }
}
@media (max-width:760px) {
  .wa-g3 { grid-template-columns:1fr !important; }
  .wa-g2x2 { grid-template-columns:1fr !important; }
  .wa-included { grid-template-columns:1fr !important; }
  .wa-team, .wa-story { grid-template-columns:1fr !important; }
}
@media (max-width:560px) {
  .wa-g4 { grid-template-columns:1fr !important; }
  .wa-gfoot { grid-template-columns:1fr !important; }
  .wa-hero-pad { padding-left:20px !important; padding-right:20px !important; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  * { animation:none !important; transition:none !important; }
}

/* ---------- Subtle scroll reveal (progressive-enhancement; gated by html.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js body > section:not(:first-of-type) {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
  }
  html.js body > section.in { opacity: 1; transform: none; }
}
