/* ==========================================================================
   Nicolise Goosen Physiotherapy — Design System
   Palette: matched to the brand mark — navy + sky blue with a green accent, on warm paper
   Type: Bricolage Grotesque (display) / Public Sans (body) / JetBrains Mono (data)
   Signature: the Range Arc — a goniometer sweep, echoing how physios measure
   recovery in degrees of motion.
   ========================================================================== */

:root {
  --ink: #12181b;
  --ink-soft: #45535a;
  --paper: #f5f2ec;
  --paper-dim: #eae3d4;
  --paper-flat: #efe9dc;
  --teal: #1f3347;
  --teal-deep: #101c27;
  --teal-soft: #3070b3;
  --coral: #86be41;
  --coral-dark: #6a9433;
  --coral-soft: #c9e2aa;
  --line: rgba(18, 24, 27, 0.13);
  --line-dark: rgba(245, 242, 236, 0.16);
  --shadow: 0 30px 60px -30px rgba(16, 28, 39, 0.35);

  --font-display: "Bricolage Grotesque", "Public Sans", sans-serif;
  --font-body: "Public Sans", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--coral-soft); }
.eyebrow-glow::before {
  box-shadow: 0 0 8px 2px rgba(134, 190, 65, 0.9), 0 0 16px 5px rgba(134, 190, 65, 0.45);
  animation: eyebrow-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes eyebrow-dot-pulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(134, 190, 65, 0.9), 0 0 16px 5px rgba(134, 190, 65, 0.45); }
  50% { box-shadow: 0 0 12px 4px rgba(134, 190, 65, 1), 0 0 24px 9px rgba(134, 190, 65, 0.6); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow-glow::before { animation: none; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }

h1 { font-size: clamp(2.6rem, 3.2vw + 1.6rem, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.6vw + 1.3rem, 2.8rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem); line-height: 1.25; }

p { color: var(--ink-soft); max-width: 42em; }
.on-dark p { color: rgba(245, 242, 236, 0.78); }
p.lede { font-size: clamp(1.05rem, 0.3vw + 1rem, 1.25rem); }

.lockup { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.75rem; }
.lockup.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  transition: transform 0.45s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(134, 190, 65, 0.55); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: var(--paper); border-color: var(--line-dark); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { border-color: var(--paper); background: rgba(245, 242, 236, 0.08); }
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 236, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.brand .mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; white-space: nowrap; }
@media (max-width: 1080px) { .brand small { display: none; } }
.logo-img { height: clamp(30px, 4.2vw, 38px); width: auto; display: block; }
.footer-logo-img { height: 32px; }
@media (max-width: 480px) { .logo-img { height: 26px; } }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3em 0;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--coral);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- range arc (signature motif) ---------- */
.arc-divider { width: 100%; overflow: hidden; line-height: 0; color: var(--line); }
.arc-divider svg { width: 100%; height: auto; display: block; }
.arc-divider.on-dark { color: var(--line-dark); }

.arc-glyph { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.arc-glyph svg { width: 100%; height: 100%; }
.arc-glyph .arc-track { fill: none; stroke: var(--line); stroke-width: 2; }
.arc-glyph .arc-sweep {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.is-visible .arc-glyph .arc-sweep { stroke-dashoffset: var(--sweep, 35); }
.arc-glyph .arc-deg {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink);
  text-anchor: middle;
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.34s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--teal-deep);
  color: var(--paper);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(134, 190, 65, 0.14), transparent 70%),
    linear-gradient(100deg, rgba(16, 28, 39, 0.42) 0%, rgba(16, 28, 39, 0.3) 32%, rgba(16, 28, 39, 0.05) 60%, rgba(16, 28, 39, 0.08) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--paper); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5); }
.hero h1 em {
  font-style: normal;
  color: var(--coral-soft);
  font-family: var(--font-display);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-copy p { color: rgba(245, 242, 236, 0.92); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55); }
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero-trust { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.82rem; color: rgba(245,242,236,0.9); margin-top: 0.6rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.hero-trust .stars { color: var(--coral-soft); letter-spacing: 0.1em; }

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 38%;
  display: block;
}

