/* Dr Sonal Shah Cosmetica India — Premium skin & hair clinic
   Teal accent, white space, 1–2 CTAs per section */

:root {
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0f766e;
  --gold: #cca43b; /* Elegant gold accent */
  --header-bg: #101F33;
  --bg: #fafafa;
  --bg-section: #f8f9fa; /* Slightly warmer/cleaner section bg */
  --white: #ffffff;
  --text: #2d3748; /* Softer dark text */
  --text-muted: #718096;
  --radius: 8px; /* Slightly sharper radius for elegance */
  --radius-btn: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Softer shadow */
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.5s; /* Slower, more deliberate animations */
  --font-heading: 'Playfair Display', serif; /* Classy serif for headings */
  --font-body: 'DM Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent horizontal scroll globally */
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

/* Animations — respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes heroEntrance {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes splashLogoIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }
}

/* Splash — logo first thing on load */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s;
  touch-action: pan-y pinch-zoom; /* Allow vertical scrolling even when splash is visible */
  overflow: hidden;
  pointer-events: none; /* Don't block touch events - allow scrolling through */
}
.splash.splash--hidden {
  opacity: 0;
  pointer-events: none; /* Completely disable interaction when hidden */
  touch-action: pan-y pinch-zoom; /* Allow scrolling */
  visibility: hidden;
  z-index: -1;
}
.splash-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Don't block touch events */
}
.splash.splash--hidden .splash-inner {
  opacity: 0;
  transform: scale(1.08);
}
.splash-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: no-preference) {
  .splash-logo {
    animation: splashLogoIn 0.5s var(--ease-out) forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-inner,
  .splash.splash--hidden .splash-inner {
    transition: none;
  }
}

/* .reveal — no scroll animation; content visible by default */
.reveal,
.reveal.animate-in,
.reveal.scale-in,
.reveal.scale-in.animate-in,
.reveal.slide-in-right,
.reveal.slide-in-right.animate-in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 { /* unused now */ }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Allow natural scrolling */
  width: 100%;
  height: auto; /* Auto height for proper scrolling on mobile */
  min-height: 100vh; /* Ensure minimum viewport height */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: none; /* Firefox - hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
  position: relative;
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari - hide scrollbar */
  width: 0;
  height: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto; /* Allow natural scrolling */
  width: 100%;
  min-width: 0;
  min-height: 100vh; /* Minimum viewport height */
  height: auto; /* Allow body to expand naturally */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7; /* Increased line height for elegance */
  color: var(--text);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  position: relative;
  overscroll-behavior-y: auto; /* Allow normal scroll behavior */
  scrollbar-width: none; /* Firefox - hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari - hide scrollbar */
  width: 0;
  height: 0;
}

/* Hide vertical scrollbars on containers/sections - prevent nested scrollbars */
main::-webkit-scrollbar,
section::-webkit-scrollbar,
.container::-webkit-scrollbar,
.transformations-section::-webkit-scrollbar,
.transformations-grid::-webkit-scrollbar,
.hero::-webkit-scrollbar,
.about::-webkit-scrollbar,
.services-preview::-webkit-scrollbar,
.services-full::-webkit-scrollbar,
.testimonials::-webkit-scrollbar,
.why-choose::-webkit-scrollbar,
.appointment-cta::-webkit-scrollbar,
.clinic-info::-webkit-scrollbar,
.footer::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

