/* ============================================================
   Ward Veterinary Services — Site Styles
   Brand: Figtree · #13487f / #1076bd / #26aae1 / White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-navy:    #13487f;
  --brand-blue:    #1076bd;
  --brand-sky:     #26aae1;
  --brand-sky-50:  #eaf6fc;
  --brand-navy-90: #0e3b6a;

  --ink:           #14202e;
  --ink-soft:      #44546a;
  --muted:         #6c7989;
  --line:          #e3e9f0;
  --line-soft:     #eef2f7;
  --bg:            #ffffff;
  --bg-alt:        #f5f9fc;
  --bg-cool:       #eaf3f9;

  --shadow-sm: 0 2px 6px rgba(19,72,127,0.06);
  --shadow-md: 0 12px 32px rgba(19,72,127,0.10);
  --shadow-lg: 0 24px 60px rgba(19,72,127,0.14);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 36px;

  --container:   1240px;
  --container-narrow: 880px;

  --font: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 116px; /* emergency bar 40 + nav 76 */
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--brand-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-navy); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }
p  { max-width: 68ch; text-wrap: pretty; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .3rem; }
li::marker { color: var(--brand-sky); }

.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; }

/* ---- Layout helpers ---- */
.container       { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }

.section         { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight  { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--cool   { background: var(--bg-alt); }
.section--navy   { background: var(--brand-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--brand-sky); }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  background: var(--brand-navy); color: #fff;
  padding: .65rem 1rem; border-radius: 8px;
  font-weight: 600; z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ============================================================
   HEADER — Emergency bar + Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand-navy);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 6px 20px rgba(19,72,127,0.18);
}

.emergency-bar {
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .55rem 1rem;
}
.emergency-bar a { color: #fff; text-decoration: none; font-weight: 800; }
.emergency-bar a:hover { color: #fff; text-decoration: underline; }
.emergency-bar .pulse {
  display: inline-block; width: 9px; height: 9px;
  background: #ff3b3b; border-radius: 50%; margin-right: .55rem;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(255,59,59,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,59,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: 100%;
}

.site-logo {
  display: inline-flex; align-items: center;
  padding: .25rem 0;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1.25rem);
  list-style: none;
  padding: 0; margin: 0;
}

.primary-nav > li { position: relative; margin: 0; }
.primary-nav > li::marker { content: ''; }

.primary-nav a {
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .65rem .5rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--brand-sky); }

/* Phone number in nav */
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  color: #fff !important;
  font-weight: 700;
  padding: .55rem .9rem !important;
  border-left: 1px solid rgba(255,255,255,.18);
  border-radius: 0 !important;
}
.nav-phone:hover { color: var(--brand-sky) !important; }
.nav-phone svg { width: 16px; height: 16px; }

/* Schedule CTA */
.nav-cta {
  background: var(--brand-sky);
  color: var(--brand-navy) !important;
  font-weight: 800 !important;
  padding: .7rem 1.25rem !important;
  border-radius: 999px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem !important;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 14px rgba(38,170,225,.35);
}
.nav-cta:hover {
  background: #fff;
  color: var(--brand-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,255,255,.25);
}

/* Dropdown */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  margin-left: .45rem;
  vertical-align: middle;
  opacity: .8;
}
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  background: #fff;
  min-width: 240px;
  padding: .5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, transform .18s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  color: var(--ink) !important;
  padding: .65rem .85rem !important;
  border-radius: 8px;
  font-size: .9rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--brand-sky-50); color: var(--brand-navy) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3);
  width: 44px; height: 44px; border-radius: 8px;
  cursor: pointer; align-items: center; justify-content: center;
}

