/* ==========================================================================
   VetBridge Animal Hospital & Diagnostics — Stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #143838;
  --color-primary-dark: #0c2424;
  --color-secondary: #2C7A7A;
  --color-accent: #8FD3C7;
  --color-bg: #FFFFFF;
  --color-bg-alt: #EEF7F5;
  --color-text: #1A2E2E;
  --color-text-soft: #4A6363;
  --color-line: #E3EEEC;
  --color-whatsapp: #25D366;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 56, 56, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 56, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 56, 56, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 82px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.section-pad { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- Reveal / scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

.stagger-item {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.stagger-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--color-text-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-line);
  color: var(--color-primary);
}
.btn-outline:hover { border-color: var(--color-secondary); background: var(--color-bg-alt); }

.btn-sm { padding: 11px 20px; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1.1;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-secondary); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease);
}
.nav-wa-icon:hover { transform: scale(1.08) rotate(-6deg); }
.nav-wa-icon svg { width: 22px; height: 22px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--color-primary);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 400;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-line);
}
.mobile-menu .btn-whatsapp { margin-top: 28px; width: 100%; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 90px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.hero-rings {
  position: absolute;
  top: -220px; right: -220px;
  width: 620px; height: 620px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  opacity: 0.35;
  pointer-events: none;
  animation: spin-slow 60s linear infinite;
}
.hero-rings::before, .hero-rings::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-secondary);
  opacity: 0.5;
}
.hero-rings::before { inset: 60px; }
.hero-rings::after { inset: 130px; border-style: dashed; }

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow { color: var(--color-secondary); }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-secondary);
  background: linear-gradient(180deg, transparent 62%, var(--color-accent) 62%);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--color-text-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
}
.hero-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.hero-trust svg { width: 20px; height: 20px; color: var(--color-secondary); flex-shrink: 0; }

.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  position: relative;
  transform: rotate(2deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge-card {
  position: absolute;
  left: -34px; bottom: -30px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  transform: rotate(-3deg);
}
.hero-badge-card img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-badge-card strong { display: block; font-size: 0.85rem; color: var(--color-primary); font-family: var(--font-heading); }
.hero-badge-card span { font-size: 0.76rem; color: var(--color-text-soft); }

.hero-rating-chip {
  position: absolute;
  top: -22px; right: 10px;
  z-index: 5;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}
.hero-rating-chip svg { width: 16px; height: 16px; color: var(--color-accent); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; }
  .hero-badge-card { left: 0; }
}

/* ---------- Species grid ---------- */
.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.species-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.species-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.species-card:nth-child(even) { margin-top: 22px; }
.species-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-secondary);
  transition: background 0.35s ease, color 0.35s ease;
}
.species-icon svg { width: 26px; height: 26px; }
.species-card:hover .species-icon { background: var(--color-primary); color: var(--color-accent); }
.species-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.species-card p { font-size: 0.9rem; color: var(--color-text-soft); }

@media (max-width: 980px) { .species-grid { grid-template-columns: repeat(2, 1fr); } .species-card:nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .species-grid { grid-template-columns: 1fr; } }

/* ---------- Services grid ---------- */
.services-band { background: var(--color-bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--color-text-soft); }
.service-card.emergency { background: var(--color-primary); }
.service-card.emergency h3, .service-card.emergency p { color: #fff; }
.service-card.emergency p { color: var(--color-accent); opacity: 0.85; }
.service-card.emergency .service-icon { background: var(--color-accent); color: var(--color-primary); }

@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Why VetBridge ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding: 22px 60px 22px 22px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.why-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  background: var(--color-bg);
}
.why-item-index {
  position: absolute;
  top: 6px; right: 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-line);
  z-index: 0;
  transition: color 0.4s ease;
}
.why-item:hover .why-item-index { color: var(--color-accent); }
.why-item-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--color-primary);
  color: var(--color-accent);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.why-item-icon svg { width: 22px; height: 22px; }
