/* =============================================
   Dr Tamhane's DenTrio Dental Clinic - Styles
   ============================================= */

:root {
  --primary:    #1565C0;
  --primary-dk: #0D47A1;
  --accent:     #29B6F6;
  --light-bg:   #F0F4F8;
  --white:      #ffffff;
  --text-dark:  #1A237E;
  --text-body:  #37474F;
  --shadow:     0 4px 20px rgba(21, 101, 192, 0.12);
  --radius:     12px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
}

/* ---- Section overflow guard ---- */
section, .stats-bar, .footer-bottom {
  overflow-x: clip;
}

/* ---- Utility ---- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}
.section-subtitle {
  color: #607D8B;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 24px;
}
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  transition: all .3s;
}
.btn-primary-custom:hover {
  background: var(--primary-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21,101,192,.35);
}
.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  padding: 9px 26px;
  font-weight: 600;
  transition: all .3s;
  background: transparent;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.bg-light-custom { background: var(--light-bg); }

/* =====================
   NAVBAR
   ===================== */
#mainNav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(21,101,192,.1);
  padding: 0;
  transition: all .3s;
}
#mainNav.scrolled { box-shadow: 0 4px 20px rgba(21,101,192,.18); }

.navbar-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.navbar-brand .brand-sub {
  font-size: 0.68rem;
  color: #607D8B;
  letter-spacing: .5px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}
.nav-link {
  font-weight: 500;
  color: var(--text-body) !important;
  padding: 1.1rem .9rem !important;
  position: relative;
  font-size: .93rem;
  letter-spacing: .2px;
  transition: color .25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link:hover::after, .nav-link.active::after { width: 70%; }
.btn-call {
  background: var(--primary);
  color: #fff !important;
  border-radius: 30px;
  padding: 8px 20px !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  transition: all .3s;
  white-space: nowrap;
}
.btn-call::after { display: none; }
.btn-call:hover { background: var(--primary-dk); transform: scale(1.04); }
.navbar-toggler { border: none; outline: none; box-shadow: none !important; }

/* =====================
   HERO SLIDER
   ===================== */
#heroCarousel { margin-top: 0; }

.carousel-item {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 900px;
}
.hero-slide {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px; /* navbar offset */
}
.hero-slide-1 {
  background: url('../images/slider-1.png') center center / cover no-repeat;
}
.hero-slide-2 {
  background: url('../images/slider-2.png') center center / cover no-repeat;
}
.hero-slide-3 {
  background: url('../images/slider-3.png') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,80,0.82) 0%, rgba(10,30,80,0.55) 60%, rgba(10,30,80,0.30) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0;
  max-width: 700px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero-tagline {
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero-tagline span { color: var(--accent); }
.hero-desc {
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  opacity: .92;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btns .btn { margin: 0; }
.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  border-radius: 30px;
  padding: 11px 26px;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  transition: all .3s;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 30px;
  padding: 9px 24px;
  font-weight: 600;
  font-size: .92rem;
  transition: all .3s;
  white-space: nowrap;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
  transition: .3s;
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover,
.carousel-control-next:hover { background: rgba(255,255,255,0.3); opacity: 1; }
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  margin: 0 4px;
  transition: .3s;
}
.carousel-indicators .active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 28px 0;
}
.stat-item { text-align: center; padding: 8px; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: .85rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.2);
  margin: auto;
}

/* =====================
   ABOUT
   ===================== */
.about-section { padding: 90px 0; }
.about-img-wrap {
  position: relative;
  display: block;
  overflow: visible;
}
.about-img-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
  display: block;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(21,101,192,.35);
}
.about-badge .num { font-size: 2.2rem; font-weight: 800; display: block; }
.about-badge .lbl { font-size: .75rem; opacity: .9; line-height: 1.3; }
.about-text h2 { font-size: 1.9rem; font-weight: 700; color: var(--text-dark); }
.about-text p { line-height: 1.8; color: #546E7A; }
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E3F2FD;
  color: var(--primary);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 600;
  margin: 5px 6px 5px 0;
}
.highlight-pill i { font-size: 1rem; color: var(--accent); }

/* =====================
   SERVICES
   ===================== */
