/* ==========================================================================
   FAS Chartered Accountants — site styles
   No framework. Mobile-first. Colours are the original brand tokens.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand (unchanged from the original site) */
  --bg: #000000;
  --maroon: #220707;
  --surface: #18181b;
  --surface-2: #0e0e10;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --heading: #fafafa;
  --gold: #dcbd53;
  --gold-hover: #b59435;
  --gold-highlight: #c2ad6a;
  --gold-soft: rgb(220 189 83 / 0.1);
  --border: rgb(229 231 235 / 0.12);
  --border-strong: rgb(229 231 235 / 0.22);
  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --on-wa: #052e14;
  --danger: #f87171;

  /* type */
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Raleway", "Roboto", system-ui, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 4vw, 4rem);

  /* spacing (spacious marketing scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 72px;
  --shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Balancing is relatively costly; only the big, short headings need it. */
h1,
h2 {
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-hover);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold);
  color: #000;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

.visually-hidden {
  position: absolute !important;
  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: -100px;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--gold);
  color: #000;
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus {
  top: var(--space-4);
}

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

.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
  /* Skip style/layout/paint for off-screen sections until they approach the viewport. */
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Set by JS before any in-page jump so anchor positions are exact (estimated sizes would drift). */
.cv-off .section {
  content-visibility: visible;
}

.section--surface {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: var(--fs-xl);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-md);
}

/* Eyebrow label with the gold rule (from the original design) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::after,
.section-head--center .eyebrow::before {
  content: "";
  flex: 0 0 clamp(24px, 8vw, 64px);
  height: 1px;
  background: var(--gold);
}

@media (max-width: 400px) {
  .eyebrow {
    letter-spacing: 0.1em;
  }

  .hero .eyebrow::after {
    display: none;
  }
}

/* Gold marker highlight behind a word (from the original hero) */
.highlight {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--gold-highlight);
  opacity: 0.55;
  transform: skewX(-8deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  font-size: 1.15em;
}

.btn--gold {
  background: var(--gold);
  color: #000;
}

.btn--gold:hover {
  background: var(--gold-hover);
  color: #000;
}

.btn--outline {
  border-color: var(--border-strong);
  background-color: transparent; /* <button> elements otherwise keep the browser's light default */
  color: var(--heading);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--wa {
  background: var(--wa);
  color: var(--on-wa);
}

.btn--wa:hover {
  background: var(--wa-hover);
  color: var(--on-wa);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(0 0 0 / 0.92);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand img {
  width: 96px;
  height: 48px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  border: 0;
  background: none;
  color: var(--heading);
  font-size: 1.75rem;
  cursor: pointer;
}

.nav-toggle .icon-close,
.is-open .nav-toggle .icon-open {
  display: none;
}

.is-open .nav-toggle .icon-close {
  display: block;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  display: none;
  padding: var(--space-4) var(--gutter) var(--space-6);
  background: rgb(0 0 0 / 0.97);
  border-bottom: 1px solid var(--border);
}

.is-open .site-nav {
  display: block;
}

.site-nav ul {
  display: grid;
  gap: var(--space-1);
}

.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav .btn {
  margin-top: var(--space-4);
  width: 100%;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
  }

  .brand img {
    width: 112px;
    height: 56px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  }

  .site-nav a:not(.btn) {
    position: relative;
    font-size: 0.9375rem;
  }

  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-nav .btn {
    width: auto;
    margin: 0 0 0 var(--space-2);
    min-height: 44px;
    padding: 0.6rem 1.25rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 5rem));
  padding-bottom: var(--section-y);
  background:
    url("/assets/img/bg/ledger-growth.svg") center bottom / cover no-repeat,
    radial-gradient(70% 60% at 85% 15%, var(--maroon) 0%, transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgb(220 189 83 / 0.06) 0%, transparent 70%),
    var(--bg);
}

