/* Adams Accountants: one-page site */

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
/* Barlow Condensed ExtraBold (OFL), capitals, digits and punctuation only: the poster headline */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-800-caps.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F7F5EF;
  --paper-2: #EFECE2;
  --card: #FBFAF6;
  --ink: #141A33;
  --navy: #1B2547;
  --navy-2: #222E58;
  --navy-3: #141C38;
  --green: #1E6B47;
  --green-ink: #17583A;
  --green-bright: #2E8A5E;
  --mint: #E3EEE7;
  --mint-ink: #8FD1AE;
  --forest: #1E6B47;
  --navy-band: #1B2547;
  --sky: #E8EDF5;
  --slate: #5C6378;
  --danger: #B42318;
  --mist: #C9D2E3;
  --line: #DDD8CB;
  --line-navy: rgba(201, 210, 227, 0.16);
  --rule: rgba(30, 107, 71, 0.08);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --section: clamp(72px, 10vw, 128px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 960px) {
  :root { --header-h: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Only breaks a word that can't fit its line at all (very narrow screens, large text settings) */
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

/* --focus re-points the ring on dark grounds, where the green falls under 3:1 */
:focus-visible {
  outline: 2px solid var(--focus, var(--green));
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip {
  /* -200px rather than -60px: with large browser text the link is taller than 60px and peeked in */
  position: absolute; left: var(--gutter); top: -200px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  /* Landscape phones with a notch: keep content clear of it (env() is 0 everywhere else) */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; stroke-width: 1.4; }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--navy);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--green);
  letter-spacing: -0.01em;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--navy);
  text-wrap: balance;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
}
/* The logo's roof, as a small section mark */
.roof {
  width: 18px; height: 9px; flex: none;
  background: var(--green);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.eyebrow-light { color: var(--mist); }
.eyebrow-light .roof { background: var(--mint-ink); }

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 34em;
  margin-top: 24px;
}
.body-muted { color: var(--slate); max-width: 32em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-ink); }
.btn-line { color: var(--navy); border-color: rgba(27, 37, 71, 0.35); background: transparent; }
.btn-line:hover { border-color: var(--navy); background: rgba(27, 37, 71, 0.04); }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--navy-2); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
/* Phones with large text settings: let a long label wrap instead of pushing past the screen edge */
@media (max-width: 639px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 26, 51, 0.35);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: 108px; height: auto; }
@media (min-width: 960px) {
  .brand img { width: 128px; }
}

.nav { display: none; gap: 28px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 0.9375rem; font-weight: 500; color: var(--navy);
  text-decoration: none; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
/* em breakpoints match the old px ones at the default 16px text size, and hand over to the
   menu button sooner when someone has turned their browser's text size up */
@media (min-width: 75em) {
  .nav { display: flex; }
}
/* Touch screens wide enough for the full nav (iPad Pro landscape): 44px tall links */
@media (min-width: 75em) and (pointer: coarse) {
  .nav a { padding: 10px 0; }
}

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
@media (min-width: 75em) {
  .header-actions { margin-left: 12px; }
}
.header-call { display: none; }
@media (min-width: 45em) {
  .header-call { display: inline-flex; }
}

/* Menu button and drop-down panel, below 75em. Needs the script, so it stays hidden without it */
.menu-toggle { display: none; }
@media (max-width: 74.99em) {
  .js .menu-toggle {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 1.5px solid rgba(27, 37, 71, 0.35); border-radius: var(--radius);
    background: transparent; color: var(--navy);
    cursor: pointer;
  }
  .menu-bars { display: grid; gap: 4px; width: 18px; }
  .menu-bars i {
    display: block; height: 2px; border-radius: 1px; background: currentColor;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) 16px max(var(--gutter), env(safe-area-inset-left));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(20, 26, 51, 0.45);
  }
  .nav.is-open a {
    display: flex; align-items: center;
    min-height: 52px; padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav.is-open a::after { display: none; }
  .nav.is-open a.is-active { color: var(--green); font-weight: 600; }
}
/* Galaxy Fold closed and other sub-360px screens: the logo, menu and live status can't share
   the bar, so the status shows only in the Visit section there */
@media (max-width: 359px) {
  .header-inner { gap: 12px; }
  .brand img { width: 96px; }
  .site-header .status { display: none; }
}

/* Live open/closed status */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 7px 12px 7px 10px;
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1;
  background: var(--mint); color: var(--green-ink);
  white-space: nowrap;
}
.status[hidden] { display: none; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.status[data-state="open"] .status-dot { animation: pulse 2.4s var(--ease) infinite; }
.status[data-state="lunch"] { background: #F6EBD3; color: #7A5410; }
.status[data-state="closed"] { background: var(--paper-2); color: var(--slate); }
@media (max-width: 479px) {
  .site-header .status-detail { display: none; }
}
.status-light { margin-top: 20px; }
.status-light[data-state="closed"] { background: rgba(201, 210, 227, 0.12); color: var(--mist); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 107, 71, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(30, 107, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 107, 71, 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}
/* Faint analysis-pad columns, fading out towards the bottom */
.ledger {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--rule) 0),
    linear-gradient(90deg, transparent calc(100% - 1px), var(--rule) 0);
  background-size: 96px 100%, 96px 100%;
  background-position: center top, calc(50% + 4px) top;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 479px) {
  .cta-row .btn { flex: 1 1 100%; }
}

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--slate);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--green); width: 18px; height: 18px; stroke-width: 2; }

