/* ============================================================
   MAGNA DENTAL CLINIC — Global Styles
   Design System: Sophisticated Green Healthcare Palette
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Primary Healthcare Green Palette */
  --green-900: #163d2e;
  --green-800: #245C48; /* Deep Green */
  --green-700: #2f735b;
  --green-600: #3F8F72; /* Primary Green */
  --green-500: #52a386;
  --green-400: #6eb99f;
  --green-300: #9cd4c0;
  --green-200: #c5e7d9;
  --green-100: #EAF5F0; /* Light Green Background */
  --green-50:  #f4faf7;

  /* Neutral Palette */
  --dark-900: #182420;
  --dark-700: #24332E; /* Main Text */
  --dark-500: #4d6158; /* Muted Text */
  --dark-400: #4d6158; /* Secondary/helper text — WCAG AA: 6.63:1 on white */
  --dark-300: #8ba096;
  --dark-100: #d1ded7;

  /* Surface */
  --bg-primary:  #FAFCFB; /* Main Background */
  --bg-surface:  #ffffff;
  --bg-muted:    #EAF5F0; /* Light Green Background */

  /* Semantic */
  --color-primary:        var(--green-600);
  --color-primary-hover:  var(--green-800);
  --color-accent:         var(--green-600);
  --color-text-heading:   var(--dark-900);
  --color-text-body:      var(--dark-700);
  --color-text-muted:     var(--dark-500);
  --color-border:         #d2e8dd;
  --color-border-light:   #e5f2eb;

  /* Typography */
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,106,74,0.08), 0 1px 2px rgba(26,106,74,0.05);
  --shadow-md:  0 4px 16px rgba(26,106,74,0.10), 0 2px 6px rgba(26,106,74,0.06);
  --shadow-lg:  0 10px 40px rgba(26,106,74,0.13), 0 4px 12px rgba(26,106,74,0.08);
  --shadow-xl:  0 20px 60px rgba(26,106,74,0.16), 0 8px 20px rgba(26,106,74,0.10);

  /* Radii */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   400ms cubic-bezier(0.4,0,0.2,1);

  /* Nav */
  --nav-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  color: var(--color-text-heading);
  line-height: 1.25;
  font-weight: 700;
}

p { color: var(--color-text-body); }

input, select, textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section-padding {
  padding-block: clamp(2.75rem, 4.5vw, 4rem);
}

.section-padding-sm {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--dark-900);
  margin-bottom: var(--space-4);
  max-width: 42ch;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  font-weight: 400;
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--green-800);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(36,92,72,0.25);
}

.btn-primary:hover {
  background: var(--green-900);
  box-shadow: 0 6px 20px rgba(36,92,72,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-white-accent {
  background: #ffffff;
  color: var(--green-800);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-weight: 700;
}

.btn-white-accent:hover {
  background: #f4faf7;
  color: var(--green-900);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}

.btn-secondary:hover {
  background: var(--green-800);
  color: #ffffff;
}

.btn-whatsapp {
  background: #1a9e4c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.30);
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #178940;
  box-shadow: 0 6px 20px rgba(37,211,102,0.40);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.60);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Transparent nav on home hero */
.nav--transparent {
  background: transparent;
}

/* Scrolled / non-home nav */
.nav--solid,
.nav--scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  backdrop-filter: blur(12px);
}

/* Ensure logo text is dark on solid nav */
.nav--solid .logo-name,
.nav--scrolled .logo-name { color: var(--green-800) !important; }
.nav--solid .logo-sub,
.nav--scrolled .logo-sub { color: var(--green-800) !important; } /* a11y: was --green-600 (3.90:1); --green-800 = 7.78:1 on white */
.nav--solid .nav-link,
.nav--scrolled .nav-link { color: var(--dark-700) !important; }
.nav--solid .nav-hamburger span,
.nav--scrolled .nav-hamburger span { background: var(--dark-900) !important; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-text .logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
  white-space: nowrap;
}

.nav-logo-text .logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav--transparent .logo-name { color: #ffffff; }
.nav--transparent .logo-sub  { color: var(--green-300); }

/* Make 3D logo pop on the dark transparent navbar with a soft teal glow */
.nav--transparent .nav-logo img {
  filter:
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 6px rgba(94, 207, 176, 0.40))
    brightness(1.05);
}

/* No filter on solid/scrolled white navbar — natural colours */
.nav--solid .nav-logo img,
.nav--scrolled .nav-logo img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark-700);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-800);
  background: var(--green-50);
}

