/* ================================================================
   MERCY ANIMAL CLINIC — Variation B
   "Friendly Modern Vet" — teal + warm amber, soft rounded cards,
   humanist type, airy layout. Distinct from Variation A (editorial
   paper/serif). All branding lives in the CSS custom properties.
   ================================================================ */
:root {
  /* client brand */
  --brand:  #0d8f8f;   /* confident teal */
  --accent: #f0973f;   /* warm marigold */

  /* derived brand tones */
  --brand-deep:  #0a6f70;
  --brand-tint:  #d7efee;
  --brand-wash:  #eef8f7;
  --accent-tint: #fce7cf;

  /* typefaces (loaded via Google Fonts <link> in each page head) */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  /* neutral palette — cool clinical, calm */
  --ink: #143a3b;          /* deep teal-charcoal text */
  --ink-soft: #56706f;     /* muted body text */
  --paper: #f4faf8;        /* soft mint page bg */
  --paper-deep: #e7f3f1;   /* section band */
  --line: #d5e6e3;         /* hairlines */
  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(20, 58, 59, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(20, 58, 59, 0.22);
  --shadow-lg: 0 26px 60px -20px rgba(20, 58, 59, 0.28);
}

/* ================================================================
   Base
   ================================================================ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
  line-height: 1.65;
}

/* soft atmospheric wash behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 88% -8%, rgba(13, 143, 143, 0.10), transparent 60%),
    radial-gradient(40rem 30rem at -6% 12%, rgba(240, 151, 63, 0.09), transparent 60%),
    radial-gradient(60rem 40rem at 50% 118%, rgba(13, 143, 143, 0.06), transparent 60%);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}

::selection { background: var(--brand); color: var(--white); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ================================================================
   Small atoms
   ================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}

/* repurposed: soft pastel index pill instead of A's giant outlined numeral */
.section-num {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  user-select: none;
}

.rule-dotted { border: none; border-top: 1px solid var(--line); }

/* ================================================================
   Buttons — soft pill, elevation lift on hover
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 999px;
  transition: transform 180ms cubic-bezier(0.22,1,0.36,1), box-shadow 180ms ease, background 160ms ease, color 160ms ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(13, 143, 143, 0.55);
}
.btn-brand:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(13, 143, 143, 0.6); }
.btn-brand:active { transform: translateY(0); }
.btn-ghost {
  background: var(--white);
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-tint); }
.btn-accent {
  background: var(--accent);
  color: #4a2c07;
  box-shadow: 0 10px 22px -8px rgba(240, 151, 63, 0.6);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(240, 151, 63, 0.65); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ================================================================
   Header / nav
   ================================================================ */
.topbar {
  background: var(--brand-deep);
  color: #dff3f2;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  background: rgba(244, 250, 248, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.wordmark .spark {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 1rem;
  line-height: 0;
}

.navlink {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 140ms ease, background 140ms ease;
}
.navlink:hover { color: var(--brand-deep); background: var(--brand-wash); }
.navlink.active { color: var(--brand-deep); background: var(--brand-tint); }

/* mobile panel */
.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:hover { background: var(--brand-wash); color: var(--brand-deep); }

.hamburger { border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem 0.7rem; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.hamburger:hover { background: var(--brand-wash); }

/* ================================================================
   Hero
   ================================================================ */
.hero-display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-display em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero-display em::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: 0.06em;
  height: 0.32em;
  background: var(--accent-tint);
  border-radius: 999px;
  z-index: -1;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(24rem 18rem at 78% 12%, rgba(240,151,63,0.5), transparent 60%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 68%, #094e50 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--white);
}
.hero-panel .rays { position: absolute; inset: 0; opacity: 0.16; }

/* soft float instead of A's rigid spinning stamp */
.stamp { animation: float 6s ease-in-out infinite; transform-origin: center; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--brand); }

/* rating badge on hero */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  box-shadow: var(--shadow-md);
}
.rating-badge .rb-stars { color: var(--accent); letter-spacing: 0.08em; font-size: 0.95rem; }
.rating-badge .rb-text { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.rating-badge .rb-text strong { color: var(--ink); font-family: var(--font-display); }

/* ================================================================
   Stat strip (replaces A's marquee)
   ================================================================ */
.stat-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
}
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .stat-label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ================================================================
   Service cards — soft rounded, colored icon chip, lift on hover
   ================================================================ */
