/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Micro-interactions */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.in-view:not(.reveal) { opacity: 1; }

.site-header { transition: box-shadow 220ms ease, background 220ms ease; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.98); }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text); }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

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

.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--color-accent);
}
.section-head p { color: var(--color-text-muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 2000; transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(0) skewX(-20deg);
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(475%) skewX(-20deg); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }
.btn-emergency { background: var(--color-emergency); color: #fff; box-shadow: var(--shadow-sm); }
.btn-emergency:hover { background: var(--color-emergency-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); }
.brand img, .brand svg { width: 52px; height: 52px; }
.brand-name { font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--color-text-muted); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-emergency {
  display: none;
  align-items: center; gap: 6px;
  font-weight: 700; color: var(--color-emergency);
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: #fff;
}
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-height) - 32px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow-y: auto;
  padding: 18px;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.mobile-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.mobile-nav nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav nav a {
  display: block; padding: 12px 10px; font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.mobile-nav nav a:hover { background: var(--color-bg-alt); }
.mobile-nav nav a.active { color: var(--color-primary-dark); }
.mobile-nav .mobile-nav-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 1040px) {
  .header-emergency { display: flex; }
}

/* Keep the header from overflowing on narrow phones (TECH-02). */
@media (max-width: 480px) {
  .header-inner { padding: 0 14px; gap: 8px; }
  .brand-name small { display: none; }
  .brand-name { font-size: 0.92rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Hero — full-bleed video background with overlay text */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #0f766e, #134e4a, #0d9488, #115e59);
  background-size: 320% 320%;
  animation: heroGradient 20s ease infinite;
}
.hero-bg-fallback::before, .hero-bg-fallback::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
}
.hero-bg-fallback::before { width: 420px; height: 420px; background: #2dd4bf; top: -100px; left: -100px; animation: heroFloat 16s ease-in-out infinite; }
.hero-bg-fallback::after { width: 380px; height: 380px; background: #0ea5a4; bottom: -120px; right: -80px; animation: heroFloat 19s ease-in-out infinite reverse; }
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(36px, -24px); }
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 700ms ease;
}
.hero-bg-video.is-ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 18, 0.55) 0%, rgba(9, 20, 18, 0.72) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 96px 0 80px;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #eafff9; font-size: 0.85rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.hero-badge .dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--color-accent);
}
.hero-badge .dot::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--color-accent);
  animation: dotPulse 2.2s ease-out infinite;
  will-change: transform, opacity;
}
@keyframes dotPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.2); opacity: 0; }
}
.hero-copy h1 { color: #fff; margin-bottom: 0.2em; }
.hero-script {
  display: block;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.1;
  margin-top: 0.05em;
  background: linear-gradient(90deg, #5eead4, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead { font-size: 1.15rem; color: #dff4f0; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-ghost-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.18); }
.hero-trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px; margin-top: 44px;
}
.hero-trust div { text-align: left; }
.hero-trust strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.hero-trust span { font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; color: #bfe6df; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  z-index: 1;
}
.hero-scroll-pill {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.5); border-radius: var(--radius-full);
  position: relative;
}
.hero-scroll-pill::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px;
  background: #fff; border-radius: var(--radius-full); transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

@media (min-width: 640px) {
  .hero-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .hero { min-height: 640px; }
  .hero-inner { padding: 140px 0 110px; }
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.service-card .service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--color-primary-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
.service-card .btn { margin-top: 14px; }

.doctor-card { text-align: center; padding: 0; overflow: hidden; }
.doctor-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 450ms ease; }
.doctor-card:hover img { transform: scale(1.07); }
.doctor-card .doctor-body { padding: 22px; }
.doctor-card h3 { margin-bottom: 2px; }
.doctor-card .doctor-role { color: var(--color-primary-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.doctor-card .doctor-meta { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.doctor-card .doctor-bio { font-size: 0.92rem; color: var(--color-text-muted); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary-dark); }
.stat-card span { color: var(--color-text-muted); font-size: 0.9rem; }

.feature-list { display: grid; gap: 18px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-item { display: flex; gap: 14px; }
.feature-item .icon-badge {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--color-primary-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature-item p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }

.check-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .check-list.cols-2 { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--color-text-muted); }
.check-list li .icon { flex: none; width: 20px; height: 20px; color: var(--color-primary); margin-top: 2px; }

.pull-quote {
  max-width: 640px; margin: 0 auto; text-align: center; font-family: var(--font-heading);
  font-size: 1.3rem; font-style: italic; color: var(--color-primary-dark);
  border-top: 2px solid var(--color-primary-light); border-bottom: 2px solid var(--color-primary-light);
  padding: 24px 0;
}

.prose { max-width: 68ch; margin: 0 auto; }
.prose p { margin-bottom: 16px; color: var(--color-text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* Reviews */
.review-card { min-width: 280px; }
.review-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; font-size: 0.95rem; }
.review-name { font-weight: 700; }
.review-date { color: var(--color-text-muted); font-size: 0.8rem; margin-bottom: 10px; }
.review-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.review-summary strong { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-heading); }
.review-summary .review-stars { font-size: 1.3rem; }

.scroll-row {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row > * { scroll-snap-align: start; flex: none; }
.scroll-row::-webkit-scrollbar { height: 8px; }
/* Center when everything fits (e.g. only 2-4 cards on a wide screen), but
   never let centering push the scroll start mid-content — plain
   justify-content:center + overflow-x:auto starts the scroll position
   already offset, chopping off the first card's edge on mobile. */
.scroll-row-center { justify-content: safe center; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }

/* Video reviews */
.video-card {
  width: 210px; aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: #0f172a; box-shadow: var(--shadow-md);
  cursor: pointer; border: none; padding: 0;
}
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.video-card .play-badge .play-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark);
}
.video-card .video-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  color: #fff; font-size: 0.82rem; font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
}
.video-card.playing .play-badge { display: none; }

/* Before / after */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; justify-content: center; }
.filter-chip {
  border: 1px solid var(--color-border); background: #fff;
  padding: 8px 18px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.88rem;
  cursor: pointer;
}
.filter-chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.ba-card { padding: 0; overflow: hidden; cursor: pointer; }
.ba-compare { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.ba-card:hover .ba-compare img { transform: scale(1.05); }
.ba-compare .ba-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  transform: translateX(-50%);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  color: var(--color-primary-dark); cursor: ew-resize; touch-action: none;
}
.ba-tag {
  position: absolute; top: 10px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(15,23,42,0.72); color: #fff; padding: 3px 10px; border-radius: var(--radius-full);
}
.ba-tag.before-tag { left: 10px; }
.ba-tag.after-tag { right: 10px; }
.ba-caption { padding: 16px 18px; }
.ba-caption h3 { font-size: 1rem; margin-bottom: 4px; }
.ba-caption p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.86);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: 720px; width: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  transform: scale(0.85); transition: transform 280ms cubic-bezier(.34, 1.56, .64, 1);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Video lightbox — portrait 9:16 "reel" style */
.lightbox.lightbox-video .lightbox-content {
  max-width: 380px; width: 100%; aspect-ratio: 9 / 16; background: #000;
}
.lightbox.lightbox-video .lightbox-content video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Map */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Forms */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .required { color: var(--color-emergency); }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.98rem; font-family: inherit; min-height: 48px;
  background: #fff; color: var(--color-text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--color-primary-light); border-color: var(--color-primary);
}
.field-error { color: var(--color-emergency); font-size: 0.82rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--color-emergency); }
.field.invalid .field-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }
.form-success {
  display: none; background: var(--color-primary-light); color: var(--color-primary-dark);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 18px; font-weight: 600;
}
.form-success.show { display: block; }

