/* ==========================================================================
   ROYAL PET CLINIC — DESIGN SYSTEM 2026
   ========================================================================== */

:root {
  /* Colors - Light Palette */
  --bg-canvas: #F6F7FB;          /* Cool Off-White */
  --bg-surface: #FFFFFF;         /* Pure Surface */
  --bg-subtle: #EEF0F8;          /* Neutral Muted Surface */
  --text-main: #10121C;          /* Near-Black Indigo Text */
  --text-muted: #616A85;        /* Secondary Muted Slate */
  --primary-teal: #4F46E5;      /* Modern Indigo */
  --primary-hover: #4338CA;     /* Darker Indigo Hover */
  --teal-soft: #ECEBFF;         /* Soft Indigo Overlay */
  --accent-amber: #F59E0B;      /* Warm Star/Rating Amber */
  --border-subtle: rgba(16, 18, 28, 0.08);
  --glass-bg: rgba(246, 247, 251, 0.82);
  --shadow-sm: 0 4px 14px rgba(30, 27, 75, 0.05);
  --shadow-md: 0 16px 40px rgba(30, 27, 75, 0.09);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-height: 72px;
  --max-width: 1240px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-canvas: #0B0E17;          /* Deep Indigo Charcoal */
  --bg-surface: #151A2B;         /* Dark Slate Surface */
  --bg-subtle: #222842;          /* Lighter Dark Layer */
  --text-main: #F3F4FA;          /* Soft White Text */
  --text-muted: #9098B8;         /* Gray-Indigo Muted Text */
  --primary-teal: #818CF8;       /* Bright Indigo */
  --primary-hover: #A5B4FC;
  --teal-soft: rgba(129, 140, 248, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(11, 14, 23, 0.85);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-teal);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Containers */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-teal);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-hover));
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 900;
  transition: var(--transition-smooth);
  background: transparent;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-teal);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.brand-text span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Compact Language Switcher */
.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: var(--transition-smooth);
}

.lang-opt {
  opacity: 0.6;
}

.lang-opt.active {
  opacity: 1;
  color: var(--primary-teal);
}

.lang-divider {
  opacity: 0.4;
}

/* Theme Icon Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

.theme-toggle-btn:hover {
  background: var(--border-subtle);
}

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, var(--teal-soft) 0%, transparent 40%);
  position: relative;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  background-color: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.4; transform: scale(1); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.highlight-text {
  color: var(--primary-teal);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust-compact .stars {
  color: var(--accent-amber);
  letter-spacing: 2px;
}

/* Hero Visual Composition */
.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 540px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.visual-frame:hover .hero-img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 1.5rem;
}

.hero-badge strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.hero-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HORIZONTAL TRUST STRIP
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 24px 0;
}

.strip-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strip-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.strip-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.strip-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   SERVICES SECTION (Editorial Layout)
   ========================================================================== */

.services-section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 48px;
}

.editorial-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
}

/* Featured Large Service Card */
.featured-service {
  padding: 0;
  overflow: hidden;
}

.featured-service .service-img-wrapper {
  height: 240px;
  width: 100%;
  overflow: hidden;
}

.featured-service .service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-service:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.featured-service .service-content {
  padding: 32px;
}

.service-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-teal);
  background-color: var(--teal-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-icon-box {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-teal);
  margin-top: auto;
}

.service-link-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link-btn svg {
  transform: translateX(4px);
}

.secondary-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ==========================================================================
   PET COMPANIONS SECTION
   ========================================================================== */

.pets-section {
  padding: 60px 0 100px;
  background-color: var(--bg-subtle);
}

.pets-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pet-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
}

.pet-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pet-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 25, 39, 0.85) 0%, rgba(17, 25, 39, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}

