/* ───────────────────────────────────────────────────────────
   Xtraspots brand styles, from the brand contract in
   sander217/xtraspots-design-contracts. Used by the pages already
   moved to it (xtraspots-pos.html, early-termination-fees.html);
   the rest of the site still carries its own inline styles.
   Navy anchors, lime is the one accent, canvas is the light ground.
   Anton uppercase for h1 and h2, Archivo for everything else.
   ─────────────────────────────────────────────────────────── */
:root {
  --navy: #093C68; --navy-2: #0F4A7F;
  --lime: #DCF26A; --lime-h: #CBE36A;
  --canvas: #F4F1EA; --surface: #FBFAF6;
  --ink: #093C68; --body: #3B4A5A;          /* on light grounds */
  --ink-d: #F4F1EA; --body-d: #C9D6E4;      /* on navy */
  --max: 1200px; --r: 20px; --nav-h: 60px;
  --display: Anton, 'Arial Narrow', Arial, sans-serif;
  --text: Archivo, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  color: var(--body); background: var(--canvas);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .nav :focus-visible, footer :focus-visible { outline-color: var(--lime); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--lime); color: var(--navy); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── type ── */
h1, h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .98; letter-spacing: .004em; color: var(--ink); text-wrap: balance;
}
h1 { font-size: clamp(46px, 6.6vw, 88px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); max-width: 18ch; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); }
h3 + p { margin-top: 8px; }
.lead { font-size: 20px; line-height: 1.55; max-width: 52ch; }
.eyebrow {
  display: block; margin-bottom: 18px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.crumb a { text-decoration: none; opacity: .75; }
.crumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.crumb span { opacity: .75; }
.crumb [aria-current] { opacity: 1; }

/* ── layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 112px 0; }
/* pages set --cols for their own column split; phones always stack */
.split { display: grid; grid-template-columns: var(--cols, minmax(0, 5fr) minmax(0, 7fr)); gap: 56px; align-items: center; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero { padding-top: calc(var(--nav-h) + 56px); }

/* ── grounds: no two neighbours share one ── */
.dark { background: var(--navy); color: var(--body-d); }
.dark h1, .dark h2, .dark h3 { color: var(--ink-d); }
.lime { background: var(--lime); color: var(--navy); }
.lime h2, .lime h3, .lime .lead { color: var(--navy); }
.surface { background: var(--surface); }

/* ── cards: fill, radius and padding only ── */
.card, .card-c, .card-d, .card-n { border-radius: var(--r); padding: 36px 40px; }
.card { background: var(--surface); color: var(--body); }
.card-c { background: var(--canvas); color: var(--body); }
.card h3, .card-c h3 { color: var(--ink); }
.card-d { background: var(--navy-2); color: var(--body-d); }
.card-n { background: var(--navy); color: var(--body-d); }
.card-d h3, .card-n h3 { color: var(--ink-d); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background .2s, transform .15s cubic-bezier(.16, 1, .3, 1);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-navy { background: var(--navy); color: var(--ink-d); }
.btn-navy:hover { background: var(--navy-2); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-h); }
.btn-ghost { background: rgba(9, 60, 104, .08); color: var(--navy); }
.btn-ghost:hover { background: rgba(9, 60, 104, .14); }

/* ── photos ── */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy-2); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 36px 32px;
  color: var(--ink-d);
  background: linear-gradient(180deg, rgba(9, 60, 104, 0) 0%, rgba(9, 60, 104, .8) 45%, rgba(9, 60, 104, .94) 100%);
}
.photo .cap h3 { color: var(--ink-d); font-size: 26px; }