@media (max-width: 900px) {
  .hero-image { object-position: 70% 30%; opacity: 0.9; }
  .hero::before {
    background:
      radial-gradient(60% 55% at 82% 18%, rgba(134, 190, 65, 0.14), transparent 70%),
      linear-gradient(180deg, rgba(16, 28, 39, 0.3) 0%, rgba(16, 28, 39, 0.22) 55%, rgba(16, 28, 39, 0.4) 100%);
  }
}

/* ---------- anatomy scroll (why physiotherapy) ---------- */
.anatomy-scroll {
  position: relative;
  background: linear-gradient(165deg, #1a1310 0%, #100c0a 70%, #0c0908 100%);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.anatomy-visual {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.anatomy-glow {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(30% 26% at 38% 40%, rgba(201, 226, 170, 0.4), transparent 72%),
    radial-gradient(52% 46% at 62% 66%, rgba(134, 190, 65, 0.55), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
  animation: anatomy-glow-drift 16s ease-in-out infinite;
}
@keyframes anatomy-glow-drift {
  0%   { transform: translate(-5%, -4%) scale(1); }
  25%  { transform: translate(6%, 3%) scale(1.12); }
  50%  { transform: translate(-3%, 7%) scale(0.94); }
  75%  { transform: translate(5%, -6%) scale(1.08); }
  100% { transform: translate(-5%, -4%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .anatomy-glow { animation: none; }
}
.anatomy-figure-img {
  position: relative;
  z-index: 1;
  height: 90vh;
  width: auto;
  max-width: 94%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}
.anatomy-stages {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.stage {
  max-width: 24em;
  padding: clamp(3rem, 10vh, 6rem) 0;
  pointer-events: auto;
}
.stage.side-left { margin-right: auto; text-align: left; }
.stage.side-right { margin-left: auto; text-align: right; }
.stage.side-right .check-list li { flex-direction: row-reverse; }
.stage-icon {
  width: 52px; height: 52px; display: block; margin-bottom: 1.2rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
}
.stage.side-right .stage-icon { margin-left: auto; }
.stage h2, .stage h3 { text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.7); }
.stage h2 { color: var(--paper); font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 0.9rem; }
.stage h3 { color: var(--paper); font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.stage p { color: rgba(245, 242, 236, 0.9); margin-top: 0.9rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.75); }
.stage .lede { color: rgba(245, 242, 236, 0.94); margin-top: 1.1rem; }
.stage {
  opacity: 0;
  transform: translate(-34px, 14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stage.side-right { transform: translate(34px, 14px); }
.stage.is-visible { opacity: 1; transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .stage { transition-duration: 0.2s; transform: none; }
}
@media (max-width: 900px) {
  .anatomy-scroll { padding-bottom: 2rem; }
  .anatomy-visual { position: static; height: auto; min-height: 0; align-items: center; margin-bottom: 1.5rem; }
  .anatomy-figure-img { height: auto; max-height: 62vh; width: auto; max-width: 88%; }
  .anatomy-stages { margin-top: 0; gap: 3.5rem; }
  .stage, .stage.side-left, .stage.side-right {
    margin: 0; max-width: none; text-align: left; padding: 0;
    transform: translate(0, 24px) !important;
  }
  .stage.side-right .check-list li { flex-direction: row; }
  .stage.side-right .stage-icon { margin-left: 0; }
}

/* ---------- ticker ---------- */
.ticker-band { background: var(--teal); overflow: hidden; padding: 0.95rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.ticker { display: flex; width: max-content; animation: ticker-scroll 32s linear infinite; }
.ticker-set { display: flex; align-items: center; flex-shrink: 0; }
.ticker span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.9);
  padding: 0 1.4rem;
  white-space: nowrap;
}
.ticker span.dot::before { content: "•"; color: var(--coral); margin-right: 1.4rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.section.tight { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.section.on-dark { background: var(--teal-deep); }
.section.dim { background: var(--paper-flat); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- value grid (why patients choose us) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--coral-soft), 0 20px 45px -18px rgba(16, 28, 39, 0.4), 0 0 30px 4px rgba(134, 190, 65, 0.35);
}
.value-card-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.value-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.value-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 28, 39, 0.6), rgba(16, 28, 39, 0.9));
}
.value-card:hover .value-card-image { opacity: 1; }
.value-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.9rem; transition: color 0.3s var(--ease); }
.value-icon { width: 30px; height: 30px; color: var(--coral); flex-shrink: 0; transition: color 0.3s var(--ease); }
.value-card:hover .value-icon { color: var(--coral-soft); }
.value-card h3 { font-size: 1.05rem; transition: color 0.3s var(--ease); }
.value-card p { font-size: 0.9rem; transition: color 0.3s var(--ease); }
.value-card:hover h3, .value-card:hover p { color: var(--paper); }

.check-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.4rem; }
.check-list li { display: flex; gap: 0.7em; font-size: 0.98rem; color: var(--ink-soft); align-items: flex-start; }
.check-list.on-dark li { color: rgba(245, 242, 236, 0.82); }
.check-list li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: 0.2em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--coral);
  mask: radial-gradient(circle at 50% 50%, transparent 0, transparent 0);
}
.check-list li .tick { width: 20px; height: 20px; flex-shrink: 0; color: var(--coral); margin-top: 1px; }
.check-list.on-dark li .tick { color: var(--coral-soft); }

