/* Wythenshawe Xchange: white and blue */
:root {
  --paper: #ffffff;
  --mist: #dfe8f7;      /* page backdrop */
  --ice: #eef3fc;       /* tiles */
  --cobalt: #1a4bd6;    /* main brand blue */
  --cobalt-deep: #1238a8;
  --navy: #0a1b45;
  --sky: #a9c6ff;
  --ink: #0e1a33;
  --muted: #56658a;
  --line: #d3ddef;

  --r-panel: 32px;
  --r-sheet: 24px;
  --r-tile: 18px;
  --gutter: clamp(16px, 3vw, 36px);
  --max: 1240px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 14px var(--gutter) 0;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Panels ---------- */
.panel {
  max-width: var(--max);
  margin: 0 auto 18px;
  border-radius: var(--r-panel);
  background: var(--paper);
  padding: clamp(20px, 3.5vw, 44px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--white { background: var(--paper); color: var(--navy); }
.btn--white:hover { background: var(--ice); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--blue { background: var(--cobalt); color: #fff; }
.btn--blue:hover { background: var(--cobalt-deep); }
.btn--line { background: var(--paper); color: var(--ink); border-color: var(--line); min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--line:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ---------- Hero ---------- */
.hero {
  background: var(--cobalt);
  color: #fff;
  padding-top: 14px;
  overflow: hidden;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.nav-brand {
  text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  font-stretch: 112%;
}
.nav-brand b { font-weight: 800; }
.nav-pills {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.12); border-radius: 999px;
}
.pill {
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85);
}
.pill:hover { color: #fff; background: rgba(255,255,255,.12); }
.pill.is-active { background: var(--paper); color: var(--navy); font-weight: 600; }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff;
  white-space: nowrap; flex: none;
}
.nav-cta:hover { background: #06122f; }

.hero-top {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
}
.hero-title { font-weight: 800; letter-spacing: -0.035em; }
.hero-line { display: block; }
.hero-line:first-child {
  font-size: clamp(48px, 7.6vw, 104px);
  font-stretch: 125%;
  line-height: .92;
}
.hero-line--sub {
  margin-top: 16px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600; font-stretch: 100%; letter-spacing: -0.02em;
  color: var(--sky); max-width: 20ch;
}
.hero-intro {
  font-size: 16px; color: rgba(255,255,255,.82); max-width: 42ch;
  margin: 20px 0 26px;
}

.hero-stage {
  position: relative;
  max-width: 600px; justify-self: end; width: 100%;
}
.hero-logo { width: 100%; filter: drop-shadow(0 24px 40px rgba(6, 18, 60, .45)); }
.hero-badge {
  position: absolute; right: -4%; top: 6%;
  width: clamp(92px, 13vw, 132px); aspect-ratio: 1;
  border-radius: 50%; background: var(--paper); color: var(--cobalt);
  display: grid; place-content: center; text-align: center;
  transform: rotate(10deg);
  box-shadow: 0 0 0 6px rgba(255,255,255,.25);
}
.hero-badge-big { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: -0.03em; }
.hero-badge-small { font-size: clamp(11px, 1.3vw, 14px); font-weight: 600; color: var(--navy); }

.hero-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 18px 0 22px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.92);
}
.chip--solid { background: var(--paper); color: var(--navy); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- White sheet inside hero ---------- */
.sheet {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-sheet);
  padding: clamp(18px, 3vw, 32px);
  margin: 0 calc(-1 * clamp(4px, 1vw, 12px)) clamp(-4px, -0.5vw, 0px);
}
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.sheet-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; }
.sheet-note { color: var(--muted); font-size: 15px; max-width: 46ch; }

.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.item { display: flex; flex-direction: column; }
.item-art {
  position: relative; aspect-ratio: 4 / 4.4;
  background: var(--ice); border-radius: var(--r-tile);
  display: grid; place-items: center; margin-bottom: 12px;
}
.item:nth-child(2n) .item-art { background: #e3ecfb; }
.item-art svg { width: 62%; fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.item-art svg .fill { fill: var(--cobalt); stroke: none; }
.tag {
  position: absolute; left: 10px; top: 10px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--cobalt); color: #fff;
}
.item-meta { font-size: 13px; color: var(--muted); }
.item-name { font-size: 18px; font-weight: 700; margin: 2px 0 4px; letter-spacing: -0.01em; }
.item-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; flex: 1; }
.item .btn { align-self: flex-start; }

.steps {
  list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-stretch: 125%;
}
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--muted); }

/* ---------- Services feature ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.feature-media {
  background: var(--navy); border-radius: var(--r-sheet);
  padding: clamp(20px, 4vw, 44px);
}
.feature-title, .section-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em;
}
.feature-text { color: var(--muted); margin: 14px 0 22px; max-width: 46ch; }
.services {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.services li { background: var(--ice); border-radius: var(--r-tile); padding: 16px 18px; }
.services h3 { font-size: 16px; font-weight: 700; color: var(--cobalt); margin-bottom: 4px; }
.services p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.visit-map { border-radius: var(--r-sheet); overflow: hidden; background: var(--ice); aspect-ratio: 4 / 3; }
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.address {
  font-style: normal; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.015em; margin: 16px 0 16px;
  padding-left: 16px; border-left: 4px solid var(--cobalt);
}
.visit-text { color: var(--muted); max-width: 44ch; margin-bottom: 20px; }
.hours { background: var(--ice); border-radius: var(--r-tile); padding: 16px 18px; margin-bottom: 24px; max-width: 420px; }
.hours-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.open-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cobalt); color: #fff; }
.open-status.is-closed { background: var(--line); color: var(--ink); }
.hours-list { margin: 0; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hours-list div:first-child { border-top: 0; }
.hours-list dt { color: var(--muted); }
.hours-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: end;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.contact-title {
  font-size: clamp(44px, 7.5vw, 104px); font-weight: 800; font-stretch: 125%;
  letter-spacing: -0.04em; line-height: .92;
}
.contact-intro { color: rgba(255,255,255,.78); max-width: 40ch; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.person {
  background: var(--cobalt); border-radius: var(--r-sheet);
  padding: clamp(20px, 3vw, 32px);
}
.person-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--cobalt); font-weight: 800; font-size: 18px;
}
.person-name { font-size: 24px; font-weight: 700; }
.person-number {
  display: block; text-decoration: none;
  font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; font-stretch: 110%;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.person-number:hover { color: var(--sky); }
.person-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 18px 8px 40px;
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
.footer b { color: var(--ink); }

/* ---------- Quick contact bar (phones only) ---------- */
.quickbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-pills { display: none; }
  .hero-top, .feature, .visit, .contact-head { grid-template-columns: 1fr; }
  .hero-stage { justify-self: center; max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .feature-media { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .panel { border-radius: 24px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item-desc { display: none; }
  .item-art { aspect-ratio: 1 / .78; }
  .item-art svg { width: 48%; }
  .tag { top: auto; bottom: 8px; left: 8px; font-size: 11px; }
  .item:last-child { grid-column: 1 / -1; }
  .item:last-child .item-art { aspect-ratio: 2.2 / 1; }
  .item:last-child .item-art svg { width: 26%; }
  .person-actions .btn { flex: 1; padding: 0 12px; }
  .services, .people { grid-template-columns: 1fr; }
  .hero-badge { right: 0; top: -2%; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .quickbar {
    display: flex; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
    padding: 8px; border-radius: 999px; background: var(--navy);
    box-shadow: 0 10px 30px rgba(10, 27, 69, .35);
  }
  .quickbar .btn { flex: 1; }
}