/* Photo inside the logo's house shape */
.hero-figure {
  position: relative;
  container-type: inline-size;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .hero-figure { max-width: 460px; margin: 0 0 0 auto; }
}
.house {
  --pitch: 22%;
  aspect-ratio: 3 / 2;
  clip-path: polygon(50% 0, 100% var(--pitch), 100% 100%, 0 100%, 0 var(--pitch));
  background: var(--paper-2);
}
@supports (width: 1cqw) {
  .house { --pitch: 26cqw; }
}
@media (min-width: 960px) {
  .house { aspect-ratio: 4 / 5; }
}
.house img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.seal {
  position: absolute;
  left: -6px; bottom: -34px;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -20px rgba(20, 26, 51, 0.6);
}
@media (min-width: 960px) {
  .seal { left: -48px; bottom: 56px; width: 132px; height: 132px; }
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text {
  fill: var(--mint-ink);
  font: 600 8.6px var(--sans);
  letter-spacing: 0.08em;
}
.seal-spin { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
.seal-num {
  grid-area: 1 / 1;
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  transform: translateY(-6px);
  font-variant-numeric: lining-nums;
}
.seal-label {
  grid-area: 1 / 1;
  transform: translateY(22px);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Landscape phones (about 360-430px tall): a slimmer bar, and the hero's copy and photo side by
   side so the call buttons are on the first screen. The width cap keeps desktop windows out */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  :root { --header-h: 60px; }
  .brand img { width: 92px; }
  .header-call { display: inline-flex; }
  .hero { padding: 12px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; }
  .display { font-size: clamp(1.75rem, 0.75rem + 3.4vw, 2.5rem); }
  .lede { margin-top: 10px; font-size: 1rem; line-height: 1.45; }
  .eyebrow { margin-bottom: 8px; }
  .cta-row { margin-top: 16px; }
  .trust { margin-top: 20px; padding-top: 16px; font-size: 0.875rem; }
  .hero-figure { max-width: none; }
  .house { aspect-ratio: 4 / 5; }
  .seal { width: 92px; height: 92px; left: -24px; bottom: 24px; }
  .seal-num { font-size: 2rem; }
  .seal-label { transform: translateY(17px); font-size: 0.625rem; }
}

/* ---------- Small business poster ---------- */
/* An ad-style banner in gold on deep navy, set over the real office desk. It reflows rather than
   scaling down like a picture, so every word stays readable on a phone. The pinned-corner desktop
   layout starts at 1200px: below that the forms run into the top strip and the eight sector
   circles overlap. */

.promo {
  padding: 0 0 var(--section);
  --night: #0D1330;
  --gold-hi: #FFF2BF;
  --gold: #F2C14E;
  --gold-mid: #D49B2C;
  --gold-lo: #8F6113;
  --gold-line: linear-gradient(135deg, #FFF0B0 0%, #E3AE3E 28%, #9A6A16 52%, #F4CB62 74%, #A87318 100%);
  --cut: 22px;
}
.chamfer {
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)
  );
}

.promo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px 16px 24px;
  background: var(--night);
  color: #fff;
  box-shadow: 0 40px 80px -48px rgba(13, 19, 48, 0.9);
}
/* The office desk, blurred and darkened, as the backdrop */
.promo-card::before {
  content: ""; position: absolute; inset: -16px; z-index: -2;
  /* Blurred and darkened, so a small file is plenty below 960px */
  background: url("../assets/img/office-desk-480.webp") center 40% / cover no-repeat;
  filter: blur(5px) saturate(0.8) brightness(0.55);
}
.promo-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 42% at 50% 52%, rgba(242, 193, 78, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(13, 19, 48, 0.55) 0%, rgba(13, 19, 48, 0.78) 55%, rgba(13, 19, 48, 0.94) 100%);
}
@media (min-width: 960px) {
  .promo-card::before { background-image: url("../assets/img/office-desk-1125.webp"); }
}
@media (min-width: 720px) {
  .promo-card { padding: 30px 32px 32px; border-radius: 22px; }
}

