/* Accumin — static site styles
   Brand: Poppins; orange #FC5C1D, amber #FFA413, ink #1E1919
   Text on amber is always ink; text on orange surfaces sits on --orange-strong. */

/* Poppins, self-hosted (latin subset), from Google Fonts. SIL Open Font License. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --orange is the brand mark colour: fills for icons, ticks and rules only.
     Anything carrying text uses --orange-strong (white text 4.8:1, and 4.8:1 as text on white). */
  --orange: #fc5c1d;
  --orange-strong: #cc420c;
  --orange-deep: #b8390b;
  --amber: #ffa413;
  --amber-dark: #e8920a;
  --field-border: #8f8988;
  --ink: #1e1919;
  --body: #514949;
  --line: #e5e5e5;
  --peach: #fde7ca;
  --white: #ffffff;
  --pill: 26px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-strong); text-underline-offset: .18em; }
a:hover { color: var(--orange-deep); }
::selection { background: var(--orange-strong); color: #fff; }
input, select, textarea { accent-color: var(--orange-strong); caret-color: var(--orange-strong); }
p { margin: 0 0 1.1em; }
p, li, blockquote { text-wrap: pretty; }

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}
/* Clear steps between levels at every width: h2 never drops below 2rem, h3 stays well under it. */
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.25rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.container--narrow { width: min(1140px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible,
.section--orange :focus-visible,
.panel--orange :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  border: 0;
  border-radius: var(--pill);
  --btn-bg: var(--orange-strong);
  --btn-bg-hover: var(--orange-deep);
  /* Hover fill sweeps in from the left: a two-tone field slid across the pill. */
  background: linear-gradient(to right, var(--btn-bg-hover) 50%, var(--btn-bg) 50%) right / 201% 100% no-repeat;
  background-color: var(--btn-bg);
  color: #fff;
  font: 500 17px/1 "Poppins", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-position .45s var(--ease-out), transform .2s ease;
}
.btn:hover { background-position: left; color: #fff; transform: translateY(-2px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; background-position: right; }
.btn--amber { --btn-bg: var(--amber); --btn-bg-hover: var(--amber-dark); color: var(--ink); }
.btn--amber:hover { color: var(--ink); }
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: rotate(-12deg) scale(1.08); }
.btn--sm { padding: 14px 24px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  --header-h: 99px;
  --header-h-stuck: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  view-transition-name: site-header;
  transition: box-shadow .25s ease, margin-bottom .3s var(--ease-out);
}
/* Shrinks once scrolled; the bottom margin gives back the lost height so the page below never jumps. */
.site-header.is-stuck {
  margin-bottom: calc(var(--header-h) - var(--header-h-stuck));
  box-shadow: 0 4px 24px rgba(30, 25, 25, .12);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease-out);
}
.site-header.is-stuck .site-header__inner { min-height: var(--header-h-stuck); }
.brand img { width: 230px; height: auto; transform-origin: left center; transition: transform .3s var(--ease-out); }
.site-header.is-stuck .brand img { transform: scale(.83); }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list > li { position: relative; }
.nav a {
  display: block;
  padding: 12px 15px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--orange-strong); }
@media (min-width: 1025px) {
  /* Underline draws in from the left under the label (not the padding); the current page keeps it. */
  .nav__list > li > a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    background-origin: content-box;
    background-clip: content-box;
    transition: color .2s ease, background-size .35s var(--ease-out);
  }
  .nav__list > li > a:hover,
  .nav__list > li > a[aria-current="page"] { background-size: 100% 2px; }
}