/* Mobile/tablet phone icon (next to hamburger) */
.mobile-phone {
  display: none;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand-sky);
  color: var(--brand-navy);
  align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.mobile-phone:hover { background: #fff; transform: translateY(-1px); }
.mobile-phone svg { width: 20px; height: 20px; }

.nav-mobile-cluster {
  display: none;
  align-items: center;
  gap: .55rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
  transition: transform .2s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s ease, transform .15s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--brand-sky);
  color: var(--brand-navy);
  box-shadow: 0 8px 24px rgba(38,170,225,.28);
}
.btn--primary:hover { background: #fff; color: var(--brand-navy); }
.btn--solid {
  background: var(--brand-navy);
  color: #fff;
}
.btn--solid:hover { background: var(--brand-navy-90); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}
.btn--outline:hover { background: var(--brand-navy); color: #fff; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost-light:hover { background: #fff; color: var(--brand-navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

/* ============================================================
   HERO — Video background
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: #0a2541;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,37,65,0.55) 0%, rgba(10,37,65,0.65) 50%, rgba(10,37,65,0.85) 100%),
    radial-gradient(120% 80% at 20% 0%, rgba(19,72,127,0.35) 0%, rgba(19,72,127,0) 70%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }
.hero__inner--center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.hero__inner--center p { margin-inline: auto; }
.hero__inner--center .btn-row { justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; }
.hero p  { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 60ch; margin-top: 1.25rem; }
.hero .eyebrow { color: var(--brand-sky); }
.hero__hours {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.5rem; padding: .55rem 1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .85rem; letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.hero__hours .dot { width:8px; height:8px; border-radius:50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(4rem, 7vw, 6.5rem);
  background: var(--brand-navy);
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 90% 20%, rgba(38,170,225,0.30) 0%, transparent 60%),
    radial-gradient(70% 90% at 10% 90%, rgba(16,118,189,0.28) 0%, transparent 60%),
    linear-gradient(180deg, var(--brand-navy) 0%, #0c365e 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: clamp(-3rem, -4vw, -1rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 36vw, 520px);
  aspect-ratio: 40.68 / 38.99;
  background: url('../shield.svg') center/contain no-repeat;
  opacity: .85;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 700px) {
  .page-hero::after {
    width: 260px;
    right: -3rem;
    opacity: .55;
  }
}
.page-hero h1 { color: #fff; }
.page-hero p  { color: rgba(255,255,255,.88); max-width: 62ch; margin-top: 1rem; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--brand-sky); }

.breadcrumb {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .85rem; color: rgba(255,255,255,.7);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: rgba(255,255,255,.4); }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ============================================================
   COMMON COMPONENTS
   ============================================================ */

/* Two-up text+image */
.feature {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.feature--flip { direction: rtl; }
.feature--flip > * { direction: ltr; }
.feature__img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  position: relative;
  isolation: isolate;
}
.feature__img::before {
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 2px solid var(--brand-sky);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}
.feature__img img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.feature__img--wide { aspect-ratio: 5/4; }

/* Service / Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) {
  .card-grid--three { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-sky); }
.card h3 { margin-bottom: .55rem; color: var(--brand-navy); }
.card p  { color: var(--ink-soft); font-size: .98rem; }
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-sky-50);
  color: var(--brand-navy);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }

/* Service tile with image */
.service-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #0a2541;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  padding: 1.6rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2;
  transition: transform .5s ease;
}
.service-tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,37,65,0) 30%, rgba(10,37,65,.85) 100%);
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.service-tile:hover img { transform: scale(1.05); }
.service-tile h3 { color: #fff; margin-bottom: .35rem; }
.service-tile p  { color: rgba(255,255,255,.88); font-size: .95rem; margin: 0; }
.service-tile__arrow {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.service-tile:hover .service-tile__arrow { background: var(--brand-sky); transform: rotate(-45deg); }
.service-tile__arrow svg { width: 18px; height: 18px; stroke: #fff; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.team-card { text-align: left; }
.team-card__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-cool);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.team-card__photo img { width:100%; height:100%; object-fit: cover; }

/* Featured team layout — Dr. Lori square on the left, 2x2 grid on the right */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
  align-items: start;
}
.team-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.25rem);
}
.team-mini-grid .team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.team-mini-grid .team-card__photo {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}
.team-mini-grid .team-card h3 { font-size: 1.15rem; margin-top: .25rem; }
.team-mini-grid .team-card p { font-size: .92rem; margin-top: .5rem; }
.team-mini-grid .team-card__bio summary { font-size: .78rem; }