/* Footer */
.site-footer { background: var(--color-bg-dark); color: #e2f4f1; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer p { color: #a9c9c5; font-size: 0.92rem; }
.site-footer a { color: #cfe9e5; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; font-size: 0.92rem; color: #cfe9e5; overflow-wrap: anywhere; }

/* Same row layout as .footer-contact, for use on light backgrounds (e.g. contact.html card) */
.contact-rows li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--color-text); overflow-wrap: anywhere; }
.contact-rows li a { color: var(--color-text); font-weight: 600; }
.contact-rows li a:hover { color: var(--color-primary-dark); }
.contact-rows .icon { color: var(--color-primary); flex: none; width: 20px; height: 20px; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.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;
}
.footer-map-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #fff !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: #9dbdb9;
}
.footer-bottom a { color: #cfe9e5; }

/* Floating buttons */
.floating-buttons { position: fixed; z-index: 1500; }
.fab {
  position: fixed; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); color: #fff; border: none; cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease, visibility 200ms ease;
}
.fab:hover { transform: scale(1.06); }
.floating-buttons.is-hidden .fab { opacity: 0; visibility: hidden; pointer-events: none; }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; opacity: 0.35;
  animation: fabPulse 2.6s ease-out infinite;
  will-change: transform, opacity;
}
.fab .icon { width: 28px; height: 28px; position: relative; }
.fab-whatsapp { right: 20px; background: var(--color-whatsapp); color: var(--color-whatsapp); }
.fab-whatsapp:hover { background: var(--color-whatsapp-dark); }
.fab-whatsapp .icon { color: #fff; }
.fab-emergency { left: 20px; background: var(--color-emergency); color: var(--color-emergency); }
.fab-emergency:hover { background: var(--color-emergency-dark); }
.fab-emergency .icon { color: #fff; }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (min-width: 1040px) {
  .fab-emergency { display: none; }
}

/* Smaller footprint on phones so the FABs cover less of the page content
   scrolling underneath them (still ≥44px, the min. recommended touch target). */
@media (max-width: 600px) {
  .fab { width: 48px; height: 48px; bottom: 14px; }
  .fab .icon { width: 22px; height: 22px; }
  .fab-whatsapp { right: 14px; }
  .fab-emergency { left: 14px; }
}

/* Cookie consent */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1800;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 20px; display: none;
  gap: 14px; align-items: center; flex-wrap: wrap; max-width: 640px; margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); flex: 1 1 260px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }

/* Keep the WhatsApp/emergency FABs clear of the cookie banner while it's open (mobile: banner is full-width). */
body.cookie-banner-open .fab { bottom: 100px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: 64px 0 46px; color: #fff;
  background: linear-gradient(120deg, #0f766e, #134e4a, #0d9488);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(45, 212, 191, 0.28), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(74, 222, 128, 0.2), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #dff4f0; }
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: #eafff9; backdrop-filter: blur(4px); }
.breadcrumb { font-size: 0.85rem; color: #bfe6df; margin-bottom: 12px; }
.page-hero .breadcrumb a { color: #fff; font-weight: 700; }

/* Opening hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* Misc utility */
.mt-lg { margin-top: 40px; }
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.tag-pill {
  display: inline-block; background: var(--color-bg-alt); border: 1px solid var(--color-border);
  padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; margin-right: 6px;
}
figure { margin: 0; }
.img-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { margin-top: 1.4em; font-size: 1.05rem; }
.legal-content { max-width: 760px; margin: 0 auto; overflow-wrap: anywhere; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin: 12px 0; }
.legal-content li { margin-bottom: 6px; color: var(--color-text-muted); }
.legal-content .contact-block { list-style: none; padding: 0; margin: 16px 0 0; }
.legal-content .contact-block li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.legal-content .contact-block .icon { flex: none; width: 20px; height: 20px; color: var(--color-primary); margin-top: 2px; }
