/* Little River Vet: charcoal, cream, terracotta */

:root {
  --charcoal: #2C2A28;
  --charcoal-deep: #1F1D1C;
  --charcoal-soft: #3A3734;
  --cream: #F3EDE2;
  --cream-deep: #E8DFD0;
  --terra: #C45C3E;
  --terra-deep: #A34830;
  --silver: #A8A29A;
  --silver-bright: #C9C3BA;
  --muted: #6E675F;
  --stroke: rgba(44, 42, 40, 0.08);
  --elev: 0 20px 40px rgba(0, 0, 0, 0.06);
  --elev-strong: 0 18px 40px rgba(44, 42, 40, 0.14);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2rem));
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: inherit;
  overflow: visible;
  padding-bottom: 0.04em;
}
p { margin: 0; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-220%);
}
.skip:focus-visible { transform: none; outline: 2px solid var(--terra); outline-offset: 2px; }

.demo-notice {
  position: relative;
  z-index: 60;
  background: var(--charcoal-deep);
  color: rgba(243, 237, 226, 0.88);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.45;
}
.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  vertical-align: 1px;
}
.demo-notice a {
  color: #E8A090;
  font-weight: 600;
  margin-left: 0.35em;
  white-space: nowrap;
}
.demo-notice a:hover { text-decoration: underline; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow.light { color: var(--silver-bright); }

.section-head {
  max-width: 36rem;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--charcoal);
  margin-bottom: 0.45rem;
}
.section-head p { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.78rem 1.25rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-terra {
  background: var(--terra);
  color: #FFF8F4;
  box-shadow: 0 12px 28px rgba(196, 92, 62, 0.28);
}
.btn-terra:hover {
  background: var(--terra-deep);
  box-shadow: 0 16px 32px rgba(196, 92, 62, 0.34);
}
.btn-ghost {
  background: rgba(243, 237, 226, 0.12);
  border-color: rgba(243, 237, 226, 0.35);
  color: var(--cream);
}
.btn-ghost:hover {
  background: rgba(243, 237, 226, 0.2);
  border-color: rgba(243, 237, 226, 0.5);
}
.btn-ghost-dark {
  background: #fff;
  border-color: var(--stroke);
  color: var(--charcoal);
  box-shadow: var(--elev);
}
.btn-ghost-dark:hover { border-color: rgba(44, 42, 40, 0.16); }
.btn-lift:hover { transform: translateY(-2px); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 237, 226, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.9rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-right: auto;
}
.nav-logo span { color: var(--terra); }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.05rem; font-size: 0.82rem; }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.4rem var(--wrap) 1.1rem;
  width: min(1120px, 100%);
  margin-inline: auto;
}
.nav-drawer a { font-weight: 600; color: var(--charcoal); }
.nav-drawer-phone { color: var(--terra) !important; }
.nav-drawer-cta { align-self: flex-start; }
details.nav-menu[open] + .nav-drawer { display: flex; }
.nav .nav-toggle-bars span { background: var(--charcoal); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
}

/* Hero: logo-aligned wrap, 50% feathered photo */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 700px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(196, 92, 62, 0.18), transparent 55%),
    linear-gradient(160deg, var(--charcoal-deep) 0%, var(--charcoal) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-layout {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 2.75rem 0;
  pointer-events: none;
}
.hero-copy {
  width: min(40rem, 48%);
  max-width: 100%;
  pointer-events: auto;
}
.hero .eyebrow { color: var(--silver-bright); }
.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.45rem);
  color: var(--cream);
  margin-bottom: 0.75rem;
  max-width: 16ch;
}
.hero .lead {
  max-width: 46ch;
  color: rgba(243, 237, 226, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  width: 50%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 28%;
  filter: contrast(1.04) saturate(0.95);
}
.hero-caption {
  position: absolute;
  left: auto;
  right: 1.1rem;
  bottom: 1.1rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--pill);
  background: rgba(31, 29, 28, 0.78);
  border: 1px solid rgba(201, 195, 186, 0.28);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 2;
}

