/* Hub Vet Clinic — concept by Beans Digital
   Palette: deep petrol/teal (clinical calm, trust) + warm amber (24/7 light, warmth)
   on warm cream. Rounded, friendly, pet-care energy. */

@view-transition { navigation: auto; }

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #0f322e;
  --teal: #0e7268;
  --teal-dark: #0a4f49;
  --teal-soft: #e0efec;
  --amber: #e89a2f;
  --amber-soft: #fdeccd;
  --line: #e6dfcf;
  --muted: #5d6a63;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(15, 50, 46, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo { font-family: "Baloo 2", "Nunito Sans", sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0.3em 0; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 0.4em; font-weight: 700; }
h3 { font-size: 1.25rem; margin: 0 0 0.3em; font-weight: 700; }
p { margin: 0.4em 0 1em; }
a { color: var(--teal); }
img, svg, iframe { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }

/* Concept banner */
.concept-banner {
  background: var(--ink);
  color: #f3efe4;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.4;
}

/* Header */
header.site {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(15, 50, 46, 0.07);
  view-transition-name: site-header;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  view-transition-name: site-logo;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .tag { display: block; font-size: 0.68rem; font-weight: 700; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; font-family: "Nunito Sans", sans-serif; }
nav.main {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
nav.main a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
nav.main a:hover { background: var(--teal-soft); }
nav.main a[aria-current="page"] { background: var(--teal); color: #fff; }
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
}
.call-pill:hover { background: #f0ad4e; }

/* Hero */
.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-soft);
  border: 2px solid var(--amber);
  color: var(--ink);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.badge-247 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero p.lead { font-size: 1.15rem; max-width: 42em; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 1rem;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.93rem;
  box-shadow: var(--shadow);
}
.rating-chip .stars { color: var(--amber); letter-spacing: 2px; }
.paw-field { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; }
.paw-field svg { position: absolute; color: var(--teal); opacity: 0.1; }

/* Stats */
.stats { background: var(--ink); color: #f3efe4; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; font-family: "Baloo 2", sans-serif; font-size: 2.6rem; color: var(--amber); line-height: 1.1; }
.stat span { font-size: 0.95rem; opacity: 0.85; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 30px; height: 30px; }
.card.accent .icon { background: var(--amber-soft); color: var(--amber); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card a.more { font-weight: 800; text-decoration: none; display: inline-block; margin-top: 10px; }

/* Quotes */
.quotes { background: var(--teal-soft); }
.quote-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.quote-card .stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; }
.quote-card p { font-size: 0.96rem; color: var(--ink); }
.quote-card cite { color: var(--muted); font-size: 0.85rem; font-style: normal; }

/* Hours + visit */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; align-items: start; }
table.hours { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.hours caption { caption-side: top; text-align: left; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.2rem; padding: 0 0 10px; }
table.hours th, table.hours td { padding: 11px 18px; text-align: left; font-size: 0.95rem; }
table.hours tr:nth-child(odd) td, table.hours tr:nth-child(odd) th { background: #fbf9f3; }
table.hours td { font-weight: 800; color: var(--teal); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.map-box iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-box .map-meta { padding: 16px 20px; font-size: 0.93rem; }

/* CTA strip */
.cta-strip { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 40px 30px; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip .btn-primary { background: var(--amber); color: var(--ink); }
.cta-strip .btn-primary:hover { background: #f0ad4e; }

/* Page hero (inner pages) */
.page-hero { padding: 52px 0 36px; }
.page-hero p { color: var(--muted); max-width: 44em; }
.crumb { font-size: 0.85rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; }

/* Service detail rows */
.svc-row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.svc-row .icon { width: 64px; height: 64px; border-radius: 18px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }
.svc-row .icon svg { width: 34px; height: 34px; }
.svc-row p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.svc-row ul { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; padding-left: 20px; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
details.faq summary { font-weight: 800; cursor: pointer; padding: 12px 0; }
details.faq p { color: var(--muted); margin-top: 0; }

/* Footer */
footer.site { background: var(--ink); color: #e8e3d5; padding: 48px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer.site h3 { color: var(--amber); font-size: 1.05rem; }
footer.site a { color: #e8e3d5; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; font-size: 0.94rem; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px; padding-top: 18px; font-size: 0.85rem; opacity: 0.8; text-align: center; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* Reveal animations (JS-gated so content shows with JS off) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge-247 .dot { animation: none; }
  .wa-float:hover { transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 14px; }
  nav.main { order: 3; width: 100%; margin-left: 0; }
  section { padding: 42px 0; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row .icon { width: 56px; height: 56px; }
}
