/* Fernhill Veterinary Clinic
   COLOR THEORY
   Harmony: complementary. Forest green (#156B4C) against red-orange (#C23F24). Green is the calm, capable clinic color
   (nature, health, steadiness); its complement red-orange is reserved for one job: urgency (emergency bar, "come in now").
   Because the two hues are opposites, the urgent color can be tiny and still be seen first.
   60% paper/moss tint  #FAFAF6 / #E4F1EA   backgrounds
   30% green            #156B4C panels, #0E4A35 deep panel, #14211C text
   10% red-orange       #C23F24 emergency and urgent outcome, #FBE7E1 its tint
   Contrast (WCAG): ink #14211C on #FAFAF6 15.88 (AAA), on #E4F1EA 14.29 (AAA); gray #4E5D56 on #FAFAF6 6.64 (AA);
                    green #156B4C on #FAFAF6 6.20 (AA); white on green 6.48 (AA); white on #C23F24 5.21 (AA).
   Photo shoot: white and gray exam rooms, blue gloves, warm dachshund brown, a tabby cat. */
:root {
  --paper: #FAFAF6;
  --moss: #E4F1EA;
  --green: #156B4C;
  --green-deep: #0E4A35;
  --ink: #14211C;
  --gray: #4E5D56;
  --signal: #C23F24;
  --signal-tint: #FBE7E1;
  --amber-tint: #FFF1D6;
  --line: #D9E2DC;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); font-feature-settings: "kern" 1; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure, fieldset { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: .5rem; }
.hp { position: absolute; left: -9999px; }
section { scroll-margin-top: 70px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.5rem; border-radius: 10px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--light { background: var(--paper); color: var(--green-deep); }
.btn--light:hover { background: var(--moss); }
.btn--outline { border-color: rgba(250, 250, 246, .6); color: #fff; }
.btn--outline:hover { background: rgba(250, 250, 246, .12); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: #A33420; }
.btn--wide { width: 100%; }

/* Emergency bar */
.alert { background: var(--signal); color: #fff; padding: .55rem var(--pad); font-size: .95rem; text-align: center; }
.alert a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; padding: 0 var(--pad); background: rgba(250, 250, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--line); }
.brand { font: 800 1.35rem/1 var(--display); text-decoration: none; color: var(--green-deep); letter-spacing: -.02em; }
.brand span { font: 500 .85rem var(--body); color: var(--gray); margin-left: .4rem; }
.menu { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .95rem; }
.menu a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--green); }
.menu__cta { background: var(--green); color: #fff; padding: .55rem 1rem !important; border-radius: 8px; border: 0 !important; }
.menu__cta:hover { background: var(--green-deep); }
.burger { display: none; background: none; border: 2px solid var(--green); border-radius: 8px; padding: .5rem .9rem; font: 600 .95rem var(--body); color: var(--green-deep); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); }
.hero__photo { background: var(--moss); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__panel { background: var(--green); color: #fff; padding: clamp(2rem, 5vw, 4.5rem) var(--pad); display: grid; align-content: center; gap: 1.3rem; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; max-width: 12ch; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 44ch; color: #DCEDE4; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; }
.status__dot { width: 11px; height: 11px; border-radius: 50%; background: #8FE3B8; box-shadow: 0 0 0 4px rgba(143, 227, 184, .25); }
.status.is-closed .status__dot { background: #F5B79F; box-shadow: 0 0 0 4px rgba(245, 183, 159, .25); }
.status--big { font-size: 1.15rem; color: var(--green-deep); margin-top: 1rem; }
.status--big .status__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(21, 107, 76, .18); }
.status--big.is-closed { color: var(--signal); }
.status--big.is-closed .status__dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(194, 63, 36, .18); }
@media (prefers-reduced-motion: no-preference) {
  .hero__panel > * { animation: rise .7s var(--ease) both; }
  .hero__panel > *:nth-child(2) { animation-delay: .08s; }
  .hero__panel > *:nth-child(3) { animation-delay: .16s; }
  .hero__panel > *:nth-child(4) { animation-delay: .24s; }
  .hero__photo img { animation: zoom 1.6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes zoom { from { transform: scale(1.06); } to { transform: none; } }
}

/* Guide */
.guide { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.guide__head { max-width: 60ch; }
.guide__head p { margin-top: .9rem; color: var(--gray); font-size: 1.1rem; }
.guide__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.2rem; align-items: start; }
.guide__step { font-weight: 700; font-size: .95rem; color: var(--green-deep); margin-top: 1.6rem; }
.guide__step:first-child { margin-top: 0; }
.pets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.pet { font: 600 1rem var(--body); color: var(--green-deep); background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; transition: .2s; }
.pet:hover { border-color: var(--green); }
.pet.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.symptoms { list-style: none; padding: 0; margin-top: .6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.symptoms label { display: flex; gap: .7rem; align-items: start; padding: .75rem .9rem; border: 1.5px solid var(--line); border-left-width: 6px; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; font-size: .98rem; }
.symptoms label.lvl-0 { border-left-color: var(--green); }
.symptoms label.lvl-1 { border-left-color: #C98A1E; }
.symptoms label.lvl-2 { border-left-color: var(--signal); }
.symptoms label:hover { background: var(--paper); }
.legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--gray); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend li::before { content: ""; width: 14px; height: 6px; border-radius: 3px; background: var(--green); }
.legend__1::before { background: #C98A1E !important; }
.legend__2::before { background: var(--signal) !important; }
.symptoms input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--green); flex: none; }
.symptoms label.is-checked { background: var(--moss); }
.symptoms label.is-checked.lvl-2 { background: var(--signal-tint); }
.symptoms label.is-checked.lvl-1 { background: var(--amber-tint); }
.outcome { position: sticky; top: 90px; border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--moss); border: 2px solid var(--green); display: grid; gap: .8rem; transition: background .3s, border-color .3s; }
.outcome[data-level="1"] { background: var(--amber-tint); border-color: #C98A1E; }
.outcome[data-level="2"] { background: var(--signal); border-color: var(--signal); color: #fff; }
.outcome__label { font-weight: 700; font-size: .9rem; color: var(--green-deep); }
.outcome[data-level="1"] .outcome__label { color: #7A5210; }
.outcome[data-level="2"] .outcome__label { color: #fff; }
.outcome__title { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.outcome__text { font-size: 1.05rem; }
.outcome__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.outcome[data-level="2"] .btn--primary { background: #fff; color: var(--signal); }
.outcome[data-level="1"] .btn--primary { background: var(--ink); }
.outcome__fine { font-size: .85rem; color: var(--gray); margin-top: .4rem; }
.outcome[data-level="2"] .outcome__fine { color: #fff; }
.outcome.is-switching { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(.985); } 100% { transform: none; } }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--green-deep); color: #fff; }
.svc { margin-top: 2rem; display: grid; }
.svc div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.svc dt { font: 700 1.35rem/1.1 var(--display); letter-spacing: -.02em; }
.svc dd { margin: 0; color: #CFE5D9; font-size: 1rem; }
.services__photos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-content: start; margin-top: 4.6rem; }
.services__photos figure { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--green); }
.services__photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.services__photos img { width: 100%; height: 100%; object-fit: cover; }

/* Team */
.team { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.crew { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.crew li { padding-top: 1.2rem; border-top: 3px solid var(--green); }
.crew h3 { font-size: 1.35rem; }
.crew__role { margin-top: .3rem; color: var(--green); font-weight: 600; font-size: .95rem; }
.crew p + p { margin-top: .7rem; color: var(--gray); font-size: .98rem; }

/* Hours + booking */
.visit { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--moss); }
.hours__table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-variant-numeric: tabular-nums; }
.hours__table th { text-align: left; font-weight: 600; padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours__table td { padding: .7rem 0 .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--gray); text-align: right; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--green-deep); font-weight: 700; }
.hours__address { font-style: normal; margin-top: 1.4rem; line-height: 1.7; }
.hours__note { margin-top: 1rem; color: var(--gray); font-size: .95rem; }
.book { background: var(--paper); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.book__lead { margin-top: .6rem; color: var(--gray); }
.form { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.form__set { border: 0; padding: 0; display: grid; gap: .9rem; }
.form__set legend { font: 700 1.1rem var(--display); padding: 0; margin-bottom: .6rem; color: var(--green-deep); }
.form__row { display: grid; gap: .35rem; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form__row--2 > div { display: grid; gap: .35rem; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .72rem .9rem; min-height: 48px; }
input::placeholder, textarea::placeholder { color: #6F7D76; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(21, 107, 76, .25); outline-offset: 0; border-color: var(--green); }
textarea { resize: vertical; }
.form__privacy { font-size: .9rem; color: var(--gray); }
.form__done { margin-top: 1.4rem; padding: 1.4rem; border-radius: 14px; background: var(--moss); }
.form__done p { margin-top: .5rem; }

.foot { padding: 2.5rem var(--pad) 3rem; display: grid; gap: .4rem; font-size: .9rem; color: var(--gray); border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .services__photos { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
  .services__photos figure:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .guide__grid { grid-template-columns: 1fr; }
  .outcome { position: static; }
}
@media (max-width: 820px) {
  .menu { position: fixed; inset: 68px 0 auto 0; display: grid; padding: .6rem var(--pad) 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
  .top { top: 0; }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu__cta { margin-top: .6rem; text-align: center; }
  .burger { display: inline-block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero h1 { max-width: none; }
  .visit { grid-template-columns: 1fr; }
  .svc div { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .symptoms { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .services__photos { grid-template-columns: 1fr 1fr; }
  .services__photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .hours__table td { text-align: left; padding-left: .5rem; }
  .alert { font-size: .9rem; }
  .alert__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
