/* ==========================================================================
   BisAcc Bookkeeping — site styles
   Brand colours sampled from assets/img/bisacc-logo-horizontal.svg
   ========================================================================== */

:root {
  /* Brand */
  --navy: #1E3A6D;
  --navy-900: #16305A;
  --navy-950: #112748;
  --navy-50: #EEF2F9;
  --red: #D62B2B;
  --red-600: #B82323;
  --red-50: #FDF0F0;
  --grey: #6B7280;

  /* Neutrals */
  --ink: #1A2233;
  --muted: #5B6475;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --line: #E3E8F0;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9D2E3;

  /* Type */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 39, 72, 0.06), 0 1px 3px rgba(17, 39, 72, 0.08);
  --shadow: 0 4px 12px rgba(17, 39, 72, 0.07), 0 12px 32px rgba(17, 39, 72, 0.08);
  --shadow-lg: 0 10px 30px rgba(17, 39, 72, 0.12), 0 24px 60px rgba(17, 39, 72, 0.12);
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--red);

  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }

.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; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(214, 43, 43, 0.25); }
.btn--primary:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 700; color: var(--red); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--red-600); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { height: 68px; width: auto; margin-block: -4px; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
@media (min-width: 1200px) { .site-nav ul { gap: 0.25rem 1.75rem; } }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 0.4rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem;
  color: var(--navy); text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); }

@media (max-width: 1023.98px) {
  .brand img { height: 58px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .js .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .js .site-nav a:not(.btn)::after { display: none; }
  .js .site-nav a[aria-current="page"] { color: var(--red); }
  .js .site-nav .btn { width: 100%; }
  /* No-JS fallback: nav wraps beneath the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: var(--fs-md); margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  margin-bottom: 0.85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--fs-md); color: var(--muted); }
.section-foot { margin-top: 2.5rem; text-align: center; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 10% -10%, #28498A 0%, transparent 60%), var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}
.hero::before {
  /* Diagonal red accent echoing the logo tile */
  content: ""; position: absolute; z-index: -1;
  right: -8%; bottom: -40%; width: 60%; height: 120%;
  background: linear-gradient(135deg, transparent 49.8%, rgba(214, 43, 43, 0.9) 50%);
  opacity: 0.18;
}
.hero::after {
  /* Ledger-line texture */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 40px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 .accent { color: #FF8C86; }
.hero__lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--on-navy-muted); max-width: 36ch; margin-bottom: 2rem; }
.hero .eyebrow { color: #FFB3AF; }
.hero__note { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--on-navy-muted); display: flex; align-items: center; gap: 0.5rem; }
.hero__note svg { width: 18px; height: 18px; color: #FF8C86; flex: none; }
.hero__art { max-width: 480px; justify-self: center; width: 100%; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.25)); }

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--on-navy);
  padding-block: clamp(3rem, 2.25rem + 3.5vw, 5rem);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; width: 42%; height: 170%;
  background: linear-gradient(135deg, transparent 49.8%, var(--red) 50%); opacity: 0.16;
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: var(--on-navy-muted); font-size: var(--fs-lg); line-height: 1.5; max-width: 60ch; margin-bottom: 0; }
.page-hero .eyebrow { color: #FFB3AF; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: 1rem; color: var(--on-navy-muted); }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #FFB3AF; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__list {
  list-style: none; margin: 0; padding: 1.5rem 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem;
}
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 1.75rem; } }
.trust__item { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; font-size: 0.97rem; }
.trust__item small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* ---------- Icons ---------- */
.icon {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--red-50); color: var(--red);
}
.icon svg { width: 26px; height: 26px; }
.icon--navy { background: var(--navy-50); color: var(--navy); }
.icon--sm { width: 42px; height: 42px; border-radius: 11px; }
.icon--sm svg { width: 22px; height: 22px; }
.icon--on-navy { background: rgba(255,255,255,0.1); color: #fff; }
.icon--center { margin-inline: auto; margin-bottom: 1rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 0.75rem + 1vw, 1.5rem); }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-top: 1rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3DBE8; }

/* Service group cards */
.service-group { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .service-group { grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; } }
.service-group + .service-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); }
.service-group__intro h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-top: 1rem; }
.service-group__intro p { color: var(--muted); }
@media (min-width: 900px) { .service-group__intro { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm); }
.service-item h3 { font-size: 1.08rem; margin: 0 0 0.4rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.service-item h3 svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 1px; }
.service-item p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tier-badge {
  display: inline-block; margin-top: 0.8rem;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-50); border-radius: 999px; padding: 0.25rem 0.65rem;
}
.tier-badge--complete { color: var(--red-600); background: var(--red-50); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }

/* Family / photo panel */
.photo-panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  aspect-ratio: 5 / 4; max-width: 100%;
  display: grid; place-items: center; color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.photo-panel::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 58%, rgba(214, 43, 43, 0.85) 58.2%);
}
figure.photo-panel { margin: 0; }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-panel__caption {
  position: absolute; left: clamp(0.75rem, 2vw, 1.1rem); bottom: clamp(0.75rem, 2vw, 1.1rem);
  display: flex; flex-direction: column; gap: 0.1rem; text-align: left;
  background: rgba(17, 39, 72, 0.88); color: #fff;
  border-left: 4px solid var(--red); border-radius: 10px;
  padding: 0.55rem 0.95rem; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.photo-panel__caption strong { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; }
.photo-panel__caption span { font-size: 0.8rem; color: var(--on-navy-muted); line-height: 1.3; }
.photo-panel__inner { position: relative; padding: 2rem; max-width: 30ch; }
.photo-panel__inner svg { width: 88px; height: 88px; margin: 0 auto 1rem; opacity: 0.95; }
.photo-panel__inner p { color: var(--on-navy-muted); margin: 0; font-size: 0.95rem; }
.photo-panel__inner strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 0.35rem; }

/* Highlight / callout */
.callout {
  display: grid; gap: 1.25rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .callout { grid-template-columns: auto 1fr; } }
.callout h2, .callout h3 { margin: 0 0 0.5rem; }
.callout h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.callout p { color: var(--muted); margin: 0; }
.callout p + p { margin-top: 0.75rem; }
.callout--navy { background: var(--navy-50); border-left-color: var(--navy); }

