/* Brazos Valley Animal Clinic. A country clinic with warmth: pine, cream, one tennis-ball accent. */
:root {
  --pine: #1E3A2B;
  --pine-deep: #15291F;
  --pine-2: #2A4A38;
  --cream: #F4EFE4;
  --cream-2: #EAE3D3;
  --cream-3: #D9CFBA;
  --ball: #D9E45B;
  --ball-2: #C6D140;
  --bark: #6B4E3A;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 5.4vw, 84px);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--pine);
  font: 400 18px/1.55 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
/* Fine paper grain over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .top :focus-visible, .menu :focus-visible, .book-head :focus-visible, .doctors :focus-visible, .foot :focus-visible { outline-color: var(--ball); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 90; background: var(--ball); color: var(--pine); padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: flat fills, no glow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 18px/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ball { background: var(--ball); color: var(--pine); }
.btn-ball:hover { background: #E6EF78; }
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-pine:hover { background: var(--pine-2); }
.btn-line { border-color: rgba(244, 239, 228, .75); color: var(--cream); }
.btn-line:hover { background: rgba(244, 239, 228, .12); }
.btn-quiet { background: transparent; color: var(--pine); border-color: var(--cream-3); }
.btn-quiet:hover { border-color: var(--pine); }
.btn-wide { width: 100%; }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1.2 var(--sans); }

/* ---------- Header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px);
  padding: 22px var(--pad) 30px;
  color: var(--cream);
  background: linear-gradient(180deg, var(--pine-deep) 0%, rgba(21, 41, 31, .55) 45%, rgba(21, 41, 31, 0) 100%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); margin-right: auto; min-height: 48px; }
.nav { display: flex; gap: clamp(12px, 1.6vw, 24px); margin-right: clamp(4px, 1vw, 16px); }
.nav a { position: relative; font: 600 17px/1 var(--sans); text-decoration: none; padding: 14px 2px; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ball); transform: scale(0); transition: transform .2s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scale(1); }
.top-phone { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 var(--sans); text-decoration: none; min-height: 48px; padding: 0 4px; }
.top-phone svg { width: 20px; height: 20px; color: var(--ball); }
.top-book { min-height: 48px; padding: 0 22px 0 16px; font-size: 17px; }
.btn-tag { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--pine); flex: none; }
.btn-tag::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--ball); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 860px);
  background-color: var(--pine-deep);
  color: var(--cream);
  isolation: isolate;
}
.hero-photo { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 46% 0%;
  filter: saturate(1.06) contrast(1.03) brightness(1.05);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 30, 21, .4) 0%, rgba(14, 30, 21, .26) 22%, rgba(14, 30, 21, 0) 40%),
    radial-gradient(100% 70% at 94% 100%, rgba(12, 24, 17, .3) 0%, rgba(12, 24, 17, 0) 55%);
}
.hero-copy { position: relative; padding: 128px var(--pad) 0; max-width: 1060px; }
.hero h1 {
  font-size: clamp(46px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 11.2em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 22, 15, .35);
}
.hero-sub { margin-top: 16px; font: 500 clamp(20px, 1.8vw, 26px)/1.3 var(--sans); text-shadow: 0 1px 16px rgba(10, 22, 15, .4); }
.hero-actions { display: none; }

/* ---------- Booking card ---------- */
.book {
  position: absolute; right: var(--pad); bottom: 30px; z-index: 5;
  width: 456px;
  background: var(--cream);
  color: var(--pine);
  border-radius: 24px;
  box-shadow: 0 40px 70px -30px rgba(6, 14, 9, .75), 0 14px 30px -18px rgba(6, 14, 9, .5);
}
.book-head {
  position: relative;
  background-color: var(--pine);
  color: var(--cream);
  padding: 20px 24px 18px;
  border-radius: 24px 24px 0 0;
}
.book-head h2 { font-size: 36px; line-height: 1; margin-top: 12px; }
.book-head .status { font-size: 16px; }

/* The signature: a tennis-ball yellow pet ID tag hanging off the card. */
.tag {
  position: absolute; right: 26px; top: -50px;
  width: 128px; height: 168px;
  transform: rotate(-7deg);
  transform-origin: 64px 16px;
  pointer-events: none;
}
.tag-ring {
  position: absolute; left: 47px; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 4px solid #C3C9CC;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .5), 0 3px 6px rgba(0, 0, 0, .35);
}
.tag-disc {
  position: absolute; left: 0; top: 26px;
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 20px 12px 8px;
  text-align: center;
  background-color: #D6E157;
  background-image:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 50%, #DCE760 0%, #D3DE52 62%, #BBC63E 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4), inset 0 0 0 7px #D6E157, inset 0 0 0 8px rgba(30, 58, 43, .1), inset 0 -8px 14px rgba(0, 0, 0, .1), 0 14px 22px -8px rgba(0, 0, 0, .55);
}
.tag-disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .5;
}
.tag-hole {
  position: absolute; left: 57px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pine-deep);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .45);
}
.tag-name, .tag-time, .tag-day { position: relative; z-index: 1; color: #22381F; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 1px rgba(0, 0, 0, .2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-name { font: 400 21px/1.05 var(--serif); margin-top: 8px; }
.tag-time, .tag-day { font: 700 15px/1.15 var(--sans); }

.book-form { padding: 18px 24px 4px; }
.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; font: 400 19px/1.15 var(--serif); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--pine); border-radius: 999px; padding: 3px; gap: 3px; }
.seg label { position: relative; cursor: pointer; }
.seg input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font: 600 17px/1 var(--sans); transition: background-color .2s, color .2s; }
.seg label:hover span { background: var(--cream-2); }
.seg input:checked + span { background: var(--pine); color: var(--cream); }
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--pine); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid rgba(30, 58, 43, .22); border-radius: 8px; background: #FAF6EC;
  font: 500 16px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover span { border-color: rgba(30, 58, 43, .45); }