/* Top strip of four promises */
.promo-strip {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px;
}
.promo-strip li {
  display: flex; align-items: center; gap: 10px;
  font: 700 0.6875rem/1.2 var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
}
.strip-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--gold-mid);
  background: radial-gradient(circle at 35% 30%, rgba(242, 193, 78, 0.24), rgba(13, 19, 48, 0.6));
  color: var(--gold);
}
.strip-icon .icon { width: 19px; height: 19px; stroke-width: 1.8; }
@media (min-width: 720px) {
  .promo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
  .promo-strip li { font-size: 0.75rem; }
}
@media (min-width: 1200px) {
  .promo-strip { justify-content: flex-end; }
}

/* Stage: paper forms fanned behind the badge. flow-root keeps the badge's top margin inside it,
   so the forms (positioned from the stage's top) sit behind the badge's upper half */
.promo-stage { position: relative; display: flow-root; }
.promo-docs { display: none; }
@media (min-width: 720px) {
  .promo-docs { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
}
.doc {
  position: absolute;
  width: clamp(220px, 27vw, 300px);
  padding: 14px 16px 16px;
  border-radius: 6px;
  background: #FBFAF6;
  color: var(--navy);
  font-size: 0.6875rem; line-height: 1.3;
  box-shadow: 0 34px 50px -22px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.doc p { margin: 0; }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.625rem;
}
.doc-head img { width: 52px; }
.doc-title { font-family: var(--serif); font-size: 0.9375rem; margin-bottom: 8px !important; }
.doc-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 0; border-bottom: 1px solid #E4E0D4;
  font-variant-numeric: tabular-nums;
}
.doc-row span:last-child { font-weight: 600; }
.doc-total { margin-top: 6px !important; padding: 6px 8px; border: 0; border-radius: 3px; background: var(--navy); color: #fff; }
.doc-lines { display: grid; gap: 5px; margin-top: 10px !important; }
.doc-lines i { display: block; height: 4px; border-radius: 2px; background: #E4E0D4; }
.doc-lines i:nth-child(2) { width: 82%; }
.doc-lines i:nth-child(3) { width: 64%; }
.doc-stamp {
  position: absolute; right: 14px; top: 40px;
  padding: 4px 8px;
  border: 2px solid var(--green); border-radius: 4px;
  color: var(--green);
  font: 800 0.8125rem/1 "Barlow Condensed", var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-10deg);
  opacity: 0.85;
}
.doc-tax { left: 1%; top: 18px; transform: rotate(-7deg); }
.doc-vat { right: 1%; top: 44px; transform: rotate(5deg); }
@media (min-width: 1200px) {
  .doc-tax { left: 4%; top: -34px; }
  .doc-vat { right: 5%; top: 14px; }
}

/* The badge */
.promo-banner {
  position: relative; z-index: 2;
  max-width: 680px;
  margin: 46px auto 0;
}
@media (min-width: 720px) {
  .promo-banner { margin-top: 150px; }
}
@media (min-width: 1200px) {
  .promo-banner { margin-top: 128px; }
}
.banner-frame {
  padding: 3px;
  background: var(--gold-line);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.6));
}
.banner-body {
  --cut: 20px;
  position: relative;
  padding: 34px 14px 42px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #18203F, #0B1029);
}
/* Fine inner gold line */
.banner-body::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-radius: 2px;
}
.banner-title { margin: 0; line-height: 1; }
.banner-small {
  display: block;
  font: 700 clamp(1.15rem, 0.7rem + 2.6vw, 2.35rem)/1.05 var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.banner-big {
  display: block;
  margin-top: 4px;
  font: 800 clamp(2.6rem, 1rem + 8.6vw, 6.6rem)/0.92 "Barlow Condensed", "Arial Narrow", var(--sans);
  letter-spacing: 0.01em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 38%, var(--gold-mid) 56%, #F6D27A 74%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4A3208) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}
.banner-sub {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 14px 0 0;
  font: 700 clamp(0.625rem, 0.5rem + 0.5vw, 0.875rem)/1.3 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #E9EDF5;
}
.banner-sub::before, .banner-sub::after {
  content: ""; flex: 0 1 36px; height: 1.5px; background: var(--gold-mid);
}

/* Icon tab on the top edge */
.banner-tab {
  --cut: 12px;
  position: absolute; z-index: 1; left: 50%; top: 0;
  transform: translate(-50%, -58%);
  padding: 2px;
  background: var(--gold-line);
}
.banner-tab-inner {
  --cut: 11px;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px;
  background: linear-gradient(180deg, #1C2546, #0D1330);
  color: var(--gold);
}
.banner-tab .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.banner-tab i { width: 1px; height: 20px; background: rgba(242, 193, 78, 0.45); }
@media (min-width: 720px) {
  .banner-tab-inner { gap: 16px; padding: 11px 24px; }
  .banner-tab .icon { width: 30px; height: 30px; }
}

/* Gold ribbon across the badge's lower edge */
.banner-ribbon {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px;
  width: min(100%, 560px);
  margin: -24px auto 0;
  padding: 8px 26px;
  background: linear-gradient(180deg, #FFE69A 0%, var(--gold) 45%, var(--gold-mid) 100%);
  color: #2A1C04;
  font: 800 clamp(0.875rem, 0.7rem + 0.8vw, 1.3rem)/1.1 "Barlow Condensed", var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
}
.banner-ribbon .icon { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.banner-ribbon span { color: #7A520F; }

/* Round medals */
.medal {
  position: absolute; z-index: 3;
  display: grid; place-content: center; justify-items: center;
  width: 104px; height: 104px; margin: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    radial-gradient(circle at 35% 28%, #26305A, #0B1029 72%) padding-box,
    var(--gold-line) border-box;
  box-shadow: 0 0 0 2px rgba(13, 19, 48, 0.9), 0 18px 30px -12px rgba(0, 0, 0, 0.8);
  text-align: center; text-decoration: none; color: #fff;
}
.medal::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(242, 193, 78, 0.45);
}
.medal-num {
  font: 800 2.6rem/0.85 "Barlow Condensed", var(--sans);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.medal-label, .medal-word {
  font: 800 0.9375rem/1 "Barlow Condensed", var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
}
.medal-word { font-size: 1.05rem; letter-spacing: 0.04em; }
.medal-small {
  margin-top: 3px;
  font: 700 0.5625rem/1.2 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #C9D2E3;
}
.medal-wa .medal-small { margin: 0 0 3px; }
.medal-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-top: 5px;
  border-radius: 8px;
  background: #25A562; color: #fff;
}
.medal-icon .icon { width: 18px; height: 18px; stroke-width: 2; }
.medal-wa { transition: transform .3s var(--ease); }
@media (hover: hover) {
  .medal-wa:hover { transform: rotate(-4deg) scale(1.04); }
}
/* Phones: the medals sit side by side under the ribbon. Wider screens: pinned to the badge's corners */
.promo-banner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.banner-frame { flex: 1 1 100%; }
.medal { position: relative; margin-top: 22px; }
.medal-years { transform: rotate(-8deg); }
@media (min-width: 720px) {
  .promo-banner { display: block; }
  .medal { position: absolute; width: 132px; height: 132px; margin-top: 0; }
  .medal-num { font-size: 3.4rem; }
  .medal-label { font-size: 1.1rem; }
  .medal-word { font-size: 1.3rem; }
  .medal-small { font-size: 0.625rem; }
  .medal-years { left: -22px; bottom: -38px; }
  .medal-wa { right: -18px; bottom: -10px; }
}
@media (min-width: 1200px) {
  .medal-years { left: -96px; }
  .medal-wa { right: -92px; }
}

/* Foot: checklist, sector icons, contact pills */
.promo-foot {
  position: relative; z-index: 2;
  display: grid; gap: 26px;
  margin-top: 34px;
}
@media (min-width: 720px) {
  .promo-foot { grid-template-columns: 1fr 1fr; grid-template-areas: "sectors sectors" "checks cta"; align-items: end; margin-top: 64px; }
  .promo-sectors { grid-area: sectors; }
  .promo-checks { grid-area: checks; }
  .promo-cta { grid-area: cta; }
}
@media (min-width: 1200px) {
  .promo-foot { grid-template-columns: 250px minmax(0, 1fr) 250px; grid-template-areas: "checks sectors cta"; gap: 32px; margin-top: 72px; }
}

.promo-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.promo-checks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
  color: #E9EDF5;
}
.promo-checks li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid));
}
.promo-checks li::after {
  content: ""; position: absolute; left: 5px; top: 4px;
  width: 4px; height: 8px;
  border: solid #2A1C04; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (min-width: 1200px) {
  .promo-checks { grid-template-columns: 1fr; }
}

.promo-sectors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px;
}
.promo-sectors li {
  display: grid; justify-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2; text-align: center;
  color: #E9EDF5;
}
.sector-dot {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--c);
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 52%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--gold-mid), 0 10px 18px -8px rgba(0, 0, 0, 0.8);
  color: #fff;
}
.sector-dot .icon { width: 25px; height: 25px; stroke-width: 1.7; }
@media (min-width: 720px) {
  .promo-sectors { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .sector-dot { width: 56px; height: 56px; }
}

.promo-cta { display: grid; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(242, 193, 78, 0.55);
  background: linear-gradient(180deg, #1F2A55, #121A3A);
  color: #fff; text-decoration: none;
  font-size: 0.9375rem; line-height: 1.2;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.pill .icon { color: var(--gold); width: 20px; height: 20px; }
.pill strong { font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
@media (hover: hover) {
  .pill:hover { border-color: var(--gold); transform: translateY(-1px); }
}
.promo { --focus: var(--gold); }

/* Narrow phones. Below 400px the headline steps down with the screen so "ACCOUNTANTS" stays
   inside its frame; below 360px (Galaxy Fold closed, iPhone SE 1st gen) the strip, checklist and
   sectors drop to layouts whose words fit */
@media (max-width: 399px) {
  .banner-big { font-size: clamp(1.75rem, 10.4vw, 2.6rem); }
  .banner-body { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 359px) {
  .promo-card { padding-left: 12px; padding-right: 12px; }
  .promo-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .promo-checks { grid-template-columns: minmax(0, 1fr); }
  .promo-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .promo-sectors li { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 10px; text-align: left; }
  .sector-dot { width: 40px; height: 40px; }
  .sector-dot .icon { width: 21px; height: 21px; }
  .medal { width: 96px; height: 96px; }
}

/* A brief gold glint on the headline once the card scrolls in */
.js .promo-card.is-in .banner-big { animation: sheen 2.6s var(--ease) .5s 1 both; }
@keyframes sheen {
  0% { filter: drop-shadow(0 2px 0 #4A3208) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)) brightness(1); }
  45% { filter: drop-shadow(0 2px 0 #4A3208) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)) brightness(1.25); }
  100% { filter: drop-shadow(0 2px 0 #4A3208) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)) brightness(1); }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
/* Blue rhythm down the page: soft blue tint, navy band, paper, repeated */
.section-mist {
  background: var(--sky);
  --line: #CDD5E3;
  --paper: #F5F7FB;
  --card: #F5F7FB;
}
/* Navy bands re-point the palette for a dark ground: headings and text go light, accents go mint */
.section-navy {
  position: relative;
  overflow: hidden;
  background: var(--navy-band);
  color: #E9EDF5;
  --navy: #F4F6FB;
  --ink: #E9EDF5;
  --slate: var(--mist);
  --line: rgba(201, 210, 227, 0.16);
  --green: var(--mint-ink);
  --green-ink: var(--mint-ink);
  --mint: rgba(143, 209, 174, 0.14);
  --card: rgba(255, 255, 255, 0.04);
}
/* The same faint analysis-pad columns as the hero, in light ink */
.section-navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(201, 210, 227, 0.06) 0);
  background-size: 96px 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}
.section-navy > .wrap { position: relative; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head-row { max-width: none; display: grid; gap: 20px; align-items: end; }
@media (min-width: 960px) {
  .section-head-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .section-head-row .body-muted { margin-bottom: 6px; }
}

/* Services: split layout with ledger rows */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .split-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.split-intro .body-muted { margin-top: 20px; }

.ledger-list { border-top: 1.5px solid var(--navy); }
.ledger-row {
  display: grid;
  grid-template-columns: 34px 32px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
  padding: 28px 4px 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.ledger-row:last-child { border-bottom: 1.5px solid var(--navy); }
.ledger-row .icon { color: var(--green); margin-top: 2px; }
.row-num {
  font-family: var(--serif); font-size: 1.125rem; color: var(--slate);
  font-variant-numeric: tabular-nums lining-nums;
  padding-top: 3px;
}
.ledger-row h3 {
  font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.2; color: var(--navy); letter-spacing: -0.01em;
}
.ledger-row p { margin: 8px 0 0; color: var(--slate); }
@media (min-width: 640px) {
  .ledger-row { grid-template-columns: 48px 36px minmax(0, 1fr); gap: 8px 24px; }
}
@media (hover: hover) {
  .ledger-row:hover { background: linear-gradient(90deg, rgba(227, 238, 231, 0.7), transparent 70%); }
}

/* Who we help */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sector {
  display: flex; align-items: center; gap: 14px;
  min-height: 84px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--navy);
  line-height: 1.3;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sector .icon {
  width: 26px; height: 26px; stroke-width: 1.5;
  color: var(--green);
  transition: transform .35s var(--ease);
}
@media (hover: hover) {
  .sector:hover { background: var(--mint); }
  .sector:hover .icon { transform: translateY(-2px); }
}
.sector-more { grid-column: 1 / -1; background: var(--navy); color: #fff; font-weight: 400; }
.sector-more .icon { color: var(--mint-ink); }
.sector-more a { color: var(--mint-ink); font-weight: 600; text-underline-offset: 3px; }
@media (hover: hover) {
  .sector-more:hover { background: var(--navy-2); }
}
.section-navy .sector-more { background: var(--forest); color: #fff; }
.section-navy .sector-more .icon,
.section-navy .sector-more a { color: #fff; }
@media (hover: hover) {
  .section-navy .sector-more:hover { background: #17583A; }
}

/* About */
.about-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; }
}
/* Owner photo standing inside the logo's house: the photo is exactly as wide as the house walls */
.portrait {
  position: relative;
  max-width: 440px; width: 100%;
  margin: 0 auto;
  aspect-ratio: 560 / 520;
}
.portrait-house {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--mint);
}
.portrait img {
  position: absolute; left: 17.5%; bottom: 0;
  width: 65%;
}
.portrait figcaption {
  position: absolute; left: 50%; bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(247, 245, 239, 0.94);
  font-size: 0.8125rem; font-weight: 600; color: var(--navy);
}
.about-copy .title { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { max-width: 34em; }

.facts {
  display: grid; grid-template-columns: 1fr;
  margin: 36px 0 0;
  border-top: 1.5px solid var(--navy);
}
@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 4px;
}
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; color: var(--navy); }

/* Office photos: the desk runs wide, Mr Baig stands tall, the two filing shots fill the corner */
.office { margin-top: clamp(80px, 10vw, 128px); }
.office-head { display: grid; gap: 12px; margin-bottom: 32px; }
@media (min-width: 960px) {
  .office-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; margin-bottom: 40px; }
}
.office-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.016em;
  color: var(--navy); text-wrap: balance;
}
.office-head .body-muted { margin: 0; }

.office-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "desk desk" "cabinets owner" "files owner";
}
@media (min-width: 640px) {
  .office-grid { gap: 16px; }
}
@media (min-width: 960px) {
  .office-grid {
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "desk desk owner" "cabinets files owner";
  }
}
.office-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.office-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.office-desk { grid-area: desk; aspect-ratio: 3 / 2; }
@media (min-width: 960px) {
  .office-desk { aspect-ratio: 16 / 10; }
}
.office-owner { grid-area: owner; aspect-ratio: auto; }
.office-cabinets { grid-area: cabinets; }
.office-files { grid-area: files; }
.office-photo figcaption {
  position: absolute; left: 8px; bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 9px; border-radius: 7px;
  background: rgba(247, 245, 239, 0.94);
  font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--navy);
}
@media (min-width: 640px) {
  .office-photo figcaption {
    left: 14px; bottom: 14px; max-width: calc(100% - 28px);
    padding: 7px 12px; border-radius: 8px;
    font-size: 0.8125rem;
  }
}
@media (hover: hover) {
  .office-photo:hover img { transform: scale(1.03); }
}

/* Key tax dates */
.dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0;
  border-top: 1.5px solid var(--navy);
}
.date {
  position: relative;
  padding: 24px 22px 28px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .date { padding: 28px 24px 32px; border-bottom: 0; border-left: 1px solid var(--line); }
  .date:first-child { border-left: 0; padding-left: 0; }
}
.date-when {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 10px;
  font-weight: 600; color: var(--navy);
}
.date-day {
  font-family: var(--serif); font-weight: 400;
  font-size: 3rem; line-height: 0.9; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  color: var(--navy);
}
.date-what { margin: 0; font-size: 1rem; color: var(--slate); line-height: 1.5; }
.date-tag {
  position: absolute; top: -13px; left: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}
.date.is-next .date-day { color: var(--green); }
.date.is-next::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 4px;
  background: var(--green);
}
.date.is-next { padding-top: 36px; }
@media (min-width: 640px) {
  .date.is-next { padding-top: 28px; }
  .date.is-next:first-child::before { right: 24px; }
  .date.is-next:not(:first-child)::before { left: 24px; right: 24px; }
  .date.is-next:not(:first-child) .date-tag { left: 24px; }
}

.dates-notes {
  display: grid; gap: 12px;
  margin-top: 40px;
}
@media (min-width: 960px) {
  .dates-notes { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.dates-notes p {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; color: var(--slate);
}
.dates-notes .icon { color: var(--green); margin-top: 2px; }
.dates-notes strong { color: var(--navy); font-weight: 600; }

/* Testimonials: one featured quote, then the rest as a ledger grid (1, 2 or 4 columns for 8 quotes) */
.testimonial { display: flex; flex-direction: column; gap: 22px; margin: 0; height: 100%; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote::before {
  content: "\201C";
  display: block; height: 0.42em; margin-bottom: 4px;
  font-family: var(--serif); font-size: 3.25rem; line-height: 0.9;
  color: var(--green);
}
.testimonial blockquote p {
  margin: 0;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.45;
  color: var(--navy); text-wrap: pretty;
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.monogram {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--green-ink);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
}
.t-name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.t-biz { display: block; font-size: 0.9375rem; line-height: 1.4; color: var(--slate); }

.testimonial-featured {
  height: auto;
  padding: clamp(32px, 4vw, 48px) 0 clamp(40px, 5vw, 56px);
  border-top: 1.5px solid var(--navy);
}
.testimonial-featured blockquote::before { font-size: 5rem; margin-bottom: 10px; }
.testimonial-featured blockquote p {
  max-width: 24em;
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); line-height: 1.2; letter-spacing: -0.014em;
}
.testimonial-featured .monogram { width: 52px; height: 52px; font-size: 0.9375rem; }

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 640px) {
  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .testimonials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.testimonials li {
  padding: 28px 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
@media (hover: hover) {
  .testimonials li:hover { background: var(--card); }
}

/* ---------- Contact form ---------- */

.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.contact-intro .body-muted { margin-top: 20px; }
.contact-points { display: grid; gap: 14px; margin-top: 32px; font-size: 1rem; color: var(--slate); }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; }
.contact-points .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--green); stroke-width: 1.8; }
.contact-points a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 28px 56px -40px rgba(20, 26, 51, 0.35);
}
.form { display: grid; gap: 22px; }
.form[hidden] { display: none; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; align-content: start; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend {
  padding: 0;
  font-size: 1rem; font-weight: 600; color: var(--navy);
}
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--slate); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid #D3CDBF;
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231B2547' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B5AE9E; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(30, 107, 71, 0.14);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); background-color: #FFF8F7; }
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }
.field-error {
  margin: 0;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.4;
  color: var(--danger);
}
.field-error[hidden] { display: none; }

.choice-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 6px 10px;
  border: 1.5px solid #D3CDBF; border-radius: var(--radius);
  background: var(--card);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: var(--navy); text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.choice .icon { width: 18px; height: 18px; }
.choice:hover span { border-color: #B5AE9E; }
.choice input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 459px) {
  .choice span { flex-direction: column; gap: 4px; min-height: 64px; font-size: 0.8125rem; }
}

/* Honeypot: off-screen, never shown to people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.form-submit { min-width: 210px; }
@media (max-width: 479px) {
  .form-submit { flex: 1 1 100%; }
}
.form-submit .icon { transition: transform .25s var(--ease); }
.form-submit:hover .icon { transform: translateX(3px); }
.form-submit[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.form-submit[aria-busy="true"] .icon { display: none; }
.form-submit[aria-busy="true"]::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.form-note { margin: 0; font-size: 0.875rem; color: var(--slate); }
.form-note a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }

.form-alert {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #F1C4BF; border-radius: var(--radius);
  background: #FEF3F2; color: #7A271A;
  font-size: 0.9375rem; line-height: 1.5;
}
.form-alert[hidden] { display: none; }
.form-alert a { color: inherit; font-weight: 700; text-underline-offset: 3px; }

.form-done {
  display: grid; justify-items: center; gap: 12px;
  padding: clamp(16px, 4vw, 40px) 8px;
  text-align: center;
}
.form-done[hidden] { display: none; }
.form-done-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 4px;
  border-radius: 50%;
  background: var(--mint); color: var(--green);
}
.form-done-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.form-done h3 {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15;
  color: var(--navy); letter-spacing: -0.01em;
}
.form-done h3:focus { outline: none; }
.form-done p { max-width: 30em; margin: 0 0 8px; color: var(--slate); }

/* ---------- Visit band ---------- */

.visit {
  background: var(--navy);
  color: #fff;
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}
.visit::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgba(201, 210, 227, 0.06) 0);
  background-size: 96px 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.visit .wrap { position: relative; }
.visit, .site-footer, .quickbar { --focus: var(--mint-ink); }
.visit .title { color: #fff; }
.visit-head { margin-bottom: clamp(40px, 5vw, 64px); }
.visit-grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1fr 1fr 1.35fr; gap: 20px; }
}
.visit-card {
  padding: 28px;
  border: 1px solid var(--line-navy);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.visit-card h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mist);
}
.visit-card h3 .icon { color: var(--mint-ink); }
.visit-card address {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; margin-bottom: 28px;
}
@media (max-width: 359px) {
  .visit-card { padding: 22px 18px; }
  .status-light { white-space: normal; line-height: 1.3; }
}

.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line-navy); vertical-align: top; }
.hours th { text-align: left; font-weight: 400; color: var(--mist); padding-right: 12px; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; }
.hours tr:first-child th, .hours tr:first-child td { padding-top: 0; }