main,
section,
.container,
.transformations-section,
.transformations-grid,
.hero,
.about,
.services-preview,
.services-full,
.testimonials,
.why-choose,
.appointment-cta,
.clinic-info,
.footer {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide mobile menu scrollbar too - but keep scrolling functionality */
.nav::-webkit-scrollbar {
  display: none;
  width: 0;
}

.nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Exception: testimonials-track needs horizontal scrollbar (hidden via existing CSS) */
.testimonials-track::-webkit-scrollbar {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}


a {
  color: var(--teal);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(13, 148, 136, 0.2);
}

a:hover {
  color: var(--teal-dark);
}

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

main {
  overflow-x: hidden;
  overflow-y: visible;
  min-width: 0;
  position: relative;
  width: 100%;
  min-height: auto;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Inner page hero (About, Services, Contact) */
.page-hero {
  background: var(--bg);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding var(--transition);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.page-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.page-hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Transformations — before/after */
.page-hero--transformations {
  padding: 2.75rem 0 2.25rem;
  text-align: center;
}
.page-hero--transformations .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero-title--transformations {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5rem;
  text-align: center;
}
.page-hero-subtitle--transformations {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin: 0;
  text-align: center;
  max-width: 60ch;
}
.transformations-section {
  padding: 2.5rem 0 3rem;
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  min-height: auto;
}
.transformations-intro {
  margin: 0 auto 2rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  max-width: 60ch;
  text-align: center;
}
.transformations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}
.transformation-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.transformation-card:hover {
  box-shadow: var(--shadow-lg);
}
/* Composite before/after (single image per card) */
.transformation-card--composite .transformation-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}
.transformation-composite-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  background: var(--bg-section);
}
.transformation-card--composite .transformation-caption {
  flex: 1;
  padding: 1.15rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.transformation-caption-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.btn--transformations {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
}
/* Split before/after (two images) — kept for future use */
.before-after-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.before-after-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.before-after-label {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-section);
  text-align: center;
}
.before-after-col:last-child .before-after-label {
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal-dark);
}
.before-after-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.transformation-caption {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.transformations-cta {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  margin-top: 0.5rem;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

/* Header — Sticky, same navy as logo */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border for dark header */
  touch-action: pan-y;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Hidden checkbox for mobile menu (label toggles it); never visible */
.menu-toggle-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
  margin: 0 1rem 0 0;
  order: -1;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 320px;
  min-height: 56px;
  object-fit: contain;
}

/* Fallback if no logo image */
.logo-icon {
  width: 32px;
  height: 24px;
  background: var(--teal);
  border-radius: 4px;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transform: translateY(-50%);
  box-shadow: 0 -4px 0 var(--white), 0 4px 0 var(--white);
}

/* Nav — tab style on dark header */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem;
  border-radius: var(--radius-btn);
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.2rem;
  margin: 0 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--white);
  background: transparent;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.nav-link--current::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--gold);
}

.nav-list a:focus-visible {
  outline: none;
}

.nav-list a.nav-link--current {
  color: var(--white);
  background: transparent;
}

/* Desktop: hide More, show Reviews & Services as tabs */
.nav-more-wrap {
  display: none;
}

.nav-item-desk {
  display: list-item;
}

.header-cta {
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white);
}

.header-cta:hover {
  background: var(--teal-light);
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
}

/* Hamburger animation when menu is open */
.menu-toggle-cb:checked ~ .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-cb:checked ~ .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-cb:checked ~ .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg);
  padding: 4rem 0 5rem;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.hero-bg-shape {
  position: absolute;
  right: -15%;
  top: -20%;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  min-width: 0;
}

.hero-content {
  max-width: 520px;
  min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: heroEntrance 0.6s var(--ease-out) forwards;
  }
  .hero-image-wrap {
    opacity: 0;
    animation: heroEntrance 0.6s var(--ease-out) 0.2s forwards;
  }
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 1.25rem;
  overflow-wrap: break-word;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

/* Trust Strip */
.trust-strip {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.trust-item:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Section titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.section-title-center {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
}

/* About Doctor */
.about {
  background: var(--bg-section);
  padding: 4.5rem 0;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}

.about-image-wrap {
  position: sticky;
  top: 6rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-image-link {
  display: block;
  line-height: 0;
  transition: opacity var(--transition);
}

.about-image-link:hover {
  opacity: 0.97;
}

.about-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius);
  filter: brightness(1.02) contrast(1.03);
}

