/* Gilson Equine Veterinary Services — site styles
   No external fonts or frameworks; system font stacks only. */

:root {
  --green-900: #1e3227;
  --green-800: #27402f;
  --green-700: #2f4d39;
  --green-100: #e6ece4;
  --saddle: #9a6430;
  --saddle-dark: #7a4c20;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #1f2722;
  --muted: #5a6560;
  --line: #ddd8cc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 50, 39, .06), 0 6px 20px rgba(30, 50, 39, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saddle-dark); font-weight: 700; margin-bottom: .4em; }

/* Buttons */
.btn {
  display: inline-block; padding: .7em 1.3em; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--saddle); color: #fff; }
.btn-primary:hover { background: var(--saddle-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); color: var(--green-900); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-900); }

/* Top bar */
.topbar { background: var(--green-900); color: #dfe7df; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-emerg { background: var(--saddle); color: #fff; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; }
@media (max-width: 720px) {
  .topbar-tag { display: none; }
  .topbar-links { gap: 12px; justify-content: center; width: 100%; }
  .topbar-links a[href^="mailto"] { display: none; }
}

/* Header + nav */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { width: 200px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .55em .8em; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .97rem; border-radius: 6px;
}
.site-nav a:hover { background: var(--green-100); color: var(--green-900); }
.site-nav .nav-cta { background: var(--green-800); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--green-900); color: #fff; }

/* Current-page highlight, driven by the <body> class on each page */
.page-home .nav-home, .page-vets .nav-vets, .page-staff .nav-staff, .page-services .nav-services,
.page-acu .nav-acu, .page-vsmt .nav-vsmt { color: var(--saddle-dark); box-shadow: inset 0 -2px 0 var(--saddle); border-radius: 0; }
.page-contact .nav-contact { background: var(--saddle); }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line);
    border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--green-900); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 2px; }
  .site-nav a { padding: .8em .6em; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .page-home .nav-home, .page-vets .nav-vets, .page-staff .nav-staff, .page-services .nav-services,
  .page-acu .nav-acu, .page-vsmt .nav-vsmt { box-shadow: inset 3px 0 0 var(--saddle); }
}

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-inner { position: relative; padding: clamp(64px, 11vw, 132px) 20px; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: .35em; }
.hero p { font-size: 1.2rem; max-width: 46ch; color: #eef2ec; }
.hero .eyebrow { color: #f1cfa5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }

/* Interior page banner */
.page-banner { background: var(--green-800); color: #fff; padding: clamp(40px, 7vw, 72px) 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: #dfe7df; margin: .6em 0 0; max-width: 60ch; font-size: 1.1rem; }
.page-banner a { color: #fff; }
.page-banner a:hover { color: #f1cfa5; }

/* Sections */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* Quick facts strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.fact { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.fact h2 { font-size: 1.1rem; margin-bottom: .25em; }
.fact p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; margin-top: 24px; } }

/* News */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }
.news { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); border-top: 5px solid var(--saddle); }
.news-head h2 { margin-bottom: .1em; }
.news-date { color: var(--muted); font-weight: 600; }
.notice { margin-top: 1.5em; background: var(--green-100); border-radius: 8px; padding: 20px 22px; }
.notice h3 { font-size: 1.15rem; }
.notice p:last-child { margin-bottom: 0; }
.news-aside img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.news-aside .card-plain { margin-top: 20px; }

.card-plain { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.card-plain h3 { font-size: 1.15rem; }
.card-plain p:last-child { margin-bottom: 0; }

/* Link cards (home) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 2px 4px rgba(30,50,39,.08), 0 14px 30px rgba(30,50,39,.12); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--green-100); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-more { display: inline-block; margin-top: .7em; font-weight: 600; color: var(--saddle-dark); }

/* People (vets / staff) */
.people { display: grid; gap: 28px; }
.person {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; background: var(--paper);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; align-items: start;
}
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--green-100); }
.person h2 { font-size: 1.6rem; margin-bottom: .1em; }
.person .role { color: var(--saddle-dark); font-weight: 600; margin-bottom: 1em; }
.person-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .person img { max-width: 320px; }
}

/* Services */
.service-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-index li { margin: 0; }
.service-index a { display: block; padding: .45em .95em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--green-900); font-size: .93rem; font-weight: 500; }
.service-index a:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.service-index-wrap { background: var(--green-100); padding: 20px 0; border-bottom: 1px solid var(--line); }

.service { scroll-margin-top: 110px; padding: 40px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.service:last-child { border-bottom: 0; }
.service.no-img { grid-template-columns: minmax(0, 1fr); }
.service-media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.service-body > :last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 20px; }
  .service-media { max-width: 420px; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 1.2em; }
.gallery img { border-radius: 8px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--green-100); }
.gallery.wide img { aspect-ratio: 4 / 3; }

.callout { background: var(--green-800); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.callout h2 { color: #fff; margin: 0 0 .2em; font-size: 1.5rem; }
.callout p { margin: 0; color: #dfe7df; }
.callout-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Two-column article (acupuncture, VSMT) */
.article { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.article-media { display: grid; gap: 14px; position: sticky; top: 110px; }
.article-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-100); }
.article-media.duo { grid-template-columns: 1fr 1fr; }
.article-media.duo img:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; gap: 28px; }
  .article-media { position: static; }
}
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65em; height: .65em; border-radius: 50%; background: var(--saddle); }
dl.terms { margin: 0 0 1.4em; }
dl.terms dt { font-weight: 700; color: var(--green-900); }
dl.terms dd { margin: 0 0 .9em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-card h2 { font-size: 1.35rem; }
.contact-card address { font-style: normal; margin-bottom: 1em; }
.contact-big { font-size: 1.6rem; font-family: var(--serif); font-weight: 600; text-decoration: none; color: var(--green-900); }
.contact-emerg { border-top: 5px solid var(--saddle); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .45em 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfd9d0; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f1cfa5; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--green-900); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr .9fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 180px; margin-bottom: 1em; }
.footer-h { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-nav { list-style: none; padding: 0; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .85rem; color: #9fb0a3; }

/* Utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .topbar, .site-header, .site-footer, .hero-actions, .service-index-wrap { display: none; }
  body { background: #fff; }
}
