/* ==========================================================
   Woodland Animal Hospital — site stylesheet (2026 build)
   Colors, type and layout for every page live here.
   ========================================================== */

/* ---------- Fonts (self-hosted, no outside requests) ---------- */
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/playfair-display-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-style: italic; font-display: swap; src: url("../fonts/playfair-display-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); }

/* ---------- Color palette ---------- */
:root {
  --white: #FBFAF7;      /* warm white page background */
  --paper: #FFFFFF;      /* cards */
  --stone: #F1EDE6;      /* soft stone sections */
  --line: #E6E0D6;       /* hairlines and borders */
  --ink: #2A2A28;        /* headings */
  --text: #33322F;       /* body text */
  --body: #4A4843;       /* paragraph text */
  --muted: #5E5A54;      /* secondary text */
  --hunter: #2E4A3A;     /* buttons */
  --forest: #1F3A2C;     /* links, small lines, accents */
  --charcoal: #262624;   /* footer */
  --foot-text: #D8D3CA;
  --foot-muted: #A7A196;
  --alert: #8A2E1E;      /* emergency accents */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 10px 14px; z-index: 100; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; background: var(--hunter); color: #FFFFFF; text-decoration: none;
  font-weight: 700; padding: 13px 22px; border-radius: 4px; white-space: nowrap; border: 0; line-height: 1.3;
}
.btn:hover, .btn:focus-visible { background: var(--forest); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 12px 20px; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: #FFFFFF; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.more { display: inline-block; color: var(--forest); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; color: var(--forest);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 1.5px; background: var(--forest); flex: none; }
.eyebrow.plain::before { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 22px; }
.brand { display: flex; align-items: flex-start; gap: 20px; text-decoration: none; color: var(--ink); min-width: 0; }
/* Logo height = top of the capital W to the bottom of the tagline, so it sits level with the text */
.brand-logo { flex: none; height: 56.3px; width: auto; margin-top: 9px; }
.brand-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 46px; line-height: 1; white-space: nowrap; }
.brand-tag { font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); line-height: 1; white-space: nowrap; }
.head-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.head-hours { font-size: 14px; color: var(--muted); text-align: right; line-height: 1.35; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap { display: flex; gap: 32px; }
.main-nav a {
  display: block; padding: 13px 0 11px; font-weight: 600; font-size: 16px; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--forest); }