.media-panel {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--teal) 0%, var(--teal-deep) 100%);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.media-panel.short { aspect-ratio: 16/10; }
.media-panel svg { width: 62%; opacity: 0.92; }
.media-panel video, .media-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-panel img { transition: transform 0.6s var(--ease); }
.media-panel:has(img):hover img { transform: scale(1.07); }
.media-panel:has(video)::after, .media-panel:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0) 55%, rgba(5, 7, 10, 0.65) 100%);
  pointer-events: none;
}
.media-panel img.team-crest {
  position: absolute;
  z-index: 1;
  inset: auto auto auto auto;
  top: 1.2rem;
  left: 1.2rem;
  width: 64px;
  height: auto;
  padding: 0.4rem;
  background: rgba(245, 242, 236, 0.92);
  border-radius: calc(var(--radius) * 0.4);
  box-shadow: 0 10px 24px -10px rgba(16, 28, 39, 0.5);
  object-fit: contain;
  transition: none;
}
.media-panel .tag {
  position: absolute;
  z-index: 1;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245,242,236,0.8);
  text-transform: uppercase;
}

/* ---------- events photo gallery ---------- */
.event-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; perspective: 1400px; }
.event-gallery-col { display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 980px) { .event-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .event-gallery { grid-template-columns: 1fr; } }
.event-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.event-gallery-item:hover { box-shadow: 0 30px 50px -20px rgba(16, 28, 39, 0.45); }
.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
  transform: translateZ(0) scale(1.001);
}
.event-gallery-item:hover img { transform: translateZ(20px) scale(1.1); }
.event-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(16, 28, 39, 0.08);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ---------- stat row (floats over the treatments/team seam) ---------- */
.stat-float-wrap { position: relative; z-index: 5; }
.stat-float {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.8rem, 3vw, 3rem);
  margin-top: clamp(-3.5rem, -6vw, -5rem);
  margin-bottom: clamp(-3.5rem, -6vw, -5rem);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat .num { font-family: var(--font-mono); font-size: clamp(1.9rem, 2vw, 2.6rem); color: var(--coral); font-weight: 500; }
.stat .label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.35; }
.on-dark .stat .label { color: rgba(245,242,236,0.72); }
@media (max-width: 760px) {
  .stat-float { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; margin-top: -2.5rem; margin-bottom: -2.5rem; padding: 1.6rem; }
}
@media (max-width: 480px) {
  .stat-float { margin-top: -1.6rem; margin-bottom: -1.6rem; }
}