/* Trust bar */
.trust {
  padding: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--stroke);
}
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1.15rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(168, 162, 154, 0.28);
  box-shadow: var(--elev);
}
.trust-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--silver);
  background: linear-gradient(145deg, #F7F4EF, #E4DFD6);
  border: 1px solid rgba(168, 162, 154, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}
.trust-icon svg { width: 1.15rem; height: 1.15rem; }
.trust-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.1rem;
}
.trust-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* Care band */
.care {
  padding: 3rem 0;
  background: var(--cream-deep);
}
.care-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.35rem;
  align-items: center;
}
.care-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--charcoal);
  margin-bottom: 0.7rem;
}
.care-copy p { color: var(--muted); max-width: 44ch; }
.care-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-strong);
  background: var(--charcoal);
}
.care-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.94);
}

/* Services */
.services {
  padding: 3rem 0 2.85rem;
  background: var(--cream);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.service-card {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  color: var(--terra);
}
.service-icon svg { width: 2.35rem; height: 2.35rem; }
.service-card h3 {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38ch;
}

/* Proof */
.proof {
  padding: 3rem 0;
  background: var(--cream-deep);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 0.85rem;
  align-items: stretch;
}
.proof-card {
  margin: 0;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.proof-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--charcoal);
}
.proof-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.proof-card figcaption img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(44, 42, 40, 0.12);
}
.proof-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
}
.proof-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.proof-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--elev-strong);
  background: var(--charcoal);
  min-height: 100%;
}
.proof-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* Booking: charcoal band */
.book {
  padding: 3rem 0 3.4rem;
  background:
    radial-gradient(ellipse 45% 50% at 90% 10%, rgba(196, 92, 62, 0.2), transparent 55%),
    linear-gradient(165deg, var(--charcoal-deep) 0%, var(--charcoal-soft) 100%);
  color: var(--cream);
}
.book-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.35rem;
  align-items: start;
}
.book-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--cream);
  margin-bottom: 0.55rem;
}
.book-intro > p { color: rgba(243, 237, 226, 0.72); max-width: 38ch; }
.book-phone {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.book-phone a { color: #E8A090; }

.book-widget {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
  border: 1px solid rgba(243, 237, 226, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.book-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.book-dot {
  width: 2rem;
  height: 4px;
  border-radius: var(--pill);
  background: rgba(44, 42, 40, 0.12);
}
.book-dot.is-active { background: var(--terra); }

.book-panel {
  margin: 0;
  padding: 0;
  border: none;
  display: none;
  gap: 0.45rem;
}
.book-panel.is-active { display: grid; }
.book-panel legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.9rem;
  border-radius: var(--pill);
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--elev);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.chip:hover { border-color: rgba(44, 42, 40, 0.14); }
.chip:has(input:checked) {
  border-color: rgba(196, 92, 62, 0.45);
  background: rgba(196, 92, 62, 0.08);
  box-shadow: 0 10px 22px rgba(196, 92, 62, 0.12);
}
.chip input {
  accent-color: var(--terra);
  width: 1rem;
  height: 1rem;
}
.book-next { margin-top: 0.55rem; justify-self: start; }
.book-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.foot {
  padding: 1.35rem 0 1.75rem;
  background: var(--charcoal-deep);
  color: rgba(243, 237, 226, 0.7);
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.35rem;
}
.foot-note { margin: 0; font-size: 0.78rem; max-width: 48ch; }
.foot a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #E8A090;
}

@media (prefers-reduced-motion: reduce) {
  .btn-lift:hover,
  .service-card:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-layout {
    order: 2;
    min-height: 0;
    padding: 2.25rem 0 2.5rem;
  }
  .hero-copy {
    width: 100%;
    max-width: 40rem;
  }
  .hero h1 { max-width: none; }
  .hero-media {
    position: relative;
    order: 1;
    width: 100%;
    height: min(52vw, 320px);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero-media img { min-height: 220px; }
  .trust-bar,
  .care-grid,
  .service-grid,
  .proof-grid,
  .book-grid,
  .foot-row {
    grid-template-columns: 1fr;
  }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  .trust-bar { gap: 0.45rem; }
}


/* --- Accessibility baseline (Web Interface Guidelines) --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { outline: none; }
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe-area gutters on sticky chrome; contain scroll chaining in drawers/overlays */
.nav, .nav-min, .masthead, .bar {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
.nav-drawer {
  overscroll-behavior: contain;
}

/* --- Web Interface Guidelines extras --- */
a, button, summary, input, select, textarea, label, [role="button"], [role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
h1, h2, h3 { text-wrap: pretty; }
