/* ==========================================================================
   Tax Consulting · taxcon.gr
   Order: fonts → tokens → base → components → sections (top to bottom)
   ========================================================================== */

/* Fonts: self-hosted Google Fonts, Greek + Latin subsets, variable weights */
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/noto-serif-display-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/noto-serif-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/noto-serif-display-italic-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/noto-serif-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --navy: #0D123F;
  --navy-hover: #1F2A7A;
  --orange: #F05900;
  --orange-hover: #FF6A14;   /* lighter, so navy text stays ≥ 4.5:1 */
  --orange-text: #B84400;    /* orange as small text */
  --ink-2: #3A4060;
  --muted: #474D6B;
  --muted-2: #555B78;
  --surface: #F4F5F8;
  --line: #DCDFE7;
  --line-strong: #CDD1DC;
  --line-soft: #E6E8EE;
  --field-border: #C9CEDA;
  --leader: #9AA0B5;
  --error: #B42318;
  --white: #FFFFFF;

  --font-display: "Noto Serif Display", Georgia, serif;
  --font-body: Commissioner, "Source Sans 3", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 8px;
  --radius-lg: 10px;
  --container: 1200px;       /* content width; padding is added outside */
  --gutter: 24px;
  --section-y: clamp(64px, 9vw, 104px);
  --shadow-card: 0 16px 36px rgba(13, 18, 63, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
:where(ol[role="list"], ul[role="list"]) { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, textarea, button { font: inherit; }

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

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--orange); }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }


/* Components -------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  flex: none;
  margin-top: 7px;           /* centred on the first line when the label wraps */
  width: 10px;
  height: 10px;
  background: var(--orange);
}
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.78); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.1;
}
.display-1 em,
.display-2 em { font-style: italic; }
.accent { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-hover); color: var(--navy); }
.btn-outline {
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); font-weight: 600; }
.btn-navy:hover { background: var(--navy-hover); color: var(--white); }
.btn-sm {
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}

.link-underline {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--orange);
  font-weight: 700;
  text-decoration: none;
}

/* 1. Header --------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 40px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.brand-sub { font-size: 13px; color: var(--muted-2); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a { display: block; padding: 10px 0; text-decoration: none; }
.site-nav .nav-lang { color: var(--muted-2); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 979px) {
  .header-inner { gap: 12px 10px; }
  .site-nav { order: 3; width: 100%; }      /* no-JS: links wrap below the brand */
  .js .nav-toggle { display: inline-flex; order: 2; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 30px rgba(13, 18, 63, 0.12);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 4px var(--gutter) 12px;
    font-size: 18px;
  }
  .js .site-nav li + li { border-top: 1px solid var(--line-soft); }
  .js .site-nav a { padding: 12px 0; }
}
@media (max-width: 479px) {
  .brand-name { font-size: 20px; }
  .header-phone { width: 44px; padding: 0; }
  .header-phone-num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* 2. Hero ----------------------------------------------------------------- */
.hero { background: var(--surface); }
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: var(--section-y);
}
.hero-copy {
  flex: 1 1 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-copy .display-1 em { color: var(--orange); }
.hero-lead {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .btn { min-height: 57px; }   /* as rendered in the approved design */

.hero-media {
  flex: 1 1 460px;
  min-width: 0;
  position: relative;
  padding: 0 0 40px 40px;
}
.hero-photo {
  width: 100%;
  height: clamp(340px, 62vw, 500px);
  object-fit: cover;
  object-position: 35% center;
  border-radius: var(--radius-lg);
}

.stamp {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-card);
}
.stamp-label,
.stamp-year,
.stamp-note { position: relative; }
.stamp-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.stamp-year {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.stamp-note { margin-top: 6px; font-size: 14px; font-weight: 600; }

/* Pixel squares: the brand motif from the logo's rising pixels */
.pixels { position: absolute; inset: 0; }
.pixels i { position: absolute; display: block; }
.stamp .pixels i:nth-child(1) { right: 20px; top: 20px; width: 18px; height: 18px; background: var(--navy); }
.stamp .pixels i:nth-child(2) { right: 46px; top: 46px; width: 12px; height: 12px; background: var(--white); }
.stamp .pixels i:nth-child(3) { right: 20px; top: 50px; width: 10px; height: 10px; background: var(--white); }
.stamp .pixels i:nth-child(4) { right: 72px; top: 30px; width: 8px; height: 8px; background: var(--navy); }
.stamp .pixels i:nth-child(5) { right: 64px; top: 70px; width: 6px; height: 6px; background: var(--navy); }

@media (max-width: 600px) {
  .hero-lead { font-size: 18px; }
  .btn-row > .btn { flex: 1 1 auto; }
  .hero-media { padding: 0 0 28px 20px; }
  .stamp { width: 156px; height: 156px; padding: 16px; }
  .stamp-year { font-size: 50px; }
  .stamp-note { font-size: 13px; }
}

/* 3. Services strip ------------------------------------------------------- */
.strip { background: var(--navy); color: var(--white); }
.strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding-block: 20px;
  font-size: 16px;
  font-weight: 500;
}
.strip-list li { display: flex; align-items: center; gap: 22px; }
.strip-list li + li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
@media (max-width: 600px) {
  .strip-list { gap: 6px 20px; font-size: 15px; }
  .strip-list li { gap: 10px; }
  .strip-list li::before {           /* every item gets its square, so wrapped lines stay even */
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    background: var(--orange);
  }
}

/* Sections: shared ------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-surface { background: var(--surface); }
.text-muted { color: var(--muted); }

/* 4. Services ------------------------------------------------------------- */
.services-inner { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.services-intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.services-intro .link-underline { margin-top: 8px; }

.ledger {
  flex: 2 1 600px;
  min-width: 0;
  border-top: 2px solid var(--navy);
}
.ledger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-num {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-text);
}
.ledger-name {
  flex: 1 1 260px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}
.ledger-desc { flex: 2 1 300px; font-size: 16px; color: var(--muted); }

@media (max-width: 720px) {
  .ledger-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 20px 0;
  }
  .ledger-name { font-size: 21px; }
  .ledger-desc { grid-column: 2; }
}