.card-service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 200ms cubic-bezier(0.22,1,0.36,1), box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: var(--shadow-sm);
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-tint);
}
.card-service .num {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--line);
}
.card-service .icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 1.15rem;
  transition: background 200ms ease, color 200ms ease;
}
.card-service:hover .icon { background: var(--brand); color: var(--white); }
.card-service h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.45rem; }
.card-service p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-deep);
  text-decoration: none;
}
.card-link:hover { color: var(--accent); gap: 0.6rem; }

/* full service list rows (services page) */
.svc-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.svc-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.svc-row .svc-tick {
  flex: none;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-top: 0.1rem;
}
.svc-row h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.svc-row p { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.15rem; line-height: 1.5; }

/* ================================================================
   Testimonials — soft card, avatar bubble
   ================================================================ */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.quote-card blockquote {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 600;
}
.quote-card figcaption {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.quote-card figcaption .avatar {
  width: 2.3rem; height: 2.3rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex: none;
}
.quote-card figcaption span.loc { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; }

.stars { color: var(--accent); letter-spacing: 0.12em; font-size: 0.95rem; }

/* ================================================================
   CTA band
   ================================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30rem 20rem at 85% 10%, rgba(240,151,63,0.35), transparent 60%),
    linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 70%, #084b4d 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.cta-band h2, .cta-band .display { color: var(--white); }
.cta-band .eyebrow { background: rgba(255,255,255,0.16); color: #fff; }
.cta-band .eyebrow::before { background: var(--accent); }

/* ================================================================
   Hours table & map placeholder
   ================================================================ */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table tr.today th { color: var(--brand-deep); }
.hours-table tr.today td { color: var(--brand-deep); font-weight: 700; }
.hours-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--brand-tint); color: var(--brand-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.5rem;
}

.map-ph {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 300px;
  overflow: hidden;
  background-color: var(--brand-wash);
  background-image:
    linear-gradient(0deg, rgba(13,143,143,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,143,143,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(13,143,143,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,143,143,0.10) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px;
  box-shadow: var(--shadow-md);
}
.map-ph::after {
  content: "";
  position: absolute;
  left: -10%; top: 40%;
  width: 130%; height: 42px;
  background: var(--accent-tint);
  transform: rotate(-8deg);
  opacity: 0.6;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -90%);
  color: var(--brand);
  filter: drop-shadow(0 6px 8px rgba(20,58,59,0.3));
  animation: bob 2.6s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -90%); } 50% { transform: translate(-50%, -102%); } }
.map-label {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

/* ================================================================
   Forms
   ================================================================ */
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9db4b2; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-wash);
  outline: none;
}

/* ================================================================
   Numbered steps / about lists
   ================================================================ */
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.step .step-num {
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 8px 16px -6px rgba(13,143,143,0.55);
}

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms ease;
}
details.faq[open] { box-shadow: var(--shadow-md); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230a6f70' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform 200ms ease;
}
details.faq[open] summary::after { transform: rotate(135deg); }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

/* team cards (about page) */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card .team-avatar {
  width: 4.2rem; height: 4.2rem;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  background: linear-gradient(150deg, var(--brand), var(--brand-deep));
}
.team-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.team-card p { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: #cfe3e1;
  border-top: 4px solid var(--brand);
}
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark .spark { background: var(--accent); color: #4a2c07; }
.site-footer a { color: #cfe3e1; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-links a { display: block; padding: 0.25rem 0; font-size: 0.92rem; }
.footer-fine { font-size: 0.78rem; opacity: 0.65; }
.site-footer .eyebrow { background: rgba(255,255,255,0.08); color: #eafaf8; }
.site-footer .eyebrow::before { background: var(--accent); }

/* subtle ghost wordmark at the very bottom */
.footer-ghost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 7rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.10);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.03em;
}

/* ================================================================
   Misc
   ================================================================ */
.tick { color: var(--brand); font-weight: 800; }

.reveal { animation: rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 90ms; }
.reveal-2 { animation-delay: 200ms; }
.reveal-3 { animation-delay: 320ms; }
.reveal-4 { animation-delay: 440ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp, .map-pin, .reveal { animation: none !important; }
  html { scroll-behavior: auto; }
}