.pet-tile-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pet-tile-overlay p {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.pet-tile:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   CLINIC GALLERY SECTION
   ========================================================================== */

.clinic-gallery-section {
  padding: 80px 0;
}

.clinic-gallery {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .clinic-gallery {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WHY CHOOSE US (EDITORIAL SPLIT)
   ========================================================================== */

.why-us-section {
  padding: 100px 0;
}

.why-us-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.why-us-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 520px;
}

.why-us-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-rows {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.row-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.row-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.row-num {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.row-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.row-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT & HOW IT WORKS
   ========================================================================== */

.about-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-editorial {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.6;
}

.about-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.about-cta-wrapper {
  margin-top: 24px;
}

.clinic-address-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  border-radius: var(--radius-md);
}

.card-header-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.clinic-address-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.clinic-address-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-contact-line {
  font-weight: 600;
  color: var(--primary-teal);
}

/* Timeline */
.how-it-works-section {
  padding: 100px 0;
}

.horizontal-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 48px;
}

.timeline-step {
  flex: 1;
  max-width: 280px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-teal);
  opacity: 0.4;
  margin-bottom: 12px;
}

.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-line {
  flex: 0.4;
  height: 1px;
  background-color: var(--border-subtle);
  margin-top: 28px;
}

/* ==========================================================================
   REVIEWS & CONTACT
   ========================================================================== */

.reviews-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
}

.reviews-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.big-score {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 8px;
}

.rating-stars {
  color: var(--accent-amber);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.rating-label {
  font-weight: 700;
  font-size: 1rem;
}

.rating-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.carousel-track {
  position: relative;
  min-height: 140px;
}

.review-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.review-slide.active {
  display: block;
  opacity: 1;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-teal);
  opacity: 0.3;
  line-height: 0.8;
  margin-bottom: 8px;
}

.review-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 16px;
}

.review-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-teal);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  border-color: var(--primary-teal);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
  background-color: var(--primary-teal);
  width: 20px;
  border-radius: 4px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-item .icon {
  font-size: 1.5rem;
}

