/* Ridgecrest Vet — clinical soft UI, cards */
:root {
  --bg: #f0f5fa;
  --surface: #ffffff;
  --border: #d0dce8;
  --ink: #1a2d3d;
  --muted: #5a6f82;
  --brand: #1e6b8c;
  --brand-light: #e8f2f7;
  --accent: #2a9d8f;
  --warn: #e76f51;
  --banner-bg: #153a4d;
  --banner-fg: #f0f7fb;
  --font: "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

/* Trust / safety strip for moderation clarity (not a live hotline in this demo) */
.vet-urgent {
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}
.vet-urgent strong {
  font-weight: 800;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 0.5rem;
}

.vet-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26, 45, 61, 0.06);
  /* Split header bar: brand block + nav as rounded “pill” cluster */
}
.vet-header__inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vet-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.vet-brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  background: var(--brand-light);
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--border);
}
.vet-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border-bottom: none;
}
.vet-nav a:hover {
  color: var(--brand);
  background: rgba(30, 107, 140, 0.14);
}
.vet-nav a.active {
  background: var(--brand);
  color: #fff;
}

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(26, 45, 61, 0.05);
}

h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-light);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

.grid-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 560px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Asymmetric bento on homepage */
@media (min-width: 720px) {
  .grid-cards--bento {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto auto;
  }
  .grid-cards--bento .link-card:nth-child(1) {
    grid-row: span 2;
  }
  .grid-cards--bento .link-card:nth-child(4) {
    grid-column: 1 / -1;
    max-width: 36rem;
  }
}

.link-card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.link-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(30, 107, 140, 0.12);
}
.link-card strong {
  display: block;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.site-foot {
  padding: 2rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 58rem;
  margin: 0 auto;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.6rem 0;
}
.foot-legal a {
  color: var(--brand);
  font-weight: 600;
}

.legal-muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.prose a {
  color: var(--brand);
}

.note-demo {
  font-size: 0.85rem;
  color: var(--warn);
  background: #fff5f2;
  border: 1px solid #f5c4b8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.policy-band {
  margin: 2rem 0 1rem;
  padding: 1.6rem 1.25rem;
  background: var(--brand-light);
  border: 2px solid var(--brand);
  border-radius: 12px;
}
.policy-band__title {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.policy-band__lede {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.policy-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .policy-band__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.policy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.85rem;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  border: 2px solid #165a78;
}
.policy-btn:hover {
  filter: brightness(1.05);
}
.policy-btn--accent {
  background: var(--accent);
  border-color: #248a7d;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--banner-bg);
  color: var(--banner-fg);
  padding: 1rem 1.25rem;
  z-index: 999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner__inner {
  max-width: 52rem;
  margin: 0 auto;
}
.cookie-banner__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.cookie-banner .btn {
  min-height: 3.2rem;
  font-size: 1rem;
}
.cookie-banner .btn--ghost {
  color: var(--banner-fg);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
