/* Pets Castle Vet — concept by Beans Digital
   Palette: parchment cream, castle pine green, lantern amber.
   Type: Fraunces (display serif) + Nunito Sans (body). */

@view-transition { navigation: auto; }

:root {
  --cream: #FAF5EC;
  --cream-deep: #F2E9DA;
  --pine: #24503F;
  --pine-deep: #17382C;
  --pine-ink: #122A21;
  --amber: #E8A644;
  --amber-soft: #F6D9A8;
  --blush: #EFD9C3;
  --white: #FFFDF8;
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--pine-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* ---------- concept banner ---------- */
.concept-banner {
  background: var(--pine-ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-deep);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--pine-deep);
  view-transition-name: pcv-logo;
}
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}
.logo-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine);
}
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pine-deep);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.main-nav a:hover { background: var(--cream-deep); }
.main-nav a[aria-current="page"] { background: var(--pine); color: var(--cream); }
.main-nav a.nav-cta {
  background: var(--amber);
  color: var(--pine-ink);
  margin-left: 0.35rem;
}
.main-nav a.nav-cta:hover { background: var(--amber-soft); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--pine);
  color: var(--pine);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}
.hero-arch {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 360px 360px var(--radius) var(--radius);
  padding: 3.2rem 1.5rem 2.6rem;
  box-shadow: 0 18px 50px -30px rgba(23, 56, 44, 0.45);
}
.hero-crest { width: 84px; height: 84px; margin: 0 auto 1.2rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 600;
  color: var(--pine-deep);
  line-height: 1.12;
  margin-bottom: 0.9rem;
}
.hero h1 em { font-style: italic; color: var(--pine); }
.hero p.lede {
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  font-size: 1.06rem;
  color: #3E554B;
}
.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--pine-deep);
  color: var(--amber-soft);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.badge-247 .dot {
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--cream); box-shadow: 0 10px 24px -14px var(--pine-deep); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-amber { background: var(--amber); color: var(--pine-ink); box-shadow: 0 10px 24px -14px #9a6a1d; }
.btn-amber:hover { background: var(--amber-soft); }
.btn-ghost { border: 2px solid var(--pine); color: var(--pine-deep); }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }

/* ---------- sections ---------- */
section { padding: 3.4rem 1rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-kicker.left { text-align: left; }
h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--pine-deep);
  text-align: center;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
h2.section-title.left { text-align: left; }
.section-intro {
  max-width: 38rem;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: #3E554B;
}

/* stats band */
.stats-band { background: var(--pine-deep); border-radius: var(--radius); color: var(--cream); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2.4rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--amber);
}
.stat-label { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: #BFD4C9; }

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -26px rgba(23, 56, 44, 0.5);
}
.card .card-icon {
  width: 52px; height: 52px;
  background: var(--cream-deep);
  border-radius: 999px 999px 14px 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--pine-deep);
  margin-bottom: 0.45rem;
}
.card p { font-size: 0.95rem; color: #3E554B; }

/* review wall */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.review {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  position: relative;
}
.review::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.2rem;
}
.review p { font-size: 0.93rem; color: #3E554B; font-style: italic; }
.review .stars { color: var(--amber); letter-spacing: 0.15em; margin-top: 0.8rem; font-style: normal; }
.review .src { font-size: 0.75rem; color: #7E948A; margin-top: 0.25rem; font-style: normal; }

/* hours table */
.hours-table {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-deep);
}
.hours-table th, .hours-table td {
  padding: 0.7rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-deep);
  font-size: 0.95rem;
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table td { text-align: right; font-weight: 800; color: var(--pine); }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--pine) 0%, var(--pine-deep) 100%);
  border-radius: var(--radius);
  color: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.7rem;
}
.cta-strip p { color: #BFD4C9; margin-bottom: 1.5rem; }

/* map + visit */
.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -28px rgba(23, 56, 44, 0.6);
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.contact-lines { display: grid; gap: 0.9rem; }
.contact-line {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 16px;
  padding: 1rem 1.2rem;
}
.contact-line svg { width: 24px; height: 24px; flex: none; margin-top: 0.15rem; }
.contact-line a { font-weight: 800; }

/* page hero (inner pages) */
.page-hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  color: var(--pine-deep);
  margin-bottom: 0.7rem;
}
.page-hero p { max-width: 36rem; margin: 0 auto; color: #3E554B; }

/* emergency banner */
.emergency-band {
  background: var(--amber);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
}
.emergency-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--pine-ink);
  margin-bottom: 0.5rem;
}
.emergency-band p { color: #5a431a; margin-bottom: 1.2rem; }

/* steps */
.steps { display: grid; gap: 1rem; max-width: 720px; margin: 0 auto; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 16px;
  padding: 1.2rem 1.3rem 1.2rem 4rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2rem; height: 2rem;
  background: var(--pine);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
}
.step h3 { font-family: var(--font-display); font-weight: 600; color: var(--pine-deep); font-size: 1.05rem; }
.step p { font-size: 0.92rem; color: #3E554B; }

/* paw divider */
.paw-divider {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.5rem 0 0;
}
.paw-divider svg { width: 26px; height: 26px; opacity: 0.4; }
.paw-divider svg:nth-child(2) { transform: rotate(-12deg) translateY(-6px); }
.paw-divider svg:nth-child(3) { transform: rotate(10deg); }

/* note card */
.note {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 1rem 1.3rem;
  font-size: 0.88rem;
  color: #4a5e54;
}

/* footer */
.site-footer {
  background: var(--pine-ink);
  color: #BFD4C9;
  margin-top: 3rem;
  padding: 2.8rem 1rem 1.6rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.7rem;
}
.site-footer a { color: #BFD4C9; text-decoration: none; }
.site-footer a:hover { color: var(--amber-soft); }
.site-footer ul { list-style: none; display: grid; gap: 0.4rem; font-size: 0.92rem; }
.footer-legal {
  max-width: 1100px;
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid #2b473b;
  font-size: 0.8rem;
  text-align: center;
  color: #7E948A;
}

/* floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(18, 90, 50, 0.8);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 22px; height: 22px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-247 .dot { animation: none; }
  .btn, .card, .wa-float { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    padding: 0.8rem 1rem 1.2rem;
    gap: 0.35rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 0.7rem; }
  .hero-arch { padding: 2.4rem 1.1rem 2rem; }
  section { padding: 2.6rem 1rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.85rem; }
}
