/* VetPulse Veterinary — concept by Beans Digital
   Palette: deep ink navy, pulse teal, signal mint, clinical off-white.
   Type: Space Grotesk (geometric display) + Manrope (clean body).
   Rhythm: sharp edges, editorial left-aligned grid, numbered services, rule lines, ECG motif. */

@view-transition { navigation: auto; }

:root {
  --ink: #081c26;
  --ink-2: #0e2a38;
  --teal: #10bfa5;
  --mint: #2ee6a8;
  --paper: #f2f7f6;
  --line: rgba(8, 28, 38, .14);
  --line-light: rgba(242, 247, 246, .18);
  --muted: #51666f;
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.label {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--mint);
  color: var(--ink);
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
  view-transition-name: site-header;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--paper);
  view-transition-name: logo;
}

.logo svg { width: 42px; height: 30px; }

.logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.logo-word span { color: var(--mint); }

.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover { color: var(--mint); }

.main-nav a[aria-current="page"] {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.main-nav a.nav-cta {
  border: 1.5px solid var(--mint);
  color: var(--mint);
  padding: .5rem 1.1rem;
}

.main-nav a.nav-cta:hover { background: var(--mint); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--paper);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--paper);
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- dark hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.2rem 1.25rem 4.2rem;
  position: relative;
  z-index: 1;
}

.hero .label { margin-bottom: 1.1rem; display: block; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 1.3rem;
  color: var(--paper);
}

.hero h1 .accent { color: var(--mint); }

.hero p.lede {
  font-size: 1.12rem;
  max-width: 36rem;
  color: #b9cbd0;
  margin-bottom: 2rem;
}

.ecg {
  width: 100%;
  height: 90px;
  margin-top: 2.6rem;
}

.ecg path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.js .ecg path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: ecgDraw 3.2s ease-out forwards .3s;
}

@keyframes ecgDraw { to { stroke-dashoffset: 0; } }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: .95rem 1.8rem;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.btn-solid { background: var(--mint); color: var(--ink); }

.btn-solid:hover { background: var(--teal); transform: translateY(-2px); }

.btn-line { border-color: var(--paper); color: var(--paper); }

.btn-line:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }

.btn-line.on-light { border-color: var(--ink); color: var(--ink); }

.btn-line.on-light:hover { background: var(--ink); color: var(--paper); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.hero-meta .item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mint);
}

.hero-meta .item span { font-size: .85rem; color: #b9cbd0; }

/* ---------- ticker ---------- */
.ticker {
  background: var(--teal);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  padding: .7rem 0;
  animation: tick 28s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 1.6rem;
  border-right: 1.5px solid rgba(8, 28, 38, .35);
}

@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.4rem 1.25rem;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: baseline;
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
  margin-bottom: 2.6rem;
}

.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }

.section-head p { color: var(--muted); max-width: 44rem; }

.section.dark {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
}

.section.dark .section-inner { max-width: 1180px; margin: 0 auto; }

.section.dark .section-head { border-top-color: var(--mint); }

.section.dark .section-head p { color: #b9cbd0; }

/* ---------- numbered service list ---------- */
.service-list { border-top: 1px solid var(--line); }

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 1.6rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .25s, padding-left .25s;
}

.service-item:hover { background: rgba(16, 191, 165, .06); padding-left: .6rem; }

.service-item .num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .1em;
}

.service-item h3 { font-size: 1.4rem; }

.service-item p { color: var(--muted); font-size: .98rem; }

.service-item ul { margin: .5rem 0 0 1.1rem; color: var(--muted); font-size: .95rem; }

/* ---------- feature grid (dark) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.feature {
  background: var(--ink);
  padding: 2rem 1.6rem;
}

.feature .f-icon { color: var(--mint); margin-bottom: 1rem; }

.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--paper); }

.feature p { font-size: .94rem; color: #b9cbd0; }

/* ---------- stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--paper);
  padding: 2.2rem 1.6rem;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat .num em { font-style: normal; color: var(--teal); }

.stat .cap {
  margin-top: .6rem;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- testimonials ---------- */
.review-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.review {
  border-left: 3px solid var(--teal);
  padding: .4rem 0 .4rem 1.4rem;
}

.review p { font-size: 1rem; }

.review cite {
  display: block;
  margin-top: .9rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section.dark .review { border-left-color: var(--mint); }

.section.dark .review cite { color: var(--mint); }

/* ---------- split / visit ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: start;
}

.map-frame {
  border: 1px solid var(--line);
  width: 100%;
  height: 360px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.hours-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--ink);
  color: var(--paper);
}

.hours-table th, .hours-table td {
  padding: .66rem 1.2rem;
  text-align: left;
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}

.hours-table td {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
  color: var(--teal);
}

.contact-lines { list-style: none; margin: 1.2rem 0; }

.contact-lines li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--line);
}

.contact-lines svg { flex: none; margin-top: .25rem; color: var(--teal); }

/* ---------- CTA ---------- */
.cta-block {
  background: var(--ink);
  color: var(--paper);
}

.cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--paper); }

.cta-inner h2 .accent { color: var(--mint); }

.cta-inner p { color: #b9cbd0; margin-top: .8rem; }

.cta-inner .btn-row { justify-content: flex-end; }

/* ---------- page hero (inner) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
}

.page-hero .ph-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.6rem 1.25rem 3rem;
}

.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--paper); margin: .8rem 0; }

.page-hero h1 .accent { color: var(--mint); }

.page-hero p { max-width: 42rem; color: #b9cbd0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 48rem; }

.faq-list details {
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 1.1rem 1.3rem;
  background: #fff;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.02rem;
}

.faq-list details p { margin-top: .7rem; color: var(--muted); font-size: .97rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: #b9cbd0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner h4 {
  color: var(--paper);
  margin-bottom: .9rem;
  font-size: 1rem;
  letter-spacing: .06em;
}

.footer-inner ul { list-style: none; }

.footer-inner li { margin-bottom: .5rem; font-size: .93rem; }

.footer-inner a { color: var(--mint); text-decoration: none; }

.footer-inner a:hover { text-decoration: underline; }

.footer-note {
  border-top: 1px solid var(--line-light);
  text-align: center;
  padding: 1.1rem;
  font-size: .85rem;
  color: #7d97a1;
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: transform .25s;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- reveal (JS-gated) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity .65s ease, transform .65s ease;
}

html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .ecg path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .ticker-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .split, .cta-inner { grid-template-columns: 1fr; }
  .cta-inner .btn-row { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; gap: .5rem; }
  .section-head { grid-template-columns: 1fr; gap: .5rem; }

  .nav-toggle { display: grid; place-items: center; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-light);
    padding: 1rem 1.25rem 1.4rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: .6rem; }

  .main-nav a { display: block; padding: .7rem 0; }
}

html:not(.js) .nav-toggle { display: none; }

@media (max-width: 880px) {
  html:not(.js) .main-nav { display: block; position: static; }
}
