/* =================================================================
   Matla Wills & Estates — global stylesheet
   A division of Matla Life Investment (Pty) Ltd.
   Brand: white-dominant canvas, navy structure, light-grey accent.
   ================================================================= */


/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — monochrome navy + white + light grey (no orange) */
  --navy:        #1E3666;  /* primary — headings, nav, primary text, dark bands, primary CTAs */
  --navy-deep:   #18294D;  /* hover / darker navy */
  /* The former orange accent is now mapped to navy (strong) + light grey (soft).
     Variable names retained so existing references resolve to the new scheme. */
  --orange:      #1E3666;  /* strong accent -> navy (buttons, links, highlights on light) */
  --orange-dark: #18294D;  /* strong accent hover */
  --steel:       #6E7C99;  /* soft slate-grey accent — eyebrows, labels, fine detail */
  --steel-light: #B9C3D6;  /* light steel accent for use on dark backgrounds */
  --white:       #FFFFFF;  /* dominant ~70% background */
  --grey-100:    #F4F5F7;  /* light grey section bands */
  --grey-200:    #E9EBEE;  /* cards, dividers, borders, soft fills */
  --grey-300:    #D8DCE3;  /* slightly deeper grey for accents/separators */
  --grey-500:    #596B8E;  /* muted / secondary text */

  /* Derived */
  --navy-tint:   rgba(30, 54, 102, 0.06);
  --orange-tint: rgba(30, 54, 102, 0.08);  /* soft navy tint (former orange tint) */
  --ink:         #16223B;  /* near-black body text with navy undertone */
  --error:       #C0392B;  /* form validation errors (red, not orange) */
  --error-tint:  rgba(192, 57, 43, 0.10);
  --glow:        rgba(120, 145, 190, 0.30); /* cool steel glow for dark panels */

  /* Typography */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius & shadow */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(24, 41, 77, 0.06);
  --shadow:    0 14px 38px rgba(24, 41, 77, 0.10);
  --shadow-lg: 0 30px 70px rgba(24, 41, 77, 0.16);

  --maxw: 1180px;
  --header-h: 78px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--ink); }
strong { color: var(--navy); font-weight: 600; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--grey { background: var(--grey-100); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.82); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--steel); display: inline-block;
}
.section--navy .eyebrow { color: var(--steel-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--grey-500); font-size: 1.08rem; margin-top: .9rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.82); }

.lead { font-size: 1.18rem; color: var(--grey-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(30,54,102,.28); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--grey-200); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--grey-100); color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.06rem; }
.btn-block { width: 100%; justify-content: center; }

/* Chevron motif (the orange ">" from the logo) used as inline icon */
.chev::after {
  content: "›"; font-family: var(--font-display); font-weight: 700;
  margin-left: .35rem; transition: transform .18s ease;
}
.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; color: var(--orange);
}
.link-more svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: .9rem;
}
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.02rem; letter-spacing: .01em; }
.brand-text .b-sub {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-500); font-weight: 600;
}
.brand-text .b-sub b { color: var(--orange); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .84rem; color: var(--navy);
  padding: .5rem .56rem; border-radius: 8px; position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); background: var(--navy-tint); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .56rem; right: .56rem; bottom: .22rem; height: 2px; background: var(--orange); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: .6rem; }
@media (min-width: 941px) { .nav-cta .btn { padding: .62rem 1.05rem; font-size: .9rem; } }

