/* ==========================================================================
   Animal Medical Center of Marquette - site stylesheet
   Single stylesheet, no external dependencies, mobile-first, accessible.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --brand: #8c1a10;
  --brand-dark: #6d130b;
  --brand-light: #ad2a1c;
  --brand-tint: #fdf4f2;
  --brand-tint-2: #f8e6e2;
  --accent: #0d6e63;
  --accent-tint: #eef8f6;

  --ink: #1b2025;
  --ink-soft: #414b55;
  --muted: #6a7480;
  --line: #e4e7eb;
  --line-strong: #ccd3da;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-warm: #fbf8f6;
  --footer-bg: #171b20;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 10px 30px -14px rgba(16, 24, 40, .28);

  --wrap: 1140px;
  --gap: 1.5rem;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
picture,
svg,
iframe { max-width: 100%; }

img { height: auto; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

blockquote {
  margin: 0 0 1.2em;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 4px solid var(--brand-tint-2);
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.section { padding: 3.25rem 0; }
.section--tight { padding: 2.25rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--warm { background: var(--bg-warm); border-block: 1px solid var(--line); }
.section--brand { background: var(--brand); color: #fff; }
.section--brand h1,
.section--brand h2,
.section--brand h3 { color: #fff; }
.section--brand a { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-dark); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.btn-row--center { justify-content: center; }

/* ---------- header ---------- */
.topbar {
  background: var(--brand-dark);
  color: #f6dedb;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
  align-items: center;
  justify-content: center;
  padding-block: .5rem;
  text-align: center;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar strong { color: #fff; font-weight: 650; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}
.brand img { width: 48px; height: 48px; display: block; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--brand);
}
.brand-text span {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 520px) {
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: .97rem; }
  .brand-text span { font-size: .64rem; letter-spacing: .07em; }
  .nav-toggle { padding: .45rem .75rem; font-size: .87rem; }
  .brand { gap: .55rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: .5rem .95rem;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav { display: none; }
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.site-nav a {
  display: block;
  padding: .6rem .25rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .1rem .35rem;
  }
  .site-nav a {
    border-bottom: 0;
    padding: .45rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .93rem;
  }
  .site-nav a:hover { background: var(--brand-tint); }
  .site-nav a[aria-current="page"] { background: var(--brand-tint); }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); padding: 2.75rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .5rem; }
.hero .lede { max-width: 34rem; }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-media figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

.eyebrow {
  display: inline-block;
  margin-bottom: .85rem;
  padding: .28rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--brand-tint-2);
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fact h2,
.fact h3 { font-size: 1rem; margin-bottom: .3rem; font-family: var(--font-sans); font-weight: 700; }
.fact p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.fact a { font-weight: 600; }
.fact--accent { background: var(--accent-tint); border-color: #cfe8e3; }
.fact--brand { background: var(--brand-tint); border-color: var(--brand-tint-2); }

/* ---------- cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { margin-bottom: .5rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 650; }
.card .card-link a { text-decoration: none; }
.card .card-link a::after { content: " \2192"; }
.card .card-link a:hover { text-decoration: underline; }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: .9rem;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- media object ---------- */
.media {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; gap: 2.75rem; }
  .media--reverse .media-body { order: 2; }
}
.media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
  width: 100%;
}

/* ---------- team ---------- */
.person-list { display: grid; gap: 1.5rem; }
.person {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.person img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.person h3 { margin-bottom: .15rem; }
.person .role {
  margin: 0 0 .8rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (min-width: 640px) {
  .person { grid-template-columns: 260px 1fr; gap: 1.6rem; }
}

/* ---------- prose / article ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }

.layout-aside { display: grid; gap: 2.25rem; }
@media (min-width: 980px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
}

.aside-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.5rem;
}
.aside-card h2,
.aside-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card a { text-decoration: none; font-weight: 600; }
.aside-card a:hover { text-decoration: underline; }
.aside-card--brand { background: var(--brand-tint); border-color: var(--brand-tint-2); }

/* ---------- callout / notice ---------- */
.callout {
  border-left: 5px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--info { border-left-color: var(--accent); background: var(--accent-tint); }
.callout h2, .callout h3 { font-size: 1.05rem; margin-bottom: .35rem; }

.notice {
  font-size: .92rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.75rem;
}

/* ---------- definition lists ---------- */
.dl-grid {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: 1fr;
  margin: 0 0 1.5rem;
}
@media (min-width: 700px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-grid div { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.dl-grid dt {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.dl-grid dd { margin: 0; font-size: 1.02rem; color: var(--ink); }
.dl-grid dd a { font-weight: 600; }

/* ---------- link lists (resources page) ---------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 700px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list li {
  margin: 0;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .96rem;
}
.link-list a { font-weight: 650; }
.link-list .link-meta { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: 50rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 { margin-bottom: .5rem; font-size: 1.13rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding: 1rem 0 .25rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; display: flex; gap: .5rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

/* ---------- page head ---------- */
.page-head {
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}
.page-head h1 { margin-bottom: .55rem; }
.page-head .lede { max-width: 44rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 2.75rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f4dcd8; max-width: 44rem; }
.cta-band .btn-row { margin-top: 1.35rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #b9c0c8; font-size: .95rem; }
.site-footer a { color: #e7eaee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }
.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; } }

.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; display: block; line-height: 1.15; }
.footer-brand span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8d959e; }

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .28rem 0; margin: 0; }

.footer-bottom {
  border-top: 1px solid #2a3037;
  padding: 1.25rem 0 1.6rem;
  display: grid;
  gap: .6rem;
  font-size: .85rem;
  color: #8d959e;
}
.footer-bottom p { margin: 0; }
@media (min-width: 800px) {
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- utilities ---------- */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.tag-row li {
  margin: 0;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: .85rem;
  font-weight: 600;
}

.figure { margin: 0 0 1.5rem; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption { margin-top: .6rem; font-size: .86rem; color: var(--muted); }
.figure--plain { text-align: center; }
.figure--plain img { border: 0; box-shadow: none; background: none; }

.thumb-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 1.25rem 0 0;
  padding: 0;
}
.thumb-row li { margin: 0; }
.thumb-row img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.banner-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.banner-strip img { display: block; width: 100%; max-width: 750px; height: auto; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
  .site-header, .topbar, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
}
