/* Completed Tax — design system.
   Ported from the owner's homepage mockup (tokens, type scale, radii, motifs),
   extended for inner pages, forms and the accessible mobile nav. */

/* ---------- Font ---------- */
/* The ?v= hash must match the assetUrl filter's hash of the woff2, so the
   <link rel="preload"> in base.njk is reused (tests/site/chrome.test.ts checks this). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2?v=3100e775") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --navy: #23245f;
  --navy-deep: #17184b;
  --ink: #171829;
  --muted: #64677c;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --line: #e7e8f0;
  --magenta: #d4148e;
  --purple: #7c2d91;
  --blue: #2387c6;
  --cyan: #19aaa2;
  --orange: #f36b24;
  --gold: #f7a719;
  --lime: #a8c61e;
  --on-navy: #c7c8e4;
  --error: #b3261e;
  --shadow: 0 22px 60px rgba(35, 36, 95, .13);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); max-width: 760px; }
h2 { font-size: clamp(2.15rem, 4.2vw, 4rem); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }

/* ---------- Accessibility helpers ---------- */
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
/* Magenta on navy is under 3:1, so dark surfaces use a white ring. */
.section--navy :focus-visible,
.site-footer :focus-visible,
.cta-box :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.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-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 105px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.section-head p { max-width: 540px; color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: var(--on-navy); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--magenta), var(--orange));
}
.section--navy .eyebrow { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 14px 28px rgba(35, 36, 95, .23); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--light { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--light:hover { border-color: #bfc2d2; box-shadow: 0 10px 24px rgba(35, 36, 95, .09); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 232, 240, .8);
}
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: block; flex-shrink: 0; }
.logo { width: min(310px, 43vw); height: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 28px; list-style: none; font-weight: 700; color: #45485e; }
.navlinks a:not(.btn):hover, .navlinks a[aria-current="page"] { color: var(--magenta); }
.header-phone { color: var(--navy); font-weight: 800; white-space: nowrap; }
.menu {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.menu[aria-expanded="true"] { background: var(--soft); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background: linear-gradient(130deg, #fff 0%, #fff 58%, #f3f4fa 58%, #fbfbfd 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; transform: rotate(45deg); border-radius: 28px; opacity: .9; }
.hero::before { width: 220px; height: 220px; background: linear-gradient(135deg, var(--magenta), var(--purple)); right: -110px; top: 65px; }
.hero::after { width: 140px; height: 140px; background: linear-gradient(135deg, var(--cyan), var(--blue)); left: -85px; bottom: -55px; }
/* Hero content always paints above the decorative diamonds. */
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 72px; }
.hero h1 span { color: var(--magenta); }
.hero-copy { font-size: 1.16rem; color: var(--muted); max-width: 650px; margin: 26px 0 33px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 25px; flex-wrap: wrap; margin-top: 35px; color: #51546c; font-size: .92rem; font-weight: 700; }
.trust span::before {
  content: "✓";
  content: "✓" / ""; /* decorative: no alt text for assistive tech */
  color: var(--cyan);
  font-weight: 900;
  margin-right: 8px;
}

/* CSS-only dashboard illustration */
.hero-art { position: relative; min-height: 500px; }
.dash {
  position: absolute;
  inset: 40px 0 0 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px;
  transform: rotate(1.5deg);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d9e2; }
.dots i:nth-child(1) { background: var(--magenta); }
.dots i:nth-child(2) { background: var(--gold); }
.dots i:nth-child(3) { background: var(--cyan); }
.pill { font-size: .72rem; font-weight: 800; padding: 7px 10px; border-radius: 99px; background: #edfaf7; color: #087365; }
.chart {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(to top, rgba(35, 135, 198, .11), transparent),
    repeating-linear-gradient(to bottom, transparent 0, transparent 48px, #eff0f5 49px);
}
.bars { position: absolute; inset: 25px 24px 20px; display: flex; align-items: flex-end; gap: 12px; }
.bars b {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  min-height: 20%;
  animation: rise 1.1s ease both;
}
.bars b:nth-child(1) { height: 28%; }
.bars b:nth-child(2) { height: 38%; }
.bars b:nth-child(3) { height: 51%; background: linear-gradient(var(--orange), var(--gold)); }
.bars b:nth-child(4) { height: 47%; }
.bars b:nth-child(5) { height: 67%; background: linear-gradient(var(--magenta), var(--purple)); }
.bars b:nth-child(6) { height: 82%; background: linear-gradient(var(--cyan), var(--blue)); }
@keyframes rise { from { height: 5%; opacity: 0; } }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.metric small { display: block; color: var(--muted); font-weight: 700; }
.metric strong { font-size: 1.35rem; color: var(--navy); }
.float-card {
  position: absolute;
  right: -20px;
  bottom: 26px;
  width: 220px;
  padding: 20px 23px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 20px 40px rgba(35, 36, 95, .28);
  transform: rotate(-2deg);
}
.float-card strong { display: block; font-size: 1.25rem; }
.float-card span { font-size: .86rem; color: #d9daf1; }

/* ---------- Service cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .25s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px rgba(35, 36, 95, .1); border-color: transparent; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .95rem; }
.card a { display: inline-flex; gap: .4em; margin-top: auto; padding-top: 23px; font-weight: 800; color: var(--navy); }
.card a:hover { color: var(--magenta); }
.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 15px;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}
.icon--navy { background: var(--navy); }
.icon--magenta { background: var(--magenta); }
.icon--orange { background: var(--orange); }
.icon--blue { background: var(--blue); }
.icon--cyan { background: var(--cyan); }
.icon--purple { background: var(--purple); }

/* ---------- Why us: mosaic + checklist ---------- */
.growth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
.mosaic { position: relative; min-height: 480px; overflow: hidden; border-radius: 30px; background: var(--navy); box-shadow: var(--shadow); }
.tile { position: absolute; width: 150px; height: 150px; transform: rotate(45deg); border-radius: 18px; }
.t1 { background: var(--magenta); left: -40px; top: -38px; }
.t2 { background: var(--blue); left: 115px; top: 50px; }
.t3 { background: var(--orange); right: 24px; top: -55px; }
.t4 { background: var(--gold); right: 73px; bottom: 10px; }
.t5 { background: var(--cyan); left: 42px; bottom: -45px; }
.mosaic-copy { position: absolute; inset: auto 40px 46px 40px; z-index: 2; color: #fff; }
.mosaic-copy small { color: var(--on-navy); font-weight: 800; letter-spacing: .11em; }
.mosaic-copy strong { display: block; max-width: 390px; margin-top: 10px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; }
.checklist { display: grid; gap: 20px; margin: 30px 0 34px; }
.check { display: grid; grid-template-columns: 42px 1fr; gap: 15px; }
.check i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #effaf8;
  color: #088271;
  font-style: normal;
  font-weight: 900;
}
.check strong { display: block; margin-bottom: 3px; }
.check span { color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 30px; border-top: 1px solid rgba(255, 255, 255, .19); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.step h3 { font-size: 1.45rem; margin-bottom: 12px; }
.step p { color: var(--on-navy); }

/* ---------- Testimonials ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.testimonial::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  height: 34px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--magenta);
}
.testimonial blockquote { margin: 0; font-size: 1.05rem; }
.testimonial blockquote p + p { margin-top: .8em; }
.testimonial figcaption { margin-top: auto; font-weight: 800; color: var(--navy); }
.testimonial figcaption span { display: block; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { padding: 90px 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 64px;
  border-radius: 30px;
  background: linear-gradient(115deg, var(--magenta), var(--purple) 52%, var(--navy));
  color: #fff;
}
.cta-box::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -92px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(255, 255, 255, .12);
  border-radius: 25px;
  transform: rotate(45deg);
}
.cta-box h2 { max-width: 680px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
.cta-box p { color: #fff; margin-top: 14px; max-width: 600px; }
.cta-box .btn { position: relative; z-index: 2; white-space: nowrap; }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(130deg, #fff 0%, #fff 58%, #f3f4fa 58%, #fbfbfd 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: 40px;
  width: 180px;
  height: 180px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  opacity: .9;
  transform: rotate(45deg);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-top: 14px; }
.page-hero p { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 1.12rem; }
.page-hero .actions { margin-top: 30px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.breadcrumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 8px; color: #b5b7c8; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--magenta); }

.prose { max-width: 72ch; font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--navy); }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; letter-spacing: -.02em; color: var(--navy); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--magenta); font-weight: 800; }
.prose a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.prose a:hover { color: var(--magenta); }
.prose strong { color: var(--navy); }

/* FAQ disclosure (<details>/<summary>) */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq details[open] { box-shadow: 0 14px 30px rgba(35, 36, 95, .07); }
.faq summary {
  position: relative;
  padding: 20px 36px 20px 0;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 3px solid var(--magenta);
  border-bottom: 3px solid var(--magenta);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq details > :not(summary) { padding-bottom: 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__field { display: grid; gap: 7px; }
.form label, .form legend { font-weight: 700; color: var(--navy); }
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  /* At least 3:1 against both #fff and --soft (WCAG 1.4.11); tests/site/css.test.ts. */
  border: 1px solid #868aa0;
  border-radius: 12px;
  color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.form__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.form input[type="checkbox"], .form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); }
.form__hint { color: var(--muted); font-size: .9rem; }
/* Links in running text must not rely on colour alone (WCAG 1.4.1), since
   the base `a` rule removes the underline. Nav, buttons and cards keep it off. */
.form__hint a,
.page-hero p a { text-decoration: underline; text-underline-offset: 3px; }
.form__error { color: var(--error); font-size: .9rem; font-weight: 600; }
.form__error:empty { display: none; }

.notice { padding: 16px 18px; border: 1px solid; border-radius: 14px; font-weight: 600; }
.notice--error { background: #fdecee; border-color: #f3b8c0; color: #8a1c2b; }
.notice--success { background: #edfaf7; border-color: #a8e3d8; color: #075e53; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }

/* Wraps the enquiry form together with its (initially empty) error-notice
   slot, so a server/network error gets a gap above the form without the
   notice collapsing to nothing when it's empty. */
.form__wrap { display: grid; gap: 20px; }

/* A honeypot field: present for bots to fill in, removed from sighted and
   assistive-tech users alike (the wrapper also carries aria-hidden). */
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: start; }
.contact-info { padding: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; }
.contact-info h2 { font-size: 1.3rem; margin-bottom: 16px; }
.contact-list { display: grid; gap: 14px; list-style: none; color: var(--muted); }
.contact-list a:hover { color: var(--magenta); }

/* ---------- Suburb pages ---------- */
.section--tight { padding: 0 0 105px; }
.area-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; align-items: start; }
.area-facts { position: sticky; top: 110px; padding: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; }
.area-facts h2 { font-size: 1.3rem; margin-bottom: 18px; }
.area-facts dl { display: grid; gap: 14px; margin-bottom: 24px; }
.area-facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.area-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.area-facts .btn { width: 100%; justify-content: center; }
.area-links-title { margin-bottom: 18px; font-size: 1.3rem; }
.area-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.area-links a { display: inline-block; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-weight: 700; color: var(--navy); }
.area-links a:hover { border-color: var(--magenta); color: var(--magenta); }
.area-card { min-height: 0; }
.area-card .area-meta { margin-bottom: 10px; font-size: .8rem; font-weight: 800; color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 28px; background: var(--navy); color: var(--on-navy); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-plate { display: inline-block; padding: 14px 18px; background: #fff; border-radius: 18px; }
.footer-logo { display: block; width: 250px; max-width: 100%; height: auto; }
.footer-blurb { max-width: 440px; margin-top: 20px; }
.footer-title { margin: 0 0 15px; font-size: 1rem; letter-spacing: 0; line-height: 1.3; color: #fff; }
.footer-links { display: grid; gap: 9px; list-style: none; }
.footer-links--areas { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.footer-title a { color: inherit; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .84rem;
  color: #a9abcf;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal { align-items: center; }
.secured-by a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.secured-by picture { display: block; }
.secured-by img { display: block; width: 96px; height: auto; }
.secured-by a:hover { text-decoration: none; }
.secured-by a:hover span { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (min-width: 981px) and (max-width: 1140px) {
  .logo { width: 250px; }
  .navlinks { gap: 18px; }
}

@media (max-width: 980px) {
  .menu { display: grid; }
  .navlinks { display: none; }
  /* Mobile menu: a full-width panel dropping from the sticky header. */
  .navlinks.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 8px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(35, 36, 95, .12);
  }
  .navlinks.open a:not(.btn) { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .navlinks.open .btn { display: flex; width: 100%; margin-top: 16px; }
  .hero-grid, .growth-grid, .contact-grid, .area-layout { grid-template-columns: 1fr; }
  .area-layout { gap: 40px; }
  .area-facts { position: static; }
  .hero-art { min-height: 470px; max-width: 650px; }
  /* Single-column hero: tuck the magenta diamond into the top-right corner so it
     never sits behind (and colour-clashes with) the magenta heading text. */
  .hero::before { width: 150px; height: 150px; right: -105px; top: -75px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .nav { height: 76px; }
  .logo { width: 245px; max-width: 70vw; }
  .navlinks.open { max-height: calc(100vh - 76px); padding-inline: 13px; }
  .hero { padding: 68px 0 54px; }
  .hero-art { min-height: 410px; }
  .hero::before { width: 120px; height: 120px; right: -88px; top: -62px; }
  .dash { inset: 20px 8px 0 0; padding: 18px; }
  .float-card { right: 0; bottom: 5px; width: 190px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 78px 0; }
  .section--tight { padding: 0 0 78px; }
  .mosaic { min-height: 420px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 42px 26px; }
  .page-hero { padding: 54px 0 48px; }
  .form__options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars b { animation: none; }
  .btn, .card, .skip-link, .faq summary::after { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