/* ---------- Back-to-gateway pill (always visible beside the brand) ---------- */
.nav-back {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  margin-left: .15rem; padding: .42rem .72rem .42rem .58rem;
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--grey-200); border-radius: 999px;
  background: #fff; color: var(--navy);
  font-family: var(--font-display); line-height: 1;
  transition: border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.nav-back::before {                 /* navy fill wipes in from the left on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--navy), var(--navy-deep));
  transform: translateX(-101%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.nav-back:hover, .nav-back:focus-visible {
  color: #fff; border-color: var(--navy);
  box-shadow: 0 12px 24px -12px rgba(30, 54, 102, .6);
  transform: translateY(-1px);
}
.nav-back:hover::before, .nav-back:focus-visible::before { transform: translateX(0); }

.nav-back__ic { position: relative; width: 18px; height: 18px; display: inline-grid; place-items: center; flex-shrink: 0; }
.nav-back__ic svg {
  grid-area: 1 / 1; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
.nav-back__ghost { color: #E9C46A; opacity: 0; }                 /* gold "gateway" trail chevron */
.nav-back:hover .nav-back__ic svg:first-child,
.nav-back:focus-visible .nav-back__ic svg:first-child { transform: translateX(-4px); }
.nav-back:hover .nav-back__ghost,
.nav-back:focus-visible .nav-back__ghost { opacity: .95; transform: translateX(3px); }

.nav-back__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1; }
.nav-back__txt b { font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.nav-back__txt span { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; opacity: .72; }

@media (max-width: 600px) {
  .nav-back__txt { display: none; }
  .nav-back { padding: .42rem .52rem; }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--grey-200); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Dedicated close (X) button — swaps in for the hamburger when the menu is open */
.nav-close { display: none; }

@media (max-width: 940px) {
  /* Let the menu wrap onto its own full-width rows below the bar (no overlap) */
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; order: 1; }
  body.nav-open .nav-toggle { display: none; }

  .nav-close {
    order: 1; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--grey-200); background: #fff; border-radius: 10px;
    color: var(--navy); cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }
  body.nav-open .nav-close { display: inline-flex; }
  .nav-close:hover { background: var(--grey-100); border-color: var(--navy); }
  .nav-close:active { transform: scale(.94); }
  .nav-close svg { width: 22px; height: 22px; }

  /* Menu = clean accordion that expands the sticky bar; nothing overlaps */
  .nav-links, .nav .nav-cta {
    order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; background: #fff;
    overflow: hidden;
    max-height: 0; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav-links { border-top: 1px solid var(--grey-200); }
  .nav .nav-cta { order: 4; }
  .nav-links a { padding: .95rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--grey-100); }
  .nav-links a[aria-current="page"]::after { display: none; }
  body.nav-open .nav-links {
    max-height: 65vh; overflow-y: auto; opacity: 1; pointer-events: auto; padding: .4rem 0;
  }
  body.nav-open .nav .nav-cta {
    max-height: 30vh; opacity: 1; pointer-events: auto; padding: .7rem 0 1rem;
  }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(120,145,190,.26), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(74,110,180,.35), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero::after {
  /* faint signature line texture in the corner */
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 460px; height: 320px;
  background: url('assets/img/signature.svg') no-repeat right bottom / contain;
  opacity: .14; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--steel-light); }
.hero p.lead { color: rgba(255,255,255,0.85); margin-top: 1.25rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--font-display); font-size: 1.55rem; color: #fff; }
.hero-trust .ht span { font-size: .82rem; color: rgba(255,255,255,.7); }