.nav--transparent .nav-link { color: rgba(255,255,255,0.90); }
.nav--transparent .nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
.nav--transparent .nav-link.active { color: #ffffff; background: rgba(255,255,255,0.18); }

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  z-index: 1010;
  flex-shrink: 0;
}

.nav-hamburger:hover { background: var(--green-50); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-900);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav--transparent .nav-hamburger span { background: #ffffff; }

.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,36,32,0.55);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-surface);
  padding: var(--space-6);
  padding-top: calc(var(--nav-height) + var(--space-4));
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.nav-drawer.is-open { pointer-events: all; }
.nav-drawer.is-open .nav-drawer-overlay { opacity: 1; }
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.nav-drawer-link {
  display: block;
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--dark-700);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
  color: var(--green-800);
  background: var(--green-50);
}

.nav-drawer-cta { display: flex; flex-direction: column; gap: var(--space-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,0.88);
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: var(--space-6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.footer-logo-text .logo-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
}

.footer-logo-text .logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 28ch;
  color: #d4e8de;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;  /* a11y: was 38px — WCAG 2.5.5 requires 44×44px */
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.88);
  transition: all var(--transition-fast);
  font-size: var(--text-lg);
}

.footer-social-link:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Instagram — official gradient */
.footer-social-link[aria-label*="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  color: #ffffff;
}
.footer-social-link[aria-label*="Instagram"]:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
}

/* Facebook — official blue */
.footer-social-link[aria-label*="Facebook"] {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
}
.footer-social-link[aria-label*="Facebook"]:hover {
  background: #0f63d0;
  border-color: #0f63d0;
  transform: translateY(-2px);
}

/* WhatsApp — official green */
.footer-social-link[aria-label*="WhatsApp"] {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}
.footer-social-link[aria-label*="WhatsApp"]:hover {
  background: #1ab955;
  border-color: #1ab955;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.80);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link:hover { color: var(--green-300); }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(63,143,114,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-300);
}

.footer-contact-value {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.footer-contact-value a { color: inherit; }
.footer-contact-value a:hover { color: var(--green-300); }

.footer-hours-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(110,185,159,0.22);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}

.footer-hours-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green-300);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-hours-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-hours-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-hours-group + .footer-hours-group {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-hours-day {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-300);
}

