/* ==========================================================================
   ⚡ QUICK GUIDE — CSS FILE SAMAJHNE KE LIYE ⚡
   ==========================================================================
   Ye file lambi hai magar sections mein bati hui hai. Har section ka header
   [SECTION NAME] jaisa likha hai — Ctrl+F se search kar lein.

   Kya kahan milega:
   - Colors/Font       -> neeche ":root {" wala hissa (sab se pehla block)
   - Navbar/Logo size  -> "Navbar" section -> .logo-img
   - Top image section -> "Scan-frame signature motif" + "Banner" section
   - About section     -> "About" section
   - Image Slider      -> "Slider" section
   - Services cards     -> "Services" section
   - FAQ box            -> "FAQ Accordion" section
   - Footer             -> "Footer" section
   - Contact page       -> "Contact Page" section
   - Mobile/tablet view -> sab se aakhir mein "Responsive" section

   Rang (color) badalna ho tu sirf ":root" ke andar --teal wali line badlein,
   pura website apne aap update ho jayega.
   ========================================================================== */

/* ==========================================================================
   Dentovate — Premium Dental Clinic & Digital Dental Laboratory
   ========================================================================== */

:root {
  --teal: #14B8A6;
  --teal-dark: #0F766E;
  --teal-darker: #0B5E58;
  --teal-tint: #F0FDFA;
  --teal-tint-2: #CCFBF1;
  --white: #FFFFFF;
  --gray-bg: #F8FAFC;
  --gray-line: #E2E8F0;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-teal: 0 14px 32px rgba(20, 184, 166, 0.28);
  --container: 1200px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.eyebrow {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal-tint); transform: translateY(-3px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover { background: #1fb958; transform: translateY(-3px); }
.full-width { width: 100%; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gray-line);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark { display: flex; }
.logo-img { width: 228px; height: 90px; object-fit: contain; border-radius: 8px; }
.footer-logo .logo-img { width: 42px; height: 42px; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.logo-text.light { color: var(--white); }

.nav-links {
  display: flex;
  gap: 36px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 2px;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--teal-dark); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { flex-shrink: 0; padding: 11px 24px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Scan-frame signature motif
   ========================================================================== */
.scan-frame, .hero-frame, .banner .scan-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.scan-corner {
  position: absolute;
  width: 34px; height: 34px;
  border: 2.5px solid var(--teal);
  opacity: 0.9;
  z-index: 2;
}
.scan-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.scan-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.scan-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.scan-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 20%, #7FFFEE 50%, var(--teal) 80%, transparent);
  box-shadow: 0 0 14px 2px rgba(20,184,166,0.7);
  animation: scanmove 4.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes scanmove {
  0%   { top: 6%; opacity: 0; }
  8%   { opacity: 1; }
  50%  { top: 94%; opacity: 1; }
  58%  { opacity: 0; }
  100% { top: 6%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; opacity: 0; } }

/* ==========================================================================
   Banner (top image section — replaces old hero)
   ========================================================================== */
.banner { max-width: var(--container); margin: 24px auto 90px; padding: 0 24px; }
.banner .scan-frame { aspect-ratio: 16 / 9; height: auto; }
.banner-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 36px 26px;
  background: linear-gradient(0deg, rgba(11,23,26,0.75), transparent);
  z-index: 1;
}
/* Desktop/tablet: white text over the dark image gradient */
.banner-caption p, .banner-caption h2 {
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  max-width: 56ch;
}


/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--gray-bg); padding: 100px 24px; }
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.scan-frame.small { height: 420px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  width: 200px;
  z-index: 3;
}
.about-badge span { color: var(--teal); font-size: 1.6rem; font-weight: 800; }
.about-badge p { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.about-content p { color: var(--text-muted); margin-bottom: 26px; }
.about-list { display: grid; gap: 14px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-dark); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ==========================================================================
   Slider
   ========================================================================== */
.slider-section { padding: 100px 24px; max-width: var(--container); margin: 0 auto; }
.slider { position: relative; max-width: 980px; margin: 46px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: contain; object-position: center; background: var(--gray-bg); }
.slide p {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 32px;
  background: linear-gradient(0deg, rgba(11,23,26,0.72), transparent);
  color: #fff; font-weight: 600; font-size: 1.1rem;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 3;
}
.slider-btn:hover { background: var(--teal); color: #fff; transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }
.slider-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.55); transition: var(--transition); }
.slider-dots button.active { background: var(--teal); width: 24px; border-radius: 6px; }

/* ==========================================================================
   Description section
   ========================================================================== */
.description-section { background: var(--teal-tint); padding: 90px 24px; }
.description-box { max-width: 820px; margin: 0 auto; text-align: center; }
.description-box p:last-child { color: var(--text-muted); font-size: 1.02rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { max-width: var(--container); margin: 0 auto; padding: 100px 24px; }
.services-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-card {
  background: linear-gradient(150deg, var(--teal), var(--teal-dark));
  border: 1px solid var(--teal-dark);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-teal); }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.32);
  border-radius: 14px;
  margin-bottom: 18px;
  color: #fff;
}
.service-icon svg { width: 32px; height: 32px; overflow: visible; }
.service-icon svg path,
.service-icon svg rect,
.service-icon svg circle { stroke-width: 2.6px !important; opacity: 1 !important; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.service-card p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }

/* ==========================================================================
   Contact CTA (homepage)
   ========================================================================== */
.contact-cta { padding: 40px 24px 100px; }
.contact-cta-box {
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.contact-cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px; }
.contact-cta-box p { opacity: 0.92; margin-bottom: 28px; }
.contact-cta-box .btn-primary { background: #fff; color: var(--teal-dark); box-shadow: none; }
.contact-cta-box .btn-primary:hover { background: var(--gray-bg); }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq { background: var(--gray-bg); padding: 100px 24px; }
.accordion { max-width: 800px; margin: 46px auto 0; display: grid; gap: 14px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  color: var(--text-dark);
  transition: var(--transition);
}
.accordion-header:hover { color: var(--teal-dark); }
.acc-icon { color: var(--teal); font-size: 1.3rem; transition: var(--transition); flex-shrink: 0; margin-left: 16px; }
.accordion-item.open .acc-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.accordion-item.open .accordion-body { padding: 0 24px 22px; }
.accordion-body p { color: var(--text-muted); font-size: 0.94rem; }
.accordion-body a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.dtv-chat-btn {
  position: fixed !important;
  bottom: 26px; left: 26px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex !important;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  z-index: 99999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
  animation: floatPulse 2.6s ease-in-out infinite;
  /* Force its own GPU-composited layer so mobile browsers paint it
     immediately on load instead of waiting for a repaint trigger
     (like the hamburger menu toggling body overflow). */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.dtv-chat-btn svg { width: 30px; height: 30px; flex-shrink: 0; }
.dtv-chat-btn:hover { transform: scale(1.12) rotate(6deg); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}
@media (prefers-reduced-motion: reduce) { .dtv-chat-btn { animation: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: teal; color: seashell; padding: 80px 24px 0; }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; margin: 16px 0 20px; color: seashell; max-width: 32ch; }
.footer-logo { margin-bottom: 4px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.social-icons a svg { width: 16px; height: 16px; }
.social-icons a:hover { background: var(--teal); color: #06231F; transform: translateY(-3px); }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: seashell; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 0.85rem;
  color: #64748B;
}
.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.back-to-top:hover { background: var(--teal); transform: translateY(-4px); }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.page-hero { max-width: var(--container); margin: 0 auto; padding: 70px 24px 20px; text-align: center; }
.page-hero-p { color: var(--text-muted); max-width: 60ch; margin: 0 auto; }

.contact-main { max-width: var(--container); margin: 0 auto; padding: 50px 24px 100px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { color: var(--teal-dark); font-size: 1.4rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-dark);
  background: var(--gray-bg);
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
}
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--teal-dark); font-weight: 600; min-height: 1.2em; }

.contact-info h2 { color: var(--teal-dark); font-size: 1.4rem; margin-bottom: 24px; }
.info-card { display: flex; gap: 16px; margin-bottom: 22px; }
.info-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--teal-tint-2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.info-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }
.info-card a { color: var(--text-muted); }
.info-card a:hover { color: var(--teal-dark); }

.map-wrap { margin-top: 50px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 70px; }
  .scan-frame.small { height: 340px; }
  .about-badge { right: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    left: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .banner .scan-frame { aspect-ratio: unset; height: auto; }
  .banner-img { aspect-ratio: 4 / 3; height: auto; }
  .banner-caption {
    position: static;
    background: none;
    padding: 18px 4px 0;
  }
  /* Mobile only: caption text turns teal (sits on white background, not on image) */
  .banner-caption p, .banner-caption h2 {
    color: var(--teal) !important;
    text-align: center;
    max-width: none;
  }
  .slide img { aspect-ratio: 4 / 3; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-container { padding: 14px 18px; }
  .about, .services, .faq, .description-section, .slider-section { padding: 70px 18px; }
  .about-badge { position: static; width: auto; margin-top: 16px; }
  .contact-cta-box { padding: 44px 24px; }
  .footer { padding: 60px 18px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .contact-form { padding: 26px; }
  .dtv-chat-btn { width: 54px; height: 54px; bottom: 18px; left: 18px; }
}