.hero::after {
  /* fade into the next section */
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* Mobile: intro → form → trust points. Desktop: intro + points left, form right. */
.hero__grid {
  display: grid;
  grid-template-areas:
    "intro"
    "form"
    "extra";
  gap: clamp(2rem, 1.5rem + 3vw, 3rem);
}

.hero__intro {
  grid-area: intro;
}

.hero .wa-card {
  grid-area: form;
}

.hero__extra {
  grid-area: extra;
}

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.hero__lead {
  max-width: 34rem;
  color: var(--text);
  font-size: var(--fs-md);
}

.hero__points {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text);
}

.hero__points .icon {
  margin-top: 0.2em;
  color: var(--gold);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro form"
      "extra form";
    column-gap: clamp(3rem, 1rem + 4vw, 5rem);
    row-gap: 0;
  }

  .hero__intro {
    align-self: end;
  }

  .hero__extra {
    align-self: start;
  }

  .hero .wa-card {
    align-self: center;
  }
}

/* ---------- Desktop: the whole hero (text + form) fits one screen ----------
   Sizes scale with viewport HEIGHT as well as width, so short laptop screens
   (e.g. 1366x657 or 1536x730 at 125% Windows scaling) still show everything. */
@media (min-width: 960px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(0.75rem, 3vh, 2.5rem));
    padding-bottom: clamp(1rem, 4vh, 3rem);
  }

  .hero > .container {
    width: 100%;
  }

  .hero .eyebrow {
    margin-bottom: clamp(0.5rem, 1.6vh, 1rem);
  }

  .hero h1 {
    font-size: clamp(2.25rem, min(4.4vw, 7.4vh), 4.25rem);
    margin-bottom: clamp(0.75rem, 2.4vh, 1.5rem);
  }

  .hero__lead {
    font-size: clamp(1rem, 0.6rem + 1.05vh, 1.1875rem);
    line-height: 1.6;
  }

  .hero__points {
    margin-top: clamp(1rem, 3.2vh, 2rem);
    gap: clamp(0.35rem, 1.1vh, 0.75rem);
  }

  .hero__actions {
    margin-top: clamp(1rem, 3.2vh, 2rem);
  }

  /* compact WhatsApp form */
  .hero .wa-card {
    padding: clamp(1rem, 2.6vh, 2rem) clamp(1.25rem, 2vw, 2rem);
  }

  .hero .wa-card__head {
    margin-bottom: clamp(0.75rem, 2.2vh, 1.5rem);
  }

  .hero .wa-card__badge {
    width: clamp(36px, 5vh, 44px);
    height: clamp(36px, 5vh, 44px);
  }

  .hero .field {
    margin-bottom: clamp(0.5rem, 1.6vh, 1rem);
  }

  .hero .field label {
    margin-bottom: clamp(0.25rem, 0.8vh, 0.5rem);
  }

  .hero .field input,
  .hero .field select,
  .hero .field textarea {
    min-height: clamp(40px, 5.6vh, 48px);
    padding-block: clamp(0.45rem, 1.1vh, 0.75rem);
  }

  .hero .field textarea {
    min-height: clamp(44px, 7vh, 84px);
  }

  .hero .wa-preview {
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    padding: clamp(0.5rem, 1.2vh, 0.75rem) 1rem;
  }

  /* long messages scroll inside the preview instead of pushing the button down */
  .hero .wa-preview__text {
    max-height: clamp(3.4rem, 14vh, 9rem);
    overflow-y: auto;
    font-size: clamp(0.8125rem, 1.6vh, 0.875rem);
    scrollbar-width: thin;
    scrollbar-color: rgb(37 211 102 / 0.4) transparent;
  }

  .hero .wa-card__note {
    margin-top: clamp(0.5rem, 1.4vh, 1rem);
  }
}

/* Short desktop screens: slimmer header, drop the form sub-line. */
@media (min-width: 960px) and (max-height: 760px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    width: 96px;
    height: 48px;
  }

  .hero .wa-card__sub {
    display: none;
  }
}