/* 5. Why us --------------------------------------------------------------- */
.why-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px 80px;
}
.why-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.why-head { display: flex; flex-direction: column; gap: 18px; }

.pillar {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.pillar:last-child { border-bottom: 1px solid var(--line-strong); }
.pillar-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}
.pillar-num--orange { background: var(--orange); color: var(--navy); }
.pillar-num--navy { background: var(--navy); color: var(--white); }
.pillar-num--outline { border: 2px solid var(--navy); color: var(--navy); }
.pillar-body { display: flex; flex-direction: column; gap: 4px; }
.pillar h3 { font-size: 21px; font-weight: 700; }
.pillar p { font-size: 16px; color: var(--muted); }

/* Receipt (decorative, role="img") */
.receipt-wrap {
  flex: 0 1 420px;
  min-width: 280px;
  display: flex;
  justify-content: center;
}
.receipt {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px 40px;
  border-top: 8px solid var(--orange);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 24px 48px rgba(13, 18, 63, 0.16);
  transform: rotate(-2.5deg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}
.receipt > * { display: block; }
.receipt hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1.5px dashed var(--navy);
}
.receipt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  color: var(--muted);
}
.receipt-head b { font-size: 16px; letter-spacing: 0.12em; color: var(--navy); }
.receipt-title { text-align: center; font-weight: 700; letter-spacing: 0.08em; }
.receipt-lines { display: flex; flex-direction: column; gap: 6px; }
.receipt-line { display: flex; align-items: baseline; gap: 6px; }
.receipt-line i { flex: 1; border-bottom: 1.5px dotted var(--leader); }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 700;
}
.receipt-total span:last-child { font-size: 26px; }
.receipt-thanks { text-align: center; color: var(--muted); }
.receipt-barcode { align-self: center; }

@media (max-width: 1067px) {
  .receipt-wrap { flex-basis: 100%; }   /* centre the receipt once it wraps */
}
@media (max-width: 600px) {
  .pillar { gap: 18px; }
  .receipt { padding: 28px 22px 32px; font-size: 13px; }
}