.info-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-teal);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 800;
  transition: var(--transition-smooth);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.floating-wa-label {
  position: absolute;
  right: 64px;
  background: var(--text-main);
  color: var(--bg-canvas);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-whatsapp:hover .floating-wa-label {
  opacity: 1;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

/* Mobile Quick Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  z-index: 850;
  grid-template-columns: 1fr 1fr 1.2fr;
}

.bar-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-main);
}

.bar-icon {
  font-size: 1.1rem;
}

.bar-cta {
  background-color: var(--primary-teal);
  color: #FFFFFF;
}

/* ==========================================================================
   MODAL INTERFACE
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.modal-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Step Progress Dots */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-dot.active {
  background-color: var(--primary-teal);
  color: #FFFFFF;
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--bg-subtle);
  margin: 0 8px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 890;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .editorial-services-grid {
    grid-template-columns: 1fr;
  }
  .secondary-services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pets-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .desktop-cta {
    display: none;
  }
  .mobile-hamburger {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    order: 2;
  }
  .visual-frame {
    height: 380px;
  }
  .why-us-split, .about-editorial, .reviews-wrapper, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .horizontal-timeline {
    flex-direction: column;
    gap: 32px;
  }
  .timeline-line {
    width: 100%;
    height: 1px;
    margin-top: 0;
  }
  .mobile-bottom-bar {
    display: grid;
  }
  .floating-whatsapp {
    bottom: 76px;
    right: 16px;
  }
  .site-footer {
    padding-bottom: 90px;
  }
}

@media (max-width: 480px) {
  .secondary-services-grid, .pets-gallery {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ==========================================================================\n   ROYAL PET CLINIC V2 — PREMIUM UX LAYER\n   ========================================================================== */
:root {
  --primary-teal: #176b5c;
  --primary-hover: #0f5448;
  --teal-soft: #e5f4ef;
  --accent-amber: #f59e0b;
  --pet-coral: #ef8f72;
  --shadow-lg: 0 28px 80px rgba(22, 70, 61, .14);
}
[data-theme="dark"] {
  --primary-teal: #59c7b2;
  --primary-hover: #86decf;
  --teal-soft: rgba(89,199,178,.12);
  --pet-coral: #ffab91;
  --shadow-lg: 0 28px 80px rgba(0,0,0,.42);
}

body.modal-open { overflow: hidden; }

.btn-primary { box-shadow: 0 10px 24px rgba(23,107,92,.20); border-radius: 14px; }
.btn-secondary { border-radius: 14px; }
.btn-primary:focus-visible, .btn-secondary:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23,107,92,.25); outline-offset: 3px; }

.site-header.scrolled { background: color-mix(in srgb, var(--bg-canvas) 88%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.06); }

.hero-section { overflow: hidden; min-height: 720px; background:
  radial-gradient(circle at 84% 20%, var(--teal-soft) 0, transparent 34%),
  radial-gradient(circle at 12% 85%, rgba(239,143,114,.09) 0, transparent 28%); }
.hero-section::before, .hero-section::after { content:""; position:absolute; border-radius:50%; pointer-events:none; filter:blur(2px); }
.hero-section::before { width:260px; height:260px; right:-100px; top:120px; border:1px solid rgba(23,107,92,.12); }
.hero-section::after { width:140px; height:140px; left:-50px; bottom:40px; border:1px solid rgba(239,143,114,.18); }
.hero-content { position:relative; z-index:2; }
.hero-proof-row { display:flex; flex-wrap:wrap; gap:18px; margin-top:18px; color:var(--text-muted); font-size:.8rem; font-weight:600; }
.hero-proof-row b { color:var(--primary-teal); margin-right:4px; }
.visual-frame { box-shadow: var(--shadow-lg); border:1px solid rgba(255,255,255,.55); }
.visual-frame::after { content:""; position:absolute; inset:12px; border:1px solid rgba(255,255,255,.28); border-radius:inherit; pointer-events:none; }
.hero-float-card { position:absolute; z-index:4; display:flex; align-items:center; gap:10px; padding:11px 14px; background:color-mix(in srgb, var(--bg-surface) 92%, transparent); border:1px solid var(--border-subtle); box-shadow:var(--shadow-md); backdrop-filter:blur(12px); border-radius:16px; animation:floatCard 5s ease-in-out infinite; }
.hero-float-card strong { display:block; font-size:.78rem; line-height:1.2; }
.hero-float-card small { display:block; color:var(--text-muted); font-size:.66rem; margin-top:2px; }
.float-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:var(--teal-soft); color:var(--primary-teal); font-weight:800; }
.hero-float-rating { top:54px; left:-34px; }
.hero-float-home { right:-30px; bottom:54px; animation-delay:-2.2s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* Interactive care finder */
.care-finder-section { padding:92px 0 20px; }
.care-finder { position:relative; overflow:hidden; padding:44px; border-radius:32px; background:linear-gradient(135deg,var(--bg-surface),color-mix(in srgb,var(--teal-soft) 55%,var(--bg-surface))); border:1px solid var(--border-subtle); box-shadow:var(--shadow-sm); }
.care-finder::before { content:""; position:absolute; width:220px; height:220px; right:-90px; top:-90px; border-radius:50%; border:1px solid rgba(23,107,92,.13); }
.care-finder-copy { max-width:720px; position:relative; z-index:1; }
.care-finder-copy p { color:var(--text-muted); max-width:680px; margin-top:-5px; }
.pet-choice-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:28px; position:relative; z-index:1; }
.pet-choice { text-align:left; padding:18px; border:1px solid var(--border-subtle); background:var(--bg-canvas); border-radius:18px; color:var(--text-main); transition:var(--transition-smooth); }
.pet-choice span { font-size:1.7rem; display:block; margin-bottom:10px; }
.pet-choice b { display:block; font-size:.95rem; }
.pet-choice small { display:block; color:var(--text-muted); margin-top:4px; font-size:.7rem; }
.pet-choice:hover, .pet-choice.active { transform:translateY(-3px); border-color:var(--primary-teal); box-shadow:0 12px 26px rgba(23,107,92,.10); background:var(--bg-surface); }
.pet-choice.active { box-shadow:0 0 0 2px rgba(23,107,92,.10),0 12px 26px rgba(23,107,92,.10); }
.care-result { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; padding:18px; border-radius:20px; background:var(--bg-surface); border:1px solid var(--border-subtle); position:relative; z-index:1; }
.result-kicker { color:var(--primary-teal); text-transform:uppercase; letter-spacing:.08em; font-size:.65rem; font-weight:800; }
.care-result h3 { font-family:var(--font-heading); font-size:1.05rem; margin-top:3px; }
.result-tags { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; }
.result-tags span { padding:6px 9px; background:var(--teal-soft); color:var(--primary-teal); border-radius:999px; font-size:.68rem; font-weight:700; }

