/* index.html — page-specific styles only */
.section { max-width: 1200px; }

/* ── HERO ── */
.hero {
  background: #F7F3FC;
  min-height: 620px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: 20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(137,52,119,.06) 0%, transparent 70%);
  pointer-events: none;
}
/* decorative circles */
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px;
  border: 80px solid rgba(137,52,119,.05); border-radius: 50%;
  pointer-events: none;
}

.hero-content { padding: 80px 64px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(137,52,119,.1); border: 1px solid rgba(137,52,119,.22);
  padding: 7px 16px; border-radius: 50px; margin-bottom: 26px;
  font-size: 12px; font-weight: 700; color: #893477; letter-spacing: .6px; text-transform: uppercase;
}
.hero-badge .dot { width: 8px; height: 8px; background: #D93C31; border-radius: 50%; flex-shrink: 0; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  color: #2A1040; line-height: 1.15; margin-bottom: 20px;
}
.hero h1 em { color: #893477; font-style: normal; }
.hero-tagline {
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #D93C31; background: rgba(217,60,49,.1); border: 1px solid rgba(217,60,49,.25);
  display: inline-block; padding: 5px 14px; border-radius: 6px; margin-bottom: 18px;
}
.hero p { font-size: 17px; color: #555; line-height: 1.75; max-width: 460px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 32px; margin-top: 52px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat strong em { color: #f7b3f3; font-style: normal; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-top: 4px; display: block; }

.hero-image { position: relative; align-self: stretch; overflow: hidden; }
.hero-image::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to right, #F7F3FC, transparent);
  z-index: 2; pointer-events: none;
}
.hero-banner-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid #ECD9EB;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; padding: 18px 48px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--purple-d); }
.trust-icon { width: 34px; height: 34px; background: var(--purple-l); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ── SECTION COMMON ── */
.section { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 28px; height: 3px; background: var(--green); border-radius: 2px; }
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--navy); line-height: 1.22; margin-bottom: 18px;
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 20px; box-shadow: 0 24px 60px rgba(124,49,119,.12); display: block; }
.about-frame {
  position: absolute; inset: -12px; border-radius: 24px;
  border: 2px solid var(--purple-l); z-index: -1;
}
.about-card {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--white); border-radius: 14px; padding: 18px 24px;
  box-shadow: 0 12px 36px rgba(0,0,0,.12); border-top: 4px solid var(--purple);
  display: flex; flex-direction: column; gap: 2px;
}
.about-card strong { font-size: 34px; color: var(--purple); font-weight: 800; line-height: 1; }
.about-card span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.5; }

.green-tag {
  display: inline-block;
  background: var(--green-l); border: 1px solid #c2dbb0;
  color: var(--green); font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; margin-bottom: 8px;
}

.about-text p { font-size: 16px; line-height: 1.82; color: var(--muted); margin-bottom: 14px; }
.about-text p strong { color: var(--text); }

.qualifications { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.qual-chip {
  background: var(--purple-l); border: 1px solid #DEC2DC;
  border-radius: 50px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; color: var(--purple-d);
}

.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--purple); color: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.step-info strong { font-size: 14px; color: var(--navy); font-weight: 700; }
.step-info p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ── STATS BAR ── */
.stats-bar {
  background: linear-gradient(135deg, #2A1040 0%, #5A1A7A 100%);
  padding: 60px 48px;
}
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 28px 24px; text-align: center;
  transition: background .25s;
}
.stat-box:hover { background: rgba(124,49,119,.25); }
.stat-box strong { display: block; font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.stat-box strong em { color: #f7b3f3; font-style: normal; }
.stat-box span { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 8px; display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }

/* ── SERVICES ── */
.services-wrap { background: var(--bg); }
.services-header { text-align: center; margin-bottom: 52px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; }
.service-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 2px solid transparent;
  transition: all .25s; cursor: pointer;
  box-shadow: 0 2px 12px rgba(124,49,119,.05);
}
.service-card:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124,49,119,.14);
}
.service-card img { width: 100%; height: 175px; object-fit: cover; display: block; }
.service-card-body { padding: 18px 20px; text-decoration: none !important; }
.service-card-body h3 { font-size: 15px; font-weight: 700; color: var(--navy) !important; margin-bottom: 6px; text-decoration: none !important; }
.service-card-body p { font-size: 13px; color: var(--muted) !important; line-height: 1.6; text-decoration: none !important; }
.service-card-body .learn-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--purple) !important; margin-top: 10px; transition: gap .2s;
  text-decoration: none !important;
}
.service-card:hover .service-card-body .learn-more { gap: 8px; }

