/* ==========================================================================
   Bright Dental Care — Dedicated Stylesheet
   ========================================================================== */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #f0fdf4;
  --primary-subtle: #ccfbf1;
  --accent: #2dd4bf;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-lg: 20px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
  background-color: #0f766e;
  color: #e6fffa;
  font-size: 0.8125em;
  padding: 8px 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__info {
  display: flex;
  gap: 20px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9375em;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375em;
  border-radius: 30px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  padding: 70px 0 90px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #ccfbf1 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--primary-subtle);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125em;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.875em;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.0625em;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item h4 {
  font-size: 1.625em;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-item p {
  font-size: 0.8125em;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.trust-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
}

/* --- Section Styling --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8125em;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.125em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1em;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-subtle);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625em;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1875em;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.875em;
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 24px 0 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9375em;
}

.check-icon {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.125em;
}

/* --- Why Choose Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.125em;
  margin-top: 16px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875em;
  color: var(--text-muted);
}

/* --- Doctors --- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  padding-bottom: 20px;
}

.doctor-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  background: var(--bg-alt);
}

.doctor-card h3 {
  font-size: 1.0625em;
  margin-top: 16px;
}

.doctor-card p {
  color: var(--primary);
  font-size: 0.8125em;
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.875em;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.author-name {
  font-weight: 700;
  font-size: 0.9375em;
}

.author-role {
  font-size: 0.75em;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 40px 0;
}

.cta-banner h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1em;
  color: #ccfbf1;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-dark);
}

.btn-white:hover {
  background-color: #f0fdf4;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* --- Footer --- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  font-size: 0.875em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
  justify-content: flex-start;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

.mobile-only-btn {
  display: none;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-book-btn {
    display: none;
  }

  .mobile-only-btn {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--primary);
    gap: 16px;
    z-index: 99;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

  .services-grid,
  .features-grid,
  .doctors-grid,
  .testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }

  .service-card,
  .feature-card,
  .doctor-card,
  .testimonial-card {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-badge {
    margin: 0 auto 20px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
    text-align: left;
  }

  .about-grid .btn {
    display: inline-flex;
    margin: 0;
  }

  .feature-list {
    display: block;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  .mobile-only-btn {
    display: block;
  }

  .top-bar {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--primary);
    gap: 16px;
    z-index: 99;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

  .btn, .btn-primary, .btn-secondary, .btn-outline {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 2em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .services-grid,
  .features-grid,
  .doctors-grid,
  .testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
  }

  .service-card,
  .feature-card,
  .doctor-card,
  .testimonial-card {
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-grid,
  .about-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .about-grid .btn {
    display: inline-flex;
    margin: 0 auto;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
