:root {
  --bg: #efe6da;
  --surface: #ffffff;
  --surface-strong: #f8f2eb;
  --text: #142239;
  --muted: #5f6674;
  --accent: #b47d2e;
  --accent-soft: #e3c697;
  --border: rgba(20, 34, 57, 0.12);
  --shadow: 0 18px 50px rgba(20, 34, 57, 0.08);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes staggerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  animation: fadeIn 0.6s ease forwards;
}

.stagger-fade-in {
  opacity: 0;
  animation: staggerFadeIn 0.6s ease forwards;
}

@supports (animation-timeline: view()) {
  .fade-in {
    animation: fadeIn 0.6s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}

/* Carousel/Slider Styles */
.carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.carousel-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border: none;
  background: var(--text);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease, box-shadow 200ms ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(20, 34, 57, 0.2);
}

.carousel-btn-prev {
  margin-right: 0;
}

.carousel-btn-next {
  margin-left: 0;
}

.carousel-container {
  overflow: hidden;
  border-radius: 16px;
  flex: 1 1 auto;
  width: 100%;
  max-width: 760px;
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
  gap: 0;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-slide p {
  padding: 1.5rem;
  margin: 0;
  text-align: center;
  color: var(--text);
  font-weight: 500;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--accent-soft);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

a:hover {
  color: var(--accent);
  opacity: 0.85;
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 78px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: inline-block;
  width: 42px;
  height: auto;
  object-fit: contain;
}

.hero-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  display: block;
  height: auto;
  will-change: transform;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 200ms ease, transform 180ms ease;
  position: relative;
  padding: 0.45rem 0;
}

.site-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.site-nav.nav-open {
  max-height: 1000px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 34, 57, 0.15);
}

.button:active {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  background: #0a1c2e;
  box-shadow: 0 12px 32px rgba(11, 61, 145, 0.2);
}

.site-nav a.button-primary {
  color: #fff;
  background: var(--text);
  border-color: transparent;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface-strong);
  border-color: var(--text);
  box-shadow: 0 8px 20px rgba(20, 34, 57, 0.1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: 4rem 0;
}

.testimonials-preview {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface-strong);
}

.section-light {
  background: transparent;
}

.page-hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero {
  min-height: 80vh;
  display: grid;
  align-items: center;
  gap: 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy h1,
.section-header h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-copy p,
.section-header p,
.card p,
.feature-list li,
.review-author,
.card-content p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: center;
}

