/* ==========================================================================
   True Tax Consults — main stylesheet
   Palette from the brand logo: bullion gold, money green, ink black.
   Layout utilities come from Tailwind; components & themes live here.
   ========================================================================== */

:root {
  --hh: 80px;                 /* header height */
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --surface-2: #EDF3EE;
  --surface-glass: rgba(255, 255, 255, .94);
  --text: #17201A;
  --muted: #47544C;
  --line: #D6DFD8;
  --gold: #85650C;            /* gold for TEXT on light (AA 5.2:1) */
  --gold-fill: #D6B24C;       /* gold for fills / buttons */
  --gold-fill-hover: #C29C32;
  --gold-soft: #F4E9C6;
  --green: #0E5A36;
  --green-deep: #0A3F26;
  --green-text: #0E5A36;
  --paper: #FFFDF6;
  --on-gold: #1A1608;
  --shadow: 0 18px 50px -24px rgba(10, 40, 24, .35);
  color-scheme: light;
}

html.dark {
  --bg: #0D1310;
  --surface: #141C17;
  --surface-2: #1A241E;
  --surface-glass: rgba(13, 19, 16, .92);
  --text: #ECF0EA;
  --muted: #AAB6AE;
  --line: #29352D;
  --gold: #E6C76C;
  --gold-soft: #2B2814;
  --green: #0E5A36;
  --green-deep: #08311D;
  --green-text: #5CC290;
  --paper: #FFFDF6;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (min-width: 1024px) { :root { --hh: 96px; } }

html { font-size: calc(100% * var(--fs, 1)); scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
html body {
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, .font-display { font-family: Fraunces, Georgia, serif; font-optical-sizing: auto; letter-spacing: -.01em; }
p, li { max-width: 72ch; }
a { color: inherit; }
main:focus { outline: none; }

/* ---------- Focus & skip link ---------- */
:focus-visible { outline: 3px solid #FFD54A; outline-offset: 3px; box-shadow: 0 0 0 6px #111; border-radius: 6px; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: #111; color: #fff; padding: .75rem 1.1rem; border-radius: 8px; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Type scale (deliberately compact headings) ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); line-height: 1.15; font-weight: 600; }
.h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
.lead { font-size: 1.075rem; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold); font-weight: 600; font-size: .95rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .975rem; line-height: 1.2;
  border: 2px solid transparent; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.hidden { display: none; }
@media (min-width: 640px) { .btn.hidden.sm\:inline-flex { display: inline-flex; } }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-gold { background: var(--gold-fill); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-fill-hover); }
.btn-outline { border-color: var(--green-text); color: var(--green-text); }
.btn-outline:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-light:hover { background: #fff; color: #10251A; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 60;
  background: var(--surface-glass); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(0,0,0,.35); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 62px; width: auto; }
@media (min-width: 1024px) { .logo { height: 80px; } }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }

.nav-link {
  position: relative; display: inline-block; padding: .55rem .85rem; font-weight: 600; font-size: .95rem;
  color: var(--text); text-decoration: none; border-radius: 8px;
}
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--gold-fill); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold); }
.header-phone { align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; text-decoration: none; }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: transparent; }