/* Very short desktop screens (e.g. 1366x657, 1280x609): tighter form. */
@media (min-width: 960px) and (max-height: 700px) {
  .hero {
    padding-top: calc(var(--header-h) + 0.5rem);
    padding-bottom: 0.5rem;
  }

  .hero .field textarea {
    height: 44px;
    min-height: 44px;
  }

  /* exactly two whole lines (line-height is 1.55), the rest scrolls */
  .hero .wa-preview__text {
    max-height: calc(2 * 1.55em);
  }

  .hero .wa-card__note {
    font-size: 0.75rem;
  }
}

/* ---------- WhatsApp composer card ---------- */
.wa-card {
  position: relative;
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.wa-card::before {
  /* gold top edge */
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wa-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.wa-card__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--on-wa);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.wa-card h2 {
  margin: 0;
  font-size: var(--fs-lg);
}

.wa-card__sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 1rem; /* 16px: prevents iOS zoom on focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dcbd53'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  cursor: pointer;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #71717a;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgb(229 231 235 / 0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(220 189 83 / 0.25);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--danger);
  font-size: var(--fs-sm);
}

.field__error[hidden] {
  display: none;
}

.wa-preview {
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: #0b1410;
  border: 1px solid rgb(37 211 102 / 0.25);
  border-radius: 4px 14px 14px 14px;
}

.wa-preview__label {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--wa);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wa-preview__text {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.wa-card__note {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.wa-card__note .icon {
  margin-top: 0.15em;
  color: var(--gold);
}

/* ---------- Feature cards (why accounting matters) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature__body {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
}

.feature__icon {
  position: absolute;
  top: -26px;
  left: var(--space-5);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 1.4rem;
}

.feature h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-3);
}

.feature p {
  color: var(--muted);
}

/* ---------- Media (lazy images with reserved space) ---------- */
.media {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgb(220 189 83 / 0.06), transparent 60%),
    var(--surface-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .media img {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.js .media img.is-loaded {
  opacity: 1;
  transform: none;
}

/* ---------- Services ---------- */
.services {
  background:
    url("/assets/img/bg/columns.svg") center bottom / 100% auto no-repeat,
    var(--bg);
}

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.service:hover {
  border-color: rgb(220 189 83 / 0.45);
  transform: translateY(-3px);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-5);
  border-radius: 12px;
  background: #000;
  color: var(--gold);
  font-size: 1.5rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.service:hover .service__icon {
  background: var(--gold);
  color: #000;
}

.service h3 {
  font-size: 1.25rem;
}

.service p {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.9375rem;
}

.service .link-arrow {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
}

/* ---------- Steps (how it works) ---------- */
.steps-section {
  overflow: hidden;
}

.steps-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -180px;
  width: 560px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("/assets/img/bg/rings.svg") center / contain no-repeat;
  opacity: 0.9;
}

.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: rgb(24 24 27 / 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-4);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  font-size: var(--fs-lg);
}

.step p {
  color: var(--muted);
}

/* ---------- Split (about preview) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.split .media {
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.split h2 {
  font-size: var(--fs-xl);
}

.split p {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
}

.checklist li {
  display: flex;
  gap: var(--space-3);
  color: var(--text);
}

.checklist .icon {
  margin-top: 0.25em;
  color: var(--gold);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-4);
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--gold);
}

.faq__answer {
  padding-bottom: var(--space-5);
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-list {
  display: grid;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #000;
  color: var(--gold);
  font-size: 1.2rem;
}

.contact-item h3 {
  margin-bottom: var(--space-1);
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-item small {
  display: block;
  color: var(--muted);
}

.contact-item small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  text-decoration: underline;
}

/* a section that follows another plain section: avoid doubled spacing */
.section--flush-top {
  padding-top: 0;
}

/* Click-to-load map (no Google cookies until the visitor asks for it) */
.map {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    url("/assets/img/bg/contours.svg") center / cover no-repeat,
    radial-gradient(60% 60% at 50% 40%, var(--maroon), transparent 75%),
    var(--surface-2);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  text-align: center;
}

.map__pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 1.75rem;
  box-shadow: 0 0 0 10px rgb(220 189 83 / 0.15), 0 0 0 22px rgb(220 189 83 / 0.06);
}

.map__address {
  margin: 0;
  color: var(--heading);
  font-weight: 500;
}