.trust-pill {
  background: var(--accent-soft);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.trust-text {
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.card h2,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  line-height: 1.03;
  font-size: 1.15rem;
}

.service-card {
  min-height: 260px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.quick-facts {
  display: grid;
  gap: 1rem;
}

.doctor-highlight .split-grid,
.section .split-grid,
.section .two-column-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.split-grid {
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
}

.reverse-grid {
  direction: rtl;
}

.reverse-grid > * {
  direction: ltr;
}

.small-image {
  min-height: 320px;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-card,
.placeholder-image {
  min-height: 240px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(222, 208, 184, 0.95), rgba(245, 238, 227, 0.95));
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--text);
  color: #fff;
  border-radius: 28px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

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

.testimonials-preview .text-center {
  margin-top: 3rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
  animation: slideInUp 0.7s ease;
}


.page-hero p,
.section-header p {
  max-width: 680px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hours-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card .placeholder-image {
  min-height: 180px;
  border-radius: 0;
}

.blog-card .card-content {
  padding: 1.5rem;
}

.blog-card .meta {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer {
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

.stars {
  color: #d9a520;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .service-grid,
  .testimonial-grid,
  .gallery-grid,
  .blog-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
    background: var(--surface);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20,34,57,0.06);
  }

  .site-nav.nav-open {
    max-height: 900px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.35s ease, opacity 0.25s ease;

/* When script determines nav doesn't fit, add this class to the body
   to force the compact "Menu" toggle behavior regardless of breakpoint. */
body.nav-collapsed .site-nav {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
body.nav-collapsed .site-nav.nav-open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.nav-collapsed .nav-toggle {
  display: block !important;
}
  }

  .nav-toggle {
    display: block;
    position: relative;
  }

  .nav-toggle::after {
    content: '▾';
    margin-left: 8px;
    font-size: 0.9rem;
    display: inline-block;
    transform-origin: center;
    transition: transform 220ms ease;
  }

  .nav-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}



/* ============================================
   SMOOTH SCROLL — Lenis override
   ============================================ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Doodle host sections need relative so absolute children work */
.hero,
.section-alt,
.section-cta,
.testimonials-preview,
.doctor-highlight {
  position: relative;
  overflow: visible;
}

/* keep hero-image clipping intact */
.hero-image {
  overflow: hidden;
}

/* ============================================
   ACTIVE NAV LINK
   ============================================ */
.site-nav a.active {
  color: var(--accent);
  position: relative;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.site-nav a.button-primary.active::after {
  display: none;
}

/* ============================================
   NEW FOOTER DESIGN
   ============================================ */
.site-footer {
  background: #0a1322;
  color: #aeb4c0;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--accent);
}

.site-footer h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 36px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.footer-brand .tagline {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #d1d7e0;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.whatsapp-btn {
  background: #25D366;
  color: #04221a;
  border: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.whatsapp-btn:hover {
  filter: brightness(0.95);
}

.footer-grid p {
  margin: 0.5rem 0;
}

.footer-grid a {
  color: #aeb4c0;
}

.footer-grid a:hover {
  color: var(--accent-soft);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* ============================================
   COMING SOON OVERLAY
   ============================================ */
.coming-soon-wrapper {
  position: relative;
}

.coming-soon-wrapper.blurred {
  filter: blur(6px);
  pointer-events: none;
}

.coming-soon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 34, 57, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.coming-soon-content {
  background: var(--surface);
  padding: 3rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(20, 34, 57, 0.3);
  max-width: 500px;
  animation: slideInUp 0.6s ease;
}

.coming-soon-content h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.coming-soon-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ============================================
   SERVICE CARD ICONS
   ============================================ */
.service-icon {
  width: 54px;
  height: 54px;
  background: var(--surface-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   GALLERY BEFORE/AFTER SLIDER
   ============================================ */
.gallery-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: auto;
}

.gallery-card-info {
  padding: 1.25rem;
  text-align: left;
}

.gallery-card-info strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.gallery-card-info p {
  margin: 0;
  font-size: 0.95rem;
}

.img-comp-container {
  position: relative;
  height: 240px; /* fixed height for consistency */
  overflow: hidden;
  touch-action: none;
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: 100%;
  overflow: hidden;
}

.img-comp-img img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.img-comp-img--before {
  width: 50%;
  z-index: 2;
  border-right: 3px solid #fff;
}

.img-comp-img--after {
  width: 100%;
  z-index: 1;
}

.img-comp-slider {
  position: absolute;
  z-index: 3;
  cursor: ew-resize;
  width: 36px;
  height: 36px;
  background-color: var(--text);
  border: 3px solid #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.img-comp-slider::before,
.img-comp-slider::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
}
.img-comp-slider::before {
  border-width: 5px 6px 5px 0;
  border-right-color: #fff;
  margin-right: 4px;
}
.img-comp-slider::after {
  border-width: 5px 0 5px 6px;
  border-left-color: #fff;
}

.img-label {
  position: absolute;
  top: 10px;
  background: rgba(20, 34, 57, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 4;
}

.img-label--before { left: 10px; }
.img-label--after { right: 10px; }

/* ============================================
   STATS TRUST BAR
   ============================================ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: -3rem; /* pull up into hero */
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-item svg {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   CONTACT FORM VALIDATION & STATUS
   ============================================ */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: #38a169;
}

.form-status {
  display: none;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.form-status.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}