/* ── WHY CHOOSE ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why-img { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(124,49,119,.12); position: relative; }
.why-img img { width: 100%; display: block; }
.why-img-badge {
  position: absolute; bottom: 28px; left: -16px;
  background: var(--green); border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(74,122,48,.4);
  display: flex; align-items: center; gap: 10px;
}
.why-img-badge .ico { font-size: 22px; }
.why-img-badge strong { display: block; color: #fff; font-size: 14px; font-weight: 800; }
.why-img-badge span { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600; }

.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.why-item:hover { border-color: var(--purple); box-shadow: 0 4px 20px rgba(124,49,119,.08); }
.why-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.why-icon.purple { background: var(--purple-l); }
.why-icon.green { background: var(--green-l); }
.why-icon.red { background: #fdf0ef; }
.why-icon.brown { background: #f5ece4; }
.why-item strong { display: block; font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── REVIEWS ── */
.reviews-wrap { background: var(--purple-l); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid #DEC2DC; transition: transform .2s, box-shadow .2s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(124,49,119,.1); }
.stars { display: flex; gap: 3px; margin-bottom: 14px; font-size: 16px; }
.review-card blockquote { font-size: 14px; color: var(--muted); line-height: 1.8; font-style: italic; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.avatar.green { background: var(--green); }
.avatar.red { background: var(--red); }
.review-author strong { display: block; font-size: 14px; color: var(--navy); font-weight: 700; }
.review-author span { font-size: 12px; color: var(--muted); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-d) 100%);
  padding: 80px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -80px; right: -80px; width: 400px; height: 400px;
  border: 80px solid rgba(255,255,255,.04); border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px; width: 300px; height: 300px;
  border: 60px solid rgba(255,255,255,.04); border-radius: 50%;
}
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 38px; color: #fff; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── BLOG ── */
.blog-wrap { background: var(--bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 40px; }
.blog-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(124,49,119,.11); }
.blog-card-img { height: 200px; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-tag { position: absolute; top: 14px; left: 14px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; letter-spacing: .4px; }
.blog-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.blog-card-body h3 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--navy); line-height: 1.45; margin-bottom: 10px; font-weight: 700; }
.blog-card-body p { font-size: 13px; color: var(--muted); line-height: 1.75; flex: 1; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--purple); text-decoration: none; transition: gap .2s; }
.blog-read-more:hover { gap: 10px; }

/* ── POPUP MODAL ── */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(15,5,30,.72); z-index: 9999; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.popup-overlay.open { display: flex; }
.popup-box {
  background: var(--white); border-radius: 24px; width: 100%; max-width: 540px;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(0,0,0,.3);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1); margin: auto;
}
@keyframes popIn { from{opacity:0;transform:scale(.88) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }
.popup-head { background: linear-gradient(135deg, #2A1040 0%, #5A1A7A 100%); padding: 24px 28px 20px; border-radius: 24px 24px 0 0; position: relative; }
.popup-head h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; margin-bottom: 4px; }
.popup-head p { font-size: 13px; color: rgba(255,255,255,.65); }
.popup-close { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,.15); border: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.popup-close:hover { background: rgba(255,255,255,.3); }
.popup-body { padding: 20px 24px 24px; }
.pfg { margin-bottom: 12px; }
.pfg label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 5px; letter-spacing: .3px; }
.pfg input, .pfg select, .pfg textarea { width: 100%; padding: 10px 13px; border: 2px solid var(--border); border-radius: 10px; font-size: 13px; font-family: inherit; outline: none; transition: border .2s; background: var(--white); }
.pfg input:focus, .pfg select:focus, .pfg textarea:focus { border-color: var(--purple); }
.pfg textarea { resize: vertical; min-height: 64px; }
.pfrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Patient type toggle */
.ptype-toggle { display: flex; gap: 12px; margin-top: 6px; }
.ptype-opt { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--navy);
  background: var(--purple-l); border: 2px solid var(--border); border-radius: 10px; padding: 9px 18px; transition: border .2s, background .2s; }
