/* 🌿 THEME */
:root {
  --primary: #e8f5e9;
  --accent: #4caf50;
  --dark: #2e7d32;
  --white: #ffffff;
  --text: #2f3e2f;
}

/* 🔁 RESET & SCROLL FIX */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Removes horizontal scrollbar */
  position: relative;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

/* 🔷 NAVBAR */
.dt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1000; /* Keeps navbar above content */
}

.dt-nav h2 {
  color: var(--dark);
}

.dt-back {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

/* 🔥 HERO */
.dt-hero {
  width: 100%;
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.cosmetic-hero, .implants-hero, .whitening-hero, .bridges-hero, 
.surgery-hero, .preventive-hero, .pediatric-hero, .gumcare-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/ContactPage_herosection.webp');
}

.dt-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 56px;
  font-weight: 700;
  padding: 0 20px;
}

.dt-hero p {
  font-size: 21px;
  padding: 0 20px;
}

/* 🔷 CONTAINER */
.dt-container {
  padding: 60px 20px; /* Added vertical breathing room */
  background: var(--primary);
  overflow: hidden; 
}

/* 🔥 ROW */
.dt-row {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.dt-row.reverse {
  flex-direction: row-reverse;
}

/* 🔥 TEXT */
.dt-text {
  flex: 1.2;
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s ease-out;
}

.dt-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  color: var(--dark);
  margin-bottom: 16px;
}

.dt-text h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
}

.dt-text p {
  font-size: 18px;
  line-height: 1.9;
}

/* 🔥 NORMAL LIST */
.dt-text ul:not(.treatment-works) {
  padding-left: 20px;
}

/* 🌿 PREMIUM LIST */
.treatment-works {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.treatment-works li {
  position: relative;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.8;
  background: rgba(76,175,80,0.08);
  padding: 14px 18px 14px 45px; 
  border-radius: 10px;
  transition: 0.3s;
}

.treatment-works li::before {
  content: "✔";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
}

.treatment-works li:hover {
  transform: translateX(6px);
  background: rgba(76,175,80,0.15);
}

/* 🔥 IMAGE */
.dt-image {
  flex: 1;
  opacity: 0;
  transform: translateX(40px);
  transition: 0.8s ease-out;
}

.dt-image img {
  width: 100%;
  max-width: 480px;
  height: 360px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 🔥 SHOW (For Scroll Animation) */
.show {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* 📱 RESPONSIVE - MOBILE FIXES */
@media (max-width: 992px) {
  .dt-nav {
    padding: 15px 20px;
  }

  .dt-hero {
    height: 50vh; /* Reduced height for mobile utility */
  }

  .dt-hero h1 {
    font-size: 32px;
  }

  .dt-hero p {
    font-size: 18px;
  }

  .dt-row {
    flex-direction: column !important; /* Force stack */
    text-align: center;
    gap: 30px;
  }

  /* Remove translations to prevent horizontal scroll triggers */
  .dt-text, .dt-image {
    transform: none !important; 
    opacity: 1; /* Ensure visible on mobile if JS fails */
    width: 100%;
  }

  .dt-image {
    order: 1; /* Image stays on top */
  }

  .dt-text {
    order: 2;
  }

  .dt-text h2::after {
    margin: 6px auto 0; /* Center the underline */
  }

  .dt-image img {
    height: auto;
    max-width: 100%;
  }

  /* Ensure floating elements/buttons are visible and properly layered */
  .floating-action-button {
    z-index: 1001;
    bottom: 20px;
    right: 20px;
    position: fixed;
  }
}