.nav .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav .sub {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 190px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(30, 25, 25, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav .has-sub:hover > .sub,
.nav .has-sub:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav .sub a { padding: 10px 20px; font-weight: 400; }
/* The menu's own CTA is a button, not a nav link: keep .btn colours over `.nav a`. */
.nav .btn,
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Heroes ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--orange-strong);
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Burnt Ember keeps white text ≥4.9:1 even over the brightest 1% of each hero photo */
  background: rgba(184, 57, 11, .88);
}
.hero h1 { color: #fff; margin: 0; }
/* Home: the H1 states what Accumin does; the mission line beneath is display type, not a heading. */
.hero--home .hero__kicker {
  margin: 0 0 18px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero--home { padding: clamp(110px, 17vw, 250px) 0; }
.hero__display {
  margin: 0 0 26px;
  max-width: 11ch;
  color: #fff;
  font-size: clamp(2.9rem, 7.7vw, 6.2rem);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}
.hero--home .hero__sub {
  margin: 0 0 34px;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}

.hero--page {
  padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 11vw, 150px);
  text-align: center;
}
.hero--page h1 { font-size: clamp(2.1rem, 5.6vw, 4.375rem); width: fit-content; margin-inline: auto; }
/* Page titles carry from one page to the next (see Page transitions). */
.hero--page h1, .hero__display { view-transition-name: page-title; }

/* Home hero entrance: once per visit, gated by the .hero-intro flag set in the page head. */
.hero .mask { display: inline-block; overflow: clip; padding-bottom: .16em; margin-bottom: -.16em; vertical-align: top; }
.hero .mask > span { display: inline-block; }
.hero-intro .hero--home::before { animation: hero-dim 1.1s var(--ease-out) both; }
.hero-intro .hero--home .mask > span { animation: hero-rise .9s var(--ease-out) both; }
.hero-intro .hero--home .mask:nth-child(1) > span { animation-delay: .15s; }
.hero-intro .hero--home .mask:nth-child(2) > span { animation-delay: .23s; }
.hero-intro .hero--home .mask:nth-child(3) > span { animation-delay: .31s; }
.hero-intro .hero--home .hero__kicker { animation: hero-fade .7s var(--ease-out) .05s both; }
.hero-intro .hero--home .hero__sub { animation: hero-fade .7s var(--ease-out) .5s both; }
.hero-intro .hero--home .btn { animation: hero-fade .7s var(--ease-out) .62s both; }
@keyframes hero-dim { from { background-color: rgba(110, 32, 6, .96); } }
@keyframes hero-rise { from { transform: translateY(135%); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Generic sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--tight-top { padding-top: 0; }
.section--orange { background: var(--orange-strong); color: #fff; }
.section--orange h2,
.section--orange h3,
.section--orange h4 { color: #fff; }
.section--orange a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; }
.section--orange a:not(.btn):hover { color: #fff; text-decoration-thickness: 2px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-strong);
  font-size: clamp(1.1rem, 2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
}
.center { text-align: center; }

/* Quick quote */
.quick-quote { padding: 40px 0 50px; }
.quick-quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 40px;
}
.quick-quote h2 { color: var(--orange-strong); margin: 0; }
.quick-quote .eyebrow { color: var(--ink); font-size: 1.4rem; margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form--row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.panel--orange .field label { color: #fff; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 "Poppins", system-ui, sans-serif;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.panel--orange .field input:focus,
.panel--orange .field select:focus,
.panel--orange .field textarea:focus { outline-color: #fff; border-color: #fff; }
.req { color: var(--orange-strong); }
.panel--orange .req { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Two-column blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip > :first-child { order: 2; }

/* About (home) */
.about-media { position: relative; padding-bottom: 60px; }
.about-media__main { border-radius: 20px; width: 100%; aspect-ratio: 570 / 500; object-fit: cover; }
.about-media__inset {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 53%;
  aspect-ratio: 302 / 388;
  object-fit: cover;
  border-radius: 20px;
  border: 8px solid #fff;
  box-shadow: 0 16px 40px rgba(30, 25, 25, .18);
}
.tick-list { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 34px; }
.tick-list li::before,
.tick-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 18px;
  height: 18px;
}
.tick-list li::before {
  border-radius: 50%;
  background: var(--orange);
  transition: transform .32s var(--ease-out) var(--d, 0s), opacity .2s ease var(--d, 0s);
}
.tick-list li::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  clip-path: inset(0 0 0 0);
  transition: clip-path .34s var(--ease-out) calc(var(--d, 0s) + .14s);
}
/* Lists below the fold are armed by JS, then ticked off one item at a time as they scroll in. */
.tick-list.is-armed li { --d: calc(var(--i, 0) * 90ms); }
.tick-list.is-armed:not(.is-ticked) li::before { transform: scale(.3); opacity: 0; transition: none; }
.tick-list.is-armed:not(.is-ticked) li::after { clip-path: inset(0 100% 0 0); transition: none; }
.section--orange .tick-list li::before {
  background-color: var(--amber);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
}
.stats__num { display: block; margin: 0; color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.375rem); font-weight: 700; line-height: 1; }
/* A ledger's double rule under each total; drawn once the count lands. */
.stats__num::after {
  content: "";
  display: block;
  width: 44px;
  height: 8px;
  margin: 16px auto 0;
  border-block: 2px solid var(--amber);
  transition: transform .45s var(--ease-out);
}
.stats.is-armed .stats__num:not(.is-ruled)::after { transform: scaleX(0); transition: none; }
.stats__label { display: block; margin-top: 10px; color: #fff; font-size: 17px; font-weight: 500; }

/* Team cards (home) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0 clamp(60px, 8vw, 100px); }
.team-card { background: #fff; color: var(--body); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.team-card img { width: 100%; aspect-ratio: 380 / 252; object-fit: cover; transition: transform .7s var(--ease-out); }
.quote-card, .info-card, .member { transition: border-color .3s ease; }
@media (hover: hover) {
  .team-card:hover img { transform: scale(1.03); }
  .quote-card:hover, .info-card:hover, .member:hover { border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
}
.team-card__body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.team-card h3 { margin: 0; color: var(--ink); font-size: 1.4rem; }
.team-card p { margin: 0; }
.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-head p { margin-top: 12px; }

.services-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.services-block img { border-radius: 20px; width: 100%; max-width: 474px; margin-inline: auto; aspect-ratio: 474 / 618; object-fit: cover; }
.services-block p { color: #fff; }
.services-block--spaced { padding-bottom: clamp(60px, 8vw, 100px); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.quote-card { margin: 0; padding: 34px 28px; border: 1px solid var(--line); border-radius: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.quote-card svg { order: -2; width: 38px; height: 38px; fill: var(--orange); margin-bottom: 10px; }
.quote-card figcaption { order: -1; display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.quote-card__name { color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1.12; }
.quote-card .role { color: var(--orange-strong); font-weight: 500; font-size: 14px; line-height: 1.4; }
.quote-card blockquote { margin: 0; color: var(--body); }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 9vw, 100px) 0 clamp(80px, 11vw, 150px);
  text-align: center;
  background: var(--ink) var(--cta-img, none) center / cover no-repeat;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(30, 25, 25, .8); }
.cta-band .eyebrow { margin-bottom: 8px; color: var(--amber); }
.cta-band h2 { margin: 0; color: #fff; }

/* Contact block */
.contact-block { padding: clamp(60px, 8vw, 100px) 0; }
.contact-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-block h2 { margin-bottom: 20px; }
.rule { border: 0; height: 3px; width: 70px; background: var(--orange); margin: 0 0 26px; transform-origin: left; transition: transform .7s var(--ease-out) .1s; }
.rule.is-armed:not(.is-in) { transform: scaleX(0); transition: none; }

/* Photos below the fold uncover top-down once and settle from 104%; armed by JS, so they are visible without it.
   The clip extends past the box so shadows and white borders survive. */
.reveal { transition: clip-path 1s var(--ease-out), transform 1.3s var(--ease-out); clip-path: inset(-60px); }
.reveal.is-armed:not(.is-in) { clip-path: inset(-60px -60px 100% -60px); transform: scale(1.04); transition: none; }
.info-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--peach);
}
.info-list svg { width: 20px; height: 20px; fill: var(--orange-strong); }
.info-list strong { display: block; color: var(--ink); font-weight: 600; }
.info-list a { color: var(--body); text-decoration: none; }
.info-list a:hover { color: var(--orange-strong); }
.panel { padding: clamp(26px, 4vw, 44px); border-radius: 20px; }
.panel--orange { background: var(--orange-strong); color: #fff; }
.panel--orange h3 { color: #fff; margin-bottom: 20px; }

/* ---------- About page ---------- */
.callout { display: flex; gap: 18px; align-items: center; padding: 26px 28px; border-radius: 20px; background: var(--peach); }
.callout .ico { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-strong); }
.callout .ico svg { width: 24px; height: 24px; fill: #fff; }
.callout h3 { margin: 0 0 4px; font-size: 1.4rem; }
.callout p { margin: 0; }
.callout a { color: var(--ink); font-weight: 600; text-decoration: none; }
.callout a:hover { color: var(--orange-strong); }

.history__kicker { margin: 0 0 14px; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.375rem); font-weight: 500; text-align: center; line-height: 1.3; }
.history__inner { padding: clamp(60px, 8vw, 100px) 0; }
.history__title { color: #fff; margin-bottom: 18px; }
.history img { border-radius: 20px; width: 100%; max-width: 501px; aspect-ratio: 501 / 643; object-fit: cover; margin-inline: auto; }

.affiliations { padding: clamp(60px, 8vw, 120px) 0 0; text-align: center; }
.affiliations__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 70px); margin-top: 30px; }
.affiliations__row img { width: auto; max-width: 292px; max-height: 120px; object-fit: contain; }

.heading-accent { color: var(--orange-strong); }
.team-list { display: grid; gap: 22px; margin-top: 40px; }
.member { border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; }
.member__top { display: flex; gap: 20px; align-items: center; }
.member__top img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.member h3 { margin: 0; font-size: 1.5rem; }
.member p { margin: 0; }
.member details { margin-top: 14px; }

details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-strong);
  font-weight: 600;
  cursor: pointer;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details > .more { margin-top: 12px; }
details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete;
}
details[open]::details-content { block-size: auto; }
details:not([open])::details-content { transition-duration: .2s; }

/* ---------- Services page ---------- */
.service-row { padding: clamp(40px, 6vw, 80px) 0; }
.service-row h2 { margin-bottom: 18px; }
.service-row img { border-radius: 20px; width: 100%; object-fit: cover; }
.service-row:first-of-type { padding-top: clamp(60px, 8vw, 100px); }

.tax-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: clamp(60px, 8vw, 120px); }
.tax-card { text-align: center; padding: 10px 14px; }
.tax-card img { width: 112px; height: 110px; margin: 0 auto 18px; object-fit: contain; }
.tax-card h3 { color: var(--orange-strong); font-size: 1.9rem; margin-bottom: 10px; }
.tax-card p { margin: 0; }

.bc-intro { max-width: 38rem; margin: 0 auto 36px; text-align: center; }
.bc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bc-item { background: var(--orange-strong); color: #fff; border-radius: 20px; padding: 32px 30px; }
.bc-item h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.bc-item p { color: #fff; }
.bc-item details > summary { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.bc-item details > .more p:last-child { margin-bottom: 0; }
.bc-outro { margin-top: 40px; text-align: center; }

/* ---------- Contact page ---------- */
.contact-lead .eyebrow { margin-bottom: 8px; }
.contact-lead img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 0 clamp(50px, 7vw, 100px); }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.info-card .ico { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-strong); }
.info-card .ico svg { width: 26px; height: 26px; fill: #fff; }
.info-card h3 { margin-bottom: 6px; font-size: 1.5rem; }
.info-card p { margin: 0; }
.info-card a { color: var(--body); text-decoration: none; font-weight: 500; }
.info-card a:hover { color: var(--orange-strong); }
.map { padding: 0 0 clamp(50px, 7vw, 100px); }
.map iframe { display: block; width: 100%; height: 450px; border: 0; border-radius: 20px; }

/* ---------- Privacy ---------- */
.prose { padding: clamp(50px, 7vw, 90px) 0; max-width: 60ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 1.6em 0 .5em; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose p { margin-bottom: 1em; }

/* ---------- Thank you / 404 ---------- */
.message-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.message-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: clamp(50px, 6vw, 80px) 0 40px;
}
.site-footer p { margin: 0 0 .6em; }
.site-footer__name { color: #fff; font-size: 1.25rem; font-weight: 700; }
.site-footer__brand p:not(.site-footer__name) { max-width: 34ch; }
.site-footer__title { margin: 0 0 14px; color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .2s ease, background-size .35s var(--ease-out);
}
.site-footer a:hover { color: var(--orange); background-size: 100% 1px; }
.site-footer__base { padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.site-footer__base p { margin: 0; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: grid; margin-left: auto; }
  .site-header { --header-h: 80px; --header-h-stuck: 64px; }
  .site-header__inner { flex-wrap: wrap; }
  .brand img { width: 190px; }
  .header-cta { display: none; }
  .nav {
    order: 3;
    flex: 1 0 100%;
    margin: 0;
    display: none;
    padding-bottom: 14px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, display .15s allow-discrete;
  }
  .nav.is-open {
    display: block;
    opacity: 1;
    transform: none;
    transition: opacity .22s ease, transform .26s var(--ease-out), display .26s allow-discrete;
  }
  .nav.is-open .nav__list > li,
  .nav.is-open .nav-cta-mobile {
    transition: opacity .22s ease, transform .26s var(--ease-out);
    transition-delay: calc(var(--n, 0) * 30ms);
  }
  .nav__list > li:nth-child(2) { --n: 1; }
  .nav__list > li:nth-child(3) { --n: 2; }
  .nav__list > li:nth-child(4) { --n: 3; }
  .nav-cta-mobile { --n: 4; }
  @starting-style {
    .nav.is-open { opacity: 0; transform: translateY(-6px); }
    .nav.is-open .nav__list > li,
    .nav.is-open .nav-cta-mobile { opacity: 0; transform: translateY(-4px); }
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .nav .has-sub > a::after { display: none; }
  .nav .sub a { font-size: 14px; }
  .nav-cta-mobile { display: block; padding-top: 14px; }
  .nav .nav-cta-mobile .btn { display: inline-flex; padding: 14px 24px; border-bottom: 0; }

  .quick-quote__grid,
  .split,
  .services-block,
  .contact-block__grid { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .form--row { grid-template-columns: 1fr; }
  .team-grid,
  .testimonials,
  .tax-cards,
  .info-cards { grid-template-columns: 1fr; }
  .bc-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .about-media__inset { right: 0; width: 46%; }
}

@media (min-width: 1025px) {
  .nav-cta-mobile { display: none; }
  /* About: the call-us callout rides alongside the long objectives column */
  .split--top > .callout { position: sticky; top: 130px; }
}

@media (max-width: 700px) {
  .hero { background-image: var(--hero-img-sm, var(--hero-img, none)); }
  .cta-band { background-image: var(--cta-img-sm, var(--cta-img, none)); }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .member__top { align-items: flex-start; }
  .callout { flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Page transitions ---------- */
/* Same-origin page loads crossfade; the header carries across as one piece. Unsupported browsers just load. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 120ms ease-out both vt-fade-out; }
::view-transition-new(root) { animation: 240ms var(--ease-out) both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
::view-transition-group(page-title) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
::view-transition-old(page-title),
::view-transition-new(page-title) { height: 100%; width: auto; object-fit: contain; }

/* Reduced motion: no movement, scaling or sliding. Fades and colour changes stay so state is still legible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transform: none; }
  .nav .sub, .to-top { transform: none; }
  .site-header, .site-header__inner, .brand img { transition: box-shadow .25s ease; }
  .nav, .nav.is-open { transition-property: opacity, display; }
  .nav.is-open .nav__list > li,
  .nav.is-open .nav-cta-mobile { transition-property: opacity; }
  details > summary::after { transition: none; }
  details::details-content { transition: none; }
  ::view-transition-group(*) { animation: none; }
  .btn, .site-footer a, .nav__list > li > a { transition: none; }
  .btn:hover svg, .team-card:hover img { transform: none; }
}

/* ---------- Google preferred source badge (plain link, no Google script) ---------- */
.site-footer a.pref-source {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.site-footer a.pref-source:hover { color: var(--ink); background: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.pref-source__g { width: 20px; height: 20px; flex: none; }
.pref-source--light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--ease-out);
}
.pref-source--light:hover { border-color: var(--ink); transform: translateY(-2px); }
.pref-source-cta { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 14px; }
.pref-source-cta p { margin: 0; max-width: 46ch; }
@media (prefers-reduced-motion: reduce) {
  .site-footer a.pref-source, .pref-source--light { transition: none; }
  .site-footer a.pref-source:hover, .pref-source--light:hover { transform: none; }
}
/* Badge ships hidden until Google lists accumin.co.za as a source; delete the `hidden` attributes to switch it on. */
.site-footer a.pref-source[hidden], .pref-source-cta[hidden] { display: none; }