/* ---------- treatment cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .card-grid { grid-template-columns: 1fr; } }

.treat-card {
  background: var(--paper-flat);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 0.55);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s ease;
}
.treat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--paper); }
.treat-card h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; font-size: 0.86rem; line-height: 1.2; }
.treat-card p { font-size: 0.72rem; line-height: 1.4; }
.treat-card .more { font-family: var(--font-mono); font-size: 0.62rem; color: var(--teal); display: inline-flex; align-items: center; gap: 0.5em; margin-top: auto; }
.treat-card:hover .more { color: var(--coral-dark); }
.treat-card .more svg { width: 11px; height: 11px; transition: transform 0.35s var(--ease); }
.treat-card:hover .more svg { transform: translateX(4px); }
.treat-card .arc-glyph { width: 28px; height: 28px; }
.treat-card .tag-pill { font-size: 0.58rem; padding: 0.22em 0.55em; }

.treat-card-media {
  margin: -0.85rem -0.85rem 0.15rem -0.85rem;
  border-radius: calc(var(--radius) * 0.55) calc(var(--radius) * 0.55) 0 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.treat-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 1.5rem; row-gap: 6rem; padding-top: 4.5rem; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { display: flex; flex-direction: column; gap: 1rem; }
.team-photo-frame {
  position: relative;
  width: 78%;
  max-width: 220px;
  margin: 0 auto;
}
.team-glow {
  position: absolute;
  inset: -30%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, var(--teal-soft), var(--teal) 55%, transparent 78%);
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.85) rotate(0deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  animation: team-glow-spin 7s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
.team-card:hover .team-glow {
  opacity: 0.75;
  transform: scale(1) rotate(0deg);
  animation-play-state: running;
}
@keyframes team-glow-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}
.team-photo {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--coral-soft), var(--coral) 78%);
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo svg { width: 46%; color: var(--teal-soft); }
.team-photo img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 142%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 18px rgba(18, 24, 27, 0.25));
  display: block;
  z-index: 1;
  transition: transform 0.45s var(--ease);
}
.team-card:hover .team-photo img { transform: translateX(-50%) translateY(-4px); }
.team-info .badge {
  display: inline-flex;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  background: var(--coral); color: var(--paper);
  padding: 0.3em 0.65em; border-radius: 999px;
  margin-bottom: 0.5rem;
}
.team-info h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); letter-spacing: 0.04em; text-transform: uppercase; }
.team-creds { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; }
.team-creds li { font-size: 0.85rem; color: var(--ink-soft); padding-left: 1rem; position: relative; }
.team-creds li::before { content: "—"; position: absolute; left: 0; color: var(--coral); }
.team-bio {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.35s ease, margin-top 0.4s var(--ease);
}
.team-card:hover .team-bio { max-height: 6em; opacity: 1; margin-top: 0.7rem; }
.team-links { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
@media (prefers-reduced-motion: reduce) {
  .team-glow { animation: none; }
  .team-card:hover .team-photo img { transform: translateX(-50%); }
}
@media (hover: none) {
  .team-bio { max-height: 6em; opacity: 1; margin-top: 0.7rem; }
  .team-glow { display: none; }
}
.team-links a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.team-links a:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); transform: translateY(-2px); }
.team-links svg { width: 16px; height: 16px; }

/* ---------- testimonials ---------- */
.rating-badge { display: flex; align-items: center; gap: 1rem; }
.rating-badge .stars { color: var(--coral); font-size: 1.1rem; letter-spacing: 0.15em; }
.rating-badge .meta { display: flex; flex-direction: column; }
.rating-badge .meta strong { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; }
.rating-badge .meta span { font-size: 0.82rem; color: var(--ink-soft); }

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card .stars { color: var(--coral); font-size: 0.9rem; letter-spacing: 0.12em; }
.quote-card p { font-size: 0.95rem; color: var(--ink-soft); }
.quote-card .who { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); display: flex; align-items: center; gap: 0.5em; margin-top: auto; }