.mobile-bar { display: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.bg-stone { background: var(--stone); }
.bg-white { background: var(--white); }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2, .h2 { font-size: 40px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.lead { font-size: 19px; color: var(--body); }

/* Page title band (inner pages) */
.page-title { background: var(--stone); border-bottom: 1px solid var(--line); padding: 64px 0; }
.page-title h1 { font-size: 52px; margin: 14px 0; max-width: 18em; }
.page-title .lead { max-width: 40em; }

/* ---------- Home: hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.1; margin: 18px 0 20px; }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.framed { margin: 0; }
.framed .frame { padding: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(38, 38, 36, 0.10); }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* Notice band */
.band-row { display: flex; align-items: center; gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.band-icon {
  width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.band-text { flex: 1; }
.band-title { font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.band-text p { color: var(--body); margin-top: 4px; }

/* Cards */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card { background: var(--stone); border-top: 2px solid var(--ink); padding: 24px; }
.card.white { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.card.alert { border-top-color: var(--alert); }
.card-title { display: flex; align-items: center; gap: 10px; color: var(--forest); margin-bottom: 12px; }
.card.alert .card-title { color: var(--alert); }
.card-title h3, .card h3 { font-size: 22px; }
.card p { font-size: 16px; }
.card .more { margin-top: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; font-size: 16px; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }

/* Check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { display: flex; gap: 14px; }
.checks svg { flex: none; margin-top: 3px; color: var(--forest); }
.checks strong { color: var(--ink); }

/* People */
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person.square img, .person .placeholder { aspect-ratio: 1; }
.person-name { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 20px; color: var(--ink); margin-top: 12px; line-height: 1.25; }
.person-role { font-size: 14px; color: var(--muted); }
.placeholder { width: 100%; background: var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.placeholder img { width: 36px; height: auto; aspect-ratio: auto; opacity: 0.35; }
.center { text-align: center; }

/* Team page bio cards */
.bio-card { background: var(--stone); display: flex; flex-direction: column; }
.bio-card .bio-body { padding: 18px 18px 20px; }
.bio-card h3 { font-size: 21px; }
.bio-card .role { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.bio-card .summary { margin-top: 10px; font-size: 16px; color: var(--body); }
details.bio { margin-top: 10px; }
details.bio summary { cursor: pointer; color: var(--forest); font-weight: 700; font-size: 15px; list-style: none; }
details.bio summary::-webkit-details-marker { display: none; }
details.bio summary::after { content: " →"; }
details.bio[open] summary::after { content: " ↑"; }
details.bio p { font-size: 15.5px; color: var(--body); margin-top: 10px; }

/* Memorial */
.memorial { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; max-width: 1000px; margin: 0 auto; }
.memorial .frame { padding: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(38, 38, 36, 0.10); }
.memorial img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.memorial h2 { font-style: italic; font-size: 36px; margin: 8px 0 14px; }
.memorial p + p { margin-top: 12px; }
.memorial p { color: var(--body); }

/* Pet strip and gallery */
.pet-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pet-strip img, .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery a { display: block; }
.gallery a:hover img { opacity: 0.88; }

/* Pet Photos: staff pets */
.staff-pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.staff-pet { flex: 0 1 calc((100% - 66px) / 4); margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 14px; box-shadow: 0 10px 26px rgba(38, 38, 36, 0.07); }
.staff-pet img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.staff-pet figcaption { margin-top: 12px; text-align: center; line-height: 1.3; }
.staff-pet .pet-name { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 22px; color: var(--ink); }
.staff-pet .pet-owner { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }

/* Services: photos at the top of service cards */
.svc-photo { margin: -26px -26px 22px; }
.svc-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* Services */
.svc { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 26px; }
.svc h2 { font-size: 24px; margin-bottom: 12px; }
.svc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--body); }
.svc.cta { background: var(--stone); border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.svc.cta .btn { align-self: flex-start; }
.note-box { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.note-box strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.stack { display: grid; gap: 20px; }
.info-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.big-phone { color: var(--ink); font-size: 26px; font-weight: 700; text-decoration: none; }
.hours-table { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 16px; }
.hours-table .closed { color: var(--alert); }
.map { width: 100%; aspect-ratio: 16 / 10; border: 8px solid var(--paper); box-shadow: 0 6px 18px rgba(38, 38, 36, 0.08); display: block; background: var(--stone); }

/* Resources */
.res-group h2 { font-size: 28px; margin-bottom: 16px; }
.res-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.res { background: var(--paper); border: 1px solid var(--line); padding: 18px 20px; }
.res .name { font-weight: 700; color: var(--ink); }
.res .addr { font-size: 15px; color: var(--muted); }
.res a.phone { color: var(--ink); font-weight: 700; }
.res .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.res.alert { border-top: 2px solid var(--alert); }
.res.alert .tag { color: var(--alert); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--foot-text); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.foot-brand { display: flex; align-items: flex-start; gap: 14px; }
.foot-brand img { flex: none; height: 36.3px; width: auto; margin-top: 4.5px; }
.foot-brand .name { font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 600; color: #FFFFFF; line-height: 1; white-space: nowrap; }
.foot-brand .tag { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foot-muted); line-height: 1; margin-top: 7px; white-space: nowrap; }
.site-footer h2 { font-family: "Source Sans 3", sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; margin-bottom: 8px; line-height: 1.4; }
.site-footer a { color: var(--foot-text); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .strong { color: #FFFFFF; font-weight: 600; margin-top: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.foot-bottom { padding-top: 0; padding-bottom: 28px; font-size: 13px; color: var(--foot-muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1060px) {
  .brand-name { font-size: 36px; }
  .brand-tag { font-size: 10.5px; letter-spacing: 0.13em; }
  .brand-logo { height: 47.8px; margin-top: 7px; }
  .head-hours { display: none; }
  .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-6, .pet-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .staff-pet { flex-basis: calc((100% - 44px) / 3); }
  .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 44px; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  body { padding-bottom: 76px; font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .head-row { padding-top: 16px; padding-bottom: 14px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 25px; }
  .brand-text { gap: 7px; }
  .brand-tag { font-size: 8.6px; letter-spacing: 0.08em; }
  .brand-logo { height: 34.3px; margin-top: 5px; }
  .head-cta { display: none; }
  .main-nav .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .main-nav a { padding: 10px 0 8px; font-size: 15px; text-align: center; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--charcoal); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 4px; font-weight: 700; text-decoration: none; }
  .mobile-bar .call { background: var(--hunter); color: #FFFFFF; }
  .mobile-bar .dir { background: transparent; color: #FFFFFF; border: 1.5px solid #6E6A62; }

  .section { padding: 52px 0; }
  .section.tight { padding: 44px 0; }
  .section-head h2, .h2 { font-size: 30px; }
  .page-title { padding: 36px 0 40px; }
  .page-title h1 { font-size: 34px; }
  .lead { font-size: 17px; }

  .hero { padding: 24px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-grid .framed { order: -1; }
  .hero h1 { font-size: 34px; }
  .band-row { flex-direction: column; align-items: flex-start; }
  .band-title { font-size: 22px; }

  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .team-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .staff-pets { gap: 14px; }
  .staff-pet { flex-basis: calc((100% - 14px) / 2); padding: 6px 6px 10px; }
  .staff-pet .pet-name { font-size: 18px; }
  .staff-pet .pet-owner { font-size: 13px; }
  .svc-photo { margin: -26px -26px 18px; }
  .svc-photo img { aspect-ratio: 4 / 3; }
  .pet-strip { gap: 6px; }
  .person-name { font-size: 17px; }
  .bio-card .bio-body { padding: 12px; }
  .bio-card h3 { font-size: 17px; }
  .bio-card .summary { display: none; }

  .memorial { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .memorial h2 { font-size: 28px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .res-list { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 26px; }
  .foot-brand .name { font-size: 23px; }
  .foot-brand img { height: 33.2px; margin-top: 4px; }
  .foot-brand .tag { font-size: 8.4px; letter-spacing: 0.08em; }
}