@media (max-width: 520px) {
  .team-mini-grid .team-card {
    grid-template-columns: 110px 1fr;
    gap: 1rem;
  }
}
.team-card__photo--square { aspect-ratio: 1 / 1; }

@media (max-width: 900px) {
  .team-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* mini grid handles its own breakpoint inline above */
}
.team-card h3 { color: var(--brand-navy); margin-bottom: .15rem; font-size: 1.25rem; }
.team-card__role {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .65rem;
}
.team-card p { font-size: .95rem; color: var(--ink-soft); }

/* Collapsible bio dropdown (small team cards) */
.team-card__bio { margin-top: .4rem; }
.team-card__bio summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  padding: .25rem 0;
  transition: color .15s ease;
}
.team-card__bio summary::-webkit-details-marker { display: none; }
.team-card__bio summary::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .2s ease;
}
.team-card__bio[open] summary::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}
.team-card__bio summary:hover { color: var(--brand-navy); }
.team-card__bio p { margin-top: .55rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: .2rem; left: 1rem;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brand-sky);
  opacity: .35;
  font-family: Georgia, serif;
}
.testimonial__stars { color: #f5a623; font-size: 1rem; margin-bottom: .65rem; letter-spacing: .1em; }
.testimonial__text { font-size: 1rem; color: var(--ink); margin-bottom: 1rem; }
.testimonial__author { font-weight: 700; color: var(--brand-navy); font-size: .92rem; }
.testimonial__author small { display: block; font-weight: 500; color: var(--muted); margin-top: .15rem; }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin-top: 2rem; }
.faq-list li { margin: 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .9rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--brand-sky); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--brand-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 400;
  color: var(--brand-sky);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); line-height: 1.7; }
.faq-item .faq-answer p { max-width: none; }

/* Anchor jump nav (resources page) */
.jump-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0 .75rem;
}
.jump-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
  justify-content: center;
}
.jump-nav__list li { margin: 0; }
.jump-nav a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.jump-nav a:hover { background: var(--brand-sky-50); color: var(--brand-navy); }
.jump-nav a.is-active { background: var(--brand-navy); color: #fff; }

/* Big info / pill list (services lists) */
.pill-list {
  display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin-top: 1.25rem;
}
.pill-list li {
  background: var(--brand-sky-50);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  margin: 0;
}
.pill-list li::marker { content: ''; }

/* Checklist — simple light-blue checkmark only */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .65rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '';
  position: absolute; left: 2px; top: .55rem;
  width: 12px; height: 6px;
  border-left: 2.5px solid var(--brand-sky);
  border-bottom: 2.5px solid var(--brand-sky);
  transform: rotate(-45deg);
}

/* CTA strip */
.cta-strip {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(38,170,225,.25) 0%, transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(255,255,255,.10) 0%, transparent 60%),
    var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  align-items: center; justify-content: space-between;
}
.cta-strip--solid { box-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* Photo background sits BEHIND the blue CTA card, full-bleed */
.cta-section { padding-block: 0; }
.cta-photo-bg {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.cta-photo-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background: var(--cta-bg, none) center/cover no-repeat;
}
.cta-photo-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,37,65,0.40) 0%, rgba(10,37,65,0.55) 100%);
}

.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip p  { color: rgba(255,255,255,.85); margin-top: .5rem; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.contact-card h3 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .4rem;
}
.contact-card a, .contact-card address {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  font-style: normal;
  line-height: 1.45;
}
.contact-card small { color: var(--muted); font-weight: 500; font-size: .88rem; }

