/* ==========================================================================
   Fourways Veterinary Hospital — static site stylesheet
   Colour scheme carried over from the original site:
     navy #001167 (headings / brand), deep navy #000939 (buttons),
     body text #463939, soft blue #f4f7ff, emergency red #b00808
   ========================================================================== */

:root {
  --navy: #001167;
  --navy-dark: #000939;
  --navy-soft: #e8ebf7;
  --ink: #463939;
  --muted: #6b6b6b;
  --red: #b00808;
  --white: #ffffff;
  --bg-soft: #f4f7ff;
  --bg-grey: #f5f5f5;
  --line: #e1e4ef;
  --shadow: 0 10px 30px rgba(0, 17, 103, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 17, 103, 0.14);
  --radius: 14px;
  --font-head: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Merriweather", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

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

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

strong { font-weight: 700; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 2.5rem)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--grey { background: var(--bg-grey); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: .8rem;
}
.lead { font-size: 1.1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: #8e0606; border-color: #8e0606; color: var(--white); }
.btn--sm { padding: .6rem 1.2rem; font-size: .82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: .8rem;
  font-weight: 400;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
}
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--white); }
.topbar__links { display: flex; gap: 1.4rem; align-items: center; }
.topbar__right { display: flex; gap: 1.1rem; align-items: center; }
.topbar__phone { font-weight: 700; letter-spacing: .02em; }
.social { display: inline-flex; gap: .6rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: background .2s ease;
}
.social a:hover { background: rgba(255, 255, 255, .28); }
.social svg { width: 14px; height: 14px; fill: currentColor; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}
.logo img { width: 250px; max-width: 58vw; height: auto; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav > li { list-style: none; position: relative; margin: 0; }
.nav a {
  display: block;
  padding: .55rem .8rem;
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--navy);
  border-radius: 8px;
  white-space: nowrap;
}
.nav > li > a:hover, .nav > li > a[aria-current="page"] { background: var(--bg-soft); }
.nav > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  margin-left: .45rem;
  opacity: .7;
}
.sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub li { margin: 0; }
.sub a { font-family: var(--font-body); font-size: .85rem; font-weight: 400; padding: .55rem .8rem; white-space: normal; }
.sub a:hover { background: var(--bg-soft); }
.nav > li:hover > .sub,
.nav > li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }

.emergency {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(176, 8, 8, .3);
  transition: transform .2s ease, background .2s ease;
}
.emergency:hover { background: #8e0606; color: var(--white); transform: translateY(-2px); }
.emergency small { display: block; font-size: .62rem; opacity: .9; font-weight: 400; }

.nav-toggle { display: none; }
.header__nav .emergency { display: none; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: transform .2s ease, top .2s ease, opacity .2s;
}
.nav-burger span { top: 21px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; max-width: 56ch; }
.hero__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 17, 103, 0) 55%, rgba(0, 17, 103, .35) 100%);
}
.hero__badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  background: var(--white); color: var(--navy);
  padding: .8rem 1.1rem; border-radius: 14px;
  font-size: .85rem; font-weight: 700; line-height: 1.3;
  box-shadow: var(--shadow);
}
.hero__badge span { display: block; font-weight: 300; font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Page banner (inner pages)
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  color: var(--white);
  background: var(--navy);
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.banner__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 9, 57, .88) 0%, rgba(0, 17, 103, .72) 55%, rgba(0, 17, 103, .45) 100%);
}
.banner .wrap { padding: clamp(3rem, 7vw, 5rem) 0; }
.banner h1 { color: var(--white); margin-bottom: .4rem; }
.banner__sub { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 60ch; margin: 0; }
.banner__icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.banner__icon svg { width: 42px; height: 42px; fill: var(--white); }
.banner--plain { min-height: 240px; }
.banner--plain::before { background: var(--navy); }

.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 .5rem; opacity: .6; }

/* --------------------------------------------------------------------------
   Icon tiles / service grid
   -------------------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.2rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy-soft); }
.tile img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 1rem; }
.tile h3 { font-size: 1.05rem; margin: 0; color: var(--navy); }

/* --------------------------------------------------------------------------
   Split (text + image) blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse > .split__media { order: -1; }
.split--single { grid-template-columns: 1fr; max-width: 860px; }
.split__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__media--square img { aspect-ratio: 1 / 1; }
.split__icon { width: 74px; height: 74px; margin-bottom: 1.2rem; object-fit: contain; }
.split__icon svg { width: 100%; height: 100%; fill: var(--navy); }
.split h2 { margin-bottom: .8rem; }

/* Feature list within split */
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .75rem;
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checks li strong { color: var(--navy); font-weight: 700; }

/* --------------------------------------------------------------------------
   Video band ("See Inside Our Hospital")
   -------------------------------------------------------------------------- */
.video-band {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.video-band video, .video-band img.video-poster {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.video-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 9, 57, .55), rgba(0, 9, 57, .7));
}
.video-band h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat svg { width: 48px; height: 48px; fill: var(--navy); margin-bottom: .6rem; }
.stat h2 { font-size: 2.4rem; margin: 0 0 .2rem; }
.stat p { margin: 0; color: var(--muted); font-size: .92rem; }

.factbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.fact {
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
  padding: 1.8rem;
  border-radius: var(--radius);
}
.fact .fact__num { font-family: var(--font-head); font-size: 2.2rem; color: var(--white); line-height: 1; margin-bottom: .4rem; }
.fact h4 { color: var(--white); margin-bottom: .5rem; }
.fact p { font-size: .92rem; margin: 0; }

/* --------------------------------------------------------------------------
   Cards (services / facilities listing)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__icon { width: 46px; height: 46px; margin-bottom: .8rem; }
.card__icon svg { width: 100%; height: 100%; fill: var(--navy); }
.card h2, .card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--navy-soft); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__body { padding: 1.1rem 1rem 1.3rem; }
.member h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.member p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }
.member p.role { color: var(--red); font-weight: 700; margin-top: .3rem; }

.team-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.team-group figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-group img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 3; }
.team-group--wide { grid-template-columns: 1fr; }
.team-group--wide img { aspect-ratio: 2 / 1; }

.quick {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0; margin: 1.2rem 0 0; list-style: none;
}
.quick li { margin: 0; }
.quick a {
  display: inline-block;
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 400;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.quick a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; margin: 2rem auto 0; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.faq details[open] summary::after { content: "–"; background: var(--navy); color: var(--white); }
.faq details > div { padding: 0 1.4rem 1.3rem; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Contact / info
   -------------------------------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.info {
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info svg { width: 36px; height: 36px; fill: var(--navy); margin-bottom: .8rem; }
.info h3 { font-size: 1.05rem; word-break: break-word; }
.info p { font-size: .9rem; color: var(--muted); margin: 0; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  margin: 0;
}
.hours li:last-child { border-bottom: 0; }
.hours li b { color: var(--navy); font-weight: 700; }
.hours li span { text-align: right; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--navy); }
.form label.full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-weight: 300;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 17, 103, .12); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* Form feedback (shown when the URL ends in #sent or #error after contact.php redirects back) */
.alert { display: none; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .95rem; scroll-margin-top: 120px; }
.alert strong { font-weight: 700; }
.alert--ok { background: #e6f6ec; border: 1px solid #b7e2c5; color: #14532d; }
.alert--bad { background: #fdecec; border: 1px solid #f3b8b8; color: #7f1d1d; }
.alert--bad a { color: #7f1d1d; text-decoration: underline; }
.alert:target { display: block; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Directory (recommended services) */
.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.directory__group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.directory__group h2 { font-size: 1.25rem; padding-bottom: .7rem; border-bottom: 2px solid var(--bg-soft); margin-bottom: 1rem; }
.entry { padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.entry:last-child { border-bottom: 0; }
.entry b { display: block; color: var(--navy); font-weight: 700; }
.entry small { display: block; color: var(--muted); font-size: .8rem; }
.entry a { display: block; }

/* Legal */
.legal p { margin-bottom: 1em; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .6rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  isolation: isolate;
  overflow: hidden;
}
.cta img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 9, 57, .82); }
.cta h2 { color: var(--white); max-width: 26ch; margin: 0 auto 1.6rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, .8); font-size: .9rem; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: var(--white); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo img { width: 260px; max-width: 100%; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: .9rem; }
.footer address { font-style: normal; line-height: 1.7; }
.footer .social { margin-top: 1.2rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.4rem 0; font-size: .8rem;
}
.footer__bottom ul { list-style: none; display: flex; gap: 1.4rem; padding: 0; margin: 0; }
.footer__bottom li { margin: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav a { padding: .55rem .55rem; font-size: .88rem; }
  .logo img { width: 210px; }
}

@media (max-width: 960px) {
  .header .wrap { min-height: 74px; }
  .nav-burger { display: block; }
  .header__nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: var(--white);
    box-shadow: -20px 0 50px rgba(0, 17, 103, .2);
    padding: 5.5rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    z-index: 60;
    display: flex; flex-direction: column; gap: 1.2rem;
  }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0; }
  .nav a { padding: .8rem .6rem; border-radius: 8px; white-space: normal; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li.has-sub > a::after { float: right; margin-top: .55rem; }
  .sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    padding: 0 0 .6rem .8rem;
    display: none;
  }
  .nav > li.has-sub:hover > .sub,
  .nav > li.has-sub:focus-within > .sub { display: block; }
  .header__nav .emergency { display: inline-flex; align-self: flex-start; }
  .nav-toggle:checked ~ .header__nav { transform: translateX(0); visibility: visible; }
  .nav-toggle:checked ~ .nav-burger { position: relative; z-index: 70; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle:checked ~ .nav-backdrop {
    content: ""; position: fixed; inset: 0; z-index: 55;
    background: rgba(0, 9, 57, .45);
  }
  .emergency--desktop { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
  .split__media--tall img, .split__media--square img { aspect-ratio: 4 / 3; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .factbox { grid-template-columns: 1fr; }
  .topbar__links { gap: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: .96rem; }
  .topbar .wrap { justify-content: center; }
  .topbar__links { display: none; }
  .logo img { width: 190px; }
  .hero h1 { font-size: 2rem; }
  .banner { min-height: 300px; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__bottom ul { justify-content: center; flex-wrap: wrap; gap: .8rem 1.2rem; }
  .video-band { min-height: 400px; }
  .stat h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