.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg); padding: 1.8rem; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.2rem; }
.hero-card .price { font-family: var(--font-display); font-size: 2.4rem; color: #fff; font-weight: 700; margin: .4rem 0 1rem; }
.hero-card .price small { font-size: .9rem; color: rgba(255,255,255,.7); font-weight: 400; }
.hero-card ul { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.hero-card li { display: flex; gap: .6rem; color: rgba(255,255,255,.9); font-size: .96rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
}

/* Chevron bullet list (orange ">" markers) */
.chevlist { display: grid; gap: .75rem; }
.chevlist li { display: flex; gap: .7rem; align-items: flex-start; }
.chevlist li::before {
  content: ""; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px;
  background: var(--orange-tint); border-radius: 999px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 13px no-repeat, none;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 13px no-repeat;
  background-color: var(--orange);
}
.chevlist.on-navy li { color: rgba(255,255,255,.9); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stat { padding: .5rem; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; line-height: 1;
}
.stat b .u { color: var(--steel-light); }
.stat span { display: block; margin-top: .5rem; font-size: .82rem; color: rgba(255,255,255,.72); }
.stat-divider { height: 1px; background: rgba(255,255,255,.14); margin-top: 2rem; }
.partner-line { text-align: center; margin-top: 1.5rem; color: rgba(255,255,255,.8); font-size: .95rem; }
.partner-line b { color: #fff; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--orange-tint); color: var(--orange); margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card .tm { color: var(--orange); }
.card p { color: var(--grey-500); font-size: .98rem; }
.card .card-foot { margin-top: 1.1rem; }
.card--grey { background: var(--grey-100); border-color: transparent; }
.card--flag { position: relative; }
.pill {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--orange);
  background: var(--orange-tint); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.pill--free { color: #1f8f54; background: rgba(31,143,84,.12); }

/* feature media row */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.media-row.reverse .media-text { order: 2; }
@media (max-width: 820px) { .media-row { grid-template-columns: 1fr; } .media-row.reverse .media-text { order: 0; } }
.media-figure {
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  border-radius: var(--radius-lg); padding: 2.2rem; color: #fff; position: relative; overflow: hidden;
}
.media-figure::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 240px at 90% 10%, rgba(120,145,190,.32), transparent 60%);
}
.media-figure > * { position: relative; }
/* Ensure all text inside the dark figure cards stays legible. */
.media-figure h3 { color: #fff; }
.media-figure p { color: rgba(255,255,255,.9); }
.media-figure .eyebrow { color: var(--steel-light); }
.media-figure .eyebrow::before { background: var(--steel-light); }
.media-figure .footer-stats { border-top-color: rgba(255,255,255,.2); }
.media-figure .footer-stats .fs b { color: #fff; }
.media-figure .footer-stats .fs span { color: rgba(255,255,255,.82); }

/* ---------- Plans table ---------- */
.plans-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--grey-200); }
.plans {
  width: 100%; min-width: 720px; border-collapse: collapse; background: #fff;
}
.plans th, .plans td { padding: 1.1rem 1.2rem; text-align: center; border-bottom: 1px solid var(--grey-200); }
.plans thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.05rem; vertical-align: top; }
.plans thead th .sub { display: block; font-weight: 400; font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.plans tbody th { text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--navy); background: var(--grey-100); }
.plans .row-feature { color: var(--ink); font-weight: 500; }
.plans .yes { color: #1f8f54; font-weight: 700; }
.plans .no { color: var(--grey-500); }
.plans .price-cell { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.plans tbody tr:last-child td, .plans tbody tr:last-child th { border-bottom: none; }

/* recommended column highlight — distinguished with a light steel accent */
.plans .col-reco { background: rgba(30,54,102,.05); position: relative; }
.plans thead th.col-reco { background: var(--navy-deep); box-shadow: inset 0 5px 0 var(--steel-light); }
.plans thead th.col-reco .badge {
  display: inline-block; background: var(--steel-light); color: var(--navy-deep); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .4rem;
}
.plans td.col-reco { box-shadow: inset 2px 0 0 var(--navy), inset -2px 0 0 var(--navy); }
.plans tbody tr:last-child td.col-reco { box-shadow: inset 2px 0 0 var(--navy), inset -2px 0 0 var(--navy), inset 0 -2px 0 var(--navy); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: .9rem; }
.acc-item { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; }
.acc-item[open] { border-color: transparent; box-shadow: var(--shadow-sm); }
.acc-head {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.08rem;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head .acc-num { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.acc-head .acc-plus {
  margin-left: auto; flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px;
  background: var(--navy-tint); display: grid; place-items: center; color: var(--navy); transition: transform .2s ease, background .2s ease;
}
.acc-head .acc-plus::before { content: "+"; font-size: 1.3rem; line-height: 1; }
.acc-item[open] .acc-plus { background: var(--orange); color: #fff; transform: rotate(45deg); }
.acc-body { padding: 0 1.4rem 1.4rem 1.4rem; color: var(--grey-500); }
.acc-body p + p { margin-top: .8rem; }
.acc-body .chevlist { margin-top: .8rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--grey-100); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-tint);
}
.field .err-msg { color: var(--error); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); background: #fff; }
.field.invalid .err-msg { display: block; }
.field .hint { font-size: .8rem; color: var(--grey-500); }
.field input[type="file"] { padding: .6rem; background: #fff; cursor: pointer; }

.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1.2rem; font-weight: 500; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(31,143,84,.12); color: #1f7a4a; border: 1px solid rgba(31,143,84,.25); }
.form-status.bad { background: var(--error-tint); color: var(--error); border: 1px solid rgba(192,57,43,.3); }
.form-consent { font-size: .82rem; color: var(--grey-500); margin-top: 1rem; }

@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,4vw,3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.info-item { display: flex; gap: 1rem; }
.info-item .ic { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin-bottom: .15rem; }
.info-item p, .info-item a { color: var(--grey-500); font-size: .98rem; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 1.6rem; box-shadow: var(--shadow-sm); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(120,145,190,.30), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 2rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .6rem; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--orange); color: #fff; padding: .8rem 1.1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; box-shadow: 0 12px 30px rgba(30,54,102,.4);
  transition: transform .18s ease, background .18s ease;
}
.wa-float:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .wa-label { white-space: nowrap; }
@media (max-width: 560px) { .wa-float .wa-label { display: none; } .wa-float { padding: .85rem; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(120,145,190,.22), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff; padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.page-hero .crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .8rem; }
.page-hero .crumbs a { color: rgba(255,255,255,.85); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 60ch; margin-top: 1rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.65); max-width: 34ch; }
.footer-brand .division { color: rgba(255,255,255,.85); font-weight: 600; margin-bottom: .4rem; font-family: var(--font-display); font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-display); }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: var(--steel-light); }
.footer-contact li { display: flex; gap: .6rem; font-size: .95rem; color: rgba(255,255,255,.72); align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 3px; color: var(--steel-light); flex-shrink: 0; }
.footer-stats { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-stats .fs b { font-family: var(--font-display); color: #fff; font-size: 1.2rem; display: block; }
.footer-stats .fs span { font-size: .78rem; color: rgba(255,255,255,.6); }
.footer-bottom {
  margin-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-disclaimer { font-size: .76rem; color: rgba(255,255,255,.4); line-height: 1.6; padding-bottom: 2rem; max-width: 90ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc content blocks ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; color: var(--ink); }
.prose h3 { margin: 2rem 0 .8rem; }
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width:780px){ .value-row { grid-template-columns: 1fr; } }
.mini { display: flex; gap: 1rem; align-items: flex-start; }
.mini .ic { flex:0 0 44px; width:44px; height:44px; border-radius:12px; background: var(--orange-tint); color: var(--orange); display:grid; place-items:center; }
.mini h4 { font-family: var(--font-display); color: var(--navy); margin-bottom: .25rem; font-size: 1.05rem; }
.mini p { color: var(--grey-500); font-size: .94rem; }

.director-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 680px){ .director-grid { grid-template-columns: 1fr; } }
.director {
  background: var(--grey-100); border-radius: var(--radius); padding: 1.6rem; display: flex; gap: 1.2rem; align-items: center;
}
.director .avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 999px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.director h4 { color: var(--navy); font-family: var(--font-display); margin-bottom: .1rem; }
.director span { color: var(--orange); font-size: .9rem; font-weight: 600; }

.note { background: var(--grey-100); border-left: 4px solid var(--orange); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--grey-500); font-size: .95rem; }
.note strong { color: var(--navy); }

.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 820px){ .guide-grid { grid-template-columns: 1fr; } }
.guide { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.5rem; }
.guide h4 { color: var(--navy); margin-bottom: .5rem; }
.guide .who { color: var(--orange); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.guide p { color: var(--grey-500); font-size: .95rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.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;
}
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* =================================================================
   Enhancements — top utility bar, refined nav, engaging hero,
   partner badges, "how it works" steps, entrance animations.
   ================================================================= */

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  max-height: 44px;
  transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 44px; }
.topbar-left { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); letter-spacing: .01em; }
.topbar-left .dot { width: 6px; height: 6px; border-radius: 50%; background: #F15A2B; flex-shrink: 0; }
.topbar-right { display: inline-flex; align-items: center; gap: 1.4rem; }
.topbar-right a, .topbar-right span { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.78); }
.topbar-right a:hover { color: var(--steel-light); }
.topbar-right svg { width: 14px; height: 14px; color: var(--steel-light); }
.tb-docs { color: var(--steel-light) !important; font-weight: 600; }
.tb-docs:hover { color: #fff !important; }
/* Collapse the utility bar once the user starts scrolling. */
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; }
@media (max-width: 720px) {
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: center; gap: 1.3rem; }
  /* Higher specificity than the base .topbar-right a/span rules so these win. */
  .topbar-right .tb-hours, .topbar-right .tb-mail, .topbar-right .tb-docs { display: none; }
}