.why-item > div { position: relative; z-index: 1; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { font-size: 0.92rem; color: var(--color-text-soft); }

.why-stats {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why-stats::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border: 1px solid rgba(143, 211, 199, 0.35);
  border-radius: 50%;
  right: -90px; bottom: -100px;
}
.stat-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 6px; }
.stat-num { font-family: var(--font-heading); font-size: 3.6rem; font-weight: 800; line-height: 1; }
.stat-stars { display: flex; gap: 4px; color: var(--color-accent); margin-bottom: 10px; }
.stat-stars svg { width: 20px; height: 20px; }
.stat-label { color: var(--color-accent); font-size: 0.95rem; margin-bottom: 30px; }
.why-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; position: relative; z-index: 2; }
.why-stats-grid div strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; }
.why-stats-grid div span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 34px; left: 12%; right: 12%;
  height: 0;
  border-top: 2px dashed var(--color-line);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: 6px;
}
.step-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.step:nth-child(2) .step-num { background: var(--color-primary); }
.step:nth-child(3) .step-num { background: var(--color-accent); color: var(--color-primary); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--color-text-soft); }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  padding-block: 90px;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(143, 211, 199, 0.3);
}
.final-cta::before { width: 400px; height: 400px; top: -180px; left: -140px; }
.final-cta::after { width: 300px; height: 300px; bottom: -160px; right: -100px; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 700px; margin-inline: auto; margin-bottom: 18px; }
.final-cta p { color: var(--color-accent); max-width: 560px; margin-inline: auto; margin-bottom: 34px; font-size: 1.05rem; }
.final-cta .btn-whatsapp { font-size: 1.1rem; padding: 20px 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.82); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word, .footer-brand .brand-word span { color: #fff; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover { background: var(--color-secondary); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 600;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #fff;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 70px;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header .hero-rings { top: -260px; left: 50%; right: auto; transform: translateX(-50%); }
.page-header .eyebrow { justify-content: center; }
.page-header .eyebrow::before { display: none; }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 780px; margin-inline: auto; margin-bottom: 14px; position: relative; z-index: 2; }
.page-header p { max-width: 620px; margin-inline: auto; color: var(--color-text-soft); font-size: 1.05rem; position: relative; z-index: 2; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  position: relative;
}
.about-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
}
.about-photo .credential-chip {
  position: absolute;
  bottom: -26px; right: -20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.credential-chip svg { width: 30px; height: 30px; color: var(--color-secondary); flex-shrink: 0; }
.credential-chip strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--color-primary); }
.credential-chip span { font-size: 0.78rem; color: var(--color-text-soft); }

.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about-copy p { color: var(--color-text-soft); margin-bottom: 16px; }
.about-copy p:last-of-type { margin-bottom: 0; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 380px; margin-inline: auto; } }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding-block: 26px;
  border-top: 1px solid var(--color-line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--color-line); }
.timeline-year { font-family: var(--font-heading); font-weight: 800; color: var(--color-secondary); font-size: 1.1rem; }
.timeline-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.92rem; color: var(--color-text-soft); }

@media (max-width: 600px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 28px; border-radius: var(--radius-md); background: var(--color-bg-alt); }
.value-card svg { width: 28px; height: 28px; color: var(--color-secondary); margin-bottom: 16px; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--color-text-soft); }
@media (max-width: 800px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.service-detail-list { display: flex; flex-direction: column; gap: 0; }
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding-block: 70px;
  border-top: 1px solid var(--color-line);
}
.service-detail:nth-child(even) .service-detail-media { order: 2; }
.service-detail-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5/4;
  object-fit: cover;
}
.service-detail-copy .service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-alt);
  color: var(--color-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-detail-copy .service-tag svg { width: 16px; height: 16px; }
.service-detail-copy h3 { font-size: 1.6rem; margin-bottom: 14px; }
.service-detail-copy p { color: var(--color-text-soft); margin-bottom: 18px; }
.service-detail-copy ul { display: flex; flex-direction: column; gap: 10px; }
.service-detail-copy ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.93rem;
}
.service-detail-copy ul li svg { width: 18px; height: 18px; color: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; padding-block: 50px; gap: 26px; }
  .service-detail:nth-child(even) .service-detail-media { order: 0; }
}

/* ---------- Gallery page ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.filter-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.gallery-grid {
  columns: 3;
  column-gap: 20px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; display: block; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(12, 36, 36, 0.88), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; }
.gallery-caption span { font-size: 0.78rem; color: var(--color-accent); }

@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

.gallery-item[data-cat] { display: block; }
.gallery-item.is-hidden { display: none; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.contact-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-row {
  display: flex;
  gap: 18px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-line);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-row-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 20px; height: 20px; }
.contact-row h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-row p, .contact-row address { font-size: 0.92rem; color: var(--color-text-soft); font-style: normal; }
.hours-table { width: 100%; font-size: 0.92rem; color: var(--color-text-soft); }
.hours-table tr { border-bottom: 1px dashed var(--color-line); }
.hours-table td { padding: 6px 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--color-primary); }
.emergency-note {
  margin-top: 18px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.emergency-note svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.6;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.media-pair img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

/* ---------- Misc ---------- */
.divider-space { height: 1px; background: var(--color-line); }
::selection { background: var(--color-accent); color: var(--color-primary-dark); }
