/* ==========================================================================
   Allied Insurance, shared stylesheet (Pass 1)
   Design system LOCKED here from the Yarran Specialty capture role-map + the
   Allied brand kit (design/brands/allied.md). Palette = Yarran roles kept, the
   ONE swap is the warm accent channel (Yarran rust -> Allied amber-gold).
   Radii held to the captured scale {4px, 6px, 9999px} only (token-parity gate).
   ========================================================================== */

:root {
  /* KEPT from Yarran (structure, temperature, value preserved) */
  --canvas:       #fefcf6; /* kit: canvas cream, kept from yarran tokens.json */
  --surface:      #ffffff; /* kit: surface white, kept from yarran */
  --ink:          #31331f; /* kit: ink/brandDark warm-dark-olive, kept (body text + dark bands) */
  --brand-dark:   #31331f; /* kit: brandDark, kept (hero + dark footer field) */
  --line:         #e6e9e8; /* kit: line hairline, kept from yarran */
  --brand-green:  #496f36; /* kit: secondary/brandGreen, kept (section headlines + primary buttons + CTA field) */

  /* SWAP: Yarran warm accent (rust #d6713f) -> Allied amber-gold logo channel */
  --accent:       #af5f05; /* kit: SWAP, Allied logo amber-gold (CTA/eyebrow/highlight/links) */
  --accent-deep:  #744700; /* kit: SWAP, Allied logo deep brown (hover/press) */
  --accent-soft:  #d98a2b; /* kit: SWAP, lighter amber tint from --accent (glow/gradient) */

  /* neutrals derived from --ink for text tiers (value-preserved) */
  --ink-70:       #5a5b48; /* kit: derived, --ink at ~70% for secondary text on light */
  --on-dark:      #fefcf6; /* kit: cream text on dark fields (from --canvas) */
  --on-dark-70:   #cfd0c4; /* kit: derived, cream at ~70% on dark for subcopy */
  --green-soft:   #5c8446; /* kit: derived lighter green for the CTA branch motif only */

  /* shape scale, captured (yarran shapeRoles + tokens.radiusScale) */
  --r-card:  4px;    /* yarran card radius */
  --r-input: 6px;    /* yarran input radius */
  --r-pill:  9999px; /* yarran button radius (full pill) */

  /* type */
  --font: "Hanken Grotesk", Arial, system-ui, sans-serif; /* kit: Hanken Grotesk twin of yarran "turns", FLAGGED substitute */
  --h1-desktop: 66px;
  --h1-mobile: 44px;

  /* rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: 116px; /* vertical section padding, desktop */
}

/* ---- fonts (self-hosted, no CDN) ---------------------------------------- */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/hanken-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/hanken-500.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/hanken-600.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/hanken-700.woff2") format("woff2");
}

/* ---- reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* ---- skip link (a11y: first focusable, visible on focus) ---------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2100;
  padding: 12px 18px;
  background: var(--brand-dark);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 15px;
  border-radius: 0 0 var(--r-input) 0;
  transform: translateY(-120%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* ---- visible focus indicator for keyboard users (none was set) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav-header:not(.is-scrolled) a:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.page-hero a:focus-visible, .legal-hero a:focus-visible,
.cta-support a:focus-visible, .footer a:focus-visible,
.mobile-menu a:focus-visible {
  outline-color: var(--on-dark); /* stay visible on dark fields */
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* scroll-lint: clip, never hidden */
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

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

/* ---- buttons (full pill, flat, no shadow) ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-gold { background: var(--accent); color: var(--surface); }
.btn-gold:hover { background: var(--accent-deep); }
.btn-green { background: var(--brand-green); color: var(--on-dark); }
.btn-green:hover { background: #3c5c2c; }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(254, 252, 246, 0.5);
}
.btn-ghost:hover { background: rgba(254, 252, 246, 0.12); border-color: var(--on-dark); }

.eyebrow-none { display: none; } /* hero carries NO eyebrow, per reference fingerprint */

/* two-beat section headline device */
.beat { display: block; }
.headline { font-size: clamp(34px, 4.6vw, 48px); letter-spacing: -0.015em; max-width: 26ch; }
.headline .beat-1 { color: var(--brand-green); }   /* first beat, forest green on light bands */
.headline .beat-2 { color: var(--ink); }

/* ==========================================================================
   NAV / HEADER  (fixed overlay, transparent over hero, flips white on scroll)
   ========================================================================== */
