/* ==========================================================================
   RNK Veterinary Clinic
   Palette sampled directly from the clinic logo:
   navy #043659 · cyan #00BCD5 · white
   Coral is reserved exclusively for urgent/emergency elements.
   ========================================================================== */

:root {
  --navy:      #043659;
  --navy-900:  #02243C;
  --navy-700:  #0A4C74;
  --cyan:      #00BCD5;
  --cyan-600:  #00A0B6;
  --cyan-50:   #E7F8FB;
  --coral:     #FF6B4A;
  --coral-50:  #FFF0EC;

  --ink:       #0F1D26;
  --muted:     #5B7280;
  --paper:     #FFFFFF;
  --mist:      #F3F8FA;
  --line:      #DBE8ED;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(4,54,89,.06), 0 4px 12px rgba(4,54,89,.05);
  --shadow-md: 0 2px 4px rgba(4,54,89,.06), 0 14px 34px rgba(4,54,89,.10);

  --bar: 88px; /* mobile sticky action bar height */
}

/* --------------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #CFE4EE; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin: 0 0 .7rem;
}
.section--navy .eyebrow { color: var(--cyan); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: #A9C9D9; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .82rem 1.5rem; border-radius: 100px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--call  { background: var(--cyan); color: var(--navy-900); box-shadow: 0 6px 20px rgba(0,188,213,.34); }
.btn--call:hover { background: #24CCE3; }
.btn--wa    { background: #25D366; color: #06381B; box-shadow: 0 6px 20px rgba(37,211,102,.3); }
.btn--wa:hover { background: #3FE07C; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }

/* --------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand b { font-family: var(--display); font-size: 1.06rem; color: var(--navy); line-height: 1.15; display: block; }
.brand span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cyan); color: var(--navy); }

.burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px;
}
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------- SIGNATURE: status chip */
/* Live open/closed state. The clinic shuts 1:30–5:30pm, which people
   constantly get wrong — so the site answers it before anyone asks. */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .86rem; font-weight: 600;
  padding: .38rem .9rem .38rem .7rem;
  border-radius: 100px;
  background: var(--cyan-50); color: var(--navy);
  border: 1px solid #BFEAF2;
  white-space: nowrap;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open  { background: #E4F8EC; border-color: #B4E7C9; color: #14562F; }
.status.is-open  .status__dot { background: #1DB954; box-shadow: 0 0 0 0 rgba(29,185,84,.6); animation: ping 2.2s infinite; }
.status.is-shut  { background: #FFF4E5; border-color: #FFDCA8; color: #7A4B00; }
.status.is-shut  .status__dot { background: #E8930C; }
.status--hero { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #EAF6FA; font-size: .92rem; }
.status--hero.is-open { background: rgba(29,185,84,.18); border-color: rgba(29,185,84,.45); color: #C4F5D7; }
.status--hero.is-shut { background: rgba(232,147,12,.18); border-color: rgba(232,147,12,.45); color: #FFDFA8; }

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(29,185,84,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(29,185,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 520px at 78% -8%, #0A5580 0%, transparent 62%), var(--navy);
  color: #fff; padding: 74px 0 84px;
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,213,.22), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin: 1.1rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__sub { font-size: 1.14rem; color: #A9CADC; max-width: 46ch; margin-bottom: 1.7rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .92rem; color: #9FC0D2; }
.hero__meta strong { color: #fff; font-weight: 600; }

.hero__photo { position: relative; }
.hero__photo img { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0,0,0,.42); }
.hero__badge {
  position: absolute; left: -18px; bottom: 22px;
  background: #fff; color: var(--navy); border-radius: var(--r-md);
  padding: .8rem 1.1rem; box-shadow: var(--shadow-md); max-width: 210px;
}
.hero__badge b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.hero__badge span { font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------ trust bar */
.trust { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.09); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.09); }
.trust__item:last-child { border-right: 0; }
.trust__item b { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1.1; }
.trust__item span { font-size: .8rem; color: #8FB2C6; letter-spacing: .03em; }

/* ------------------------------------------------------- urgent (coral) */
.urgent {
  background: var(--coral-50); border-top: 3px solid var(--coral);
  padding: 22px 0;
}
.urgent__in { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.urgent__mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: #fff;
  display: grid; place-items: center; flex: none; font-weight: 700; font-size: 1.3rem;
  font-family: var(--display);
}
.urgent__txt { flex: 1 1 320px; }
.urgent__txt b { display: block; color: #A8331A; font-family: var(--display); font-size: 1.1rem; }
.urgent__txt span { font-size: .93rem; color: #8A4636; }
.btn--urgent { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(255,107,74,.34); }
.btn--urgent:hover { background: #FF8266; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #BFE3EC; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cyan-50);
  display: grid; place-items: center; margin-bottom: .9rem; color: var(--navy-700);
}
.card__icon svg { width: 24px; height: 24px; }
.card ul { margin: .7rem 0 0; padding-left: 1.1rem; font-size: .92rem; color: var(--muted); }
.card ul li { margin-bottom: .3rem; }

/* ---------------------------------------------------------------- team */
.vet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vet__ph { aspect-ratio: 4/5; background: var(--cyan-50); position: relative; overflow: hidden; }
.vet__ph img { width: 100%; height: 100%; object-fit: cover; }
.vet__ph--empty { display: grid; place-items: center; text-align: center; padding: 1rem; }
.vet__ph--empty span { font-size: .78rem; color: #7FA3B4; max-width: 20ch; line-height: 1.4; }
.vet__body { padding: 1.3rem 1.4rem 1.5rem; }
.vet__body h3 { margin-bottom: .1rem; }
.vet__role { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: .55rem; }
.vet__quals { font-size: .88rem; color: var(--navy-700); font-weight: 600; margin-bottom: .6rem; }
.vet__body p { font-size: .94rem; color: var(--muted); margin-bottom: .7rem; }
.vet__reg { font-size: .78rem; color: #8296A2; border-top: 1px dashed var(--line); padding-top: .7rem; }

/* --------------------------------------------------------------- hours */
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: .68rem .4rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--navy); width: 42%; }
.hours td { color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--cyan-50); color: var(--navy); font-weight: 600; }
.hours__note {
  margin-top: 1rem; font-size: .9rem; background: #FFF4E5; border-left: 3px solid #E8930C;
  padding: .8rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: #6B4300;
}

/* --------------------------------------------------------------- misc */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--r-md); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding: 0; list-style: none; }
.chips li {
  font-size: .88rem; background: var(--cyan-50); color: var(--navy);
  border: 1px solid #C9E9F0; border-radius: 100px; padding: .35rem .85rem;
}

.quote {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1.3rem 1.5rem;
}
.quote p { font-size: .98rem; margin-bottom: .6rem; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--muted); font-weight: 600; }
.stars { color: #F2A93B; letter-spacing: .1em; font-size: .95rem; }

.post { display: block; text-decoration: none; color: inherit; }
.post__tag { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); }
.post h3 { margin: .4rem 0 .35rem; }
.post p { font-size: .93rem; color: var(--muted); margin: 0; }

.placeholder {
  border: 2px dashed #B9D7E1; background: var(--cyan-50); border-radius: var(--r-md);
  padding: 2rem 1.4rem; text-align: center; color: #4E7E92; font-size: .9rem;
}
.placeholder b { display: block; color: var(--navy); font-family: var(--display); font-size: 1rem; margin-bottom: .3rem; }

/* -------------------------------------------------------------- footer */
.footer { background: var(--navy-900); color: #93B4C8; padding: 56px 0 28px; font-size: .93rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; font-family: var(--body); margin-bottom: .9rem; }
.footer a { color: #93B4C8; text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: .45rem; }
.footer__bar {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem;
}

/* ------------------------------------------------- mobile sticky action */
.actionbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  box-shadow: 0 -4px 22px rgba(4,54,89,.12);
}
.actionbar .btn { flex: 1; padding: .78rem .4rem; font-size: .93rem; }

/* -------------------------------------------------------------- reveal */
/* Only hide these once JS is confirmed present, so content is never
   invisible to a crawler or to a visitor whose JS failed to load. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero__photo { max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: var(--bar); }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 60px; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.2rem; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .28s ease; z-index: 50;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .header .status { display: none; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .actionbar { display: flex; }
  .hero__badge { left: auto; right: 12px; bottom: -16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- booking form */
.booking {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.9rem;
  box-shadow: var(--shadow-sm);
}
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field--wide { grid-column: 1 / -1; }

.field { position: relative; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 1.45rem .9rem .55rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }

/* Chevron for selects, since the native arrow is removed above. */
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
  padding-right: 2.4rem; cursor: pointer;
}

/* Floating label: sits inside the field, lifts when focused or filled. */
.field > label {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--muted); pointer-events: none;
  transition: top .14s ease, font-size .14s ease, color .14s ease, transform .14s ease;
}
.field textarea ~ label { top: 1.35rem; transform: none; }

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select ~ label {
  top: .48rem; transform: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: var(--navy-700);
}
.field > label .opt { font-weight: 400; color: var(--muted); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,188,213,.16);
}
.field [aria-invalid="true"] { border-color: #D8452B; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(216,69,43,.14); }

.field__err {
  display: block; font-size: .8rem; color: #C03A22;
  margin: .3rem 0 0 .2rem; min-height: 0;
}
.field__err:empty { display: none; }

.booking__status {
  font-size: .93rem; margin: 0 0 1.1rem; padding: .85rem 1rem;
  border-radius: 10px; line-height: 1.5;
}
.booking__status:empty { display: none; }
.booking__status.is-ok    { background: #E4F8EC; border: 1px solid #B4E7C9; color: #14562F; }
.booking__status.is-error { background: #FDECE8; border: 1px solid #F6C6BA; color: #A8331A; }

.booking__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem;
}
.booking__note { font-size: .84rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.booking__actions .btn { flex: 0 0 auto; }

@media (max-width: 700px) {
  .booking { padding: 1.4rem; }
  .booking__grid { grid-template-columns: 1fr; }
  .booking__actions { flex-direction: column-reverse; align-items: stretch; }
  .booking__actions .btn { width: 100%; }
  .booking__note { text-align: center; }
}

/* ------------------------------------------------------- service pages */
.svc { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 3rem; align-items: start; }
.svc__body { max-width: 68ch; }
.svc__body h2 { font-size: 1.5rem; margin-top: 2.1rem; }
.svc__body h2:first-child { margin-top: 0; }
.svc__body h3 { margin-top: 1.5rem; }
.svc__body ul { padding-left: 1.15rem; }
.svc__body li { margin-bottom: .4rem; }
.svc__side { position: sticky; top: 96px; }

.factbox {
  background: var(--cyan-50); border: 1px solid #C9E9F0;
  border-radius: var(--r-md); padding: 1.3rem;
}
.factbox dl { margin: 0 0 1rem; }
.factbox dl > div { padding: .5rem 0; border-bottom: 1px solid #CFE9EF; }
.factbox dl > div:last-child { border-bottom: 0; }
.factbox dt {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan-600); margin-bottom: .15rem;
}
.factbox dd { margin: 0; font-size: .95rem; color: var(--navy); font-weight: 500; }
.factbox .btn { width: 100%; margin-bottom: .5rem; }
.factbox .btn:last-child { margin-bottom: 0; }

.svc__list { list-style: none; margin: 0; padding: 0; }
.svc__list li { border-bottom: 1px solid var(--line); }
.svc__list li:last-child { border-bottom: 0; }
.svc__list a {
  display: block; padding: .6rem 0; font-size: .94rem;
  color: var(--ink); text-decoration: none;
}
.svc__list a:hover { color: var(--cyan-600); }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 2rem; }
  .svc__side { position: static; }
}
.card__price {
  margin-top: .7rem !important; font-weight: 600;
  color: var(--navy) !important; font-size: .92rem !important;
}

/* --------------------------------------------- cards that are links */
/* An always-visible cue, because hover doesn't exist on a phone. */
.card--link { display: flex; flex-direction: column; cursor: pointer; }
.card--link > *:last-child { margin-top: auto; }

.card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--cyan-600);
}
.card__more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card--link:hover .card__more svg { transform: translateX(4px); }
.card--link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card--link:hover { border-color: var(--cyan); }
.card--link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* --------------------------------------------------- services dropdown */
.nav__item--menu { position: relative; }

.nav__toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--body); font-size: .95rem; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav__toggle svg { width: 14px; height: 14px; transition: transform .18s ease; }
.nav__toggle:hover, .nav__toggle[aria-current="page"] {
  border-bottom-color: var(--cyan); color: var(--navy);
}
.nav__item--menu.is-open .nav__toggle svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  display: none;
  min-width: 460px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: .7rem;
  grid-template-columns: 1fr 1fr; gap: .1rem .6rem;
  z-index: 80;
}
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu,
.nav__item--menu.is-open .nav__menu { display: grid; }

/* invisible bridge so the menu doesn't close when crossing the gap */
.nav__item--menu::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px;
}

.nav__menu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  font-size: .93rem; color: var(--ink); text-decoration: none; border: 0;
  line-height: 1.35;
}
.nav__menu a:hover { background: var(--cyan-50); color: var(--navy); }
.nav__menu-all {
  grid-column: 1 / -1;
  font-weight: 600; color: var(--navy) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 8px 8px 0 0 !important; margin-bottom: .3rem;
}

