/* Nebraska Equine Veterinary Clinic
   Design tokens first, then base, layout, components, pages. */

:root {
  --navy-950: #0a1229;
  --navy-900: #101b3d;
  --navy-800: #172552;
  --navy-700: #24376f;
  --navy-100: #e7eaf3;
  --red: #b3202a;
  --red-600: #961a22;
  --red-100: #f8e6e7;
  --cream: #faf7f2;
  --sand: #f3ede3;
  --sand-300: #e4d9c7;
  --tan: #d2b07c;
  --ink: #161b2b;
  --muted: #586074;
  --line: #e6dfd3;
  --white: #fff;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 61, .06), 0 2px 8px rgba(16, 27, 61, .05);
  --shadow: 0 10px 30px -10px rgba(16, 27, 61, .22), 0 2px 6px rgba(16, 27, 61, .06);
  --shadow-lg: 0 30px 60px -20px rgba(10, 18, 41, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --topbar-h: 40px;
  --header-h: 84px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--navy-900); letter-spacing: -.01em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy-900); color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sm { width: .9em; height: .9em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--white); color: var(--navy-900); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.06; }
.h3 { font-size: clamp(1.55rem, 2.2vw, 1.9rem); }
.h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: .02em; color: var(--navy-900); }
.h2 em, .h1 em, .footer-cta__title em { font-style: italic; font-weight: 500; color: var(--red); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .8; }
.eyebrow--light { color: var(--tan); }
.eyebrow--center { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: .9rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #d9deea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head .lead { margin-bottom: 0; }
.section-foot { margin-top: 40px; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px -8px rgba(179, 32, 42, .6); }
.btn--red:hover { background: var(--red-600); color: var(--white); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--sand); color: var(--navy-900); }
.btn--ghost { border-color: var(--sand-300); color: var(--navy-900); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .38); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy-900); }
.link-arrow .icon { transition: transform .2s var(--ease); color: var(--red); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 60; height: var(--topbar-h); background: var(--navy-950); color: #b9c1d6; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar__item .icon { color: var(--tan); }
.topbar__emergency { margin-right: auto; color: var(--white); }
.topbar__emergency strong { color: #ff9ba1; font-weight: 800; }
.topbar__emergency:hover { color: var(--white); text-decoration: underline; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #ff4b55; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #ff4b55; opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Header + nav ---------- */
.site-header {
  position: fixed; z-index: 50; top: var(--topbar-h); left: 0; right: 0;
  height: var(--header-h);
  transition: top .3s var(--ease), background .3s, box-shadow .3s, height .3s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 41, .55), rgba(10, 18, 41, 0)); pointer-events: none; transition: opacity .3s; }
.site-header.is-scrolled { top: 0; height: 72px; background: rgba(16, 27, 61, .97); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; flex: none; }
.brand:hover { color: var(--white); }
.brand__mark { width: auto; height: 52px; transition: height .3s var(--ease); }
.is-scrolled .brand__mark { height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant: small-caps; letter-spacing: .06em; }
.brand__sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; font-variant: small-caps; letter-spacing: .1em; color: #d4d9e6; }
.brand__cross { width: 13px; height: 13px; color: #e0444d; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 0; border-radius: 999px; background: none; color: #eef1f7;
  font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--tan); }