/* ── one person, until the team page grows ── */
.person { display: flex; align-items: center; gap: 24px; }
.person img { width: 120px; height: 120px; border-radius: var(--r); object-fit: cover; flex: none; }
.person-name { display: block; font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.person-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.person-role { display: block; font-size: 15px; margin-top: 2px; }
.dark .person-name { color: var(--ink-d); }

/* ── answer-first questions: the first sentence answers on its own ── */
.qa > div + div { margin-top: 18px; }
.qa dt { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qa dd { margin-top: 8px; }

/* ── site nav: same markup, links and behaviour as every page, in brand colours ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); display: flex; align-items: center; gap: 8px;
  padding: 0 40px; background: var(--navy); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 10px 30px rgba(4, 25, 45, .28); }
.nav-logo { display: inline-flex; align-items: center; margin-right: auto; line-height: 0; }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--body-d); text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink-d); background: rgba(244, 241, 234, .08); }
.nav-links a.active { color: var(--ink-d); background: rgba(244, 241, 234, .12); }
.nav-links a.nav-cta, .nav-cta-mobile-open {
  background: var(--lime); color: var(--navy); font-weight: 700; padding: 8px 18px; margin-left: 8px;
}
.nav-links a.nav-cta:hover, .nav-cta-mobile-open:hover { background: var(--lime-h); color: var(--navy); }
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.nav-dropdown {
  list-style: none; position: absolute; top: calc(100% + 8px); left: -6px; min-width: 290px;
  padding: 8px; border-radius: 16px; background: var(--navy-2);
  box-shadow: 0 24px 48px rgba(4, 25, 45, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.nav-dropdown::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .2s, visibility 0s;
}
.nav-dropdown a { padding: 10px 12px; border-radius: 10px; color: var(--ink-d); }
.nav-dropdown a.active { background: rgba(244, 241, 234, .12); }
.dropdown-meta { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--body-d); }
.nav-hamburger { display: none; width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer; }
.nav-hamburger span { display: block; width: 22px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--ink-d); }
.nav-cta-mobile-open, .nav-close { display: none; }

@media (max-width: 960px) {
  .nav { padding: 0 12px 0 20px; }
  .nav-hamburger { display: block; order: 2; }
  .nav-cta-mobile-open {
    display: inline-flex; align-items: center; margin: 0 4px 0 0; order: 1;
    border-radius: 999px; font-size: 14px; text-decoration: none;
  }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 120px; background: var(--navy); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s, transform .25s, visibility 0s;
  }
  .nav-links > li + li { border-top: 1px solid rgba(244, 241, 234, .1); }
  .nav-links a { padding: 16px 8px; border-radius: 0; font-size: 17px; color: var(--ink-d); }
  .nav-links a:hover { background: none; }
  .nav-links a.nav-cta { display: none; }
  .has-dropdown > a::after { display: none; }
  .nav-dropdown {
    position: static; min-width: 0; padding: 0 0 10px; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { padding: 10px 8px 10px 24px; font-size: 15px; color: var(--body-d); border-radius: 10px; }
  .dropdown-meta { display: none; }
  body.nav-open .nav-hamburger { display: none; }
  body.nav-open .nav-close {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 300;
    width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--canvas); color: var(--navy); box-shadow: 0 12px 32px rgba(4, 25, 45, .35);
  }
}

/* ── footer: the site's links and legal text, in brand colours ── */
footer { background: var(--navy); color: var(--body-d); padding: 80px 32px 48px; }
.footer-inner { max-width: calc(var(--max) - 64px); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-d); margin-bottom: 10px; }
.footer-tagline { font-size: 15px; line-height: 1.6; max-width: 30ch; }
.footer-col-head {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-d); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-social a { font-size: 15px; color: var(--body-d); text-decoration: none; }
.footer-links a:hover, .footer-social a:hover { color: var(--ink-d); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(244, 241, 234, .12); }
.footer-legal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-copy { font-size: 14px; }
.footer-social { display: flex; gap: 20px; }
.footer-legal-text { font-size: 13px; line-height: 1.7; }
.footer-legal-text p + p { margin-top: 6px; }

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  .lead { font-size: 18px; }
  .card, .card-c, .card-d, .card-n { padding: 28px; }
  footer { padding: 64px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .person img { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
