/* ============================
   SELIM DENTAL - style.css
   ============================ */

/* ---- Color overrides ---- */
:root {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
}

/* ---- Global ---- */
body {
  padding-top: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Navigation ---- */
.nav-hover:hover {
  color: #2563eb !important;
  transition: color .2s;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 1;
}
.hero-section .position-relative {
  z-index: 2;
}

/* ---- Gradients ---- */
.bg-light-gradient {
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
}
.bg-services-gradient {
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  transition: box-shadow .3s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.1) !important;
}

/* ---- CTA Section ---- */
.cta-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.text-primary-light {
  color: rgba(147,197,253,1);
}

/* ---- Footer ---- */
.footer-link {
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: #60a5fa !important; }
.footer-social {
  text-decoration: none;
  transition: color .2s;
}
.footer-social:hover { color: #60a5fa !important; }

/* ---- Services ---- */
.service-img-wrap {
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform .3s ease;
}
/* Teeth Whitening card - صورة whitening11 تحتاج ضبط خاص */
.service-img.whitening-img {
  object-fit: cover;
  object-position: center 20%;
}
.service-card:hover .service-img { transform: scale(1.08); }
.service-card { transition: box-shadow .3s; }
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1) !important; }
.service-icon-box {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- About ---- */
.bg-primary-soft { background: #eff6ff; }
.value-card {
  transition: box-shadow .3s;
}
.value-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

/* ---- Contact Page ---- */
.contact-icon-box {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-link {
  transition: background .2s;
  color: inherit;
}
.contact-info-link:hover { background: #eff6ff; }
.clinic-card {
  transition: border-color .2s, background .2s;
}
.clinic-card:hover {
  border-color: #2563eb !important;
  background: #eff6ff;
}

/* ---- Chatbot ---- */
#chatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0061D1;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  padding: 0;
  flex-shrink: 0;
}
.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,.3);
}
.chat-tooltip {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  position: relative;
}
.tooltip-tail {
  position: absolute;
  bottom: -8px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -2px 2px 4px rgba(0,0,0,.06);
}
.chat-window {
  position: fixed;
  bottom: 110px;
  right: 24px;
  width: 384px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  max-height: 600px;
  overflow: hidden;
  z-index: 9998;
}
.chat-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.chat-bubble.bot {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.user {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-questions {
  max-height: 260px;
  overflow-y: auto;
}
.question-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #374151;
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
  transition: background .15s;
  line-height: 1.4;
}
.question-btn:hover { background: #f3f4f6; }
.question-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  margin-top: 8px;
}

/* ---- Page header gradient ---- */
.page-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* ---- Object-fit cover utility ---- */
.object-fit-cover { object-fit: cover; }

/* ---- Logo responsive ---- */
.navbar-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 767.98px) {
  .navbar-logo {
    height: 48px;
    max-width: 150px;
  }
  #mainHeader .navbar {
    height: 60px !important;
  }
  #mainHeader {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #ffffff !important;
  }
  /* Make navbar collapse menu white and fully opaque */
  .navbar-collapse {
    background-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .navbar-collapse.show {
    background-color: #ffffff !important;
  }
}
