/* =============================
   KIND DENTAL - GLOBAL STYLES
   ============================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563a8;
  --blue-dark: #1a4a82;
  --blue-light: #e8f0fb;
  --teal: #3ab0c0;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
h2 { font-size: 1.75rem; color: var(--blue-dark); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 0; }

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

/* =============================
   BUTTONS
   ============================= */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-primary.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.read-more {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

/* =============================
   TOP BAR
   ============================= */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-bar a { color: var(--white); }

/* =============================
   HEADER & NAV
   ============================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img { height: 100px; width: auto; }

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.2s;
  font-family: var(--font-heading);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--blue); }

/* Dropdowns */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 999;
}
.has-dropdown:hover > .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--blue-light); color: var(--blue); }

.sub-dropdown {
  left: 100%;
  top: 0;
}

.header-cta { display: flex; gap: 0.75rem; align-items: center; flex-shrink: 0; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue);
}

/* =============================
   HERO SLIDER
   ============================= */
.hero-slider {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,74,130,0.82) 0%, rgba(58,176,192,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: calc((100vw - 1100px) / 2);
  padding: 4rem 1.5rem;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: var(--white); }

/* =============================
   INTRO
   ============================= */
.intro-section { background: var(--off-white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-text h2 { margin-bottom: 1rem; }
.intro-text p { color: var(--text-light); font-size: 1rem; }

.intro-video iframe {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-video iframe { height: 220px; }
}

/* =============================
   SERVICE CARDS
   ============================= */
.services-section { background: var(--white); }
.services-section h2 { text-align: center; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(37,99,168,0.12); transform: translateY(-3px); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 a { color: var(--blue-dark); }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }

/* =============================
   VALUES
   ============================= */
.values-section { background: var(--blue-light); text-align: center; }
.values-tagline { font-size: 1.1rem; font-style: italic; color: var(--blue-dark); margin-bottom: 1rem; }
.values-section > .container > p { color: var(--text-light); max-width: 700px; margin: 0 auto 1.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.value-item { text-align: center; }
.value-item img { height: 70px; margin: 0 auto 1rem; }
.value-item h3 { color: var(--blue-dark); font-size: 1.1rem; }

/* =============================
   STATS
   ============================= */
.stats-section {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-icon { display: block; font-size: 2.2rem; margin-bottom: 0.5rem; }
.stat-num { display: block; font-size: 2.2rem; font-family: var(--font-heading); font-weight: 700; }
.stat-label { font-size: 0.95rem; opacity: 0.9; margin-top: 0.25rem; display: block; }

/* =============================
   MEMBERSHIP
   ============================= */
.membership-section { background: var(--off-white); }

.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.membership-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.membership-content h2 { color: var(--blue-dark); margin-bottom: 1.5rem; }
.membership-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 2rem; color: var(--text-light); }
.membership-content ul li { margin-bottom: 0.75rem; }

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

/* =============================
   REVIEWS
   ============================= */
.reviews-section { background: var(--white); text-align: center; }
.reviews-rating { margin-bottom: 2rem; font-size: 1.05rem; color: var(--text-light); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.review-card {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 1.25rem;
}
.review-text { font-style: italic; color: var(--text); margin-bottom: 0.75rem; }
.reviewer { font-weight: 700; color: var(--blue-dark); font-size: 0.9rem; }

/* =============================
   CONTACT FORM
   ============================= */
.contact-cta-section { background: var(--blue-light); }
.contact-cta-section h2 { text-align: center; margin-bottom: 2rem; }

.contact-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-home-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-body);
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.contact-form button { align-self: flex-start; }

@media (max-width: 768px) {
  .contact-home-grid { grid-template-columns: 1fr; }
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: #1a2a3a;
  color: #cdd5e0;
  padding: 3rem 1.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 70px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4,
.footer-contact h4 { color: var(--white); margin-bottom: 0.75rem; font-family: var(--font-heading); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.4rem; }
.footer-links ul li a { color: #cdd5e0; font-size: 0.9rem; }
.footer-links ul li a:hover { color: var(--teal); }

.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact a { color: #cdd5e0; }
.footer-contact a:hover { color: var(--teal); }

.social-links { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.social-links a {
  background: var(--blue);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.social-links a:hover { background: var(--teal); color: var(--white); }

.footer-bottom {
  border-top: 1px solid #2d3f54;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8899aa;
}
.footer-bottom a { color: #8899aa; }
.footer-bottom a:hover { color: var(--white); }

/* =============================
   PAGE HERO (inner pages)
   ============================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; }
.page-hero p { opacity: 0.9; margin-top: 0.5rem; }
.breadcrumb { font-size: 0.85rem; opacity: 0.75; margin-top: 0.5rem; }
.breadcrumb a { color: var(--white); opacity: 0.8; }

/* =============================
   SERVICES PAGE
   ============================= */
.services-category { margin-bottom: 3rem; }
.services-category h2 { border-left: 4px solid var(--blue); padding-left: 1rem; margin-bottom: 2rem; }

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-item { text-align: center; }
.service-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 0.75rem; }
.service-item h3 a { color: var(--blue-dark); font-size: 1rem; }
.service-item h3 a:hover { color: var(--blue); }

/* =============================
   DOCTOR PAGE
   ============================= */
.doctor-section { padding: 4rem 1.5rem; }
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.doctor-grid img { border-radius: 8px; width: 100%; }
.doctor-bio h2 { margin-bottom: 1rem; }
.doctor-bio p { color: var(--text-light); margin-bottom: 1rem; }
.doctor-story {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 2rem;
}
.doctor-story h3 { color: var(--blue-dark); margin-bottom: 0.75rem; font-size: 1.05rem; }
.doctor-story p { font-style: italic; color: var(--text); font-size: 0.95rem; }

/* =============================
   CONTACT PAGE
   ============================= */
.contact-info-section {
  background: var(--off-white);
  padding: 4rem 1.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-info-card h3 { color: var(--blue-dark); margin-bottom: 1rem; }
.contact-info-card p { color: var(--text-light); margin-bottom: 0.5rem; }
.contact-info-card a { color: var(--blue); }

.map-embed {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
}

/* =============================
   ABOUT PAGE
   ============================= */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.about-value-card {
  background: var(--blue-light);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}
.about-value-card img { height: 80px; margin: 0 auto 1rem; }
.about-value-card h3 { color: var(--blue-dark); margin-bottom: 0.5rem; }
.about-value-card p { color: var(--text-light); font-size: 0.95rem; }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .header-cta { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: fixed; top: 0; left: 0; width: 80%; height: 100vh; background: var(--white); z-index: 2000; overflow-y: auto; padding: 2rem 1rem; box-shadow: 4px 0 20px rgba(0,0,0,0.15); }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open .dropdown { display: block; position: static; box-shadow: none; border: none; background: var(--blue-light); border-radius: 4px; margin: 0.25rem 0; }
  .main-nav.open .sub-dropdown { left: 0; }
  .mobile-menu-toggle { display: block; }

  .hero-content { margin-left: 0; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-slider { min-height: 420px; }

  .values-grid,
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .doctor-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero { min-height: 380px; }
  h2 { font-size: 1.6rem; }
  .values-grid,
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: 1fr; }
}