.contact-form label {
  display: block; font-weight: 600; font-size: .88rem;
  margin-bottom: .4rem; color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(16,118,189,.12);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .contact-form .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--brand-navy) 0%, #0b2c4f 100%);
  color: rgba(255,255,255,.78);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col p { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col .footer-logo {
  height: 52px;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col li::marker { content: ''; }
.footer-col li a { font-size: .95rem; }

.footer-contact { font-size: .95rem; line-height: 1.8; font-style: normal; }
.footer-contact strong { color: #fff; }

.social-row { display: flex; gap: .65rem; margin-top: 1rem; }
.social-row a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  transition: background .15s, transform .15s;
}
.social-row a:hover { background: var(--brand-sky); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }

.footer-map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: .5rem;
  border: 1px solid rgba(255,255,255,.1);
}
.footer-map iframe { display: block; width: 100%; height: 200px; border: 0; filter: saturate(.85) brightness(.95); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.55); font-size: .82rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --header-h: 108px; }
  .feature { grid-template-columns: 1fr; }
  .feature--flip { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col:last-child  { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  :root { --header-h: 104px; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile-cluster { display: inline-flex; }
  .mobile-phone { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--brand-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 30px rgba(0,0,0,.2);
    transform: translateY(-150%);
    transition: transform .25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a { padding: .85rem 0; font-size: 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav .nav-phone { border-left: none; padding-left: 0 !important; }
  .primary-nav .nav-cta {
    margin-top: .85rem;
    text-align: center;
    background: var(--brand-sky);
    color: var(--brand-navy) !important;
    border: none;
  }
  .has-dropdown > a::after { float: right; margin-top: .5rem; }
  .dropdown {
    position: static; transform: none;
    background: rgba(255,255,255,.04);
    box-shadow: none;
    opacity: 1; visibility: visible;
    min-width: auto;
    padding: 0;
    border-radius: 0;
    display: none;
  }
  .has-dropdown.is-open > .dropdown { display: block; }
  .dropdown a {
    color: rgba(255,255,255,.85) !important;
    padding: .65rem 1rem !important;
    border-radius: 0;
    font-size: .95rem;
  }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff !important; }
}

@media (max-width: 640px) {
  .emergency-bar { font-size: .82rem; padding: .55rem .75rem; }
  .site-logo img { height: 38px; }
  .hero { min-height: 520px; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; border-radius: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   TABLET & MOBILE FINE-TUNING
   ============================================================ */

/* Prevent any sneaky horizontal scroll on small viewports.
   NOTE: applied to body only — putting overflow on <html> breaks position: sticky. */
body { overflow-x: clip; }

/* Tablet (≤ 980px) ---------------------------------------- */
@media (max-width: 980px) {
  body { font-size: 16px; }
  .section { padding-block: clamp(3rem, 6vw, 4.5rem); }
  .cta-photo-bg { padding-block: clamp(2.5rem, 5vw, 4rem); }

  /* Feature offset border — pull in so it never clips */
  .feature__img::before { inset: -10px -10px 10px 10px; }
  /* Cap photo height so a 4:5 portrait doesn't dwarf the text column at tablet sizes */
  .feature__img {
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 4/3;
  }
  .feature__img--wide { aspect-ratio: 5/4; }

  /* Service grid: 2 across on tablet */
  .service-grid { grid-template-columns: repeat(2, 1fr); }

  /* Cards a little tighter */
  .card { padding: 1.35rem; }
  .card-grid { gap: 1rem; }

  /* Testimonials: comfortable 1-up at narrow tablet sizes */
  .testimonial-grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }

  /* Contact card lays out single-column above the form */
  .contact-grid { gap: 2rem; }

  /* Shield watermark on page-hero shrinks earlier */
  .page-hero::after { width: 320px; opacity: .55; right: -2rem; }
}

/* Phone (≤ 720px) ---------------------------------------- */
@media (max-width: 720px) {
  :root {
    --header-h: 100px;
    --radius-xl: 24px;
  }
  body { font-size: 16px; line-height: 1.6; }

  /* Container padding tightens */
  .container { padding-inline: 1.1rem; }

  /* Hero — better breathing room, tighter type */
  .hero {
    min-height: 480px;
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero p  { font-size: 1rem; }

  /* Page hero (interior) */
  .page-hero {
    padding-block: clamp(2.5rem, 7vw, 4rem);
    text-align: left;
  }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-hero p  { font-size: 1rem; }
  .page-hero::after {
    width: 220px;
    right: -3.5rem;
    opacity: .35;
    top: auto;
    bottom: -2rem;
    transform: none;
  }

  /* Buttons: full-width feel inside button rows for thumb-friendliness */
  .btn { padding: .85rem 1.3rem; font-size: .88rem; }
  .btn-row { gap: .6rem; }

  /* Service tiles: single column, taller cropped image */
  .service-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-tile { aspect-ratio: 16/11; padding: 1.25rem; }
  .service-tile h3 { font-size: 1.2rem; }

  /* Cards single column */
  .card-grid { grid-template-columns: 1fr; }

  /* Feature image — kill the offset frame on tiny screens (it competes for space) */
  .feature { gap: 2rem; }
  .feature__img::before { inset: -8px -8px 8px 8px; }
  .feature__img { aspect-ratio: 4/3; }
  .feature__img--wide { aspect-ratio: 4/3; }

  /* Jump nav — horizontal-scroll pill row */
  .jump-nav { padding: 1rem 0 .6rem; }
  .jump-nav__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 1.1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .jump-nav__list::-webkit-scrollbar { display: none; }
  .jump-nav a { white-space: nowrap; font-size: .82rem; padding: .5rem .85rem; }

  /* Sticky-nav offset less aggressive */
  html { scroll-padding-top: calc(var(--header-h) + 60px); }

  /* FAQ summary slightly smaller */
  .faq-item summary { font-size: .98rem; padding: 1rem 1.15rem; }
  .faq-item .faq-answer { padding: 0 1.15rem 1.15rem; }

  /* Pill list slightly tighter */
  .pill-list li { font-size: .85rem; padding: .45rem .85rem; }

  /* CTA strip: centered, stacked content */
  .cta-strip { padding: 1.75rem 1.4rem; gap: 1.25rem; }
  .cta-strip h2 { font-size: 1.5rem; line-height: 1.2; }
  .cta-strip p { font-size: .95rem; }
  .cta-strip .btn-row { width: 100%; flex-direction: column; }
  .cta-strip .btn { width: 100%; }

  /* Contact info cards a touch tighter */
  .contact-card { padding: 1.2rem 1.35rem; }
  .contact-card a, .contact-card address { font-size: 1.05rem; }

  /* Footer: single column, logo & map full width naturally */
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; }
  .footer-col { grid-column: 1 / -1; }
  .footer-col .footer-logo { height: 44px; margin-bottom: .85rem; }
  .footer-map iframe { height: 220px; }

  /* Emergency bar — slimmer, no double-line on tiny phones */
  .emergency-bar {
    font-size: .78rem;
    letter-spacing: .02em;
    padding: .5rem .6rem;
    line-height: 1.35;
  }
  .emergency-bar .pulse { width: 8px; height: 8px; }

  /* Nav bar */
  .nav-bar { padding: .65rem 1rem; gap: .5rem; }
  .site-logo img { height: 34px; }

  /* Team mini grid → make name/role/photo proportions feel right on phone */
  .team-mini-grid .team-card { grid-template-columns: 100px 1fr; gap: .9rem; }
  .team-mini-grid .team-card h3 { font-size: 1.05rem; }
  .team-mini-grid .team-card p { font-size: .88rem; line-height: 1.55; }
  .team-card__role { font-size: .72rem; letter-spacing: .12em; }

  /* Section headings centered eyebrow on mobile keeps a consistent rhythm */
  .section [style*="text-align:center"] .eyebrow,
  .section [style*="text-align: center"] .eyebrow { display: inline-block; }
}

/* Tiny phone (≤ 420px) ----------------------------------- */
@media (max-width: 420px) {
  :root { --header-h: 96px; }
  .emergency-bar { font-size: .72rem; padding: .45rem .5rem; }
  .nav-bar { padding: .55rem .85rem; }
  .site-logo img { height: 30px; }
  .nav-toggle, .mobile-phone { width: 40px; height: 40px; }

  .hero h1 { font-size: 1.85rem; line-height: 1.15; }
  .page-hero h1 { font-size: 1.65rem; }

  .team-mini-grid .team-card { grid-template-columns: 86px 1fr; }
  .team-mini-grid .team-card h3 { font-size: 1rem; }

  .feature__img::before { inset: -6px -6px 6px 6px; }
}

/* Landscape phones — squish hero so it doesn't fill the whole screen */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: 360px; padding-block: 2.5rem; }
  .page-hero { padding-block: 2rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