/* Doctor */
.doctor-section { padding:100px 0 30px; }
.doctor-card { display:grid; grid-template-columns:.78fr 1.22fr; gap:56px; align-items:center; padding:28px; border-radius:32px; background:var(--bg-surface); border:1px solid var(--border-subtle); box-shadow:var(--shadow-md); }
.doctor-image-wrap { position:relative; min-height:430px; overflow:hidden; border-radius:24px; background:var(--bg-subtle); }
.doctor-image-wrap img { width:100%; height:100%; min-height:430px; object-fit:cover; }
.doctor-verified { position:absolute; left:18px; bottom:18px; display:inline-flex; gap:6px; align-items:center; padding:9px 12px; border-radius:999px; background:var(--bg-surface); color:var(--primary-teal); font-weight:700; font-size:.72rem; box-shadow:var(--shadow-sm); }
.doctor-copy > p:not(.doctor-role) { color:var(--text-muted); max-width:640px; }
.doctor-role { color:var(--primary-teal); font-weight:700; margin:-8px 0 16px; }
.doctor-points { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0 28px; color:var(--text-muted); font-size:.8rem; font-weight:600; }
.doctor-points span::first-letter { color:var(--primary-teal); }

/* Tools */
.tools-section { padding:100px 0 30px; }
.tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tool-card { padding:26px; border-radius:24px; background:var(--bg-surface); border:1px solid var(--border-subtle); transition:var(--transition-smooth); }
.tool-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.tool-card-highlight { background:linear-gradient(145deg,var(--teal-soft),var(--bg-surface)); }
.tool-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--bg-subtle); font-size:1.25rem; margin-bottom:18px; }
.tool-card h3 { font-family:var(--font-heading); font-size:1.08rem; margin-bottom:8px; }
.tool-card p { color:var(--text-muted); font-size:.8rem; line-height:1.65; min-height:76px; }
.tool-inline { display:flex; gap:8px; margin-top:16px; }
.tool-inline input { min-width:0; flex:1; padding:10px 12px; border-radius:12px; border:1px solid var(--border-subtle); background:var(--bg-canvas); color:var(--text-main); font:inherit; font-size:.75rem; }
.tool-status { display:block; min-height:18px; color:var(--primary-teal); margin-top:8px; font-size:.68rem; font-weight:700; }
.visit-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0; }
.visit-option { padding:11px 10px; border:1px solid var(--border-subtle); border-radius:12px; background:var(--bg-canvas); color:var(--text-main); font-size:.73rem; font-weight:700; transition:var(--transition-smooth); }
.visit-option:hover, .visit-option.selected { border-color:var(--primary-teal); background:var(--teal-soft); color:var(--primary-teal); }