.nav-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 74px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark);
  transition: color .2s ease, opacity .2s ease;
}
.nav-links a:hover { opacity: 0.7; }
.nav-logo { justify-self: center; display: inline-flex; align-items: center; }
.nav-logo img {
  height: 46px;
  width: auto;
  /* white variant on the dark hero: force the color wordmark to solid white */
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}
.nav-cta { display: inline-flex; }
.nav-contact {
  font-size: 15px; font-weight: 500; color: var(--on-dark);
  margin-right: 22px; align-self: center; transition: color .2s ease, opacity .2s ease;
}
.nav-contact:hover { opacity: 0.7; }

/* scrolled state: solid white bar, dark text, original colored logo */
.nav-header.is-scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.nav-header.is-scrolled .nav-links a,
.nav-header.is-scrolled .nav-contact { color: var(--ink); }
.nav-header.is-scrolled .nav-logo img { filter: none; }

/* hamburger (mobile only) */
.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--on-dark);
  position: relative; transition: background-color .3s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: inherit; transition: transform .3s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-header.is-scrolled .nav-toggle span { background: var(--ink); }

/* mobile dropdown sheet (forest green), collapsed by default, desktop-hidden */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--brand-green);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.mobile-menu li { border-bottom: 1px solid rgba(254, 252, 246, 0.18); }
.mobile-menu a { display: block; padding: 16px 0; color: var(--on-dark); font-size: 18px; font-weight: 500; }
.mobile-menu .btn { margin-top: 18px; }
.mobile-menu__cta { padding: 0 var(--gutter) 8px; }
.nav-header.menu-open .mobile-menu { max-height: 460px; opacity: 1; }