@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Transparent header over the home banner */
.site-header.on-hero:not(.scrolled):not(.menu-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.on-hero:not(.scrolled):not(.menu-open) .logo-light { display: none; }
.site-header.on-hero:not(.scrolled):not(.menu-open) .logo-dark { display: block; }
.site-header.on-hero:not(.scrolled):not(.menu-open) .nav-link,
.site-header.on-hero:not(.scrolled):not(.menu-open) .header-phone,
.site-header.on-hero:not(.scrolled):not(.menu-open) .menu-btn { color: #fff; border-color: rgba(255,255,255,.45); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.site-header.on-hero:not(.scrolled):not(.menu-open) .nav-link[aria-current="page"] { color: #F3D77E; }

.mobile-nav { position: absolute; top: var(--hh); inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow); max-height: calc(100svh - var(--hh)); overflow-y: auto; }
.mobile-nav ul a { display: block; padding: .85rem .25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-nav ul a[aria-current="page"] { color: var(--gold); }

/* ==========================================================================
   HOME BANNER — fits one screen, no scrolling, no extra spacing
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; color: #fff; background: #0D1310;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; z-index: -3; animation: heroZoom 18s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: -2; }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-trend { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; pointer-events: none; }
.hero-trend path { fill: none; stroke: #E6C76C; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .7;
  stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: drawLine 3.6s .6s cubic-bezier(.6,.1,.2,1) forwards; }
.hero-trend circle { fill: #E6C76C; opacity: 0; animation: fadeIn .6s 4s forwards, pulse 2.4s 4.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

.hero-inner { position: relative; width: 100%; padding-top: var(--hh); display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 3rem; } }
.hero-copy { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.hero-tag { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; font-size: .9rem; color: #F3D77E; letter-spacing: .02em; }
.hero-tag span { opacity: .6; }
.hero-title { margin-top: .9rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.35rem); line-height: 1.08; font-weight: 600; max-width: 15ch; }
.hero-motto { margin-top: .9rem; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: clamp(1.05rem, .9rem + .5vw, 1.3rem); color: #F3D77E; }
.hero-lead { margin-top: .75rem; font-size: 1.05rem; color: rgba(255,255,255,.95); max-width: 52ch; }
.hero-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-services { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-services li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); font-size: .85rem; font-weight: 600; }
.hero-services svg { color: #F3D77E; }
.hero-figures { display: none; }

/* Short screens: trim so the banner never needs scrolling */
@media (max-height: 760px) { .hero-services { display: none; } .hero-title { font-size: clamp(1.8rem, 1rem + 2.6vw, 2.8rem); } }
@media (max-height: 620px) { .hero-lead { display: none; } }
@media (max-width: 1023px) {
  .hero-services { display: none; }
  .hero-lead { font-size: .98rem; }
  .hero-cta .btn { padding: .75rem 1.15rem; }
  .hero-figures { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
  .hero-figures div { padding: .6rem .9rem; border-radius: 12px; border: 1px solid rgba(243,215,126,.6); background: rgba(14,90,54,.85); }
  .hero-figures dt { font-size: .78rem; font-weight: 600; }
  .hero-figures dd { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 700; color: #F3D77E; line-height: 1.1; }
}
@media (max-width: 1023px) and (max-height: 700px) { .hero-figures { display: none; } }

/* ---------- 3D “deduction form” card ---------- */
.hero-deck { perspective: 1400px; display: none; justify-content: center; }
@media (min-width: 1024px) { .hero-deck { display: flex; } }
.deck { position: relative; width: min(440px, 100%); animation: floatY 7s ease-in-out infinite; }
.deck-inner { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.deck-back {
  position: absolute; inset: 0; border-radius: 22px; background: #0E5A36; border: 1px solid rgba(243,215,126,.5);
  transform: translateZ(-50px) translate(26px, 22px) rotate(4deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.deck-back::after { content: ""; position: absolute; inset: 18px; border-radius: 14px; border: 1px dashed rgba(243,215,126,.45); }
.form-card {
  position: relative; border-radius: 22px; padding: 1.6rem 1.6rem 1.4rem; color: #17201A; text-shadow: none;
  background: var(--paper); border: 1px solid #E8DDB8; transform-style: preserve-3d;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), inset 0 0 0 6px #FFFDF6, inset 0 0 0 7px #E9D9A4;
}
.fc-head { display: flex; gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid #17201A; transform: translateZ(30px); }
.fc-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0E5A36; color: #F3D77E; }
.fc-kicker { font-size: .78rem; font-weight: 700; color: #6E540A; }
.fc-title { font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.fc-rows { margin-top: .4rem; transform: translateZ(45px); }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #DCD3B8; }
.fc-row dt { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: #2B342E; }
.fc-row dt svg { color: #0E5A36; }
.fc-row dd { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.85rem; color: #0E5A36; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-foot { margin-top: 1rem; padding-right: 130px; font-size: .9rem; color: #47544C; transform: translateZ(20px); }
.fc-stamp {
  position: absolute; right: -26px; bottom: -30px; transform: translateZ(80px) rotate(-8deg);
  padding: .55rem .8rem; border: 3px double #B08A22; border-radius: 10px; background: #FFF8DF;
  font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 700; font-size: .92rem; color: #6E540A; line-height: 1.15; max-width: 150px; text-align: center;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.45);
  animation: stampIn .7s 1.6s cubic-bezier(.2,1.6,.4,1) both;
}

/* ---------- Pillars strip (marquee) ---------- */
.ticker { position: relative; background: var(--green); color: #fff; overflow: hidden; border-block: 1px solid rgba(243,215,126,.35); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; flex-shrink: 0; }
.ticker-track li { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem; font-weight: 600; white-space: nowrap; max-width: none; }
.ticker-track svg { color: #F3D77E; }
.ticker-pause { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }

/* ---------- Pillars (flyer-style icon bar) ---------- */
.pillar-bar { display: grid; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 768px) { .pillar-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillar-bar { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) { .pillar { border-bottom: 0; border-right: 1px solid var(--line); } .pillar:last-child { border-right: 0; } }
.pillar-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 2px solid var(--gold-fill); background: var(--gold-soft); transition: transform .4s ease; }
.pillar:hover .pillar-icon { transform: rotateY(180deg); }

/* ---------- Service switcher (tabs) ---------- */
.svc-tabs { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .svc-tabs { grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; } }
.svc-tablist { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
@media (min-width: 1024px) { .svc-tablist { flex-direction: column; overflow: visible; } }
.svc-tab {
  display: flex; align-items: center; gap: .85rem; text-align: left; flex: none;
  padding: .95rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 700; transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.svc-tab .svc-tab-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-text); flex: none; }
.svc-tab:hover { transform: translateX(4px); }
.svc-tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.svc-tab[aria-selected="true"] .svc-tab-icon { background: rgba(255,255,255,.12); color: #F3D77E; }
.svc-panel { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc-panel-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.svc-panel-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-panel.is-entering .svc-panel-img img { animation: imgIn .7s ease both; }
.svc-panel-body { padding: 1.6rem 1.75rem 1.9rem; }
@media (min-width: 1280px) {
  .svc-panel { display: grid; grid-template-columns: 1.15fr 1fr; }
  .svc-panel-img { aspect-ratio: auto; min-height: 100%; }
  .svc-panel-img img { position: absolute; inset: 0; }
  .svc-panel-body { align-self: center; }
}
.check-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.check-list svg { flex: none; margin-top: .2rem; color: var(--green-text); }

/* ---------- OBBB band ---------- */
.obbb-band { background: var(--green-deep); color: #fff; position: relative; overflow: hidden; }
.obbb-band .kicker { color: #F3D77E; }
.obbb-band .check-list svg { color: #F3D77E; }
.plate { border: 2px solid #D6B24C; border-radius: 18px; padding: 1.25rem 1.4rem; background: rgba(0,0,0,.25); }
.plate-label { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.plate-amount { margin-top: .4rem; display: inline-block; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: #F3D77E; line-height: 1.05; font-variant-numeric: tabular-nums; }
.money-note { font-family: Fraunces, Georgia, serif; font-style: italic; color: #F3D77E; font-size: 1.15rem; }

/* ---------- Tilted photo frame ---------- */
.frame-3d { perspective: 1200px; }
.frame-3d-inner { position: relative; border-radius: 20px; transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.frame-3d-inner::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px) translateZ(-30px); border-radius: 20px; border: 2px solid var(--gold-fill); }
.frame-3d-inner img { position: relative; border-radius: 20px; box-shadow: var(--shadow); width: 100%; display: block; }

/* ---------- Motto cards (about) ---------- */
.motto { border-top: 3px solid var(--gold-fill); padding-top: 1.1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; }
.cta-title { font-family: Fraunces, Georgia, serif; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; line-height: 1.2; }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(320px, 46vh, 440px); display: flex; align-items: flex-end; padding-top: var(--hh); overflow: hidden; background: #0D1310; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroZoom 14s ease-out both; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: -1; }
.page-hero .hero-dust { z-index: -1; }
.page-hero-inner { width: 100%; padding-bottom: 2.75rem; padding-top: 2rem; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.page-title { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.8rem); line-height: 1.1; font-weight: 600; margin-top: .6rem; }
.page-intro { margin-top: .6rem; font-size: 1.075rem; color: rgba(255,255,255,.95); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; font-weight: 600; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .7; }
.crumbs a { color: #F3D77E; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.service-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .service-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .service-row.flip .service-media { order: 2; } }
.service-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #F3D77E; }
.chip-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; }
.chip-nav a:hover { border-color: var(--gold-fill); color: var(--gold); }

.flyer { border-radius: 18px; box-shadow: var(--shadow); width: 100%; height: auto; }
.notice { border-left: 4px solid var(--gold-fill); background: var(--surface-2); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-size: .95rem; color: var(--muted); }

/* ---------- Prose (policy pages) ---------- */
.prose-ttc h2 { font-size: 1.4rem; font-weight: 600; margin: 2.2rem 0 .6rem; }
.prose-ttc p, .prose-ttc li { color: var(--muted); }
.prose-ttc p + p { margin-top: .9rem; }
.prose-ttc ul { list-style: disc; padding-left: 1.3rem; margin-top: .6rem; }
.prose-ttc a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.field .req { color: #B42318; }
html.dark .field .req { color: #FF8A80; }
.input {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:hover { border-color: #9AA89F; }
.input:focus { border-color: var(--green-text); box-shadow: 0 0 0 4px rgba(14,90,54,.18); outline: none; }
.input[aria-invalid="true"] { border-color: #B42318; }
html.dark .input[aria-invalid="true"] { border-color: #FF8A80; }
.field-error { display: flex; gap: .4rem; align-items: flex-start; margin-top: .4rem; color: #B42318; font-weight: 600; font-size: .9rem; }
html.dark .field-error { color: #FF8A80; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.alert { display: flex; gap: .75rem; padding: 1rem 1.15rem; border-radius: 14px; font-weight: 600; }
.alert-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F5B5AD; }
.alert-success { background: #E7F4EC; color: #0A4A2B; border: 1px solid #A6D8BB; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #0F1612; color: #E8ECE6; }
.footer-head { font-family: Manrope, sans-serif; font-weight: 700; font-size: 1rem; color: #F3D77E; margin-bottom: 1rem; }
.footer-list li { padding: .3rem 0; }
.footer-list a { text-decoration: none; color: #E8ECE6; }
.footer-list a:hover { color: #F3D77E; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; }
.footer-contact svg { color: #F3D77E; flex: none; }
.footer-script { font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.15rem; color: #F3D77E; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #C9D1CB; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.social:hover { background: #D6B24C; color: #1A1608; }

/* ---------- Floating ADA + theme buttons ---------- */
.fab-stack { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); transition: transform .2s ease; }
.fab:hover { transform: scale(1.07); }
.fab-a11y { background: #0E5A36; color: #fff; border: 2px solid #D6B24C; }
.fab-theme { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.fab-theme .i-moon, html.dark .fab-theme .i-sun { display: none; }
html.dark .fab-theme .i-moon { display: block; }
.a11y-panel {
  position: fixed; left: 18px; bottom: 140px; z-index: 75; width: min(340px, calc(100vw - 36px));
  max-height: calc(100svh - 160px); overflow-y: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; box-shadow: 0 25px 60px -20px rgba(0,0,0,.5);
}
.a11y-title { font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.05rem; }
.a11y-close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); }
.a11y-size { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.a11y-step { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); }
.a11y-size output { min-width: 3.2rem; text-align: center; }
.a11y-grid { margin-top: .75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .5rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: .88rem; text-align: center; }
.a11y-opt[aria-pressed="true"] { background: #0E5A36; color: #fff; border-color: #D6B24C; }
.a11y-panel a { color: var(--green-text); text-decoration: underline; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes stampIn { from { opacity: 0; transform: translateZ(80px) rotate(-8deg) scale(1.8); } to { opacity: 1; transform: translateZ(80px) rotate(-8deg) scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes imgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Accessibility modes (toggled from the ADA panel)
   ========================================================================== */
html.a11y-contrast {
  --bg: #000; --surface: #000; --surface-2: #111; --surface-glass: #000;
  --text: #fff; --muted: #fff; --line: #fff; --gold: #FFE14D; --green-text: #7CFFB2;
  --gold-soft: #000; --shadow: none;
}
html.a11y-contrast .hero-overlay, html.a11y-contrast .page-hero-overlay { background: rgba(0,0,0,.8); }
html.a11y-contrast .btn-gold { background: #FFE14D; color: #000; }
html.a11y-contrast .form-card { background: #fff; color: #000; }
html.a11y-contrast .site-footer, html.a11y-contrast .cta-band, html.a11y-contrast .obbb-band, html.a11y-contrast .ticker { background: #000; border-top: 2px solid #fff; }
html.a11y-contrast .svc-tab[aria-selected="true"] { background: #FFE14D; color: #000; }

html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links a { outline: 2px dashed var(--gold); outline-offset: 2px; }

html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .font-display, html.a11y-readable button, html.a11y-readable input,
html.a11y-readable textarea, html.a11y-readable select { font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important; font-style: normal !important; }

html.a11y-spacing body * { line-height: 1.9 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 1.5em; }

html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-pause .hero-dust { display: none; }
html.a11y-pause .hero-trend path { stroke-dashoffset: 0; }
html.a11y-pause .hero-trend circle { opacity: 1; }
html.a11y-pause.js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-dust { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media print {
  .site-header, .fab-stack, .a11y-panel, .ticker, .hero-dust, .hero-trend { display: none !important; }
  .hero, .page-hero { height: auto; min-height: 0; color: #000; background: none; }
}
