/* Glendale Small Animal Hospital, client site concept.
   Plain CSS, self-hosted fonts, no trackers, no CDNs. Mobile first. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/NotoSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/NotoSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/NotoSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f2e8;
  --paper-deep: #efe6d3;
  --card: #fffdf8;
  --ink: #1f302b;
  --ink-soft: #46554f;
  --green: #2d5b4e;
  --green-deep: #193a31;
  --clay: #a9512c;
  --clay-soft: #f3dccd;
  --sand: #e4d6bb;
  --line: #d9ccb3;
  --focus: #1e6fb8;
  --radius: 14px;
  --gutter: 20px;
  --max: 1120px;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green-deep);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.band { background: var(--paper-deep); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.8em;
}
.lede { font-size: 1.14rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--card); padding: 8px 12px; z-index: 50;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--green-deep);
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--clay);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-main a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 4px;
  font-size: 0.95rem;
}
.nav-main a[aria-current="page"] { color: var(--clay); }
.nav-main li + li { margin-left: 20px; }
.nav-main a:hover { color: var(--clay); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn.clay { background: var(--clay); border-color: var(--clay); }
.btn.clay:hover { background: #8a3f20; border-color: #8a3f20; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green-deep);
  font-weight: 600;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--green); color: #fff; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, 90vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(31, 48, 43, 0.18);
  padding: 8px;
}
.menu-panel a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 10px;
  font-weight: 500;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--clay-soft); color: var(--green-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { display: none; }

@media (min-width: 960px) {
  .nav-main { display: block; }
  .menu { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* ---------- Hero ----------
   The photo is full-bleed across the top at every width. The words sit below it on paper,
   so no text ever covers a face. */
.hero {
  background: var(--paper-deep);
  color: var(--ink);
}
.hero picture {
  position: relative;
  display: block;
  width: 100%;
}
/* Wide screens show the whole photo at its own proportions, so no face is cut at the edge. */
.hero img {
  width: 100%;
  height: auto;
}
.hero-inner {
  padding-top: 36px;
  padding-bottom: 52px;
}
.hero-copy { max-width: 720px; }
.hero h1 { color: var(--green-deep); }
.hero .eyebrow { color: var(--clay); }
.hero .lede { color: var(--ink-soft); font-size: 1.14rem; }
.hero .btn { background: var(--clay); border-color: var(--clay); }
.hero .btn:hover { background: #8a3f20; border-color: #8a3f20; color: #fff; }
.hero .btn.ghost { color: var(--green-deep); border-color: var(--green); background: transparent; }
.hero .btn.ghost:hover { background: var(--green); color: #fff; }

/* Phone: a taller portrait crop, so the whole face of the person in the photo stays in frame. */
@media (max-width: 699px) {
  .hero img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 14%; }
  .hero-inner { padding-top: 28px; padding-bottom: 40px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { margin-bottom: 0.4em; }
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- Layout blocks ---------- */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .split.rev > :first-child { order: 2; }
}

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; }
.photo-frame {
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Photos are shown whole (no cropping), so people's faces stay in frame. */
.photo-frame img { width: 100%; height: auto; object-fit: contain; }
figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; }

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 { margin: 0; }
.card:hover { border-color: var(--clay); }
.card .more { color: var(--clay); font-weight: 600; margin-top: auto; }
.card-photo { border-radius: 10px; overflow: hidden; margin: -4px -4px 8px; background: var(--paper-deep); }
.card-photo img { width: 100%; height: auto; }

.note {
  background: var(--clay-soft);
  border-left: 4px solid var(--clay);
  padding: 16px 18px;
  border-radius: 10px;
}
.note p:last-child { margin: 0; }

.quote-block {
  border-left: 3px solid var(--clay);
  padding: 4px 0 4px 20px;
  margin: 1.4em 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--green-deep);
}

.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.faq { display: grid; gap: 18px; margin-top: 8px; }
.faq h3 { font-size: 1.12rem; margin-bottom: 0.3em; }

