*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
:root {
  --blue: #3f5ca8; --blue-dark: #324a8a;
  --ink: #15171c; --muted: #5b6270; --line: #e3e5ea; --tint: #f4f5f7;
  --dark: #111317; --alert: #b42318; --alert-bg: #fef3f2;
  --wrap: 1160px; --gutter: 40px;
}
html { scroll-behavior: smooth; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .2em; color: var(--blue); text-transform: uppercase; margin-bottom: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Top bar */
.topbar { background: var(--dark); color: #fff; font-size: 14px; }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; }
.topbar a { font-weight: 700; text-decoration: none; }
.topbar .sep { color: #a9adb6; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .icon { height: 60px; width: auto; }
.brand .word { height: 38px; width: auto; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .18em; color: var(--muted); margin-top: 6px; }
.nav ul { list-style: none; display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--blue); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-size: 15px; font-weight: 700; padding: 14px 24px; border-radius: 4px; border: 1px solid var(--blue); color: var(--blue); background: #fff; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: #eef1f9; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 56px; padding-right: 0; }
.hero .text { padding: 80px 0 72px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 24px; max-width: 13.5em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin-bottom: 32px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts dt { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.facts dd { font-size: 16px; }
.photo { background-size: cover; background-position: center; min-height: 240px; }
.hero .photo { background-image: url(horses.jpg); }

/* Sections */
section { scroll-margin-top: 16px; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; line-height: 1.15; }
.services { padding: 88px 0 80px; }
.services .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.services .head .eyebrow { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; }
.card { padding: 26px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card:nth-child(3n) { border-right: 0; }
.card:nth-last-child(-n+3) { border-bottom: 0; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.farm { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.farm .inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; }
.farm .text { padding: 72px 56px 72px var(--gutter); }
.farm h2 { margin-bottom: 16px; }
.farm p { font-size: 17px; line-height: 1.65; color: var(--muted); margin-bottom: 18px; max-width: 36em; }
.farm ul { font-size: 16px; color: var(--muted); padding-left: 20px; line-height: 1.9; }
.farm .photo { background-image: url(barn.jpg); }

.emergency { padding: 80px 0; }
.emergency .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
.emergency h2 { margin-bottom: 12px; }
.emergency p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 34em; }
.callbox { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; padding: 24px 26px; }
.callbox small { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.callbox .num { display: block; font-size: 30px; font-weight: 700; margin: 6px 0; text-decoration: none; }
.callbox div { font-size: 14px; color: var(--muted); }

/* Contact / form */
.contact { background: var(--tint); border-top: 1px solid var(--line); padding: 80px 0 88px; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.contact .intro p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 14px 0 28px; }
.contact dl { display: grid; gap: 18px; }
.contact dt { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.contact dd { font-size: 17px; }
.contact dd a { text-decoration: none; font-weight: 700; }
.alert { border: 1px solid #f3c5c0; border-left: 4px solid var(--alert); background: var(--alert-bg); border-radius: 4px; padding: 16px 18px; margin-bottom: 24px; }
.alert strong { display: block; color: var(--alert); font-size: 16px; margin-bottom: 4px; }
.alert p { font-size: 15px; color: var(--ink); margin: 0; }
.alert a { font-weight: 700; white-space: nowrap; }
form.request { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-size: 14px; font-weight: 700; }
.req { color: var(--alert); }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #c9ccd4; border-radius: 4px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; }
.radios { display: flex; gap: 24px; margin-top: 8px; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.radios input { width: auto; }
.submit-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.submit-row small { font-size: 13px; color: var(--muted); max-width: 30em; }
.hidden { display: none; }

/* Footer */
footer { background: var(--dark); color: #a9adb6; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
footer b { color: #fff; }
footer a { color: #fff; text-decoration: none; }

/* Tablet */
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero .wrap { grid-template-columns: 1fr 260px; gap: 36px; }
  .farm .inner { grid-template-columns: 1fr 300px; }
  .emergency .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .card:nth-last-child(-n+2) { border-bottom: 0; }
}
/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { font-size: 13px; }
  .topbar .sep { display: none; }
  .topbar .hours { display: block; color: #a9adb6; }
  .brand .icon { height: 50px; }
  .brand .word { height: 32px; }
  .brand small { font-size: 9px; letter-spacing: .14em; }
  .nav { width: 100%; }
  .nav ul { gap: 8px 20px; flex-wrap: wrap; font-size: 15px; }
  .hero .wrap { display: flex; flex-direction: column-reverse; gap: 0; padding: 0; }
  .hero .photo { min-height: 220px; background-position: center 30%; }
  .hero .text { padding: 36px var(--gutter) 44px; }
  .lede { font-size: 17px; }
  .ctas .btn { flex: 1 1 100%; text-align: center; }
  .facts { gap: 16px 28px; }
  .services { padding: 56px 0; }
  .services .head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .farm .inner { display: flex; flex-direction: column-reverse; }
  .farm .photo { min-height: 220px; }
  .farm .text { padding: 40px var(--gutter) 48px; }
  .emergency { padding: 56px 0; }
  .contact { padding: 56px 0 64px; }
  form.request { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
  .submit-row .btn { width: 100%; text-align: center; }
}

/* Keep phone numbers and hours on one line */
a[href^="tel:"], .nowrap { white-space: nowrap; }

/* Clinic address */
.contact dd.address { line-height: 1.5; }
.contact dd a.directions { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--blue); }
.contact dd a.directions:hover { text-decoration: underline; }