.services-section { padding: 90px 0; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E3F0FF;
  overflow: hidden;
  transition: all .35s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(21,101,192,.2);
  border-color: var(--accent);
}
.service-img {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #E3F2FD, #B3E5FC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  position: relative;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 22px 20px 20px; }
.service-body h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.service-body p { font-size: .88rem; color: #607D8B; line-height: 1.6; margin-bottom: 16px; }
.btn-service {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  padding: 7px 20px;
  font-size: .84rem;
  font-weight: 600;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.btn-service:hover { background: var(--primary); color: #fff; }

/* =====================
   TEAM
   ===================== */
.team-section { padding: 90px 0; }
.team-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .35s;
  text-align: center;
  border: 1px solid #E3F0FF;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(21,101,192,.22); }
.team-img-wrap {
  aspect-ratio: 400 / 442;
  overflow: hidden;
  background: linear-gradient(160deg, #E3F2FD 0%, #BBDEFB 100%);
  display: block;
  position: relative;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s;
}
.team-card:hover .team-img-wrap img { transform: scale(1.05); }
.team-info { padding: 22px 18px; }
.team-name { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.team-qual { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.team-spec { font-size: .88rem; color: #607D8B; margin: 8px 0 4px; }
.team-exp {
  display: inline-block;
  background: #E3F2FD;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 30px;
  margin-top: 8px;
}

/* =====================
   LOCATION
   ===================== */
.location-section { padding: 90px 0; }
.location-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .35s;
  border: 1px solid #E3F0FF;
}
.location-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(21,101,192,.2); }
.location-img {
  height: 200px;
  background: linear-gradient(135deg, #E3F2FD, #B3E5FC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  overflow: hidden;
}
.location-img img { width: 100%; height: 100%; object-fit: cover; }
.location-body { padding: 20px; }
.location-badge {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.location-body h5 { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; margin-bottom: 6px; }
.location-body p { font-size: .88rem; color: #607D8B; line-height: 1.6; margin-bottom: 14px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 380px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* =====================
   WHY CHOOSE US
   ===================== */
.why-section { padding: 90px 0; }
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid #E3F0FF;
  transition: all .35s;
  height: 100%;
  text-align: center;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(21,101,192,.2); border-color: var(--accent); }
.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 auto 16px;
  transition: all .35s;
}
.why-card:hover .why-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-5deg) scale(1.08);
}
.why-card h5 { font-weight: 700; color: var(--text-dark); font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: .875rem; color: #607D8B; line-height: 1.6; margin: 0; }

/* =====================
   CONTACT
   ===================== */
.contact-section { padding: 90px 0; }
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 36px 28px;
  color: #fff;
  height: 100%;
}
.contact-info-card h3 { font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { opacity: .85; line-height: 1.7; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-detail-text a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s;
}
.contact-detail-text a:hover { opacity: .8; }
.contact-detail-text p { opacity: .85; font-size: .88rem; margin: 2px 0 0; }
.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid #E3F0FF;
  height: 100%;
}
.form-control-custom {
  border: 1.5px solid #CFD8DC;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .93rem;
  transition: border-color .25s, box-shadow .25s;
  background: #FAFBFF;
  width: 100%;
  outline: none;
  color: var(--text-body);
  font-family: inherit;
}
.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,182,246,.15);
  background: #fff;
}
.form-label-custom {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.form-group { margin-bottom: 18px; }
textarea.form-control-custom { resize: vertical; min-height: 110px; }

/* =====================
   FOOTER
   ===================== */
.footer-bottom {
  background: #0D1B3E;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .83rem;
  color: rgba(255,255,255,.6);
}

/* =====================
   FLOATING BUTTONS
   ===================== */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: pulse-wa 2.5s infinite;
  transition: transform .25s;
}
.float-whatsapp:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,.75); }
}
.float-call {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(21,101,192,.45);
  animation: pulse-call 2.5s infinite .8s;
  transition: transform .25s;
}
.float-call:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse-call {
  0%, 100% { box-shadow: 0 4px 20px rgba(21,101,192,.45); }
  50%       { box-shadow: 0 4px 40px rgba(21,101,192,.75); }
}

/* =====================
   ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0;
  transition: opacity .7s ease;
}
.fade-in.visible { opacity: 1; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991px) {
  .carousel-item { height: 88vh; height: 88svh; min-height: 500px; max-height: none; }
  .nav-link { padding: .6rem 1rem !important; }
  .nav-link::after { bottom: 4px; }
}
@media (max-width: 767px) {
  .carousel-item {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: none;
  }
  .hero-slide { padding-top: 68px; padding-bottom: 20px; align-items: center; }
  .hero-overlay {
    background: linear-gradient(160deg, rgba(10,30,80,0.88) 0%, rgba(10,30,80,0.70) 70%, rgba(10,30,80,0.55) 100%);
  }
  .hero-tagline { font-size: 1.6rem; margin-bottom: 12px; }
  .hero-desc { font-size: .9rem; margin-bottom: 22px; line-height: 1.6; }
  .hero-badge { font-size: .7rem; margin-bottom: 12px; }
  .hero-btns { gap: 8px; }
  .btn-hero-primary, .btn-hero-outline { padding: 10px 20px; font-size: .88rem; }
  .carousel-indicators { bottom: 12px; }
  .section-title { font-size: 1.6rem; }
  .about-badge { bottom: -10px; right: 12px; padding: 12px 16px; }
  .about-badge .num { font-size: 1.6rem; }
  .float-whatsapp { bottom: 20px; right: 16px; }
  .float-call { bottom: 20px; left: 16px; }
  .stat-divider { display: none; }
  .row { --bs-gutter-x: 1rem; }
}
@media (max-width: 480px) {
  .hero-tagline { font-size: 1.35rem; line-height: 1.25; }
  .hero-desc { font-size: .85rem; }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .carousel-control-prev, .carousel-control-next { display: none; }
}