.contact-list li {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-navy);
}
.contact-list li:first-child a { padding-top: 0; }
.contact-list li:first-child .copy { margin-top: -12px; }
.contact-list a {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0;
  text-decoration: none;
}
.contact-label { font-size: 0.875rem; color: var(--mist); }
.contact-value {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.2;
  transition: color .2s var(--ease);
}
.contact-email { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.3rem); overflow-wrap: anywhere; }
.contact-list a:hover .contact-value { color: var(--mint-ink); }

.copy {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-navy); border-radius: 10px;
  background: transparent; color: var(--mist);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.copy:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.copy .icon { width: 18px; height: 18px; }
@media (hover: none) {
  .copy { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-3);
  color: var(--mist);
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: auto 1fr auto; gap: 56px; }
}
.footer-logo { width: 150px; }
.footer-info p, .footer-meta p { margin: 0 0 6px; }
.footer-name { color: #fff; font-weight: 600; }
.footer-meta { max-width: 420px; }
@media (min-width: 960px) {
  .footer-meta { text-align: right; }
}
.credit { font-size: 0.8125rem; opacity: 0.8; }
.privacy { margin-bottom: 12px; }
.privacy summary {
  cursor: pointer; color: #fff; font-weight: 600;
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::after { content: "+"; font-weight: 400; color: var(--mint-ink); }
.privacy[open] summary::after { content: "\2212"; }
.privacy p { text-align: left; font-size: 0.875rem; line-height: 1.6; margin: 4px 0 12px; }

/* ---------- Mobile quick bar ---------- */

.quickbar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px;
  padding: 6px;
  background: var(--navy);
  border: 1px solid rgba(201, 210, 227, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 40px -12px rgba(20, 26, 51, 0.55);
  transform: translateY(calc(100% + 24px));
  transition: transform .45s var(--ease);
}
.quickbar.is-visible { transform: none; }
.qb {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 56px; border-radius: 11px;
  color: #fff; text-decoration: none;
  font-size: 0.8125rem; font-weight: 600;
}
.qb .icon { width: 22px; height: 22px; }
.qb-call { background: var(--green); }
@media (min-width: 720px) {
  .quickbar { display: none; }
}
@media (max-width: 719px) {
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* Copy confirmation */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 70;
  margin: 0; padding: 12px 18px; border-radius: 10px;
  background: var(--green); color: #fff; font-size: 0.9375rem; font-weight: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Rendering cost and very large screens ---------- */

/* Phones and tablets: skip layout and paint for sections until they near the screen. Halves
   layout time on a mid-range phone (first paint about 2.4s down to 1.6s on throttled tests).
   Desktop keeps the normal path, which also leaves the sticky intros at 960px+ untouched */
@media (max-width: 959px) {
  main > section:not(.hero):not(.promo), .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
  }
}

/* 2560px-wide and larger monitors at 100% scaling: draw the whole page larger, as if zoomed, so it
   doesn't sit as a small strip in the middle. 2560x1440 then lays out like 1920x1080. The height
   condition leaves short 21:9 / 32:9 screens at a size that still fits the hero */
@media (min-width: 2400px) and (min-height: 1200px) {
  html { zoom: 1.3333; }
}

/* ---------- Motion ---------- */

.js .load {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}
.js .hero-figure.load { transform: translateY(24px) scale(0.985); animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .load, .js .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .seal-spin, .status-dot { animation: none !important; }
  .quickbar { transition: none; }
  .office-photo img { transition: none; transform: none !important; }
  .banner-big { animation: none !important; }
  .medal-wa, .pill { transition: none; }
  .menu-bars i { transition: none; }
}

@media print {
  .site-header, .quickbar, .seal, .copy, .toast, .menu-toggle { display: none !important; }
  .visit, .site-footer { background: none; color: #000; }
  .visit .title, .visit-card address { color: #000; }
}