@media (max-width: 760px) {
  .nav__item--menu { display: block; }
  .nav__toggle {
    width: 100%; justify-content: space-between;
    padding: .85rem 0; border-bottom: 1px solid var(--line);
  }
  .nav__item--menu::after { display: none; }
  .nav__menu {
    position: static; transform: none; display: none;
    min-width: 0; grid-template-columns: 1fr; gap: 0;
    border: 0; box-shadow: none; padding: .2rem 0 .6rem .8rem;
    background: var(--mist); border-radius: 0 0 var(--r-sm) var(--r-sm);
  }
  /* hover must not open it on touch — only an explicit tap */
  .nav__item--menu:hover .nav__menu,
  .nav__item--menu:focus-within .nav__menu { display: none; }
  .nav__item--menu.is-open .nav__menu { display: grid; }
  .nav__menu a { padding: .6rem .6rem; border-bottom: 0; font-size: .92rem; }
  .nav__menu-all { border-bottom: 1px solid var(--line) !important; }
}

/* ===================================================== service page v2 */
.svc-hero {
  background: radial-gradient(900px 460px at 82% -10%, #0A5580 0%, transparent 60%), var(--navy);
  color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden;
}
.svc-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,213,.2), transparent 70%);
}
.svc-hero .wrap { position: relative; z-index: 1; }
.svc-hero h1 { color: #fff; max-width: 20ch; margin: .3rem 0 .7rem; }
.svc-hero__sub { font-size: 1.12rem; color: #A9CADC; max-width: 52ch; margin: 0 0 1.3rem; }

.svc-crumb { font-size: .82rem; color: #7FA6BD; display: flex; gap: .5rem; align-items: center; }
.svc-crumb a { color: #9FC0D2; text-decoration: none; }
.svc-crumb a:hover { color: #fff; }
.svc-crumb b { color: #CFE4EE; font-weight: 500; }
.svc-crumb span { opacity: .5; }

.svc-hero__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.svc-hero__chip {
  font-size: .84rem; font-weight: 600; padding: .35rem .85rem;
  border-radius: 100px; background: rgba(0,188,213,.16);
  border: 1px solid rgba(0,188,213,.4); color: #C4EEF5;
}
.svc-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* --- prose: give the body text rhythm and colour --- */
.prose { font-size: 1.03rem; line-height: 1.72; }
.prose > h2 {
  font-size: 1.5rem; margin: 2.4rem 0 .9rem; padding-top: 1.4rem;
  position: relative;
}
.prose > h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 46px; height: 3px; border-radius: 3px; background: var(--cyan);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; }
.prose > h2:first-child::before { display: none; }
.prose > h3 { font-size: 1.13rem; margin: 1.6rem 0 .5rem; color: var(--navy-700); }
.prose p { margin: 0 0 1.05rem; }
.prose strong { color: var(--navy); }

.prose ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.prose ul li {
  position: relative; padding: .12rem 0 .12rem 1.7rem; margin-bottom: .55rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-50);
}
.prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose ol li { margin-bottom: .55rem; padding-left: .3rem; }
.prose ol li::marker { color: var(--cyan-600); font-weight: 700; }

/* pull-quote / call-out lines (markdown >) become highlighted panels */
.prose blockquote {
  margin: 1.6rem 0; padding: 1.1rem 1.3rem;
  background: var(--cyan-50); border-left: 4px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose blockquote p { margin: 0; color: var(--navy); font-weight: 500; }

/* first paragraph reads as a lead */
.prose > p:first-of-type { font-size: 1.14rem; color: var(--navy-700); line-height: 1.6; }

.svc__side .factbox { box-shadow: var(--shadow-sm); }
.svc__other { box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .svc-hero { padding: 36px 0 40px; }
  .prose > p:first-of-type { font-size: 1.06rem; }
}

/* ----------------------------------------------------- clinic gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; }
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(4,54,89,.85), transparent);
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .7rem; }
}

/* service hero with a photo */
.svc-hero--photo { padding-bottom: 0; }
.svc-hero__media {
  margin-top: 1.8rem; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  max-height: 320px;
}
.svc-hero__media img { width: 100%; height: 320px; object-fit: cover; display: block; }

/* ============================================ rich service-page blocks */
/* schedule / data tables */
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.prose thead th {
  background: var(--navy); color: #fff; text-align: left;
  padding: .7rem .9rem; font-family: var(--body); font-weight: 600; font-size: .9rem;
}
.prose tbody td { padding: .7rem .9rem; border-top: 1px solid var(--line); }
.prose tbody tr:nth-child(even) { background: var(--mist); }
.prose tbody td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* callout / warn / tip panels */
.block { margin: 1.6rem 0; padding: 1.1rem 1.3rem 1.1rem 1.5rem; border-radius: var(--r-md); position: relative; }
.block p:last-child { margin-bottom: 0; }
.block--callout { background: var(--cyan-50); border-left: 4px solid var(--cyan); }
.block--tip { background: #E4F8EC; border-left: 4px solid #1DB954; }
.block--warn { background: #FFF4E5; border-left: 4px solid #E8930C; }
.block strong:first-child { color: var(--navy); }

/* FAQ accordion */
.faqs { margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq { border-top: 1px solid var(--line); }
.faq:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; padding: .95rem 1.1rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--cyan-600); font-weight: 400; flex: none;
}
.faq[open] summary::after { content: "\2013"; }
.faq summary:hover { background: var(--cyan-50); }
.faq__a { padding: 0 1.1rem 1rem; font-size: .96rem; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* price highlight row inside factbox already handled; add a big price if present */
.svc-price {
  display: flex; align-items: baseline; gap: .5rem;
  margin: 1.4rem 0; padding: 1rem 1.2rem;
  background: var(--navy); color: #fff; border-radius: var(--r-md);
}
.svc-price b { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.svc-price span { font-size: .9rem; color: #A9CADC; }


/* ============================================ service sticky CTA card */
.svc-cta {
  background: linear-gradient(180deg, var(--cyan-50) 0%, #fff 100%);
  border: 1px solid #C9E9F0; border-radius: var(--r-lg);
  padding: 1.4rem; box-shadow: var(--shadow-md);
}
.svc-cta__head { margin-bottom: 1rem; }
.svc-cta__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 600; padding: .35rem .85rem;
  border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--navy);
}
.svc-cta__badge.is-open { background: #E4F8EC; border-color: #B4E7C9; color: #14562F; }
.svc-cta__badge.is-shut { background: #FFF4E5; border-color: #FFDCA8; color: #7A4B00; }

.svc-cta__facts { margin: 0 0 1.1rem; }
.svc-cta .fact { padding: .6rem 0; border-bottom: 1px solid #D7ECF1; }
.svc-cta .fact:last-child { border-bottom: 0; }
.svc-cta .fact dt {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: .2rem;
}
.svc-cta .fact dd { margin: 0; font-size: .96rem; color: var(--navy); font-weight: 500; line-height: 1.4; }

.svc-cta .btn { width: 100%; margin-bottom: .5rem; }
.svc-cta .btn:last-of-type { margin-bottom: 0; }
.svc-cta__note {
  margin: 1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; text-align: center;
}


/* ---------------------------------------- centered (photo-less) service hero */
.svc-hero--center { padding: 52px 0 58px; }
.svc-hero--center .wrap { max-width: 820px; text-align: center; }
.svc-hero--center h1 { max-width: none; margin-left: auto; margin-right: auto; }
.svc-hero--center .svc-hero__sub { max-width: 56ch; margin-left: auto; margin-right: auto; }
.svc-hero--center .svc-crumb { justify-content: center; }
.svc-hero--center .svc-hero__chips { justify-content: center; }
.svc-hero--center .svc-hero__cta { justify-content: center; }
@media (max-width: 640px) {
  .svc-hero--center { padding: 38px 0 42px; }
  .svc-hero--center .wrap { text-align: left; }
  .svc-hero--center .svc-crumb,
  .svc-hero--center .svc-hero__chips,
  .svc-hero--center .svc-hero__cta { justify-content: flex-start; }
  .svc-hero--center h1, .svc-hero--center .svc-hero__sub { margin-left: 0; }
}

/* ============================================ paw-print hero texture */
/* A shared, very low-opacity paw motif on the navy surfaces. It sits in
   ::before, beneath the existing ::after glow and beneath all content. */
.hero, .svc-hero, .section--navy { position: relative; }
.hero::before, .svc-hero::before, .section--navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='60' cy='72' rx='16' ry='13'/%3E%3Cellipse cx='40' cy='50' rx='7' ry='10'/%3E%3Cellipse cx='55' cy='42' rx='7' ry='11'/%3E%3Cellipse cx='72' cy='42' rx='7' ry='11'/%3E%3Cellipse cx='84' cy='52' rx='7' ry='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
          mask-image: linear-gradient(180deg, #000, transparent 92%);
}
/* keep every hero's real content above the texture */
.hero__grid, .hero .wrap,
.svc-hero .wrap,
.section--navy .wrap { position: relative; z-index: 1; }