.times .chip span { background: #FFFDF8; border-color: rgba(30, 58, 43, .28); }
.chip input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.chip input:checked + span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ball); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.times .chip span { justify-content: center; width: 100%; min-height: 50px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.is-taken { cursor: not-allowed; }
.times .chip.is-taken span { flex-direction: column; justify-content: center; gap: 1px; background: var(--cream-2); border-color: transparent; color: var(--bark); font-weight: 600; }
.times .chip.is-taken small { font: 500 15px/1 var(--sans); }
.times .chip.is-taken:hover span { border-color: transparent; }
.times-empty { grid-column: 1 / -1; font-size: 16px; color: var(--bark); padding: 8px 0; }

.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; padding: 6px 2px;
  border: 1.5px solid transparent; border-radius: 8px; background: transparent;
  color: var(--pine); font: 700 15px/1.15 var(--sans); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.day small { font: 500 15px/1.1 var(--sans); color: var(--bark); }
.day-name { font: 700 15px/1.1 var(--sans); }
.day-num { font: 400 22px/1 var(--serif); }
.day:hover { border-color: rgba(30, 58, 43, .35); }
.days { padding-bottom: 6px; border-bottom: 1.5px solid var(--cream-2); }
.day[aria-selected="true"] { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.day[aria-selected="true"] small { color: var(--ball); }

.form-error { margin: 2px 0 12px; font: 600 16px/1.35 var(--sans); color: #8A2D1B; }
.step-recap { font: 600 17px/1.4 var(--sans); margin-bottom: 14px; padding: 12px 14px; background: var(--cream-2); border-radius: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.text-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font: 700 16px/1.2 var(--sans); }
.text-field em { font-style: normal; font-weight: 500; color: var(--bark); }
.text-field input, .text-field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--cream-3); border-radius: 12px; background: #FFFDF8;
  font: 500 17px/1.3 var(--sans); color: var(--pine);
}
.text-field textarea { resize: vertical; min-height: 64px; }
.text-field input::placeholder, .text-field textarea::placeholder { color: #7A6656; opacity: 1; }
.text-field input:focus, .text-field textarea:focus { border-color: var(--pine); outline: 3px solid rgba(30, 58, 43, .25); outline-offset: 0; }
.step-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.step-actions .btn-pine { flex: 1; }
.done { padding: 4px 0 16px; outline: none; }
.done h3 { font-size: 30px; margin-bottom: 10px; }
.done p { font-size: 17px; margin-bottom: 10px; }
.done .done-note { color: var(--bark); font-size: 16px; }

.urgent {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  margin: 0; padding: 12px 24px 16px;
  border-top: 1.5px dashed var(--cream-3);
  font: 600 16px/1.3 var(--sans); color: var(--bark);
}
.urgent a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pine); font-weight: 700; font-size: 18px; text-underline-offset: 4px; }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 11vw, 150px) var(--pad) clamp(80px, 9vw, 130px);
  background-color: var(--cream);
  background-image: radial-gradient(70% 60% at 0% 0%, rgba(255, 252, 240, .9) 0%, rgba(255, 252, 240, 0) 70%);
}
.services-photos { position: relative; align-self: start; padding-bottom: 120px; }
.ph { margin: 0; overflow: hidden; border-radius: 22px; }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) saturate(.92) contrast(1.03) brightness(1.02); }
.ph-cat { aspect-ratio: 4 / 5; }
.ph-cat img { object-position: 30% 50%; }
.ph-dog { position: absolute; right: -28px; bottom: 0; width: 64%; aspect-ratio: 4 / 3; border: 8px solid var(--cream); border-radius: 26px; }
.services-copy h2, .doctors h2, .newp h2, .hours h2 { font-size: clamp(38px, 4.2vw, 62px); line-height: 1.02; }
.lede { margin-top: 18px; max-width: 34em; font-size: 19px; color: var(--bark); }
.price-list { list-style: none; margin: 36px 0 0; padding: 0; border-top: 2px solid var(--pine); }
.price-list li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 4px;
  padding: 18px 0 20px; border-bottom: 1.5px solid var(--cream-3);
}
.pl-name { font: 400 25px/1.15 var(--serif); }
.pl-price { font: 700 18px/1.4 var(--sans); color: var(--bark); font-variant-numeric: tabular-nums; align-self: baseline; }
.pl-desc { grid-column: 1 / -1; font-size: 17px; line-height: 1.5; color: #4C5B51; max-width: 40em; }

/* ---------- Doctors ---------- */
.doctors {
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  background-color: var(--pine);
  background-image: radial-gradient(60% 70% at 100% 0%, rgba(217, 228, 91, .07) 0%, rgba(217, 228, 91, 0) 60%);
  color: var(--cream);
}
.doctors-intro { position: sticky; top: 40px; }
.doctors-intro p { margin-top: 18px; font-size: 19px; color: #E4DED0; max-width: 26em; }
.doctors-intro .callback-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 16px; border: 1.5px solid rgba(217, 228, 91, .55); border-radius: 999px; font: 600 17px/1.2 var(--sans); color: var(--cream); }
.doc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 30px); }
.doc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; filter: sepia(.16) saturate(.9) contrast(1.04); background: var(--pine-2); }
.doc-2 { margin-top: 72px; }
.doc-3 { margin-top: 28px; }
.doc-2 img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
.doc-1 img { object-position: 50% 30%; }
.doc-3 img { object-position: 50% 35%; }
.doc h3 { margin-top: 18px; font-size: 28px; line-height: 1.1; }
.doc-role { margin-top: 6px; font: 700 17px/1.3 var(--sans); color: var(--ball); }
.doc p:not(.doc-role) { margin-top: 10px; font-size: 17px; color: #E4DED0; }

/* ---------- New patients ---------- */
.newp {
  display: grid; grid-template-columns: 6fr 5fr; align-items: stretch;
  background: var(--cream);
}
.newp-photo { position: relative; min-height: 560px; overflow: hidden; }
.newp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(.95) contrast(1.03); }
.newp-copy { padding: clamp(64px, 8vw, 120px) var(--pad) clamp(64px, 8vw, 110px) clamp(32px, 5vw, 80px); }
.newp-copy > p { margin-top: 18px; font-size: 19px; color: var(--bark); max-width: 30em; }
.newp-copy h3 { margin-top: 34px; font-size: 26px; }
.bring { margin: 14px 0 0; padding: 0; list-style: none; }
.bring li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1.5px solid var(--cream-3); font-size: 18px; }
.bring li::before { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 11.5l4.5 4.5L18 6.5' fill='none' stroke='%231E3A2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.text-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 32px; max-width: 520px; }
.text-form .text-field { margin: 0; }
.text-form .form-error, .text-form .text-done { grid-column: 1 / -1; }
.text-done { font: 600 17px/1.4 var(--sans); padding: 12px 14px; background: var(--cream-2); border-radius: 12px; }