/* ---------- Checkbox group (policy document request) ---------- */
.checkgroup { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.checkopt {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--grey-100); cursor: pointer; font-size: .95rem;
  transition: border-color .15s ease, background .15s ease;
}
.checkopt:hover { border-color: var(--orange); background: #fff; }
.checkopt input { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
.checkopt:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.docs-error { display: none; color: var(--error); font-size: .82rem; margin-top: .5rem; }
@media (max-width: 620px) { .checkgroup { grid-template-columns: 1fr; } }

/* ---------- Refined main nav ---------- */
.brand img { transition: transform .25s ease; }
.brand:hover img { transform: scale(1.03); }
.nav-links a { font-weight: 500; }
.nav-links a::after { transition: transform .2s ease; }
/* sleeker hover underline on desktop */
@media (min-width: 941px) {
  .nav-links a { position: relative; }
  .nav-links a:not([aria-current="page"])::after {
    content: ""; position: absolute; left: .56rem; right: .56rem; bottom: .25rem; height: 2px;
    background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; opacity: .0;
    transition: transform .22s ease, opacity .2s ease;
  }
  .nav-links a:not([aria-current="page"]):hover::after { transform: scaleX(1); opacity: 1; }
  .nav-links a:hover { background: transparent; }
}

/* ---------- Engaging hero ---------- */
.hero { isolation: isolate; }
/* animated floating gradient orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.orb-1 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(140,165,210,.50), transparent 70%); top: -120px; right: 6%; animation: float1 16s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(74,120,210,.6), transparent 70%); bottom: -120px; left: -40px; animation: float2 20s ease-in-out infinite; }
.orb-3 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,138,95,.4), transparent 70%); top: 40%; left: 42%; animation: float1 24s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,40px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.1); } }
/* subtle grid texture + brand chevron pattern */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6;
  background-image:
    url("assets/img/background.png"),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 168px, 64px 64px, 64px 64px;
  background-blend-mode: soft-light, normal, normal;
  -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 95% at 50% 0%, #000 35%, transparent 80%);
}

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: .42rem .8rem .42rem .5rem; border-radius: 999px; font-size: .82rem; color: #fff; font-weight: 500;
  backdrop-filter: blur(4px);
}
.trust-chip .crest { width: 26px; height: 26px; border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; object-fit: contain; }
.trust-chip .star { color: var(--steel-light); letter-spacing: .02em; }
.trust-chip b { color: #fff; font-weight: 600; }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
.hero-actions .btn-primary { position: relative; overflow: hidden; }
.hero-actions .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg);
  animation: sheen 4.5s ease-in-out 1.5s infinite;
}
@keyframes sheen { 0% { left: -120%; } 28%, 100% { left: 160%; } }