/* ---------- swipeable treatment overview ---------- */
.treat-nav-track {
  display: flex;
  gap: 1.3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.treat-nav-track::-webkit-scrollbar { display: none; }
.treat-nav-card {
  scroll-snap-align: start;
  flex: 0 0 min(305px, 78vw);
  background: var(--paper-flat);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.treat-nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.treat-nav-card .treat-card-media { margin: -1.2rem -1.2rem 0 -1.2rem; }
.treat-nav-card .eyebrow { margin-top: 0.5rem; }
.treat-nav-card h3 { font-size: 1rem; margin-top: 0.1rem; }
.treat-nav-card p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.treat-nav-card .more { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal); display: inline-flex; align-items: center; gap: 0.5em; margin-top: auto; }
.treat-nav-card:hover .more { color: var(--coral-dark); }
.treat-nav-card .more svg { width: 11px; height: 11px; transition: transform 0.35s var(--ease); }
.treat-nav-card:hover .more svg { transform: translateX(3px); }
.treat-nav-buttons { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.treat-nav-buttons button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, border-color 0.3s ease;
}
.treat-nav-buttons button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.treat-nav-buttons svg { width: 18px; height: 18px; }

/* ---------- review marquee (3D testimonial columns) ---------- */
.review-marquee-wrap {
  position: relative;
  height: clamp(360px, 52vw, 440px);
  margin-top: 2.5rem;
  overflow: hidden;
  perspective: 1000px;
}
.review-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem 0;
  transform: rotateX(10deg) rotateY(-6deg) rotateZ(-2deg) scale(1.05);
  transform-style: preserve-3d;
}
.review-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: clamp(200px, 18vw, 262px);
  overflow: hidden;
  flex-shrink: 0;
}
.review-col-repeat {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-shrink: 0;
  animation: review-scroll-up 26s linear infinite;
}
.review-col.reverse .review-col-repeat { animation-name: review-scroll-down; }
@keyframes review-scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% - 1.1rem)); }
}
@keyframes review-scroll-down {
  from { transform: translateY(calc(-100% - 1.1rem)); }
  to { transform: translateY(0); }
}
.review-marquee-wrap:hover .review-col-repeat { animation-play-state: paused; }

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 20px 34px -22px rgba(16, 28, 39, 0.22);
}
/* ---------- testimonials wall (about page) ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial-card .stars { color: var(--coral); font-size: 0.85rem; letter-spacing: 0.1em; }
.testimonial-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.testimonial-card .who-name { font-size: 0.92rem; font-weight: 600; color: var(--ink); display: block; }
.testimonial-card .who-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }

.review-card-head { display: flex; align-items: center; gap: 0.7rem; }
.review-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
  color: var(--paper);
}
.review-avatar-photo {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-dim);
}
.review-card-head > div { display: flex; flex-direction: column; }
.review-card .who-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.review-card .who-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.review-card .stars { color: var(--coral); font-size: 0.78rem; letter-spacing: 0.1em; }
.review-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

.review-fade { position: absolute; left: 0; right: 0; height: 100px; z-index: 2; pointer-events: none; }
.review-fade.top { top: 0; background: linear-gradient(to bottom, var(--paper) 15%, transparent 100%); }
.review-fade.bottom { bottom: 0; background: linear-gradient(to top, var(--paper) 15%, transparent 100%); }

@media (max-width: 760px) {
  .review-marquee { gap: 0.8rem; transform: rotateX(6deg) rotateY(-3deg) scale(1.02); }
  .review-col { width: 42vw; }
  .review-col:nth-child(3), .review-col:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .review-marquee { justify-content: flex-start; }
  .review-col:nth-child(2) { display: none; }
  .review-col { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .review-col-repeat { animation: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(45% 80% at 90% 20%, rgba(134,190,65,0.28), transparent 70%);
  animation: cta-glow-drift 9s ease-in-out infinite;
}
@keyframes cta-glow-drift {
  0%, 100% { background: radial-gradient(45% 80% at 90% 20%, rgba(134,190,65,0.28), transparent 70%); }
  50% { background: radial-gradient(55% 90% at 25% 75%, rgba(134,190,65,0.24), transparent 70%); }
}
@media (prefers-reduced-motion: reduce) { .cta-band::before { animation: none; } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.7rem, 2vw, 2.3rem); max-width: 24em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(3rem, 6vw, 4.5rem); }

/* medical aid logo cloud */
.medical-aids { padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.medical-aids-label {
  font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: rgba(245,242,236,0.5); text-align: center; margin-bottom: 1.8rem;
}
.medical-aids-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  max-width: 1200px;
  margin: 0 auto;
}
.ma-cell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1.1rem;
  min-height: 78px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.ma-cell:nth-child(4n+2), .ma-cell:nth-child(4n+3) { background: rgba(245,242,236,0.025); }