.nav__trigger .icon { transition: transform .2s; }
.nav__item.is-open .nav__trigger .icon { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 10;
  width: 320px; padding: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .18s, transform .22s var(--ease), visibility .18s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.3;
  transition: background .15s;
}
.nav__menu a:hover { background: var(--sand); }
.nav__menu a .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--navy-100); color: var(--navy-800); }
.nav__menu a:hover .icon { background: var(--navy-900); color: var(--white); }
.nav__menu a[aria-current="page"] { background: var(--sand); }
.nav__menu strong { display: block; font-size: .93rem; font-weight: 700; color: var(--navy-900); }
.nav__menu small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.nav__menu--mega { width: min(760px, 92vw); padding: 14px; }
.nav__item--mega .nav__menu { left: 0; transform: translate(-12%, 8px); }
.nav__item--mega.is-open .nav__menu { transform: translate(-12%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mega__all { justify-content: center; align-items: center !important; margin-top: 8px; padding: 12px !important; background: var(--navy-900); color: var(--white) !important; font-weight: 700; font-size: .9rem; }
.mega__all:hover { background: var(--navy-800) !important; }
.mega__all .icon { width: 1em !important; height: 1em !important; padding: 0 !important; background: none !important; color: var(--white) !important; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }

.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(94vh, 900px);
  display: flex; align-items: center;
  margin-top: calc(var(--topbar-h) * -1);
  padding: calc(var(--topbar-h) + var(--header-h) + 64px) 0 150px;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 41, .94) 0%, rgba(10, 18, 41, .78) 38%, rgba(10, 18, 41, .25) 72%, rgba(10, 18, 41, .15) 100%),
    linear-gradient(0deg, rgba(10, 18, 41, .7) 0%, rgba(10, 18, 41, 0) 40%);
}
.hero__content { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--tan); }
.hero__lead { max-width: 560px; margin-bottom: 34px; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: #d7dceb; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: #c7cee0; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--tan); }

/* Quick actions overlapping the hero */
.quick { position: relative; z-index: 5; margin-top: -92px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick__item { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 28px 26px; color: var(--ink); text-decoration: none; transition: background .2s; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item:hover { background: var(--cream); color: var(--ink); }
.quick__item .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--red-100); color: var(--red); transition: background .2s, color .2s; }
.quick__item:hover .icon { background: var(--red); color: var(--white); }
.quick__item strong { display: block; margin-bottom: 4px; font-size: 1.02rem; color: var(--navy-900); }
.quick__item span { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.quick__item--emergency { background: var(--navy-900); }
.quick__item--emergency strong { color: var(--white); }
.quick__item--emergency span { color: #bcc4d8; }
.quick__item--emergency .icon { background: var(--red); color: var(--white); }
.quick__item--emergency:hover { background: var(--navy-800); }

/* ---------- Intro / stats ---------- */
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.intro__media .intro__inset {
  position: absolute; right: -28px; bottom: -28px; width: 46%; aspect-ratio: 1;
  border: 6px solid var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
}
.intro__badge {
  position: absolute; left: -22px; top: 32px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.3; color: var(--muted);
}
.intro__badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--navy-900); }
.intro__badge .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-900); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin: 36px 0 34px; padding: 30px 0 0; border-top: 1px solid var(--line); }
.stat strong { display: block; font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 600; line-height: 1; color: var(--navy-900); }
.stat strong sup { font-size: .5em; color: var(--red); vertical-align: top; position: relative; top: .25em; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 330px; border-radius: var(--radius); overflow: hidden;
  color: var(--white); text-decoration: none; background: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.svc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 41, .05) 20%, rgba(10, 18, 41, .55) 55%, rgba(10, 18, 41, .94) 100%); transition: background .3s; }