/* ==========================================================================
   HERO  (dark full-bleed video field, two-beat headline, sub, two CTAs)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  /* mobile-first: a light 820px hero (~44KB) for phones; desktop swaps up below */
  background: var(--brand-dark) url("../img/webp/hero-mobile.webp") center/cover no-repeat;
  opacity: 0;
  /* CSS-driven fade so the LCP hero paints on image-load, never gated behind app.js */
  animation: alHeroReveal .8s ease both;
}
@media (min-width: 720px) {
  .hero-media { background-image: url("../img/webp/hero.webp"); }
}
.hero.is-ready .hero-media { opacity: 1; }
@keyframes alHeroReveal { from { opacity: 0; } to { opacity: 1; } }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* warm cinematic grade to the dark green-gold world + left/bottom legibility scrim */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(107deg, rgba(31, 33, 18, 0.9) 0%, rgba(31, 33, 18, 0.5) 46%, rgba(31, 33, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(31, 33, 18, 0.15) 0%, rgba(31, 33, 18, 0.15) 55%, rgba(73, 111, 54, 0.55) 100%),
    radial-gradient(120% 90% at 88% 12%, rgba(217, 138, 43, 0.16) 0%, rgba(217, 138, 43, 0) 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 150px var(--gutter) 96px;
}
.hero h1 {
  font-size: var(--h1-desktop);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero h1 .beat-gold { color: var(--accent-soft); }
.hero h1 .beat-cream { color: var(--on-dark); }
.hero-sub {
  color: var(--on-dark-70);
  font-size: 18px;
  line-height: 1.6;
  max-width: 46ch;
  margin-top: 26px;
}
.hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ==========================================================================
   SPLIT SECTIONS (text + image), alternating
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.split .col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
}

/* Section 2, intro (image LEFT, text RIGHT), light */
.intro-text-image { background: var(--surface); padding-block: var(--section-pad); }
.intro-text-image .col-media { min-height: 520px; }
.intro-text-image .col-media img { min-height: 520px; }
.intro-text-image .col-text { max-width: 44ch; }
.section-body p { color: var(--ink-70); margin-top: 18px; }
.section-body .btn { margin-top: 30px; }
.headline + .section-body { margin-top: 8px; }

/* Section 3, text + image + USP list (text LEFT, image RIGHT), light */
.text-image-usp { background: var(--surface); padding-block: 140px; }
.text-image-usp .col-media { min-height: 700px; }
.text-image-usp .col-media img { min-height: 700px; }
.usp-list { margin-top: 46px; display: grid; gap: 34px; }
.usp-list h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.usp-list p { margin-top: 6px; color: var(--ink-70); font-size: 16.5px; }

/* Section 4, ready + promise list (cta LEFT, divided list RIGHT), cream */
.ready-promise { background: var(--canvas); padding-block: 96px; }
.ready-promise .split { align-items: start; }
.ready-promise .col-text { max-width: 40ch; padding-top: 8px; }
.promise-title { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.promise-list { list-style: none; margin: 0; padding: 0; }
.promise-list li { border-top: 1px solid var(--line); }
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.promise-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 4px;
  font-size: 18px; font-weight: 500; color: var(--ink);
  transition: color .2s ease, padding-left .2s ease;
}
.promise-list a:hover { color: var(--accent-deep); padding-left: 10px; }
.promise-list .arrow { color: var(--accent); font-size: 18px; transition: transform .2s ease; }
.promise-list a:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   CTA SUPPORT  (green field + owned branch/arrow motif)
   ========================================================================== */
.cta-support {
  position: relative;
  background:
    radial-gradient(120% 140% at 78% 8%, #5c8446 0%, #496f36 42%, #3c5c2c 100%);
  color: var(--on-dark);
  padding-block: 200px;
  overflow: hidden;
}
.cta-branch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.cta-support .container { position: relative; z-index: 2; }
.cta-support .headline .beat-1 { color: var(--accent-soft); }
.cta-support .headline .beat-2 { color: var(--on-dark); }
.cta-support .btn { margin-top: 34px; }

/* ==========================================================================
   FOOTER  (dark multi-col)
   ========================================================================== */
.footer {
  background: var(--brand-dark);
  color: var(--on-dark-70);
  padding: 84px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img {
  height: 48px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.footer-brand p { font-size: 15px; max-width: 30ch; }
.footer .footer-h {
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-contact a { color: var(--on-dark-70); font-size: 15px; transition: color .2s ease; }
.footer-col a:hover, .footer-contact a:hover { color: var(--accent-soft); }
.footer-contact p { font-size: 15px; margin-bottom: 12px; line-height: 1.5; }
.footer-socials { display: flex; gap: 14px; margin-top: 18px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(254, 252, 246, 0.22);
  color: var(--on-dark);
  transition: background-color .2s ease, border-color .2s ease;
}
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-base {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(254, 252, 246, 0.14);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 13.5px;
  color: rgba(254, 252, 246, 0.55);
}
.footer-base strong { color: var(--on-dark-70); font-weight: 600; }

/* legal links row (Privacy / Terms / Cookie), above the base line */
.footer-legal {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.footer-legal a {
  color: var(--on-dark-70);
  font-size: 14px;
  transition: color .2s ease;
}
.footer-legal a:hover { color: var(--accent-soft); }
@media (max-width: 560px) {
  .footer-legal { margin-top: 16px; gap: 6px 20px; }
}

/* ==========================================================================
   REVEAL MOTION base (GSAP sets initial state; no-JS shows content)
   ========================================================================== */
.animation-slide-up { will-change: transform, opacity; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  :root { --section-pad: 88px; }
  .nav-links, .nav-contact, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .nav-inner { grid-template-columns: 1fr auto 1fr; height: 66px; }
  .nav-logo { justify-self: start; }
  .nav-logo img { height: 40px; }

  .text-image-usp { padding-block: var(--section-pad); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  /* stacked order: text above image on mobile (reads before the photo) */
  .intro-text-image .split .col-media { order: 2; min-height: 420px; }
  .intro-text-image .split .col-text { order: 1; }
  .intro-text-image .col-media img { min-height: 420px; }
  .text-image-usp .split .col-media { order: 2; min-height: 760px; }
  .text-image-usp .split .col-text { order: 1; }
  .text-image-usp .col-media img { min-height: 760px; }
  .ready-promise .col-text { max-width: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero h1 { font-size: var(--h1-mobile); }
  .hero-inner { padding: 128px var(--gutter) 72px; }
  .headline { font-size: clamp(28px, 8vw, 34px); }

  /* compact mobile footer to the reference proportion */
  .footer { padding: 32px 0 22px; }
  .footer-brand img { height: 40px; margin-bottom: 2px; }
  .footer-brand p { display: none; }
  .footer-grid { gap: 20px; }
  .footer .footer-h { margin-bottom: 9px; }
  .footer-col li { margin-bottom: 6px; }
  .footer-contact p { margin-bottom: 5px; }
  .footer-socials { margin-top: 10px; gap: 10px; }
  .footer-socials a { width: 32px; height: 32px; }
  .footer-base { margin-top: 16px; padding-top: 14px; flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   REDUCED MOTION (global kill)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-media { opacity: 1; }
  .animation-slide-up { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   PASS-2 FACELIFT, shared catalog components (self-attaching, no-op if absent)
   Wired by the Pass-2 IIFE in app.js. Every motion path honors reduced-motion
   and gates canvas/cursor/tilt off touch + low-data (Zim mobile budget).
   Markers: data-component on the placed element; the sitewide injected set is
   listed as a catalog-comment block in each page for the component gate.
   ========================================================================== */

/* ---- 106 / 019 Web Preloader (Allied wordmark, ~1.4s fixed timer) -------- */
.al-preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-dark);
  transition: opacity .5s ease, visibility .5s ease;
}
.al-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.al-preloader__mark { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.al-preloader__mark img {
  height: 52px; width: auto; filter: brightness(0) invert(1);
  opacity: 0; transform: translateY(8px); animation: alPreIn .7s ease forwards;
}
.al-preloader__bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(254,252,246,.18); overflow: hidden; }
.al-preloader__bar::after {
  content: ""; display: block; height: 100%; width: 38%;
  background: var(--accent-soft); border-radius: 2px; animation: alPreBar 1.25s ease-in-out infinite;
}
@keyframes alPreIn { to { opacity: 1; transform: none; } }
@keyframes alPreBar { 0% { transform: translateX(-130%); } 100% { transform: translateX(400%); } }

/* ---- 059 Custom Circle Cursor (desktop pointer:fine only) ---------------- */
.al-cursor, .al-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 1600; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference; will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}
.al-cursor { width: 34px; height: 34px; border: 1.5px solid #fff; transition: width .2s ease, height .2s ease, background-color .2s ease; }
.al-cursor-dot { width: 6px; height: 6px; background: #fff; }
.al-cursor.is-hover { width: 54px; height: 54px; background: rgba(255,255,255,.08); }
@media (hover: none), (pointer: coarse) { .al-cursor, .al-cursor-dot { display: none !important; } }

/* ---- 124 / 339 Scroll Progress Bar -------------------------------------- */
.al-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1500;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  pointer-events: none;
}

/* ---- 055 Back To Top ---------------------------------------------------- */
.al-totop {
  position: fixed; right: 20px; bottom: 88px; z-index: 1200;
  width: 46px; height: 46px; border-radius: var(--r-pill); border: 0;
  background: var(--brand-dark); color: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background-color .2s ease;
}
.al-totop.is-vis { opacity: 1; visibility: visible; transform: none; }
.al-totop:hover { background: var(--accent); }
.al-totop svg { width: 18px; height: 18px; }

/* ---- 047 WhatsApp Chat Button (real, wa.me/263772199199) ---------------- */
.al-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .2s ease;
}
.al-wa:hover { transform: translateY(-3px) scale(1.04); }
.al-wa svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.al-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366; animation: alWaPulse 2.6s ease-out infinite;
}
@keyframes alWaPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---- 145 / 180 Premium / Wave gold button (enhance every .btn-gold) ------ */
.btn-gold { position: relative; overflow: hidden; z-index: 0; }
.btn-gold::before {
  content: ""; position: absolute; z-index: -1; left: -12%; right: -12%; top: 100%; height: 260%;
  background: var(--accent-deep); border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  transform: translateY(0); transition: transform .5s cubic-bezier(.34, 1.1, .4, 1);
}
.btn-gold:hover::before { transform: translateY(-100%); }
.btn-green { position: relative; overflow: hidden; z-index: 0; }
.btn-green::before {
  content: ""; position: absolute; z-index: -1; left: -12%; right: -12%; top: 100%; height: 260%;
  background: #3c5c2c; border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  transform: translateY(0); transition: transform .5s cubic-bezier(.34, 1.1, .4, 1);
}
.btn-green:hover::before { transform: translateY(-100%); }

/* ---- 013 Icon Slide In (secondary buttons) ------------------------------ */
.btn-slide .btn-ic {
  display: inline-flex; align-items: center; width: 0; overflow: hidden;
  opacity: 0; transform: translateX(-4px);
  transition: width .3s ease, opacity .3s ease, transform .3s ease;
}
.btn-slide:hover .btn-ic { width: 17px; opacity: 1; transform: none; }
.btn-slide .btn-ic svg { width: 16px; height: 16px; }

/* ---- 084 Animated Text Reveal (calm word blur-up, scroll or load) -------- */
.al-reveal .al-word {
  display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(.22em);
  transition: opacity .55s ease, filter .55s ease, transform .55s ease;
  transition-delay: var(--al-d, 0ms);
}
.al-reveal.is-in .al-word { opacity: 1; filter: blur(0); transform: none; }

/* ---- 315 / 154 Fluid / Floating nav treatment on scroll ----------------- */
.nav-header { transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease; }
.nav-header .nav-inner {
  transition: background-color .3s ease, box-shadow .3s ease, border-radius .3s ease, height .3s ease, max-width .3s ease;
}
.nav-header.is-scrolled { background: transparent; box-shadow: none; padding-top: 12px; }
.nav-header.is-scrolled .nav-inner {
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: 0 8px 30px rgba(31, 33, 18, .14);
  height: 62px; max-width: calc(var(--container) - 32px);
}

/* ---- body[data-page] active-nav (CSS-only, no DOM change) ---------------- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: currentColor; border-radius: 2px; opacity: 0; transform: scaleX(.4);
  transform-origin: 0 50%; transition: opacity .2s ease, transform .2s ease;
}
body[data-page="index"]     .nav-links a[href="index.html"]::after,
body[data-page="about"]     .nav-links a[href="about.html"]::after,
body[data-page="commercial"] .nav-links a[href="commercial.html"]::after,
body[data-page="personal"]  .nav-links a[href="commercial.html"]::after { opacity: 1; transform: none; }
body[data-page="index"]     .nav-links a[href="index.html"],
body[data-page="about"]     .nav-links a[href="about.html"],
body[data-page="commercial"] .nav-links a[href="commercial.html"],
body[data-page="personal"]  .nav-links a[href="commercial.html"] { color: var(--accent-soft); }
body[data-page="index"] .nav-header.is-scrolled .nav-links a[href="index.html"],
body[data-page="about"] .nav-header.is-scrolled .nav-links a[href="about.html"],
body[data-page="commercial"] .nav-header.is-scrolled .nav-links a[href="commercial.html"],
body[data-page="personal"] .nav-header.is-scrolled .nav-links a[href="commercial.html"] { color: var(--accent); }

/* ---- 148 Mega Menu (Cover dropdown, injected under the Cover nav item) --- */
.al-mega-wrap { position: relative; }
.al-mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 300px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(31, 33, 18, .18); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 950;
}
.al-mega-wrap:hover .al-mega, .al-mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 8px); }
.al-mega a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.al-mega a:hover { background: var(--canvas); color: var(--accent-deep); }
.al-mega a .mega-desc { display: block; font-size: 12.5px; color: var(--ink-70); font-weight: 400; margin-top: 3px; }

/* ---- 091 Draggable Ticker (trust rail, real cover lines only) ------------ */
.al-ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.al-ticker__track { display: flex; width: max-content; will-change: transform; cursor: grab; }
.al-ticker__track.is-grab { cursor: grabbing; }
.al-ticker__item {
  display: inline-flex; align-items: center; gap: 14px; padding: 15px 26px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-70); white-space: nowrap; user-select: none;
}
.al-ticker__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---- 016 AnimatedNumber (real years-since-2006 count-up) ----------------- */
.al-stat { display: inline-flex; flex-direction: column; gap: 3px; }
.al-stat__num { font-size: 46px; font-weight: 600; line-height: 1; color: var(--brand-green); letter-spacing: -.02em; }
.al-stat__num .al-suf { font-size: 24px; color: var(--accent); margin-left: 2px; }
.al-stat__label { font-size: 14px; color: var(--ink-70); }

/* ---- 011 / 029 Tilt Cards + 062 Border Beam (the 7-line cover grid) ------ */
.promise-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tilt-card {
  position: relative; display: block; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}
.tilt-card .tc-name {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--ink); transform: translateZ(24px);
}
.tilt-card .tc-arrow { color: var(--accent); transition: transform .2s ease; flex: none; }
.tilt-card:hover { border-color: transparent; box-shadow: 0 12px 34px rgba(31, 33, 18, .12); }
.tilt-card:hover .tc-arrow { transform: translateX(4px); }
.tilt-card .tc-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px 200px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 60%);
  opacity: 0; transition: opacity .25s ease; mix-blend-mode: overlay;
}
.tilt-card:hover .tc-glare { opacity: .55; }
.tilt-card::after { /* 062 border beam, cursor-tracked glow ring */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(140px 140px at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.tilt-card:hover::after { opacity: 1; }

/* ---- 204 Lottie accents (self-hosted lottie-web, small section motifs) --- */
.al-lottie { display: block; }
.al-lottie--shield { width: 88px; height: 88px; }
.al-lottie--growth { width: 76px; height: 76px; }
.al-lottie svg { display: block; }

/* ---- 069 / 184 Scroll Cue (hero) ---------------------------------------- */
.al-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--on-dark-70); background: none; border: 0; cursor: pointer; padding: 6px;
}
.al-cue__mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.al-cue__mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 2px;
  background: currentColor; transform: translateX(-50%); animation: alCue 1.7s ease-in-out infinite;
}
.al-cue__txt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@keyframes alCue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } 100% { opacity: 0; } }