.ma-cell img {
  height: 24px; width: auto; max-width: 100%;
  opacity: 0.7; filter: grayscale(1) brightness(3);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ma-cell:hover img { opacity: 1; transform: scale(1.06); }
.ma-plus { position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; z-index: 1; }
.ma-plus::before, .ma-plus::after { content: ""; position: absolute; background: var(--line-dark); }
.ma-plus::before { width: 11px; height: 1px; top: 5px; left: 0; }
.ma-plus::after { width: 1px; height: 11px; top: 0; left: 5px; }
@media (max-width: 860px) {
  .medical-aids-grid { grid-template-columns: repeat(3, 1fr); }
  .ma-cell:nth-child(4n+2), .ma-cell:nth-child(4n+3) { background: none; }
  .ma-cell:nth-child(odd) { background: rgba(245,242,236,0.025); }
}
@media (max-width: 520px) {
  .medical-aids-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-cell { padding: 1.2rem 0.8rem; min-height: 64px; }
  .ma-cell img { height: 20px; }
  .ma-plus { display: none; }
}

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245,242,236,0.55); margin-bottom: 1.1rem; font-weight: 600; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-grid a, .footer-grid p { color: rgba(245,242,236,0.85); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--coral-soft); }
.footer-brand p { color: rgba(245,242,236,0.6); font-size: 0.88rem; max-width: 26em; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.4rem 0 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-body); font-size: 0.82rem; color: rgba(245,242,236,0.5);
}

/* ---------- page header (subpages) ---------- */
.page-header { padding-top: clamp(6.5rem, 10vw, 9rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); background: var(--teal-deep); color: var(--paper); position: relative; overflow: hidden; }
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(55% 60% at 85% 0%, rgba(134,190,65,0.2), transparent 70%);
}
.page-header .wrap { position: relative; z-index: 2; }
.page-header-image-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-header-image { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.page-header.has-image::before {
  background:
    radial-gradient(55% 60% at 85% 0%, rgba(134, 190, 65, 0.16), transparent 70%),
    linear-gradient(100deg, rgba(16, 28, 39, 0.92) 0%, rgba(16, 28, 39, 0.72) 45%, rgba(16, 28, 39, 0.35) 100%);
}
@media (max-width: 700px) {
  .page-header.has-image::before {
    background:
      radial-gradient(55% 60% at 85% 0%, rgba(134, 190, 65, 0.16), transparent 70%),
      linear-gradient(180deg, rgba(16, 28, 39, 0.75) 0%, rgba(16, 28, 39, 0.8) 55%, rgba(16, 28, 39, 0.92) 100%);
  }
}
.page-header h1 { color: var(--paper); font-size: clamp(2.4rem, 3vw, 3.6rem); }
.page-header p { color: rgba(245,242,236,0.78); margin-top: 1rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(245,242,236,0.6); display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--coral-soft); }

