/* ============================================================
   IHEvet Mobile Veterinary — site styles
   One stylesheet for every page. Edit colors in :root below.
   ============================================================ */

:root {
  --teal:       #1a7a6e;
  --teal-deep:  #145d54;
  --teal-light: #e8f5f3;
  --teal-mid:   #2a9d8f;
  --dark:       #1c2b2a;
  --gray:       #4a5957;
  --gray-soft:  #6b7a78;
  --cream:      #faf8f4;
  --cream-warm: #f3efe7;
  --border:     #dfe6e4;
  --white:      #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────── */
.topbar {
  background: var(--teal);
  color: var(--white);
  padding: 10px 0;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.topbar .wrap {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; text-align: center;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: bold; }
.topbar a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 18px; padding-bottom: 18px;
}
.brand { text-decoration: none; color: inherit; display: block; }
.brand .mark {
  font-size: 23px; color: var(--teal);
  letter-spacing: 1px; line-height: 1.2;
}
.brand .sub {
  font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gray-soft); margin-top: 2px;
}
nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-size: 15.5px; letter-spacing: 0.2px; transition: color 0.15s;
}
.nav-links a:hover { color: var(--teal); }
@media (max-width: 940px) { .nav-links { display: none; } }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--teal); color: var(--white);
  text-decoration: none; padding: 13px 26px;
  border-radius: 7px; font-size: 16.5px; letter-spacing: 0.3px;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-lg { padding: 17px 38px; font-size: 18.5px; }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-light); color: var(--teal-deep); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: linear-gradient(168deg, var(--teal-light) 0%, var(--cream) 62%);
  padding: 82px 0 74px; text-align: center;
}
.hero h1 {
  font-size: clamp(31px, 5.4vw, 50px);
  font-weight: normal; line-height: 1.22; letter-spacing: -0.3px;
  color: var(--dark); max-width: 16ch; margin: 0 auto 22px;
}
.hero .lede {
  font-size: clamp(17px, 2.3vw, 20px); color: var(--gray);
  max-width: 62ch; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 15px; color: var(--gray-soft); font-style: italic; }

/* ── Sections ────────────────────────────────────── */
section { padding: 76px 0; }
section.tint { background: var(--white); border-block: 1px solid var(--border); }
section.warm { background: var(--cream-warm); }

.eyebrow {
  font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 14px; text-align: center;
}
h2 {
  font-size: clamp(26px, 3.6vw, 35px); font-weight: normal;
  line-height: 1.28; text-align: center; margin-bottom: 18px; letter-spacing: -0.2px;
}
.section-lede {
  text-align: center; color: var(--gray); font-size: 17.5px;
  max-width: 64ch; margin: 0 auto 52px;
}

/* ── Timeline (What to Expect) ───────────────────── */
.timeline {
  list-style: none; max-width: 720px; margin: 0 auto;
  border-left: 2px solid var(--teal-light);
  padding-left: 34px;
  counter-reset: tl;
}
.timeline li { position: relative; padding-bottom: 34px; counter-increment: tl; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(tl);
  position: absolute; left: -51px; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.timeline h3 { font-size: 20.5px; font-weight: normal; color: var(--teal-deep); margin-bottom: 6px; }
.timeline p { color: var(--gray); font-size: 16.5px; }
@media (max-width: 560px) {
  .timeline { padding-left: 26px; }
  .timeline li::before { left: -43px; width: 30px; height: 30px; font-size: 14px; }
}

/* ── Rainbow Bridge backdrop ─────────────────────── */
/* A faded arc behind a section. Content sits above it via z-index. */
section.rainbow { position: relative; overflow: hidden; }
section.rainbow::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(1280px, 118%);
  height: 78%;
  background: url('/images/rainbow-bridge.svg') no-repeat center bottom;
  background-size: 100% auto;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
section.rainbow > .wrap { position: relative; z-index: 1; }

@media (max-width: 700px) {
  section.rainbow::before { width: 160%; height: 62%; opacity: 0.22; }
}
@media (prefers-reduced-motion: no-preference) {
  section.rainbow::before { transition: opacity 0.4s; }
}

/* ── Pricing ─────────────────────────────────────── */
.price-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 11px; padding: 28px 24px; text-align: center;
}
.price-card.feature { border-color: var(--teal-mid); background: var(--teal-light); }
/* Let the arc glow through the cards without hurting legibility */
section.rainbow .price-card { background: rgba(255,255,255,0.80); }
section.rainbow .price-card.feature { background: rgba(232,245,243,0.88); }
.price-card h3 {
  font-size: 18.5px; font-weight: normal;
  color: var(--teal-deep); margin-bottom: 12px;
}
.price-card .amount {
  font-size: 38px; color: var(--teal); line-height: 1.1; margin-bottom: 14px;
}
.price-card .amount .from {
  display: block; font-size: 12.5px; color: var(--gray-soft);
  letter-spacing: 0.4px; margin-top: 6px; font-style: italic;
}
.price-card p { color: var(--gray); font-size: 15.5px; line-height: 1.6; }
.fineprint {
  text-align: center; margin-top: 34px;
  color: var(--gray-soft); font-size: 15.5px; font-style: italic;
}

/* ── Partners ────────────────────────────────────── */
.partners {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 820px; margin: 0 auto;
}
.partners span {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 11px 24px;
  font-size: 16px; color: var(--teal-deep);
}