.map__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.map__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  padding-top: var(--section-y);
  background:
    url("/assets/img/bg/contours.svg") center top / cover no-repeat,
    var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-7) var(--space-6);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 1fr 1.4fr;
  }
}

.footer-brand img {
  width: 128px;
  height: 64px;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  max-width: 22rem;
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: var(--space-4);
  color: var(--heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 44px rows = comfortable touch targets */
.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-contact .icon {
  margin-top: 0.3em;
  color: var(--gold);
}

.footer-contact a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--gold);
}

.social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.1rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-block: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--gold);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--on-wa);
  font-size: 1.75rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.wa-float:hover {
  background: var(--wa-hover);
  color: var(--on-wa);
  transform: scale(1.06);
}

/* Hidden while the hero WhatsApp form is on screen (it would duplicate/cover it). */
.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

.wa-float {
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease),
    visibility 0s;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  background:
    url("/assets/img/bg/contours.svg") center / cover no-repeat,
    radial-gradient(70% 80% at 90% 0%, var(--maroon) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  margin-bottom: var(--space-4);
}

.page-hero__lead {
  max-width: 42rem;
  color: var(--text);
  font-size: var(--fs-md);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--gold);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ---------- Generic card ---------- */
.card {
  height: 100%;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

.card .service__icon {
  margin-bottom: var(--space-4);
}

/* ---------- Area chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid rgb(220 189 83 / 0.35);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--heading);
  font-size: 0.9375rem;
}

.chips .icon {
  color: var(--gold);
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--maroon), transparent 70%),
    var(--surface);
  border: 1px solid rgb(220 189 83 / 0.3);
  border-radius: var(--radius-lg);
}

.cta-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -120px;
  bottom: -160px;
  width: 420px;
  aspect-ratio: 1;
  background: url("/assets/img/bg/rings.svg") center / contain no-repeat;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.cta-band p {
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Service pages ---------- */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-5);
  margin-top: var(--space-3);
}

.service__links .link-arrow {
  margin-top: 0;
}

.card .checklist {
  margin-bottom: var(--space-5);
}

.section-foot {
  margin-top: var(--space-7);
  text-align: center;
}

/* ---------- Long-form text (privacy policy) ---------- */
.prose-layout {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 1024px) {
  .prose-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.toc {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  display: grid;
  gap: var(--space-1);
  counter-reset: toc;
}

.toc a {
  display: flex;
  gap: var(--space-2);
  min-height: 32px;
  align-items: center;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc) ".";
  color: var(--gold);
  min-width: 1.5em;
}

.toc a:hover {
  color: var(--gold);
}

.prose {
  max-width: 760px;
  color: var(--text);
}

/* (anchor offset comes from html { scroll-padding-top } — don't add another here) */
.prose h2 {
  margin-top: var(--space-7);
  font-size: var(--fs-lg);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-5);
  font-size: 1.0625rem;
}

.prose p,
.prose li {
  color: #d4d4d8;
}

.prose ul {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
  list-style: none;
}

.prose ul li {
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.prose strong {
  color: var(--heading);
}

.prose .meta {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap th,
.table-wrap td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface);
  color: var(--heading);
  font-weight: 500;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

/* ---------- 404 ---------- */
.error-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  text-align: center;
  background:
    radial-gradient(50% 50% at 50% 45%, var(--maroon), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(680px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("/assets/img/bg/rings.svg") center / contain no-repeat;
  opacity: 0.45;
}

.error-page .error-page__code {
  margin: 0 auto var(--space-2);
  color: transparent;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 2px var(--gold);
}

.error-page h1 {
  font-size: var(--fs-xl);
}

.error-page p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--muted);
}

.error-page + .site-footer {
  padding-top: 0;
}

.error-page + .site-footer .footer-bottom {
  margin-top: 0;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Large screens: scale up so pages don't look empty ---------- */
@media (min-width: 1920px) {
  html {
    font-size: 112.5%;
  }

  :root {
    --container: 1360px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 125%;
  }

  :root {
    --container: 1520px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .media img {
    opacity: 1;
    transform: none;
  }
}