/* ---------- accordion (FAQ) ---------- */
.accordion { display: flex; flex-direction: column; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.accordion-item .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.accordion-item .plus::before, .accordion-item .plus::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s ease;
}
.accordion-item .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-1px); }
.accordion-item .plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-1px); }
.accordion-item.is-open .plus::after { transform: translateX(-1px) rotate(90deg); opacity: 0; }
.accordion-item.is-open button { color: var(--coral-dark); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion-panel-inner { padding-bottom: 1.5rem; }
.accordion-panel-inner p { font-size: 0.95rem; }

/* ---------- referral / info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--paper-flat);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.info-card-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.info-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 28, 39, 0.55), rgba(16, 28, 39, 0.88));
}
.info-card:hover .info-card-image { opacity: 1; }
.info-card-content { position: relative; z-index: 1; }
.info-card .num { font-family: var(--font-mono); color: var(--coral); font-size: 0.85rem; margin-bottom: 1rem; display: block; transition: color 0.3s var(--ease); }
.info-card:hover .num { color: var(--coral-soft); }
.info-card-content h3, .info-card-content p { transition: color 0.3s var(--ease); }
.info-card:hover .info-card-content h3, .info-card:hover .info-card-content p { color: var(--paper); }
.info-card h3 { margin-bottom: 0.7rem; }
.info-card p { font-size: 0.92rem; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--paper-flat);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 40px -18px rgba(16, 28, 39, 0.35), 0 0 26px 3px rgba(134, 190, 65, 0.4);
}
.contact-card .icon { width: 40px; height: 40px; color: var(--coral); transition: color 0.3s var(--ease); }
.contact-card:hover .icon { color: var(--coral-dark); }
.contact-card h3 { font-size: 1rem; }
.contact-card a, .contact-card span { font-size: 0.92rem; color: var(--ink-soft); }
.contact-card a:hover { color: var(--coral-dark); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.map-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  transform-origin: center;
}
.map-panel:hover {
  transform: scale(1.06);
  box-shadow: 0 40px 70px -25px rgba(16, 28, 39, 0.5);
  z-index: 4;
}
.map-panel-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 28, 39, 0) 55%, rgba(16, 28, 39, 0.55) 100%);
  pointer-events: none;
}

/* glowing location pin */
.location-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 30px; height: 30px;
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.location-pin-dot {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(245, 242, 236, 0.9), 0 0 16px 4px var(--coral);
}
.location-pin-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.55;
  animation: location-pin-pulse 2.2s var(--ease) infinite;
}
@keyframes location-pin-pulse {
  0% { transform: scale(0.4); opacity: 0.55; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.location-pin:hover .location-pin-dot,
.location-pin:focus-visible .location-pin-dot { box-shadow: 0 0 0 4px rgba(245, 242, 236, 0.95), 0 0 22px 7px var(--coral); }

/* slide-in map panel, revealed by hovering/focusing the pin */
.location-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86%, 360px);
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 3;
  box-shadow: -20px 0 40px -20px rgba(16, 28, 39, 0.35);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.location-slide h3 { font-size: 1.05rem; }
.location-slide .addr { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; display: block; }
.location-slide-embed { border-radius: calc(var(--radius) * 0.5); overflow: hidden; margin-top: 1rem; flex: 1; min-height: 140px; }
.location-slide-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-pin:hover ~ .location-slide,
.location-pin:focus-visible ~ .location-slide,
.location-slide:hover,
.location-slide:focus-within { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .location-pin-ping { animation: none; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  padding: 0.85em 1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-size: 0.96rem;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,51,71,0.1); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1rem; }

.hours-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
.hours-list li { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.hours-list li span:last-child { font-family: var(--font-mono); color: var(--ink-soft); }

/* ---------- events page ---------- */
.event-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .event-feature { grid-template-columns: 1fr; } }
.event-tag { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }

/* ---------- misc ---------- */
.divider-line { height: 1px; background: var(--line); width: 100%; }
.tag-pill {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.72rem;
  padding: 0.35em 0.8em; border-radius: 999px; background: var(--paper-dim); color: var(--teal);
  letter-spacing: 0.04em;
}