/* ── Quotes ──────────────────────────────────────── */
.quotes { columns: 3; column-gap: 22px; }
@media (max-width: 900px) { .quotes { columns: 2; } }
@media (max-width: 620px) { .quotes { columns: 1; } }
.quotes figure {
  break-inside: avoid; background: var(--white);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 24px 24px 20px; margin-bottom: 22px;
}
.quotes blockquote {
  font-size: 16.5px; color: var(--gray); line-height: 1.65;
}
.quotes blockquote::before { content: '\201C'; }
.quotes blockquote::after  { content: '\201D'; }
.quotes figcaption {
  margin-top: 13px; font-size: 14px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal-mid);
}

/* ── Service area ────────────────────────────────── */
.area-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 800px; margin: 0 auto;
}
.area-list a, .area-list span {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 20px;
  font-size: 15.5px; color: var(--gray); text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.area-list a:hover { border-color: var(--teal); color: var(--teal); }

/* ── About ───────────────────────────────────────── */
.about { max-width: 720px; margin: 0 auto; text-align: center; }
.about p { font-size: 17.5px; color: var(--gray); margin-bottom: 18px; }
.about p:last-of-type { margin-bottom: 0; }
.signature { margin-top: 30px; font-size: 19px; color: var(--teal-deep); }
.signature small {
  display: block; font-size: 13px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--gray-soft); margin-top: 5px;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--border); padding: 21px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer; font-size: 18.5px; color: var(--teal-deep);
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 24px; color: var(--teal-mid);
  line-height: 1; flex-shrink: 0;
}
details[open] summary::after { content: '\2212'; }
details p { margin-top: 13px; color: var(--gray); font-size: 16.5px; }

/* ── CTA ─────────────────────────────────────────── */
.cta {
  background: var(--teal); color: var(--white);
  text-align: center; padding: 76px 0;
}
.cta h2 { color: var(--white); margin-bottom: 14px; }
.cta p {
  color: rgba(255,255,255,0.88); font-size: 18px;
  max-width: 56ch; margin: 0 auto 34px;
}
.cta .btn { background: var(--white); color: var(--teal-deep); }
.cta .btn:hover { background: var(--cream); }
.cta .phone-lg {
  display: block; margin-top: 26px; font-size: 26px;
  color: var(--white); text-decoration: none; letter-spacing: 0.5px;
}
.cta .phone-lg:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.72);
  padding: 52px 0 40px; font-size: 15.5px;
}
footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; gap: 28px; } }
footer h4 {
  color: var(--white); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: normal; margin-bottom: 13px;
}
footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px; text-align: center;
  font-size: 14px; color: rgba(255,255,255,0.55);
}

/* ── Images ──────────────────────────────────────── */
img { max-width: 100%; height: auto; display: block; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 52px; align-items: center; text-align: left;
}
.hero-grid .hero-text h1 { margin-left: 0; margin-right: 0; max-width: 17ch; }
.hero-grid .lede { margin-left: 0; margin-right: 0; }
.hero-grid .hero-actions { justify-content: flex-start; }
.hero-img img {
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(26,122,110,0.16);
  width: 100%; object-fit: cover; aspect-ratio: 4 / 3;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-grid .hero-text h1 { margin: 0 auto 22px; }
  .hero-grid .lede { margin: 0 auto 36px; }
  .hero-grid .hero-actions { justify-content: center; }
  .hero-img { order: -1; }
  .hero-img img { aspect-ratio: 16 / 9; }
}

.about-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 48px; align-items: center; max-width: 940px; margin: 0 auto;
}
.about-grid .about { text-align: left; margin: 0; }
.about-grid .signature { text-align: left; }
.about-photo img {
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(28,43,42,0.18);
  width: 100%; object-fit: cover; aspect-ratio: 3 / 4;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid .about, .about-grid .signature { text-align: center; }
  .about-photo { max-width: 340px; margin: 0 auto; }
}

/* ── What to Expect (timeline + image) ───────────── */
.expect-grid {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: 52px; align-items: center; max-width: 980px; margin: 0 auto;
}
.expect-grid .timeline { margin: 0; }
.expect-img img {
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(26,122,110,0.14);
  width: 100%; object-fit: cover; aspect-ratio: 3 / 4;
}
@media (max-width: 900px) {
  .expect-grid { grid-template-columns: 1fr; gap: 40px; }
  .expect-img { max-width: 420px; margin: 0 auto; }
  .expect-img img { aspect-ratio: 4 / 3; }
}

/* ── Memorial gallery ────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery figure {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 10px 4px; margin: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(28,43,42,0.10);
}
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; background: var(--cream);
}
.gallery figcaption {
  text-align: center; padding: 11px 4px 10px;
  font-size: 16px; color: var(--teal-deep); letter-spacing: 0.4px;
}
.gallery-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  border: 1px dashed var(--border); border-radius: 11px;
  color: var(--gray-soft); font-style: italic;
}
.gallery-empty code { font-style: normal; color: var(--teal-deep); }

/* ── City landing pages ──────────────────────────── */
.city-hero {
  background: linear-gradient(168deg, var(--teal-light) 0%, var(--cream) 62%);
  padding: 66px 0 58px; text-align: center;
}
.city-hero h1 {
  font-size: clamp(27px, 4.4vw, 42px); font-weight: normal;
  line-height: 1.24; margin: 0 auto 18px; max-width: 20ch;
}
.city-hero .lede {
  font-size: 18px; color: var(--gray); max-width: 60ch; margin: 0 auto 32px;
}