.ptype-opt input[type=radio] { accent-color: var(--purple); width: 15px; height: 15px; }
.ptype-opt:has(input:checked) { border-color: var(--purple); background: #f3e8f3; }
.popup-submit { width: 100%; padding: 13px; background: var(--purple); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; margin-top: 4px; }
.popup-submit:hover { background: var(--purple-d); transform: translateY(-1px); }
.popup-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.popup-success { display: none; text-align: center; padding: 20px 0 10px; }
.popup-success .tick { font-size: 48px; margin-bottom: 12px; }
.popup-success h4 { font-size: 18px; color: var(--navy); font-weight: 800; margin-bottom: 6px; }
.popup-success p { font-size: 14px; color: var(--muted); }

/* ── RESPONSIVE (page-specific) ── */
/* ── 3D ORTHO VISUALIZER SECTION ── */
.ortho3d-section {
  background: linear-gradient(180deg, var(--bg) 0%, #f5eef8 50%, var(--bg) 100%);
  padding: 80px 0 56px;
  text-align: center;
  overflow: hidden;
}
.ortho3d-header {
  max-width: 620px; margin: 0 auto 40px; padding: 0 24px;
}
.ortho3d-header h2 em { color: var(--purple); font-style: normal; }
.ortho3d-header p {
  font-size: 15px; color: var(--muted); line-height: 1.72;
  margin-top: 12px;
}
/* canvas wrapper */
.ortho3d-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
#ortho3d { width: 100%; display: block; border-radius: 20px; }

/* floating labels */
.ortho3d-tag {
  position: absolute; top: 20px; z-index: 10;
  background: var(--white); border-radius: 50px;
  padding: 7px 18px; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
  pointer-events: none; letter-spacing: .3px;
}
.ortho3d-tag-child {
  left: calc(5% + 16px);
  color: var(--purple);
  border: 2px solid var(--purple-m);
}
.ortho3d-tag-adult {
  right: calc(5% + 16px);
  color: var(--navy);
  border: 2px solid var(--border);
}

/* tooltip */
.ortho3d-tooltip {
  display: none; position: absolute;
  background: var(--navy); color: rgba(255,255,255,.88);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; pointer-events: none; z-index: 30;
  max-width: 210px; line-height: 1.55;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  white-space: normal;
}
.ortho3d-tooltip strong {
  display: block; font-size: 13px; color: #f7b3f3;
  margin-bottom: 4px; font-weight: 800;
}

/* legend */
.ortho3d-legend {
  display: flex; justify-content: center; gap: 32px;
  margin-top: 28px; flex-wrap: wrap; padding: 0 16px;
}
.ol-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.ol-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.ol-dot-pulse {
  background: #FF5C5C;
  animation: hotpulse 1.2s ease-in-out infinite;
}
@keyframes hotpulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .65; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 360px; }
  .hero-image::before { display: none; }
  .hero-collage { min-height: 360px; }
  .about-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .popup-box { max-width: 96vw; }
}
@media (max-width: 768px) {
  .hero-content { padding: 52px 24px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .pfrow { flex-direction: column; gap: 0; }
  .ortho3d-legend { gap: 18px; }
  .ortho3d-tag { font-size: 11px; padding: 5px 12px; }
  .trust-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    padding: 14px 20px !important;
  }
  .trust-bar::-webkit-scrollbar {
    display: none !important;
  }
  .trust-bar .trust-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }
  .cta-banner { padding: 52px 20px; }
  .cta-banner h2 { font-size: 26px; }

  .why-grid > div { min-width: 0; }

  /* --- Horizontal Carousels on Mobile --- */
  .services-grid, .why-list, .reviews-grid, .blog-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding: 10px 20px 20px !important;
    gap: 16px !important;
    cursor: grab;
  }
  
  .services-grid::-webkit-scrollbar,
  .why-list::-webkit-scrollbar,
  .reviews-grid::-webkit-scrollbar,
  .blog-grid::-webkit-scrollbar {
    display: none !important;
  }

  .services-grid .service-card,
  .why-list .why-item,
  .reviews-grid .review-card,
  .blog-grid .blog-card {
    flex: 0 0 82% !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }
}
@media (max-width: 480px) {
  .hero-content { padding: 40px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 20px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-box { padding: 18px 12px; }
  .stat-box strong { font-size: 32px; }
  .pfrow { display: flex; flex-direction: column; }
  .popup-box { border-radius: 16px; }
  .popup-body { padding: 16px; }
  .services-grid, .why-list, .reviews-grid, .blog-grid {
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