.about-content .section-title {
  margin-top: 0;
}

.about-role {
  font-size: 0.95rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.about-intro {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-expertise-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.about-closing {
  margin-top: 1rem;
}

.about-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Services Preview — 4 cards */
.services-preview {
  padding: 4.5rem 0 2rem 0;
  background: var(--white);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.service-card {
  background: var(--bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  min-width: 0;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

@keyframes pulse-subtle {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.btn-pulse {
  animation: pulse-subtle 3s infinite;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  transition: transform var(--transition), background var(--transition);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(3deg);
  background: var(--teal-dark);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}

.service-link:hover {
  text-decoration: underline;
}

/* Why Choose */
.why-choose {
  background: var(--bg);
  padding: 2rem 0 1.5rem 0;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.why-choose-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.why-choose-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.why-choose-img:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.why-choose-cta {
  display: inline-block;
  margin-top: 1.25rem;
}

/* Legacy why-inner / why-list (e.g. other pages) */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-width: 0;
}

.why-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.why-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.why-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.why-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
}

.why-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.08) 100%);
  background-size: cover;
  background-position: center;
}

/* Full Services */
.services-full {
  padding: 4.5rem 0;
  background: var(--white);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.services-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.services-group-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
}

.services-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-detail-list li {
  margin-bottom: 1.5rem;
}

.services-detail-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.services-detail-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.services-full--page {
  padding: 3rem 0 4rem;
}

/* Services accordion (4 categories, expand/collapse) */
.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow-x: hidden;
}

.services-accordion-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.services-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: var(--bg-section);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
  min-width: 0;
}

.services-accordion-header:hover {
  background: rgba(13, 148, 136, 0.08);
}

.services-accordion-header:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.services-accordion-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.services-accordion-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--teal);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.services-accordion-card.is-open .services-accordion-icon {
  transform: rotate(-135deg);
}

.services-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.services-accordion-panel-inner {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.services-accordion-sub {
  margin-bottom: 1.5rem;
}

.services-accordion-sub:last-child {
  margin-bottom: 0;
}

.services-accordion-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin: 0 0 0.75rem;
}