.partner {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem); position: relative; overflow: hidden; isolation: isolate;
}
.partner::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -60%; width: 50%; height: 200%; background: linear-gradient(135deg, transparent 49.8%, var(--red) 50%); opacity: 0.18; }
@media (min-width: 900px) { .partner { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.partner h2 { color: #fff; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
.partner p { color: var(--on-navy-muted); margin-bottom: 0; }
.partner p + p { margin-top: 0.85rem; }
.partner__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.partner__steps li { display: flex; align-items: center; gap: 0.9rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 0.9rem 1rem; }
.partner__steps strong { display: block; color: #fff; font-family: var(--font-head); line-height: 1.3; }
.partner__steps span { font-size: 0.9rem; color: var(--on-navy-muted); }
.partner .eyebrow { color: #FFB3AF; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.35rem; margin: 0 0 0.25rem; }
.price-card__tagline { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 0.35rem; font-family: var(--font-head); color: var(--navy); margin-bottom: 0.25rem; }
.price__amount { font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price__per { color: var(--muted); font-family: var(--font-body); font-size: 0.95rem; }
.price-card__vat { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-card__list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.7rem; flex: 1; }
.price-card__list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.96rem; line-height: 1.45; }
.price-card__list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 1px; }
.price-card__list li.is-muted { color: var(--muted); }
.price-card__list li.is-muted svg { color: #A3ACBB; }
.price-card--featured {
  background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .price-card--featured { padding-block: 2.6rem; } }
.price-card--featured h3, .price-card--featured .price { color: #fff; }
.price-card--featured .price-card__tagline,
.price-card--featured .price__per,
.price-card--featured .price-card__vat,
.price-card--featured .price-card__list li.is-muted { color: var(--on-navy-muted); }
.price-card--featured .price-card__list svg { color: #FF8C86; }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap;
  background: var(--red); color: #fff; border-radius: 999px; padding: 0.35rem 0.9rem;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(214, 43, 43, 0.3);
}
.price-card__badge svg { width: 14px; height: 14px; }
.price-card--featured .btn--light:hover { color: var(--navy); }

/* Tables */
.table-wrap {
  position: relative; /* contains the absolutely-positioned .visually-hidden labels */
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.table-wrap:focus-visible { box-shadow: var(--focus); }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.96rem; }
.data-table caption { text-align: left; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { padding: 0.95rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table thead th { font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; background: var(--bg-soft); }
.data-table thead th small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.data-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.data-table th:first-child {
  position: sticky; left: 0; z-index: 1; background: #fff; min-width: 200px;
  box-shadow: 1px 0 0 var(--line);
}
.data-table thead th:first-child { background: var(--bg-soft); }
.data-table .col-featured { background: rgba(30, 58, 109, 0.045); }
.data-table thead .col-featured { background: var(--navy); color: #fff; }
.data-table thead .col-featured small { color: var(--on-navy-muted); }
.data-table .yes svg { width: 22px; height: 22px; color: var(--red); margin: 0 auto; }
.data-table .no svg { width: 18px; height: 18px; color: #A3ACBB; margin: 0 auto; }
.table-hint { display: none; font-size: var(--fs-sm); color: var(--muted); margin: 0.75rem 0 0; }
@media (max-width: 719.98px) { .table-hint { display: block; } }

.info-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.info-card h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.info-card p { color: var(--muted); margin-bottom: 1rem; font-size: 0.97rem; }
.info-card .link-arrow { margin-top: auto; }

.fineprint { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D62B2B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { padding-bottom: 0.5rem; }
.faq__body { padding: 0 1.35rem 1.2rem; color: var(--muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Areas ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.95rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem;
}
.chips--center { justify-content: center; }
.chip svg { width: 16px; height: 16px; color: var(--red); }
.chip--home { background: var(--red); border-color: var(--red); color: #fff; }
.chip--home svg { color: #fff; }
.chip--home small { font-family: var(--font-body); font-weight: 500; opacity: 0.9; font-size: 0.8rem; }

.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.map-card svg { width: 100%; height: auto; }
.map-card figcaption { padding: 0.9rem 1.25rem; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); }

.region { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); box-shadow: var(--shadow-sm); }
.region h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin: 1rem 0 0.4rem; }
.region > p { color: var(--muted); }
.town-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.town-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-soft); }
.town-list strong { font-family: var(--font-head); color: var(--navy); display: flex; align-items: center; gap: 0.55rem; }
.town-list strong svg { width: 18px; height: 18px; color: var(--red); }
.town-list span { font-size: 0.85rem; color: var(--muted); text-align: right; }
.town-list li.is-home { background: var(--red-50); outline: 1px solid rgba(214, 43, 43, 0.25); }
.town-list li.is-home span { color: var(--red-600); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 1rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.93rem; color: var(--ink); margin-bottom: 0.4rem; }
.field .req { color: var(--red); }
.field .optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #CBD3E1; border-radius: 10px; padding: 0.75rem 0.9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 18px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FAAC0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 109, 0.18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field__error { display: none; color: var(--red-600); font-size: 0.85rem; margin-top: 0.35rem; }
.field.has-error .field__error { display: block; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.form-status { margin-top: 1.25rem; border-radius: var(--radius); padding: 1rem 1.15rem; display: none; }
.form-status.is-visible { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-status--success { background: #ECF7F0; color: #1D5E36; border: 1px solid #BFE3CB; }
.form-status--error { background: var(--red-50); color: var(--red-600); border: 1px solid #F3C4C4; }
.form-status--info { background: var(--navy-50); color: var(--navy); border: 1px solid #CBD6EA; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.6rem; }
.form-status a { color: inherit; font-weight: 600; }
button[disabled] { opacity: 0.7; cursor: progress; }

.contact-card { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); position: relative; overflow: hidden; isolation: isolate; }
.contact-card::before { content: ""; position: absolute; z-index: -1; right: -30%; bottom: -30%; width: 80%; height: 70%; background: linear-gradient(135deg, transparent 49.8%, var(--red) 50%); opacity: 0.2; }
.contact-card h2 { color: #fff; font-size: 1.4rem; }
.contact-card p { color: var(--on-navy-muted); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: center; }
.contact-list small { display: block; color: var(--on-navy-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: #FFB3AF; text-decoration: underline; }
.contact-list .value { color: #fff; font-weight: 600; }
.contact-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 1.5rem 0; }
.contact-card .chips .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; font-size: 0.85rem; padding: 0.35rem 0.75rem; }
.contact-card .chips .chip svg { color: #FF8C86; }
.contact-card .chips .chip--home { background: var(--red); border-color: var(--red); }
.contact-card .chips .chip--home svg { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(3rem, 2.5rem + 3vw, 5rem); background: var(--bg-soft); }
.cta-band__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 1.5rem; align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%);
  border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band__inner::before { content: ""; position: absolute; z-index: -1; right: -5%; top: -50%; width: 40%; height: 200%; background: linear-gradient(135deg, transparent 49.8%, var(--red) 50%); opacity: 0.22; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-band p { color: var(--on-navy-muted); margin: 0; font-size: var(--fs-md); max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-muted); padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 0.8fr 1.1fr 1.1fr; gap: 3rem; } }
.footer-brand img { height: 84px; width: auto; margin: -13px 0 0.5rem -8px; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-links a, .site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer-contact svg { width: 18px; height: 18px; color: #FF8C86; flex: none; }
.footer-bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-legal a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.legal__meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.75rem; }
.legal__toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
}
.legal__toc h2 { font-size: 1rem; margin: 0 0 0.6rem; }
.legal__toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.legal__toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.prose { color: var(--ink); }
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: #3A4458; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--red); }
.prose .note {
  background: var(--navy-50); border-left: 4px solid var(--navy); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.prose .note p:last-child { margin-bottom: 0; }
.prose .table-wrap { margin: 1rem 0 1.5rem; }
.prose .data-table { min-width: 560px; font-size: 0.93rem; }
.prose .data-table th, .prose .data-table td { text-align: left; vertical-align: top; }
.prose .data-table th:first-child { position: static; min-width: 0; box-shadow: none; }
.contact-box {
  display: grid; gap: 0.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.35rem; box-shadow: var(--shadow-sm); margin: 1rem 0 1.5rem;
}
.contact-box p { margin: 0; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 5px #fff; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.not-found__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
.not-found__code span { color: var(--red); }
.not-found .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.text-center { text-align: center; }

/* ==========================================================================
   Animation
   All motion is decorative and switched off under prefers-reduced-motion.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.55; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes dash-flow { to { stroke-dashoffset: -18; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Page intros: home hero and inner page heroes */
.hero__grid > div:first-child > *,
.page-hero .container > * { animation: fade-up 0.8s var(--ease-out) both; }
.hero__grid > div:first-child > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
.hero__grid > div:first-child > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
.hero__grid > div:first-child > :nth-child(4) { animation-delay: 0.3s; }
.hero__grid > div:first-child > :nth-child(5) { animation-delay: 0.4s; }

/* Home hero illustration */
.hero__art svg { animation: fade-in 0.9s ease both 0.15s; }
.hero-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-up 0.9s var(--ease-out) both; }
.hero-bar--1 { animation-delay: 0.55s; }
.hero-bar--2 { animation-delay: 0.68s; }
.hero-bar--3 { animation-delay: 0.81s; }
.hero-bar--4 { animation-delay: 0.94s; }
.hero-trend { animation: fade-in 0.6s ease both 1.35s; }
.hero-badge { transform-box: fill-box; transform-origin: 50% 50%; animation: pop-in 0.6s var(--ease-spring) both 1.1s; }
.hero-badge-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 0.45s ease-out forwards 1.5s; }
.hero-chip { animation: fade-in 0.6s ease both; }
.hero-chip--a { animation: fade-in 0.6s ease both 1.2s, float-a 6s ease-in-out infinite 1.8s; }
.hero-chip--b { animation: fade-in 0.6s ease both 1.4s, float-b 7s ease-in-out infinite 2s; }

/* Scroll reveal (classes added by main.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

/* Areas map */
.map-links path { stroke-dasharray: 3 6; animation: dash-flow 1.6s linear infinite; }
.map-pin { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .js .map-pin { opacity: 0; }
  .js .map-card.in-view .map-pin { animation: pop-in 0.5s var(--ease-spring) both; }
}
.map-pin:nth-child(1) { animation-delay: 0.3s; }
.map-pin:nth-child(2) { animation-delay: 0.4s; }
.map-pin:nth-child(3) { animation-delay: 0.5s; }
.map-pin:nth-child(4) { animation-delay: 0.6s; }
.map-pin:nth-child(5) { animation-delay: 0.7s; }
.map-pin:nth-child(6) { animation-delay: 0.8s; }
.map-pin:nth-child(7) { animation-delay: 0.9s; }
.map-pin:nth-child(8) { animation-delay: 1s; }
.map-home-pulse { transform-box: fill-box; transform-origin: 50% 50%; animation: pulse-ring 2.4s ease-out infinite; }

/* Micro-interactions */
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.faq details[open] .faq__body { animation: slide-down 0.3s var(--ease-out); }
@media (max-width: 1023.98px) {
  .js .site-nav.is-open { animation: slide-down 0.25s var(--ease-out); }
}
.price-card { transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--featured:hover { box-shadow: var(--shadow-lg); }
.service-item, .info-card, .region, .steps li { transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.service-item:hover, .info-card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.photo-panel img { transition: transform 0.8s var(--ease-out); }
.photo-panel:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }
  .card--hover:hover, .btn--primary:hover, .price-card:hover, .service-item:hover, .info-card:hover,
  .steps li:hover, .btn:hover svg, .photo-panel:hover img { transform: none; }
  .map-links path { animation: none; }
  .map-home-pulse { animation: none; opacity: 0; }
}

@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle { display: none !important; }
  .hero, .page-hero { background: #fff; color: #000; }
  .hero h1, .page-hero h1 { color: var(--navy); }
}