/* 6. Contact -------------------------------------------------------------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; }

.pixels { pointer-events: none; }
.contact-card {
  flex: 1 1 528px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
}
.contact-card .pixels i:nth-child(1) { right: 32px; top: 32px; width: 22px; height: 22px; background: var(--orange); }
.contact-card .pixels i:nth-child(2) { right: 64px; top: 64px; width: 14px; height: 14px; background: var(--orange); }
.contact-card .pixels i:nth-child(3) { right: 32px; top: 70px; width: 10px; height: 10px; background: var(--white); }
.contact-card .pixels i:nth-child(4) { right: 96px; top: 44px; width: 8px; height: 8px; background: var(--white); }
.contact-card .pixels i:nth-child(5) { right: 90px; top: 96px; width: 6px; height: 6px; background: var(--orange); }
.contact-title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.contact-lead { max-width: 420px; color: rgba(255, 255, 255, 0.82); }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: var(--white); text-decoration-color: var(--orange); }
.big-phone {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--orange);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-list > div { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.contact-list dt { flex: 0 0 96px; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.contact-list dd { font-weight: 600; }

/* Form */
.contact-form {
  flex: 1 1 528px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.form-body { display: flex; flex-direction: column; gap: 18px; }
.form-body[hidden] { display: none; }
.hp { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.label-hint { font-weight: 400; color: var(--muted-2); }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 180px; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
}
textarea.input { padding: 12px 14px; resize: vertical; }
.input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--error); }
.btn-submit[aria-disabled="true"] { cursor: progress; opacity: 0.75; }
.form-captcha { min-height: 78px; }               /* reserves the widget's height: no layout shift */
@media (max-width: 398px) {
  .form-captcha { min-height: 144px; }            /* compact widget */
}
.form-status:empty { display: none; }
.form-status {
  padding: 12px 16px;
  border-left: 4px solid var(--error);
  border-radius: 4px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
}
.form-note { font-size: 14px; color: var(--muted); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--navy);
}
.form-success-title { font-size: 21px; font-weight: 700; }
.form-success p:not(.form-success-title) { color: var(--muted); }
.form-again {
  margin-top: 6px;
  padding: 0 0 2px;
  border-top: 0;
  border-inline: 0;
  background: none;
  color: var(--navy);
  font-size: 17px;
  cursor: pointer;
}

/* Map: decorative placeholder until the visitor loads Google Maps */
.map {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  height: 362px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #E9ECF2;
}
.map-frame { position: absolute; inset: 0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg--compact { display: none; }   /* the base svg rule would override its display attribute */
.map-attrib {
  position: absolute;
  right: 8px;
  bottom: 4px;
  font-size: 11px;
  color: var(--muted-2);
}
.map-load {
  display: none;
  position: absolute;
  right: 16px;
  top: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(13, 18, 63, 0.12);
}
.js .map-load { display: inline-flex; }
.map-load:hover { background: var(--navy); color: var(--white); }

.map-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 364px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(13, 18, 63, 0.16);
}
.map-card-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.map-card-address { font-size: 15px; color: var(--muted); }
.map-directions { align-self: flex-start; margin-top: 6px; padding: 0 16px; font-size: 15px; }

@media (max-width: 999px) {
  .map-poi-school { display: none; }   /* would sit under the "show map" button */
}
@media (max-width: 600px) {
  .map-svg--wide { display: none; }
  .map-svg--compact { display: block; }
  .map-load { top: auto; bottom: 12px; right: 12px; gap: 6px; padding: 0 14px; font-size: 14px; }
  .map-attrib { top: 4px; bottom: auto; }
  .contact-card,
  .contact-form { padding: 32px 24px; }
  .contact-card .pixels { transform: translate(16px, -16px); }
  .contact-list dt { flex-basis: 100%; }
  .map { height: auto; }
  .map-frame { position: relative; height: 280px; }
  .map-card {
    position: static;
    max-width: none;
    padding: 20px 20px 22px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
}

/* 7. ESPA strip ----------------------------------------------------------- */
.espa { border-top: 1px solid var(--line-soft); }
.espa-inner { display: flex; justify-content: center; padding-block: 28px; }
.espa-link { display: block; width: 100%; max-width: 730px; }
.espa-link img { width: 100%; height: auto; }

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 4px solid var(--orange);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 40px;
  font-size: 15px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--white);
}
.footer-mark img { width: 28px; height: 29px; object-fit: contain; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { display: block; padding: 10px 0; color: var(--white); text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }

/* Legal pages (privacy) --------------------------------------------------- */
.legal { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }
.legal-inner { max-width: calc(760px + 2 * var(--gutter)); }
.legal-inner > * + * { margin-top: 16px; }
.legal-inner > .display-2 { margin-top: 18px; }
.legal-updated { font-size: 15px; color: var(--muted-2); }
.legal-lead { font-size: 19px; color: var(--ink-2); }
.legal-inner > h2 {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}
.legal-inner p,
.legal-inner li { color: var(--ink-2); }
.legal-inner strong { color: var(--navy); font-weight: 600; }
.legal-inner ul { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.legal-inner li { position: relative; padding-left: 21px; }
.legal-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.legal-inner a:not(.link-underline) { text-decoration-color: var(--orange); text-underline-offset: 3px; }
.legal-inner .legal-back { margin-top: 48px; }
.legal-inner a[href^="tel:"] { white-space: nowrap; }