.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours th, .hours td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours th { font-weight: 600; width: 45%; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card dt { font-weight: 600; color: var(--green-deep); margin-top: 12px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; }

.timeline {
  display: grid;
  gap: 28px;
  margin-top: 16px;
}
.history-photos {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .history-photos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .history-photos { grid-template-columns: 1fr 1fr 1fr; } }

.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.team-card .role { color: var(--clay); font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }

.badge-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.badge-row img { width: 96px; height: auto; }

/* ---------- Emergency ---------- */
.alert {
  background: #7a2a1a;
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
}
.alert h2, .alert h3 { color: #fff; }
.alert a { color: #fff; }
.alert .btn { background: #fff; color: #7a2a1a; border-color: #fff; }
.alert .btn:hover { background: var(--clay-soft); color: #7a2a1a; }
.referrals { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .referrals { grid-template-columns: 1fr 1fr; } }
.referral {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--clay);
  border-radius: 10px;
  padding: 16px 18px;
}
.referral h3 { margin: 0 0 4px; font-size: 1.1rem; }
.referral .check {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.referral p { margin: 0 0 4px; }
.referral .hours-line { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Booking ---------- */
.book-wrap { max-width: 720px; }
.progress { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 8px; }
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.25s ease;
}
.book-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
@media (min-width: 720px) { .book-card { padding: 36px; } }
.book-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.book-card legend {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green-deep);
  padding: 0;
  margin-bottom: 14px;
}
.field { margin-bottom: 18px; }
.field label, .field .label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.input, .book-card select, .book-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #bfb193;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.book-card textarea { min-height: 110px; resize: vertical; }
.input:focus, .book-card select:focus, .book-card textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgba(30, 111, 184, 0.25);
  outline-offset: 0;
}
.input[aria-invalid="true"] { border-color: var(--clay); background: #fff8f4; }
.error-text { color: var(--clay); font-weight: 600; font-size: 0.93rem; margin-top: 6px; }
.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 620px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1.5px solid #bfb193;
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.25;
}
.choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-list { display: grid; gap: 10px; }
.choice-list .choice span { justify-content: flex-start; text-align: left; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--green); }
.book-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.summary { display: grid; gap: 0; margin: 0 0 8px; }
.summary div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.summary dt { font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; }
.summary dd { margin: 0; text-align: right; }
.summary dd.wide { grid-column: 1 / -1; text-align: left; }
.summary .edit { font-size: 0.9rem; }
.result { display: none; }
.result.show { display: block; }
.ref-box {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  background: var(--paper-deep);
  border: 1px dashed var(--green);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 6px 0 12px;
}
.status-line { font-weight: 600; min-height: 1.4em; }
.status-line.bad { color: var(--clay); }

/* ---------- Reminders sample ---------- */
.sample-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.sms {
  background: #e7efe9;
  border-radius: 18px 18px 18px 4px;
  padding: 16px 18px;
  max-width: 420px;
  color: var(--ink);
}
.email-sample {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 560px;
}
.email-sample .subject { font-weight: 700; color: var(--green-deep); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #dfe8e2;
  padding: 48px 0 28px;
  margin-top: 56px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid h2 { color: #fff; font-size: 1.15rem; font-family: var(--serif); }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: #c9d6cf;
}
.footer-bottom p { margin-bottom: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] { display: none !important; }

/* ---- the view switch (every page): Client site · Staff desk · Owner · Back office ---- */
.view-switch { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.view-switch ul { list-style: none; margin: 0 auto; padding: 6px 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 1200px; }
.view-switch a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 12.5px/1.15 Inter, system-ui, sans-serif; text-align: center; background: var(--paper); }
.view-switch a:hover { background: var(--sand); }
.view-switch a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.view-switch a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 700px) { .view-switch a { font-size: 14px; } }

/* ---- sample prices and the owner's terms ---- */
.price-line { margin: 14px 0 0; font-size: 15px; }
.price-line .label { color: var(--ink-soft); }
.price-line strong { font-variant-numeric: tabular-nums; }
.terms-box { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.terms-box h2 { font-size: 1.2rem; margin: 0 0 8px; }
.terms-box p { margin: 0; }

/* ---- the assistant (every page) ---- */
.assistant-dock { position: fixed; right: 12px; bottom: 12px; z-index: 60; }
.assistant-toggle { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--clay); color: #fff; font: 600 15px Inter, system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); cursor: pointer; }
.assistant-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.assistant-panel { position: absolute; right: 0; bottom: 52px; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }
.assistant-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; }
.assistant-head h2 { font-size: 1.05rem; margin: 0; }
.assistant-close { min-height: 44px; min-width: 44px; background: none; border: 0; color: var(--green-deep); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.assistant-hint { margin: 2px 14px 8px; font-size: 13px; color: var(--ink-soft); }
.assistant-log { flex: 1; overflow-y: auto; padding: 0 14px; display: grid; gap: 10px; min-height: 120px; }
.assistant-msg { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; background: var(--paper); }
.assistant-msg.you { background: var(--sand); justify-self: end; max-width: 85%; }
.assistant-msg.assistant { justify-self: start; max-width: 96%; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.assistant-form { padding: 10px 14px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.assistant-form label { font-size: 13px; color: var(--ink-soft); }
.assistant-row { display: flex; gap: 8px; min-width: 0; }
.assistant-row .btn { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
.assistant-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 16px Inter, system-ui, sans-serif; background: #fff; color: var(--ink); }
.assistant-row .btn { min-height: 44px; }
@media (max-width: 380px) { .assistant-panel { right: 0; } }