/* Contact status/map */
.clinic-status { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:14px; background:var(--bg-canvas); margin-bottom:14px; }
.status-dot { width:9px; height:9px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.12); }
.status-dot.closed { background:#94a3b8; box-shadow:0 0 0 5px rgba(148,163,184,.12); }
.clinic-status strong, .clinic-status small { display:block; }
.clinic-status strong { font-size:.72rem; }
.clinic-status small { color:var(--text-muted); font-size:.68rem; margin-top:1px; }
.map-placeholder { min-height:135px; margin-bottom:24px; padding:20px; border-radius:18px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:linear-gradient(135deg,#dff0ea,#edf4f1); color:#143d35; position:relative; overflow:hidden; }
[data-theme="dark"] .map-placeholder { background:linear-gradient(135deg,#17352f,#1a2926); color:var(--text-main); }
.map-placeholder::after { content:""; position:absolute; width:160px; height:160px; border-radius:50%; right:-45px; top:-70px; border:1px dashed rgba(23,107,92,.25); }
.map-pin { font-size:1.5rem; }
.map-placeholder strong, .map-placeholder span { display:block; }
.map-placeholder span { font-size:.68rem; opacity:.75; margin-top:3px; }
.map-link { margin-left:auto; position:relative; z-index:1; font-size:.72rem; font-weight:800; color:var(--primary-teal); }

/* Gallery lightbox */
.gallery-clickable { cursor:zoom-in; }
.gallery-lightbox { position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; padding:40px; background:rgba(5,12,15,.88); opacity:0; pointer-events:none; transition:opacity .25s ease; }
.gallery-lightbox.active { opacity:1; pointer-events:auto; }
.gallery-lightbox img { max-width:min(1000px,92vw); max-height:82vh; width:auto; height:auto; border-radius:20px; box-shadow:0 30px 90px rgba(0,0,0,.45); }
.lightbox-close { position:absolute; top:20px; right:24px; width:44px; height:44px; border-radius:50%; color:#fff; background:rgba(255,255,255,.12); font-size:1.8rem; z-index:2; }
.lightbox-caption { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); color:#fff; font-size:.8rem; font-weight:700; background:rgba(0,0,0,.35); padding:7px 12px; border-radius:999px; }

/* Softer section rhythm */
.services-section, .pets-section, .clinic-gallery-section, .why-us-section, .about-section, .how-it-works-section, .reviews-section, .contact-section { position:relative; }
.section-header { max-width:780px; }
.service-card, .pet-tile, .contact-card, .review-slide { transition:transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease; }
.service-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(23,107,92,.18); }
.pet-tile:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }

@media (max-width: 1024px) {
  .hero-float-rating { left:-10px; }
  .hero-float-home { right:-8px; }
  .doctor-card { grid-template-columns:1fr 1fr; gap:32px; }
  .tools-grid { grid-template-columns:1fr 1fr; }
  .tools-grid .tool-card:last-child { grid-column:1/-1; }
}
@media (max-width: 768px) {
  .hero-section { min-height:auto; }
  .hero-proof-row { gap:10px 14px; }
  .hero-float-rating { left:10px; top:18px; }
  .hero-float-home { right:10px; bottom:18px; }
  .care-finder { padding:28px 20px; border-radius:24px; }
  .pet-choice-grid { grid-template-columns:1fr 1fr; }
  .care-result { align-items:flex-start; flex-direction:column; }
  .result-tags { justify-content:flex-start; }
  .doctor-card { grid-template-columns:1fr; padding:18px; border-radius:24px; }
  .doctor-image-wrap, .doctor-image-wrap img { min-height:330px; }
  .doctor-points { grid-template-columns:1fr; }
  .tools-grid { grid-template-columns:1fr; }
  .tools-grid .tool-card:last-child { grid-column:auto; }
  .tools-section, .doctor-section { padding-top:72px; }
  .map-link { margin-left:0; width:100%; }
  .gallery-lightbox { padding:20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size:2.55rem; }
  .hero-float-card { padding:8px 10px; }
  .hero-float-card small { display:none; }
  .pet-choice-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .pet-choice { padding:14px; }
  .pet-choice span { font-size:1.35rem; margin-bottom:6px; }
  .care-result { padding:15px; }
  .tool-card { padding:20px; }
  .visit-options { grid-template-columns:1fr; }
}

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

/* Real clinic photo / Google Maps block */
.clinic-real-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch}
.clinic-real-photo{position:relative;min-height:460px;overflow:hidden;border-radius:28px;background:var(--bg-subtle);box-shadow:var(--shadow-md);cursor:zoom-in}
.clinic-real-photo img{width:100%;height:100%;min-height:460px;object-fit:cover;object-position:center 38%;display:block;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.clinic-real-photo:hover img{transform:scale(1.025)}
.clinic-real-caption{position:absolute;left:18px;right:18px;bottom:18px;display:flex;flex-direction:column;gap:4px;padding:15px 17px;border-radius:18px;background:rgba(8,20,23,.78);backdrop-filter:blur(12px);color:#fff}
.clinic-real-caption strong{font-size:.95rem}.clinic-real-caption span{font-size:.76rem;opacity:.82}
.clinic-map-card{display:flex;flex-direction:column;justify-content:center;gap:18px;padding:34px;border-radius:28px;background:linear-gradient(145deg,var(--bg-surface),var(--bg-subtle));border:1px solid var(--border-subtle);box-shadow:var(--shadow-md);color:inherit;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.clinic-map-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:rgba(23,107,92,.35)}
.map-card-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:rgba(23,107,92,.12);color:var(--primary-teal);font-size:1.8rem}
.clinic-map-card h3{font-family:'Space Grotesk',sans-serif;font-size:1.5rem;line-height:1.15;margin:8px 0 10px}.clinic-map-card p,.clinic-real-note p{color:var(--text-muted);font-size:.84rem;line-height:1.7;margin:0}.map-card-link{display:inline-block;margin-top:12px;color:var(--primary-teal);font-size:.78rem;font-weight:800}
.clinic-real-note{grid-column:1/-1;padding:24px 26px;border-radius:22px;background:var(--bg-surface);border:1px solid var(--border-subtle)}
.real-badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(23,107,92,.1);color:var(--primary-teal);font-size:.65rem;font-weight:800;letter-spacing:.08em}.clinic-real-note h3{font-family:'Space Grotesk',sans-serif;margin:10px 0 7px;font-size:1.05rem}
@media(max-width:760px){.clinic-real-grid{grid-template-columns:1fr}.clinic-real-photo,.clinic-real-photo img{min-height:390px}.clinic-real-note{grid-column:auto}.clinic-map-card{padding:26px}}


/* ==========================================================================
   REAL CLINIC PHOTO CAROUSEL
   ========================================================================== */
.section-lead{max-width:720px;margin:12px auto 0;color:var(--text-muted);font-size:.9rem;line-height:1.7}
.clinic-photo-carousel{position:relative;margin-top:28px}
.clinic-photo-viewport{position:relative;overflow:hidden;border-radius:30px;background:#101718;box-shadow:var(--shadow-lg);border:1px solid var(--border-subtle)}
.clinic-photo-track{position:relative;min-height:clamp(360px,58vw,650px)}
.clinic-photo-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transform:scale(1.025);transition:opacity .55s ease,transform .7s cubic-bezier(.16,1,.3,1),visibility .55s}
.clinic-photo-slide.active{opacity:1;visibility:visible;transform:scale(1)}
.clinic-photo-slide img{width:100%;height:100%;min-height:clamp(360px,58vw,650px);display:block;object-fit:cover;object-position:center}
.clinic-photo-slide::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.72));pointer-events:none}
.clinic-photo-slide figcaption{position:absolute;left:28px;right:28px;bottom:28px;z-index:2;display:flex;flex-direction:column;gap:5px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.clinic-photo-slide figcaption strong{font-family:'Space Grotesk',sans-serif;font-size:clamp(1.2rem,2.5vw,1.8rem);letter-spacing:-.02em}
.clinic-photo-slide figcaption span{font-size:.82rem;opacity:.9}
.clinic-carousel-btn{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:48px;height:48px;border:1px solid rgba(255,255,255,.32);border-radius:50%;background:rgba(8,20,23,.56);backdrop-filter:blur(12px);color:#fff;font-size:2rem;line-height:1;display:grid;place-items:center;cursor:pointer;transition:transform .2s ease,background .2s ease}
.clinic-carousel-btn:hover{background:rgba(8,20,23,.8);transform:translateY(-50%) scale(1.06)}
.clinic-carousel-btn.prev{left:18px}.clinic-carousel-btn.next{right:18px}
.clinic-carousel-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px}
.clinic-carousel-dots{display:flex;align-items:center;gap:7px}
.clinic-dot{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:var(--border-strong);cursor:pointer;transition:width .25s ease,background .25s ease}
.clinic-dot.active{width:28px;background:var(--primary-teal)}
.clinic-maps-link{font-size:.78rem;font-weight:800;color:var(--primary-teal);text-decoration:none}
.clinic-maps-link:hover{text-decoration:underline}

/* Active section underline — desktop + mobile */
.nav-link.active{color:var(--primary-teal)}
.nav-link.active::after{width:100%!important}
.mobile-nav-link.active{color:var(--primary-teal);font-weight:800}
.mobile-nav-link.active::before{transform:scaleY(1)!important}

/* Prevent a carousel from being hidden behind the sticky mobile action bar. */
@media(max-width:768px){
  .clinic-photo-viewport,.clinic-photo-track,.clinic-photo-slide img{min-height:360px}
  .clinic-photo-slide img{object-position:center}
  .clinic-photo-slide figcaption{left:20px;right:20px;bottom:20px}
  .clinic-carousel-btn{width:42px;height:42px;font-size:1.7rem}
  .clinic-carousel-btn.prev{left:12px}.clinic-carousel-btn.next{right:12px}
  .clinic-carousel-bottom{align-items:flex-start;flex-direction:column}
  .clinic-maps-link{font-size:.75rem}
}