.hero-trust .ht b { position: relative; }
.hero-trust { padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); }

/* hero card upgrades */
.hero-card { position: relative; box-shadow: var(--shadow-lg); }
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(140deg, rgba(185,195,214,.8), rgba(255,255,255,.10) 45%, rgba(185,195,214,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-card .ribbon {
  position: absolute; top: 1.2rem; right: -.4rem; background: #fff; color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 6px 0 0 6px; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.hero-card .ribbon::after { content: ""; position: absolute; right: 0; bottom: -6px; border-width: 6px .4rem 0 0; border-style: solid; border-color: var(--grey-300) transparent transparent transparent; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.45); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; background: var(--steel-light); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 9px); } 100% { opacity: 0; transform: translate(-50%, 9px); } }
@media (max-width: 880px) { .scroll-cue { display: none; } }

/* ---------- Partner crest chip (stats band + footer) ---------- */
.partner-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .9rem .4rem .45rem; border-radius: 999px;
}
.partner-chip img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.partner-chip span { color: rgba(255,255,255,.85); font-size: .9rem; }
.partner-chip b { color: #fff; }
.partner-line .partner-chip { margin-top: .2rem; }

/* ---------- "How it works" steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--grey-200) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; }
.step .num {
  width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--grey-200); color: var(--navy);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.step:hover .num { transform: translateY(-4px); border-color: var(--orange); background: var(--orange); color: #fff; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--grey-500); font-size: .96rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: 2rem; } .steps::before { display: none; } }

/* ---------- Entrance animations (hero, on load) ---------- */
.anim { opacity: 0; transform: translateY(22px); animation: animIn .85s cubic-bezier(.2,.7,.2,1) forwards; }
.anim-left { opacity: 0; transform: translateX(-24px); animation: animInX .9s cubic-bezier(.2,.7,.2,1) forwards; }
.anim-scale { opacity: 0; transform: scale(.94) translateY(20px); animation: animScale .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes animIn { to { opacity: 1; transform: none; } }
@keyframes animInX { to { opacity: 1; transform: none; } }
@keyframes animScale { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .anim, .anim-left, .anim-scale { opacity: 1; transform: none; animation: none; }
  .orb, .hero-actions .btn-primary::after, .scroll-cue .mouse::after { animation: none; }
  .slogan path { animation: none; stroke-dashoffset: 0; fill-opacity: 1; }
}

/* =================================================================
   Splash hero (Jozi skyline), animated signature, preloader, and the
   brand chevron pattern on dark panels.
   ================================================================= */

/* ---------- Splash hero ---------- */
.splash {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden; background: var(--navy-deep);
}
.splash::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("assets/img/real-jozi.png") center / cover no-repeat;
  filter: saturate(.85) brightness(.98) contrast(1.02);
  transform: scale(1.04); animation: splashZoom 18s ease-out forwards;
}
@keyframes splashZoom { to { transform: scale(1.13); } }
.splash::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(24,41,77,.34) 0%, rgba(24,41,77,.12) 42%, rgba(24,41,77,.86) 100%);
}
/* Mouse-trace canvas overlay — sits above the photo, never blocks clicks. */
.hero-trail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.splash-content {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 2.5rem 1.5rem;
}
.splash-logo { width: min(440px, 76vw); height: auto; filter: drop-shadow(0 12px 36px rgba(0,0,0,.5)); opacity: 0; animation: animIn 1s ease .15s forwards; position: relative; left: 1.5cm; }
/* Cursive slogan — vector letterforms that draw themselves on, then fill in. */
.slogan { width: min(600px, 84vw); height: auto; filter: drop-shadow(0 3px 12px rgba(0,0,0,.55)); }
.slogan path {
  fill: #fff; fill-opacity: 0;
  stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sloganDraw 2.4s ease 3s forwards, sloganFill .9s ease 5s forwards;
}
@keyframes sloganDraw { to { stroke-dashoffset: 0; } }
@keyframes sloganFill { to { fill-opacity: 1; } }
.splash-cue { margin-top: 1rem; display: inline-flex; flex-direction: column; align-items: center; gap: .45rem; color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; animation: animIn 1s ease 6s forwards; }
.splash-cue:hover { color: #fff; }
@media (max-width: 560px) { .splash-logo { left: 0; } }
.splash-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 13px; position: relative; }
.splash-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }

/* ---------- Animated signature (draw-on) ---------- */
.sig { width: min(340px, 74vw); height: auto; overflow: visible; }
.sig path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sig .sig-main { stroke: #fff; stroke-width: 3; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: sigDraw 2.8s cubic-bezier(.6,.1,.3,1) .7s forwards; }
.sig .sig-flourish { stroke: var(--steel-light); stroke-width: 2.4; stroke-dasharray: 760; stroke-dashoffset: 760; animation: sigDraw 1.5s ease 2.7s forwards; }
@keyframes sigDraw { to { stroke-dashoffset: 0; } }

/* ---------- Signature preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--navy-deep);
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/background.png") repeat; background-size: 168px;
  opacity: .5; mix-blend-mode: soft-light; pointer-events: none;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.pl-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.pl-sig { width: min(260px, 70vw); height: auto; overflow: visible; }
.pl-sig path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: #fff; stroke-width: 3; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: sigDraw 2s cubic-bezier(.6,.1,.3,1) forwards; }
.pl-sig .sig-flourish { stroke: var(--steel-light); stroke-width: 2.4; stroke-dasharray: 760; stroke-dashoffset: 760; animation: sigDraw 1s ease 1.5s forwards; }
.pl-label { font-family: var(--font-display); color: rgba(255,255,255,.72); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
body.loading { overflow: hidden; }

/* ---------- Brand chevron pattern on dark panels ---------- */
.stats-band, .cta-band, .page-hero, .section--navy, .site-footer { position: relative; }
.stats-band::before, .cta-band::before, .page-hero::before, .section--navy::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("assets/img/background.png") repeat; background-size: 168px;
  opacity: .55; mix-blend-mode: soft-light; pointer-events: none;
}
.stats-band > .container, .page-hero > .container, .site-footer > .container, .section--navy > .container { position: relative; z-index: 1; }
.cta-band > * { position: relative; z-index: 1; }
/* media-figure already uses ::before for its glow, so the pattern goes on ::after */
.media-figure::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-lg);
  background: url("assets/img/background.png") repeat; background-size: 150px;
  opacity: .5; mix-blend-mode: soft-light; pointer-events: none;
}
.media-figure > * { z-index: 1; }

/* ===========================================================================
   CORE SITE — MOBILE HARDENING
   =========================================================================== */

/* Brand: prevent logo from overflowing on very small screens */
@media (max-width: 400px) {
  .brand img { height: 34px; }
  .brand-text .b-sub { font-size: .55rem; letter-spacing: .14em; }
  .nav-back { padding: .38rem .46rem; }
}

/* Core hero: stack grid on narrow phones */
@media (max-width: 600px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero p.lead { font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 1rem; }
}

/* Nav: ensure the nav bar doesn't overflow on very narrow phones */
@media (max-width: 360px) {
  .nav { gap: .5rem; }
  .nav-cta .btn { font-size: .82rem; padding: .5rem .75rem; }
}