/* ---------- Hours ---------- */
.hours { padding: clamp(80px, 10vw, 130px) var(--pad); background: var(--cream-2); }
.hours-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.status-hours { padding: 10px 16px; border-radius: 999px; background: var(--pine); color: var(--cream); }
.hours-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: 44px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.hours-table thead th { text-align: left; font: 700 16px/1.2 var(--sans); color: var(--bark); padding: 0 12px 10px; border-bottom: 2px solid var(--pine); }
.hours-table tbody th, .hours-table td { text-align: left; padding: 13px 12px; border-bottom: 1.5px solid var(--cream-3); font-weight: 500; }
.hours-table tbody th { font-weight: 700; }
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: var(--ball); border-bottom-color: var(--ball); }
.today-tag { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--pine); color: var(--cream); font: 700 15px/1.3 var(--sans); }
.where h3, .after h3 { font-size: 26px; margin-bottom: 12px; }
.where p, .after p { font-size: 18px; margin-bottom: 12px; }
.addr { font: 600 20px/1.4 var(--sans); }
.after .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.foot { background-color: var(--pine-deep); color: var(--cream); padding: 56px var(--pad) 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid rgba(244, 239, 228, .2); }
.foot-top p { font-size: 17px; color: #E4DED0; }
.foot-top a:not(.brand) { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.brand-foot { margin-right: 0; }
.demo-line { margin-top: 28px; font-size: 17px; color: #D9D3C4; }

/* ---------- Phone menu ---------- */
.menu {
  position: fixed; inset: 64px 0 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: 12px 20px 24px;
  background-color: var(--pine); color: var(--cream);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: center; min-height: 54px; font: 400 26px/1 var(--serif); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 228, .14); }
.menu-foot { display: grid; gap: 12px; padding-top: 20px; }
.menu-where { display: grid; gap: 4px; margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(244, 239, 228, .14); font-size: 17px; line-height: 1.4; color: #E4DED0; }
.menu-where p { display: flex; justify-content: space-between; gap: 12px; }
.menu-where .menu-where-title { font: 400 22px/1.1 var(--serif); color: var(--cream); margin-bottom: 4px; }
.menu-foot .status { color: var(--cream); }
.menu-cta { width: 100%; }
.menu-call { width: 100%; }

/* ---------- Load moment (motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: settle 1.8s var(--ease) both; }
  .book { animation: rise 1s .35s var(--ease) both; }
  .tag { animation: swing 2.4s 1s cubic-bezier(.3, .6, .3, 1) both; }
}
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(48px); } to { transform: translateY(0); } }
@keyframes swing-sm {
  0% { transform: rotate(14deg); }
  30% { transform: rotate(-6deg); }
  55% { transform: rotate(3deg); }
  78% { transform: rotate(-5deg); }
  100% { transform: rotate(-4deg); }
}
@keyframes swing {
  0% { transform: rotate(-34deg); }
  22% { transform: rotate(16deg); }
  42% { transform: rotate(-14deg); }
  60% { transform: rotate(4deg); }
  78% { transform: rotate(-10deg); }
  100% { transform: rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mid widths: card drops under the photo ---------- */
@media (max-width: 1239px) {
  .top { gap: 16px; }
  .top-phone span { display: none; }
  .top-phone { width: 48px; justify-content: center; }
  .top-phone svg { width: 22px; height: 22px; }
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero-photo { position: relative; inset: auto; height: clamp(600px, 80vw, 800px); }
  .hero-photo img { height: 114%; object-position: 46% 0%; }
  .hero-copy { position: absolute; top: 0; left: 0; right: 0; }
  .book { position: relative; right: auto; bottom: auto; margin: -150px auto 0; width: min(560px, calc(100% - 2 * var(--pad))); }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px;
    background: transparent; color: var(--cream); cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .services { grid-template-columns: 1fr 1fr; }
  .doctors { grid-template-columns: 1fr; }
  .doctors-intro { position: static; }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .after { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top .brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .services-photos { max-width: 560px; }
  .newp { grid-template-columns: 1fr; }
  .newp-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .newp-copy { padding: 56px var(--pad) 72px; }
  .doc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 699px) {
  body { font-size: 18px; }
  .top { position: sticky; top: 0; padding: 8px 16px; min-height: 64px; background: var(--pine); }
  .top-phone, .top-book { display: none; }
  .hero { padding-bottom: 0; }
  .hero-photo { height: calc(100svh - 64px - 194px); min-height: 430px; }
  .hero-photo img { height: 100%; object-position: 40% 50%; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(14, 30, 21, .82) 0%, rgba(14, 30, 21, .5) 24%, rgba(14, 30, 21, 0) 40%),
      linear-gradient(0deg, rgba(21, 41, 31, 1) 0%, rgba(21, 41, 31, .65) 9%, rgba(21, 41, 31, 0) 24%);
  }
  .hero-copy { position: absolute; top: 0; left: 0; right: 0; padding: 34px 16px 0; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1; max-width: 9.5em; }
  .hero-sub { font-size: 20px; margin-top: 10px; }
  .hero-actions { position: relative; z-index: 2; display: grid; align-content: start; gap: 12px; height: 206px; margin-top: -12px; padding: 0 16px 22px; }
  .status-hero { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--pine-deep); }
  .hero-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-buttons .btn { white-space: nowrap; }
  .book { margin: 0; width: auto; border-radius: 0; box-shadow: none; }
  .book-head { border-radius: 0; padding: 22px 16px 18px; }
  .book-head h2 { font-size: 32px; }
  .tag { top: 14px; right: 16px; width: 112px; height: 134px; transform-origin: 56px 14px; transform: rotate(-4deg); }
  .tag-ring { left: 41px; width: 30px; height: 30px; }
  .tag-disc { width: 112px; height: 112px; top: 22px; padding: 18px 8px 6px; }
  .tag-hole { left: 49px; top: 7px; width: 13px; height: 13px; }
  .tag-name { font-size: 18px; margin-top: 6px; }
  @media (prefers-reduced-motion: no-preference) { .tag { animation-name: swing-sm; } }
  .book-form { padding: 18px 16px 4px; }
  .urgent { padding: 12px 16px 20px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .services { padding: 72px 16px; gap: 40px; }
  .services-photos { padding-bottom: 96px; }
  .ph-dog { right: -8px; width: 62%; }
  .pl-name { font-size: 23px; }
  .doctors { padding: 72px 16px; }
  .doc-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .doc-1 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
  .doc-1 img { grid-row: 1 / 5; }
  .doc-2 { margin-top: 0; }
  .doc-3 { margin-top: 40px; }
  .doc h3 { font-size: 24px; }
  .newp-copy { padding: 48px 16px 64px; }
  .text-form { grid-template-columns: 1fr; }
  .hours { padding: 72px 16px; }
  .hours-grid { grid-template-columns: 1fr; }
  .foot { padding: 48px 16px 36px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .book-head h2 { font-size: 30px; }
  .tag { width: 100px; height: 122px; transform-origin: 50px 14px; }
  .tag-ring { left: 35px; }
  .tag-disc { width: 100px; height: 100px; padding: 16px 6px 6px; }
  .tag-hole { left: 43px; }
  .tag-name { font-size: 17px; }
  .hero h1 { font-size: 34px; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .times { grid-template-columns: repeat(2, 1fr); }
}

/* Logo: lockups and favicon. Inline SVG sized in em, 100 viewBox units to 1em of the wordmark. */
/* Header: the two-ear shield beside the name. The brand's font-size is the Young Serif size; Animal Clinic is 0.6em of it. */
.top .brand { font-size: 28px; }
.brand svg { display: block; flex: none; width: auto; }
.brand .lk-primary { height: 1.57em; }
/* Footer: the stacked lockup, the shield above the name. */
.brand-foot { font-size: 30px; }
.brand-foot .lk-stack { height: 3.5em; }
@media (max-width: 699px) {
  .top .brand { font-size: 26px; }
}
/* End Logo */