.svc-card:hover { color: var(--white); }
.svc-card:hover img { transform: scale(1.07); }
.svc-card:hover::before { background: linear-gradient(180deg, rgba(10, 18, 41, .2) 0%, rgba(10, 18, 41, .7) 50%, rgba(10, 18, 41, .96) 100%); }
.svc-card__body { display: block; padding: 22px 22px 24px; }
.svc-card__body .icon { width: 38px; height: 38px; padding: 8px; margin-bottom: 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); color: var(--white); transition: background .3s; }
.svc-card:hover .svc-card__body .icon { background: var(--red); }
.svc-card strong { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.svc-card small { display: block; max-height: 0; margin-top: 0; overflow: hidden; font-size: .9rem; line-height: 1.45; color: #d3d9e8; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.svc-card:hover small, .svc-card:focus-visible small { max-height: 80px; margin-top: 8px; opacity: 1; }
@media (hover: none) { .svc-card small { max-height: none; margin-top: 8px; opacity: 1; } }

/* ---------- Feature split (field services) ---------- */
.feature { position: relative; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.feature__tag { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: rgba(10, 18, 41, .82); backdrop-filter: blur(8px); color: var(--white); font-size: .88rem; font-weight: 700; }
.feature__tag .icon { color: var(--tan); }
.checklist { display: grid; gap: 14px; margin: 24px 0 32px; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3202a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist strong { color: var(--navy-900); }
.section--navy .checklist li::before { background-color: rgba(210, 176, 124, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2b07c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.section--navy .checklist strong { color: var(--white); }

.callout { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.callout .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.callout p { margin: 0; font-size: .96rem; }
.callout--red { background: var(--red-100); border-color: #efc9cc; }
.callout--red .icon { background: var(--red); color: var(--white); }

/* ---------- Team ---------- */
.team-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.team-mini { text-decoration: none; color: var(--ink); text-align: center; }
.team-mini__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.team-mini__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease); }
.team-mini:hover img { transform: scale(1.05); }
.team-mini strong { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; color: var(--navy-900); }
.team-mini span { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }

.vet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.vet { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.vet__img { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.vet__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.vet__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.vet__role { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.vet h3 { margin-bottom: 2px; font-size: 1.9rem; }
.vet__cred { margin: 0 0 14px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.vet__body p { font-size: .97rem; }
.vet details { margin-top: auto; }
.vet summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; }
.vet summary::-webkit-details-marker { display: none; }
.vet summary .icon { color: var(--red); transition: transform .2s; }
.vet details[open] summary .icon { transform: rotate(180deg); }
.vet details[open] summary { margin-bottom: 12px; }
.vet__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.vet__tags li { padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: .78rem; font-weight: 700; color: var(--navy-800); }

.staff-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.staff-group { padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.staff-group h3 { margin-bottom: 16px; font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.staff-group ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.staff-group--feature { grid-column: span 2; background: var(--navy-900); border-color: var(--navy-900); color: #d7dceb; }
.staff-group--feature h3 { color: var(--tan); }
.person { display: flex; align-items: center; gap: 14px; }
.person__initials { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.person strong { display: block; color: var(--navy-900); line-height: 1.25; }
.person div span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.3; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { position: relative; display: flex; flex-direction: column; margin: 0; padding: 32px 30px 28px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.quote > .icon { width: 34px; height: 34px; margin-bottom: 16px; color: var(--red); opacity: .9; }
.quote blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1.4; color: var(--navy-900); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: #d9a33c; }
.stars .icon { width: 15px; height: 15px; }
.section--navy .quote { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section--navy .quote blockquote { color: var(--white); }
.section--navy .quote figcaption { color: #d9deea; border-color: rgba(255, 255, 255, .12); }
.rating-summary { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d9deea; font-size: .92rem; }
.rating-summary .stars .icon { width: 18px; height: 18px; }
.reviews-masonry { columns: 3 300px; column-gap: 24px; }
.reviews-masonry .quote { break-inside: avoid; margin-bottom: 24px; }

/* ---------- Seasonal special ---------- */
.special { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 30px 34px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #d9deea; overflow: hidden; }
.special::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .04); }
.special__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--red); color: var(--white); }
.special__icon .icon { width: 34px; height: 34px; }
.special h2 { margin: 0 0 4px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--white); }
.special p { margin: 0; }
.special .btn { position: relative; z-index: 1; }

/* ---------- Visit / hours / map ---------- */
.visit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit__map { min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-300); }
.visit__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }
.visit__hours { margin: 26px 0 28px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.visit__hours .h4 { margin-bottom: 10px; }
.contact-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--navy-900); color: var(--white); }
.contact-list a { color: var(--navy-900); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.contact-list span { padding-top: 6px; }

.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { padding: 7px 0; text-align: left; border-bottom: 1px dashed var(--line); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; color: var(--muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 800; }
.hours tr.is-today th::after { content: "Today"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: var(--white); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.hours__note { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: .86rem; font-weight: 700; color: var(--red); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--topbar-h) * -1);
  padding: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px);
  background: var(--navy-900); color: #d7dceb; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 41, .95) 0%, rgba(10, 18, 41, .82) 45%, rgba(10, 18, 41, .45) 100%); }
.page-hero--plain::after { background: radial-gradient(1200px 400px at 85% 0%, rgba(210, 176, 124, .14), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.page-hero h1 { max-width: 820px; margin-bottom: 18px; color: var(--white); }
.page-hero .lead { max-width: 680px; margin: 0; color: #cdd3e4; }
.page-hero .btn-row { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .86rem; font-weight: 600; color: #aab3c9; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #e3e7f1; text-decoration: none; }
.crumbs a:hover { color: var(--tan); }

/* ---------- Service detail layout ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.svc-aside { position: sticky; top: calc(72px + 24px); display: grid; gap: 20px; }
.aside-card { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.aside-card--navy { background: var(--navy-900); border-color: var(--navy-900); color: #d7dceb; display: grid; gap: 10px; }
.aside-card--navy .eyebrow { margin-bottom: 0; }
.aside-card__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.15; color: var(--white); }
.aside-card__note { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; font-size: .86rem; color: #c0c8da; }
.aside-card__note .icon { color: #ff8b92; margin-top: 2px; }
.aside-nav__title { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside-nav ul { margin: 0; padding: 0; list-style: none; }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; margin: 0 -12px; border-radius: 10px; color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
.aside-nav a:hover { background: var(--sand); color: var(--navy-900); }
.aside-nav a[aria-current="page"] { background: var(--navy-900); color: var(--white); }

/* ---------- Prose ---------- */
.prose { font-size: 1.07rem; }
.prose > * + h2 { margin-top: 1.6em; }
.prose > * + h3 { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.prose h3 { font-size: 1.55rem; }
.prose p, .prose li { color: #2b3142; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border: 2px solid var(--red); transform: rotate(45deg); }
.prose strong { color: var(--navy-900); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.prose .callout { margin: 1.8em 0; }
.prose-lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink) !important; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2em 0; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-pair figure { margin: 0; }

.related { margin-top: 2.4em; padding: 22px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.related h3 { margin: 0 0 6px; font-size: 1.4rem; }
.prose .doc-list li { margin: 0; padding-left: 0; }
.prose .doc-list li::before { display: none; }
.prose .doc-list a { color: var(--ink); }
.prose .doc-list a:hover { color: var(--red); }
.prose .video { margin: 1.2em 0 0; }
.prose .video figcaption { margin-top: 10px; font-size: .95rem; color: var(--navy-900); }
.prose .video-grid { margin-top: 1.2em; }
.prose .video-grid .video { margin: 0; }
.video-grid--2 { grid-template-columns: repeat(2, 1fr); }
.prose .checklist li { padding-left: 36px; }
.prose .checklist li::before { left: 0; top: .22em; width: 22px; height: 22px; border: 0; transform: none; }
.steps.steps--prose { grid-template-columns: repeat(2, 1fr); margin: 1.4em 0; }
.prose .steps li::before { position: static; width: auto; height: auto; border: 0; transform: none; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.6em 0; padding: 0; list-style: none; }
.feature-list li { margin: 0 !important; padding: 22px 22px 20px !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-list li::before { display: none; }
.feature-list strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.feature-list p { margin: 0; font-size: .96rem; color: var(--muted); }
.feature-list .icon { width: 36px; height: 36px; padding: 8px; margin-bottom: 12px; border-radius: 10px; background: var(--red-100); color: var(--red); }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 1.6em; padding: 0 !important; list-style: none; }
.pill-list li { margin: 0 !important; padding: 7px 14px !important; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy-800) !important; }
.pill-list li::before { display: none; }

.quote-block { margin: 2em 0; padding: 28px 30px; border-left: 4px solid var(--red); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; color: var(--navy-900); }
.quote-block p { margin: 0; color: var(--navy-900) !important; }
.quote-block cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: .88rem; font-style: normal; font-weight: 700; color: var(--muted); }

/* ---------- Cards / tiles ---------- */
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.tile > .icon { width: 50px; height: 50px; padding: 12px; border-radius: 14px; background: var(--navy-900); color: var(--white); }
.tile h3 { margin: 6px 0 0; font-size: 1.6rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.tile .link-arrow { margin-top: auto; padding-top: 8px; }

/* Document / article lists */
.doc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.doc-group { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.doc-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1.55rem; }
.doc-group h3 .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--red-100); color: var(--red); }
.doc-list { margin: 0; padding: 0; list-style: none; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.doc-list a:hover { color: var(--red); }
.doc-list a .icon { color: var(--muted); }
.doc-list a:hover .icon { color: var(--red); }
.doc-list small { margin-left: auto; font-size: .76rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video { margin: 0; }
.video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); cursor: pointer; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s var(--ease), opacity .3s; }
.video__frame:hover img { transform: scale(1.04); opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.video__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video__frame:hover .video__play { transform: scale(1.08); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 12px; font-weight: 700; line-height: 1.35; color: var(--navy-900); }

/* Facility gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 18, 41, .78); color: var(--white); font-size: .82rem; font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 60px 20px; background: rgba(6, 10, 24, .92); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: var(--radius); }
.lightbox__cap { margin-top: 14px; color: #d7dceb; font-weight: 600; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Timeline / steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 26px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--red); }
.steps strong { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: 1.02rem; }
.steps p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Jobs */
.job { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: start; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.job + .job { margin-top: 20px; }
.job h3 { margin-bottom: 6px; font-size: 1.85rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.job__meta li { padding: 4px 12px; border-radius: 999px; background: var(--sand); font-size: .8rem; font-weight: 700; color: var(--navy-800); }
.job p { margin: 0; color: #2b3142; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
fieldset:last-of-type { margin-bottom: 20px; }
legend { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--navy-900); }
legend .step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: var(--white); font-family: var(--font-body); font-size: .85rem; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-size: .88rem; font-weight: 700; color: var(--navy-900); }
.field .req { color: var(--red); }
.field .hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--sand-300); border-radius: 12px; background: var(--cream);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101b3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbbda5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); background: var(--white); box-shadow: 0 0 0 4px rgba(23, 37, 82, .12); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); }
.check strong { color: var(--ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--sand-300); border-radius: 999px; background: var(--cream); font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.choice input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--tan); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-actions p { margin: 0; font-size: .86rem; color: var(--muted); }
.form-status { margin-top: 18px; padding: 0; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 16px 18px; background: #e8f4ec; color: #1d5b33; }
.form-status.is-error { padding: 16px 18px; background: var(--red-100); color: var(--red-600); }
.consent { padding: 16px 18px; border-radius: 12px; background: var(--sand); font-size: .88rem; color: var(--muted); }
.consent p:last-child { margin-bottom: 0; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 56px); align-items: start; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: #aeb6cb; font-size: .95rem; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta__title { max-width: 640px; margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.05; color: var(--white); }
.footer-cta__title em { color: var(--tan); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-heading { margin: 0 0 16px; font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 9px; }
.footer-links a, .footer-contact a { color: #c3cadb; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: grid; gap: 12px; margin-bottom: 22px; }
.footer-contact a, .footer-contact span { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.footer-contact .icon { margin-top: 2px; color: var(--tan); }
.site-footer .hours { font-size: .88rem; }
.site-footer .hours th { color: #d5dbe8; font-weight: 600; }
.site-footer .hours td { color: #9ea7bd; }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(255, 255, 255, .08); padding: 5px 0; }
.site-footer .hours tr.is-today th, .site-footer .hours tr.is-today td { color: var(--white); }
.site-footer .hours__note { color: #ff8b92; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: var(--white); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #8790a8; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #aeb6cb; }
.footer-bottom a:hover { color: var(--white); }

/* Mobile action bar */
.mobile-bar { display: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.svc-grid [data-reveal]:nth-child(4n + 2), .quotes [data-reveal]:nth-child(2) { transition-delay: .06s; }
.svc-grid [data-reveal]:nth-child(4n + 3), .quotes [data-reveal]:nth-child(3) { transition-delay: .12s; }
.svc-grid [data-reveal]:nth-child(4n + 4) { transition-delay: .18s; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__phone { display: none; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .team-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 120px; background: var(--navy-950);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; border-radius: 0; font-size: 1.15rem; }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .nav__menu, .nav__menu--mega, .nav__item--mega .nav__menu {
    position: static; width: auto; padding: 0 0 14px; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__item.is-open .nav__menu, .nav__item--mega.is-open .nav__menu { display: block; transform: none; }
  .mega__grid { grid-template-columns: 1fr; }
  .nav__menu a { padding: 10px 4px; color: #e6e9f2; }
  .nav__menu a:hover, .nav__menu a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
  .nav__menu strong { color: var(--white); }
  .nav__menu small { color: #9aa3ba; }
  .nav__menu a .icon { background: rgba(255, 255, 255, .08); color: var(--tan); }
  .mega__all { margin: 8px 0 0; background: rgba(255, 255, 255, .08); }
  .nav__cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  .nav__cta .btn { min-height: 52px; font-size: 1rem; }
  .nav__phone { display: inline-flex; }
  .site-header.is-scrolled { height: var(--header-h); }
  .nav-open .site-header { background: var(--navy-950); }
  .nav-open .site-header::before { opacity: 0; }

  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(3) { border-left: 0; }
  .quick__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .split, .split--wide-left, .visit__grid, .svc-layout, .form-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .intro__media { max-width: 560px; }
  .vet-grid, .staff-groups, .quotes, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .special { grid-template-columns: auto 1fr; }
  .special .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 36px; --header-h: 66px; --gutter: 16px; }
  body { font-size: 1rem; padding-bottom: 76px; }
  .topbar { font-size: .8rem; }
  .topbar__hide-md, .topbar__hide-sm { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__emergency { margin: 0; }
  .brand__mark { height: 40px; }
  .is-scrolled .brand__mark { height: 38px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .86rem; }
  .hero { min-height: 0; padding-bottom: 120px; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 18, 41, .7) 0%, rgba(10, 18, 41, .82) 60%, rgba(10, 18, 41, .95) 100%); }
  .hero__bg img { object-position: 30% 50%; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .quick { margin-top: -72px; }
  .quick__item { padding: 20px 18px; flex-direction: column; gap: 10px; }
  .quick__item .icon { width: 40px; height: 40px; padding: 9px; }
  .quick__item strong { font-size: .95rem; }
  .quick__item span { font-size: .82rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-card { min-height: 240px; }
  .svc-card__body { padding: 16px; }
  .svc-card strong { font-size: 1.25rem; }
  .svc-card small { display: none; }
  .svc-card__body .icon { width: 32px; height: 32px; padding: 7px; margin-bottom: 8px; }
  .intro__media .intro__inset { right: -8px; bottom: -20px; }
  .intro__badge { left: -6px; }
  .grid-2, .grid-3, .vet-grid, .staff-groups, .quotes, .video-grid, .doc-groups, .feature-list, .form-grid, .gallery, .photo-pair { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .staff-group--feature { grid-column: auto; }
  .gallery span { left: 8px; bottom: 8px; font-size: .74rem; padding: 4px 9px; }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .special { grid-template-columns: 1fr; padding: 26px 22px; }
  .special__icon { width: 56px; height: 56px; border-radius: 16px; }
  .job { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .footer-cta__actions, .footer-cta__actions .btn { width: 100%; }
  .visit__map, .visit__map iframe { min-height: 340px; }
  .btn { white-space: normal; text-align: center; }
  .doc-group { padding: 20px; }
  .form-card { padding: 22px 18px; }
  .prose figure[style*="float"] { float: none !important; width: 100% !important; margin: 1.2em 0 !important; }
  .video-grid--2, .steps.steps--prose { grid-template-columns: 1fr; }
  .related { padding: 18px 18px; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(16, 27, 61, .25);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; gap: 8px; }
  .nav-open .mobile-bar { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .mobile-bar, .footer-cta, .svc-aside, .nav-toggle { display: none !important; }
  .page-hero, .hero { margin: 0; padding: 24px 0; background: none; color: #000; }
  .page-hero::after, .hero::after, .page-hero__bg, .hero__bg { display: none; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* ---------- Staff portal ---------- */
.portal { background: var(--cream); }
.portal-header { position: sticky; top: 0; z-index: 50; background: var(--navy-950); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.portal-header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.portal-header .brand__mark { height: 40px; }
.portal-header .brand__name { font-size: 1.3rem; }
.portal-header .brand__sub { color: var(--tan); }
.portal-nav { display: flex; gap: 4px; margin-left: 12px; }
.portal-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #d7dceb; font-size: .93rem; font-weight: 600; text-decoration: none; }
.portal-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.portal-nav a[aria-current="page"] { background: rgba(210, 176, 124, .16); color: var(--tan); }
.portal-user { display: flex; align-items: center; gap: 12px; margin-left: auto; color: #d7dceb; font-size: .9rem; font-weight: 600; }
.portal-user__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--white); font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.portal-user__out { min-height: 38px; padding: 8px 16px; font-size: .85rem; }
.portal-hero { padding: clamp(36px, 5vw, 56px) 0; background: radial-gradient(900px 300px at 90% 0%, rgba(210, 176, 124, .14), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #d7dceb; }
.portal-hero h1 { margin: 0 0 10px; color: var(--white); }
.portal-hero--small { padding: clamp(28px, 4vw, 44px) 0; }
.portal-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #c0c8da; }
.portal-hero__meta .icon { color: var(--tan); }
.portal-section { padding: clamp(28px, 4vw, 48px) 0 72px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.portal-col { display: grid; gap: 20px; align-content: start; }
.portal-h { margin: 0 0 4px; font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.app { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.app:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.app .icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 8px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); }
.app:hover .icon { background: var(--navy-900); color: var(--white); }
.app strong { color: var(--navy-900); font-size: .98rem; }
.app small { color: var(--muted); font-size: .82rem; }
.announcement { padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
.announcement__date { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.announcement h3 { margin: 0 0 6px; font-size: 1.6rem; }
.announcement p:last-child { margin: 0; color: #2b3142; }
.portal-card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.portal-card p { font-size: .95rem; }
.portal-card--navy { background: var(--navy-900); border-color: var(--navy-900); color: #d7dceb; }
.portal-card--navy .checklist { margin: 12px 0 20px; gap: 10px; font-size: .94rem; }
.portal-card--navy .checklist li::before { background-color: rgba(210, 176, 124, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2b07c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.portal-card--red { background: var(--red-100); border-color: #efc9cc; }
.portal-signed { display: grid; gap: 2px; margin: 8px 0 10px; }
.portal-signed strong { color: var(--navy-900); font-size: 1.05rem; }
.portal-signed span { color: var(--muted); font-size: .9rem; word-break: break-all; }
.empty-state { display: grid; justify-items: start; gap: 12px; padding: 22px; border: 1.5px dashed var(--sand-300); border-radius: var(--radius); background: var(--cream); }
.empty-state .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sand); color: var(--muted); }
.empty-state p { margin: 0; color: #2b3142; }
.portal-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.portal-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.portal-footer p { margin: 0; }
.portal-footer a { color: var(--navy-900); }

@media (max-width: 1040px) {
  .portal-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .portal { padding-bottom: 0; }
  .portal-header__inner { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
  .portal-nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .portal-nav a { justify-content: center; padding: 8px 6px; font-size: .86rem; white-space: nowrap; }
  .portal-user__name { display: none; }
  .portal-header .brand__mark { height: 34px; }
  .portal-header .brand__name { font-size: 1.12rem; }
}
@media (max-width: 400px) {
  .portal-nav .icon { display: none; }
}
.portal-preview { background: var(--tan); color: var(--navy-950); font-size: .9rem; line-height: 1.45; padding: 10px 0; }
.portal-preview strong { font-weight: 800; }