.services-accordion-treatments {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.services-accordion-treatment {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.services-accordion-treatment:last-child {
  border-bottom: none;
}

.services-accordion-treatment strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.services-accordion-treatment p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.services-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.about--page .about-image-wrap {
  position: static;
}

/* Testimonials */
.testimonials {
  background: var(--bg-section);
  padding: 4rem 0;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  margin: 0;
  padding: 2rem 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.testimonial-card footer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 148, 136, 0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--teal);
}

/* Appointment CTA */
.appointment-cta {
  padding: 1.5rem 0 4rem 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.appointment-cta-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.appointment-cta .section-title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.appointment-cta-text {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* Booking form */
.booking-form {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Highlight Request Appointment button */
.booking-form .btn-submit {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 1.1rem 2rem !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45) !important;
  border: 2px solid var(--teal-dark) !important;
}

.booking-form .btn-submit:hover {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.6) !important;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form select {
  -webkit-appearance: menulist;
  appearance: menulist;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.booking-form input:focus-visible,
.booking-form select:focus-visible,
.booking-form textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row-half {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}

.form-row-half:first-of-type {
  margin-right: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status--success {
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal-dark);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.form-status--error {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.form-status--error a {
  color: #0d9488;
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 1rem 2rem !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4) !important;
  transition: all var(--transition) !important;
  border: none !important;
  min-height: 52px !important;
}

.btn-submit:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.5) !important;
}

.btn-submit:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4) !important;
}

.btn-submit:focus-visible {
  outline: 3px solid var(--teal-light) !important;
  outline-offset: 2px !important;
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none !important;
}

.form-or {
  margin: 1rem 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.appointment-cta .btn-whatsapp {
  margin-top: 0;
}

.appointment-cta .btn-primary {
  background: var(--white);
  color: var(--teal);
}

.appointment-cta .btn-primary:hover {
  background: var(--bg);
  color: var(--teal-dark);
}

.appointment-cta--compact .appointment-cta-inner {
  max-width: 480px;
}

.appointment-cta--compact .btn-whatsapp {
  margin-top: 0.75rem;
}

/* Cancel section: visible alternate contact line */
.cancel-alt-contact {
  color: var(--text);
  font-weight: 500;
}
.cancel-alt-contact a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cancel-alt-contact a.link-whatsapp {
  color: #25d366;
}
.cancel-alt-contact a.link-phone {
  color: #25d366; /* Green like WhatsApp */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cancel-alt-contact a:hover {
  opacity: 0.9;
}

/* Reviews page */
.reviews-leave {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.reviews-leave-inner {
  max-width: 520px;
  margin: 0 auto;
}

.reviews-google-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.reviews-or {
  margin: 1.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.review-form {
  margin-top: 1rem;
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.review-form .form-row {
  margin-bottom: 1rem;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
}

.review-form select {
  -webkit-appearance: menulist;
  appearance: menulist;
}

.review-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.review-form .btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.reviews-display {
  padding: 3rem 0 4rem;
  background: var(--bg-section);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  margin: 0;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.review-stars {
  color: #eab308;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-style: italic;
}

.review-footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.reviews-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* Clinic Info */
.clinic-info {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.clinic-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  min-width: 0;
}

.clinic-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.clinic-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  overflow-wrap: break-word;
}

.clinic-block a {
  color: var(--teal);
  font-weight: 500;
}

.link-map {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 0 0;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  min-width: 0;
}

.footer-brand .logo {
  color: var(--white);
}

.logo-img--footer {
  height: 40px;
  filter: brightness(1.08);
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-contact {
  width: 100%;
}

.footer-contact p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact a:hover {
  color: var(--teal-light);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--teal-light);
  transform: scale(1.1);
}

.footer-social a:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-contact .footer-phone-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-contact .footer-wa-icon {
  display: inline-flex;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact .footer-wa-icon:hover {
  color: #25d366;
}

.footer-contact .footer-wa-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding: 1.25rem 1.5rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-logo {
    max-width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  .about-content {
    text-align: left;
  }

  .about-image-wrap {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .about-image {
    max-height: 420px;
  }

  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-full-grid {
    grid-template-columns: 1fr;
  }

  .clinic-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }


  /* Mobile: hamburger menu on right side */
  .header-inner {
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: flex !important;
    order: 3;
    margin-left: auto;
    z-index: 10001;
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    user-select: none;
    -webkit-user-select: none;
  }
  
  .menu-toggle:hover {
    opacity: 0.9;
  }
  
  .menu-toggle:active {
    opacity: 0.7;
  }

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

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--header-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    padding: 4rem 1.5rem 2rem;
    padding-top: calc(4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: transform;
  }
  
  .nav::-webkit-scrollbar {
    display: none;
    width: 0;
  }

  #menu-toggle-cb:checked ~ .nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Ensure nav and its children are clickable when open */
  #menu-toggle-cb:checked ~ .nav * {
    pointer-events: auto;
  }
  
  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list {
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
  }
  
  .nav-list li {
    pointer-events: auto !important;
  }

  .nav-list a {
    display: block !important;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--radius);
    text-align: left;
    transition: background var(--transition), color var(--transition);
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10002 !important;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .nav-list a:active,
  .nav-list a:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
  }

  .nav-list a:hover,
  .nav-list a.nav-link--current {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
  }

  .nav-list a.nav-link--current {
    background: var(--teal);
    color: var(--white);
  }

  .nav-list a::after {
    display: none;
  }

  /* Hide "More" dropdown wrapper, show its items directly */
  .nav-more-wrap {
    display: none;
  }
  
  .nav-more-menu {
    display: none;
  }

  /* Show all desktop nav items in mobile menu */
  .nav-item-desk {
    display: list-item !important;
  }
  
  /* Ensure all nav items are visible */
  .nav-list > li {
    display: list-item;
  }

  .header-cta {
    display: none;
  }

  /* Overlay backdrop when menu is open - click to close */
  .nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
  }

  #menu-toggle-cb:checked ~ .nav::before {
    opacity: 1;
    pointer-events: auto;
    z-index: 9999;
  }
  
  /* Ensure nav content is above overlay */
  .nav > * {
    position: relative;
    z-index: 10001;
  }
}

@media (max-width: 768px) {
  /* Nav/hamburger styles live in 992px block; layout and alignment for mobile */
  
  /* Mobile scrolling fixes - ensure vertical scroll works */
  html {
    height: auto !important; /* Auto height - critical for mobile scrolling */
    min-height: 100vh !important; /* Minimum viewport height */
    overflow-y: scroll !important; /* Force scroll (not auto) for better mobile support */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    position: relative !important;
  }
  
  html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: scroll !important; /* Force scroll (not auto) for better mobile support */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    position: relative !important;
    overscroll-behavior-y: auto !important; /* Allow normal scroll behavior */
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
  }
  
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
  
  /* Ensure all scrollable containers work smoothly - NO nested scrollbars */
  main {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
    max-height: none !important;
    display: block !important;
    position: relative !important;
  }
  
  /* Ensure all sections allow scrolling - NO nested scrollbars */
  section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
    min-height: auto !important;
  }
  
  /* Hide any nested scrollbars - only html/body should scroll */
  main::-webkit-scrollbar,
  section::-webkit-scrollbar,
  .container::-webkit-scrollbar,
  .transformations-section::-webkit-scrollbar,
  .transformations-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
  
  main,
  section,
  .container,
  .transformations-section,
  .transformations-grid {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  /* Hide scrollbar on mobile too - but keep scrolling */
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  html,
  body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .transformations-section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
    min-height: auto !important;
  }
  
  .transformations-grid {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
    min-height: auto !important;
  }
  
  /* Ensure page content can scroll */
  .page-hero,
  .page-hero--transformations {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-height: none !important;
  }
  
  /* CRITICAL: Ensure main content area is scrollable */
  main {
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  
  /* Ensure no fixed/absolute elements block scroll */
  .splash {
    pointer-events: none !important; /* Never block touch */
  }
  
  /* Force enable scrolling on mobile - CRITICAL */
  html, body {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: auto !important;
    will-change: scroll-position; /* Optimize for scrolling */
  }
  
  /* Prevent any element from blocking scroll */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Ensure header doesn't block */
  .header {
    position: sticky !important;
    z-index: 100 !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  
  section {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Prevent fixed elements from blocking touch */
  .header {
    touch-action: pan-y;
    position: sticky;
  }
  
  /* Fix any elements that might prevent scrolling or cause overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
  }
  
  /* Prevent horizontal scroll */
  body, html {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  /* Ensure tables and pre don't break layout */
  table {
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
  }
  
  pre {
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
  }

  .logo-img {
    height: 64px;
    max-width: 240px;
  }

  .header-inner {
    padding: 0.65rem 1rem;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    gap: 1rem;
  }

  .services-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Services accordion – mobile: tighter padding, no horizontal scroll */
  .services-accordion {
    width: 100%;
    max-width: 100%;
  }
  .services-accordion-header {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  .services-accordion-panel-inner {
    padding: 1rem;
  }
  .services-full--page {
    padding: 2rem 0 3rem;
  }

  .services-preview .section-title,
  .section-title-center {
    text-align: center;
  }

  .services-preview .section-subtitle {
    text-align: center;
  }

  .transformations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .transformations-section {
    padding: 1.5rem 0 2.5rem;
  }
  .transformations-intro {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
  }
  .page-hero-title--transformations {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
  }
  .page-hero-subtitle--transformations {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem;
    min-width: 0;
  }

  .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  .testimonials-dots .dot {
    padding: 14px;
    margin: -14px 2px;
  }

  /* Hero — centered, no overflow */
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-title {
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  /* About — image centered, text left-aligned */
  .trust-strip {
    padding: 1rem 0;
    text-align: center;
  }

  .trust-inner {
    justify-content: center;
  }

  .about {
    padding: 2.5rem 0;
  }

  .about-content {
    text-align: left;
  }

  .about-content .btn {
    display: inline-flex;
  }

  .services-preview {
    padding: 2.5rem 0 1.25rem 0;
  }

  /* Why Choose — image and CTA centered */
  .why-choose {
    padding: 1.25rem 0 1rem 0;
  }

  .why-choose-inner {
    text-align: center;
    padding: 0 0.5rem;
  }

  .why-choose-img {
    margin: 0 auto;
    width: 100%;
  }

  .why-choose-cta {
    margin-top: 1rem;
  }

  /* Appointment CTA — centered, buttons stack */
  .appointment-cta {
    padding: 1.25rem 0 2.5rem 0;
  }

  .appointment-cta-inner {
    text-align: center;
  }

  .appointment-cta-inner .btn {
    margin: 0.35rem 0;
  }

  .appointment-cta-inner .btn + .btn {
    margin-top: 0.5rem;
  }

  .clinic-info {
    padding: 2rem 0;
  }

  .page-hero {
    padding: 1.5rem 0 1.25rem;
    text-align: center;
  }

  .page-hero .container {
    max-width: 100%;
  }

  .page-hero-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-title-center {
    text-align: center;
  }

  /* Footer — reduced content and spacing on mobile */
  .footer {
    padding: 1.25rem 0 0;
    text-align: center;
  }

  .footer-inner {
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .footer-contact p {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
  }


  .footer-contact {
    text-align: center;
  }

  .footer-contact p {
    text-align: center;
    margin: 0 0 0.2rem;
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .reviews-leave,
  .reviews-display {
    padding: 2rem 0 2.5rem;
  }

  .about-content .about-intro,
  .about-list {
    margin-bottom: 0.75rem;
  }

  .container {
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 100%;
    min-width: 0;
  }

  /* Prevent horizontal overflow */
  .service-card,
  .why-list li,
  .about-list li {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Inner pages — consistent alignment */
  .services-full--page .section-title,
  .reviews-leave .section-title {
    text-align: center;
  }

  .appointment-cta .container {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - ensure everything fits */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  body {
    position: relative !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  main, section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Prevent horizontal scroll */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero-text {
    font-size: 1rem;
    text-align: center;
  }

  .trust-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Appointment CTA — full-width buttons on very small screens */
  .appointment-cta-inner .btn {
    width: 100%;
    max-width: 100%;
  }

  .appointment-cta-inner .btn-large {
    min-height: 48px;
  }

  .form-row-half {
    width: 100%;
    margin-right: 0;
  }

  .booking-form {
    padding: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .booking-form .btn-submit {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem !important;
    padding: 1rem 1.5rem !important;
  }

  .logo-img {
    height: 56px;
    max-width: 200px;
  }

  .page-hero-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .about-image-wrap {
    max-width: 100%;
  }


  .footer {
    padding: 1rem 0 0;
  }

  .footer-inner {
    gap: 0.4rem;
    padding-bottom: 0.5rem;
  }

  .footer-contact p {
    font-size: 0.85rem;
  }

  .footer-bottom {
    padding: 0.6rem 0.75rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .logo-img {
    height: 52px;
    max-width: 180px;
  }
}

/* Floating WhatsApp button — fixed bottom-right for quick enquiry */
.floating-whatsapp {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  border: none;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