.footer-hours-times {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-hours-time {
  font-size: var(--text-sm);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.footer-hours-note {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.65;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.footer-hours-closed {
  color: #f87171;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.60);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.60);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover { color: var(--green-300); }

/* ============================================================
   FLOATING QUICK ACTIONS (Mobile)
   ============================================================ */
.quick-actions {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-4);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  display: none;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  font-size: 1.35rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.quick-action-btn:hover { transform: scale(1.08); }

.quick-action-call {
  background: var(--green-800);
  color: #ffffff;
}

.quick-action-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.quick-action-map {
  background: #4285f4;
  color: #ffffff;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 55%, #1d4d3c 100%);
  padding-top: calc(var(--nav-height) + clamp(2rem, 3.5vw, 3rem));
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(63,143,114,0.10);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(63,143,114,0.06);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: var(--space-4);
}

.page-hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  font-weight: 400;
  font-family: var(--font-sans);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.breadcrumb-item { color: rgba(255,255,255,0.60); }
.breadcrumb-item.active { color: rgba(255,255,255,0.90); }
.breadcrumb-sep { color: rgba(255,255,255,0.35); font-size: var(--text-xs); }

.breadcrumb-item a:hover { color: var(--green-400); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-green {
  background: var(--green-100);
  color: var(--green-800);
}

.badge-green-dark {
  background: var(--green-800);
  color: #ffffff;
}

/* ============================================================
   CAROUSEL CONTROLS
   ============================================================ */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.carousel-arrow {
  width: 44px;  /* a11y: was 42px — WCAG 2.5.5 requires 44×44px */
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--color-border);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.carousel-arrow:hover {
  background: var(--green-800);
  color: #ffffff;
  border-color: var(--green-800);
  transform: scale(1.06);
}

.carousel-arrow:active { transform: scale(0.96); }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}

.carousel-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--dark-100);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 48px;
  min-height: 48px;
}

.carousel-dot.active {
  background: var(--green-700);
  width: 24px;
}

/* ============================================================
   STAR RATING
   ============================================================ */
.stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  font-size: var(--text-sm);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-800), var(--green-500));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   APPOINTMENT CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  padding-block: clamp(2.25rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(52,201,138,0.07);
  pointer-events: none;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-strip-text .cta-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.cta-strip-text .cta-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.70);
}

.cta-strip-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — NAVIGATION
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  .quick-actions { display: flex; }
}

/* ============================================================
   RESPONSIVE — FOOTER
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ============================================================
   RESPONSIVE — CTA STRIP
   ============================================================ */
@media (max-width: 700px) {
  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-strip-actions {
    justify-content: center;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-green { color: var(--green-800); }
.text-muted { color: var(--color-text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.d-none { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE — MOBILE FIXES (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Tighten container horizontal padding on small screens */
  .container {
    padding-inline: var(--space-4);
  }

  /* Nav logo: tighter on small screens */
  .nav-logo img {
    width: 42px;
    height: 42px;
  }

  .nav-logo-text .logo-name {
    font-size: 1.05rem;
  }

  /* Page hero: tighter vertical spacing */
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  .page-hero-title {
    font-size: clamp(var(--text-2xl), 7vw, var(--text-3xl));
  }

  .page-hero-subtitle {
    font-size: var(--text-base);
    max-width: 100%;
  }

  /* Breadcrumb: prevent overflow */
  .breadcrumb {
    font-size: var(--text-xs);
    flex-wrap: wrap;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(var(--text-xl), 6vw, var(--text-3xl));
  }

  /* CTA strip: stack on mobile */
  .cta-strip-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
  }

  .cta-strip-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .cta-strip-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Floating quick-action buttons: well-sized for mobile touch */
  .quick-actions {
    bottom: max(var(--space-5), env(safe-area-inset-bottom, 20px));
    right: var(--space-4);
    gap: var(--space-3);
  }

  .quick-action-btn {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  }

  /* Center SVG icons in quick-action buttons */
  .quick-action-whatsapp svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: block;
  }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  /* Nav logo: minimum comfortable size */
  .nav-logo img {
    width: 38px;
    height: 38px;
  }

  .nav-logo-text .logo-name {
    font-size: 0.95rem;
  }

  .nav-logo-text .logo-sub {
    font-size: 0.6rem;
  }

  /* Hero page title */
  .page-hero-title {
    font-size: clamp(var(--text-xl), 8vw, var(--text-2xl));
    word-break: break-word;
  }

  /* Floating quick actions: compact */
  .quick-actions {
    bottom: max(var(--space-4), env(safe-area-inset-bottom, 16px));
    right: var(--space-3);
    gap: var(--space-2);
  }

  .quick-action-btn {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }

  /* Section spacing */
  .section-padding {
    padding-block: clamp(2rem, 5vw, 3rem);
  }

  /* Buttons: allow wrap on very small screens */
  .btn {
    white-space: normal;
    text-align: center;
  }
}