/* ---- 020 Interactive Gradient (canvas backdrop, dark bands; fallback CSS) - */
.al-canvas-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }

/* ---- 085 Hover Zoom (clipped media that scales toward the pointer) -------- */
.al-zoom { display: block; height: 100%; overflow: hidden; border-radius: var(--r-card); }
.al-zoom img {
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.al-zoom:hover img { transform: scale(1.07); }
@media (hover: none), (pointer: coarse) { .al-zoom:hover img { transform: none; } }

/* ---- 337 Gradient Text Pro (gold-to-cream sweep through the hero beat) ---- */
/* Applied to the beat AND its generated single .al-word (084 splits words), so
   it works pre-JS and post-JS. Both gradient stops stay AA-clear on the dark
   hero (#e7a63b / cream on #31331f are >= 4.5:1). */
.al-gradtext, .al-gradtext .al-word {
  background: linear-gradient(178deg, #f0c063 0%, #e7a63b 40%, var(--on-dark) 100%);
  background-size: 100% 240%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: alGradShift 8s ease-in-out infinite;
}
@keyframes alGradShift {
  0%, 100% { background-position: 50% 0%; }
  50%      { background-position: 50% 100%; }
}

/* ==========================================================================
   PASS-2 NITPICK FIXES (home)
   ========================================================================== */
/* 1. intro headline forest green, consistent with the other section headlines
   (handled in markup via .beat-1); keep the single-word device tidy */
.intro-text-image .headline .beat-1 { color: var(--brand-green); }
.intro-text-image .headline .beat-2 { color: var(--ink-70); font-weight: 500; }

/* 3. tighten the white gap between the intro and USP sections */
.intro-text-image { padding-bottom: 74px; }
.text-image-usp { padding-top: 82px; }

/* USP col-text spacing for the added stat + lottie accent */
.usp-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.usp-head .al-lottie { flex: none; }
.text-image-usp .al-stat { margin-top: 4px; }

/* ready-promise left column, lottie accent alignment */
.ready-promise .promise-lottie { margin-bottom: 14px; }

/* 2 + 4. CTA support: deep forest field (gold first-beat now clears AA),
   owned abstract swoosh + canvas backdrop replace the faint-letters motif */
.cta-support {
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(92, 132, 70, .5) 0%, rgba(92, 132, 70, 0) 55%),
    linear-gradient(158deg, #2b4220 0%, #213417 58%, #1b2d14 100%);
}
.cta-support .headline .beat-1 { color: #e7a63b; } /* luminous gold, AA-clear on the deep field */
.cta-support .cta-branch { opacity: .5; }

/* ==========================================================================
   PASS-2 RESPONSIVE + REDUCED MOTION additions
   ========================================================================== */
@media (max-width: 560px) {
  .al-wa { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .al-wa svg { width: 26px; height: 26px; }
  .al-totop { right: 16px; bottom: 76px; width: 42px; height: 42px; }
  .al-stat__num { font-size: 38px; }
  .al-ticker__item { padding: 13px 20px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .al-reveal .al-word { opacity: 1 !important; filter: none !important; transform: none !important; }
  .al-preloader__bar::after, .al-wa::after, .al-cue__mouse::after { animation: none !important; }
  .al-canvas-bg { display: none !important; } /* CSS gradient fallback remains */
  .al-gradtext, .al-gradtext .al-word { animation: none !important; background-position: 50% 40% !important; }
  .al-zoom:hover img { transform: none !important; }
}

/* ---- safe-area insets for fixed bottom chrome (viewport-fit=cover) ------- */
.al-wa { bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); }
.al-totop { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 68px); right: max(20px, env(safe-area-inset-right)); }
@media (max-width: 560px) {
  .al-wa { bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }
  .al-totop { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 60px); right: max(16px, env(safe-area-inset-right)); }
}
