/* Holt Animal Clinic — shared styles
   Palette and serif identity sampled from the clinic's existing site. */

:root {
  --sky: #7cc4e0;
  --sky-deep: #2e7fa3;
  --sky-pale: #eef7fb;
  --navy: #22384a;
  --ink: #2f3d49;
  --white: #ffffff;
  --line: #d7e6ee;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(34, 56, 74, 0.12);
  --measure: 62ch;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sky-deep);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Anchored sections stop below the sticky header */
[id] {
  scroll-margin-top: 5.5rem;
}

/* Header ---------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--sky);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand svg {
  width: 40px;
  height: 40px;
  fill: var(--navy);
  flex: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--navy);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--sky);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--sky-deep);
}

/* Shop Online (MyVetStore) ------------------------------------------------ */

.shop-online {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.9;
}

.shop-online:hover {
  opacity: 1;
}

.shop-online img {
  height: 28px;
  width: auto;
}

.footer-shop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-shop img {
  height: 32px;
  width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
}

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--sky-deep);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy);
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.button-light:hover {
  background: var(--sky-pale);
}

.button-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.button-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 42, 56, 0.82) 0%, rgba(24, 42, 56, 0.45) 55%, rgba(24, 42, 56, 0.15) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero .eyebrow {
  color: var(--sky);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  max-width: 14ch;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* Small hero for inner pages */

.hero-small {
  min-height: 300px;
}

.contact-hero img {
  object-position: 65% 0;
}

/* Sections --------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 0.8rem;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 24ch;
}

.section > .wrap > p {
  max-width: var(--measure);
}

.section-tint {
  background: var(--sky-pale);
}

/* Quick info strip -------------------------------------------------------- */

.quick-info {
  background: var(--sky-pale);
  border-bottom: 1px solid var(--line);
}

.quick-info .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.quick-info h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  border-bottom: 2px solid var(--sky);
  padding-bottom: 0.4rem;
  margin-bottom: 0.7rem;
}

.quick-info p {
  margin: 0.3rem 0;
  font-size: 0.98rem;
}

/* Cards ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-bottom: 4px solid var(--sky);
}

.card-body {
  padding: 1.3rem 1.4rem 1.6rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
}

.card a {
  font-weight: 700;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* Checklist (echoes the current site's checked service lists) ------------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 2rem;
  max-width: 46rem;
}

.checklist li {
  padding-left: 1.7rem;
  position: relative;
  font-size: 1rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sky-deep);
  font-weight: 700;
}

/* Core values -------------------------------------------------------------- */

.values-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.values-grid li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sky);
  padding: 1.6rem;
  text-align: center;
}

.values-grid h3 {
  margin: 0;
  font-size: 1.3rem;
}

/* Split section (image + text) -------------------------------------------- */

.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--sky);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.doctor-photo {
  object-position: center 10%;
}

/* Photo band --------------------------------------------------------------- */

.photo-band img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* CTA band ------------------------------------------------------------------ */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: none;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 auto 1.6rem;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.cta-band a:not(.button) {
  color: var(--sky);
}

/* Contact page --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sky);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 0.6rem;
}

.contact-card p {
  margin: 0.3rem 0;
}

.contact-card .phone-large {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-card .phone-large a {
  color: var(--navy);
  text-decoration: none;
}

.contact-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--sky);
}

.contact-photo figcaption {
  font-size: 0.9rem;
  color: var(--sky-deep);
  margin-top: 0.6rem;
}

address {
  font-style: normal;
}

/* Footer ------------------------------------------------------------------------ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  font-size: 0.95rem;
  border-top: 4px solid var(--sky);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .brand-name {
  color: var(--white);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--sky);
}

.site-footer p {
  margin: 0.2rem 0;
}

/* CTA band sits directly above the navy footer — separate with a hairline */

.cta-band + .site-footer {
  border-top-color: rgba(255, 255, 255, 0.25);
}

/* Motion ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Mobile ------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .topbar .wrap {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
  }

  .site-header .wrap {
    justify-content: center;
  }

  .hero {
    min-height: 440px;
  }

  .hero-small {
    min-height: 260px;
  }

  .quick-info .wrap,
  .card-grid,
  .split .wrap,
  .contact-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .photo-band img {
    height: 220px;
  }

  .section {
    padding: 2.8rem 0;
  }
}
