/**
 * ⚡ DEFERRED PRODUCTION STYLESHEET
 * Handles all structural layout blocks, interactive inputs, components below the fold,
 * and responsive scaling grids.
 */

/* ==========================================================================
   🧭 NAVIGATION LINKS (Desktop Mechanics)
   ========================================================================== */
nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: var(--primary-teal);
}

/* Core Navigation Utilities (Hidden on desktop layout viewports) */
.menu-toggle-checkbox,
.hamburger-button {
  display: none;
}

/* ==========================================================================
   🩺 OUR DENTAL SERVICES GRID
   ========================================================================== */
#services-heading {
  text-align: center;
  margin-top: 60px;
  margin-bottom: auto;
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 70px 5%;
}

.service-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  padding: 0 0 25px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #f1f5f9;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.05);
}

.service-card h3,
.service-card p,
.service-card .service-link {
  padding-left: 20px;
  padding-right: 20px;
  max-width: 600px;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--dark-slate);
  font-size: 1.3rem;
}

.service-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--dark-slate);
}

/* ==========================================================================
   👥 ABOUT US SECTION (Centered Text Layout)
   ========================================================================== */
#about {
  width: 100%;
  background-color: #f1f5f9;
  color: var(--dark-slate);
  padding: 100px 5%;
  box-sizing: border-box;
  text-align: center; /* ⚡ Centers the inline content and blocks inside the section */
}

.about-content-wrapper {
  max-width: 800px; /* Snug width keeps lines from stretching too wide on desktop */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* ⚡ Ensures all children (h2, p, blockquote) center vertically and horizontally */
}

#about h2 {
  color: var(--dark-slate);
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: auto;
}

#about p {
  color: #1e293b;
  line-height: 1.6;
  font-size: 1.1rem;
  text-align: center; /* ⚡ Perfectly centers the main body description paragraphs */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 30px;
}

/* Optional Styling for your Mission Statement if it uses a blockquote tag */
#about blockquote {
  font-style: italic;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 600px;
  text-align: center; /* ⚡ Centers the quote text */
  border: none; /* Removes the left blue bar if you just want clean centered text */
}

/* ==========================================================================
   💬 INTERACTIVE PATIENT FAQ ACCORDIONS
   ========================================================================== */
#patient-faq {
  padding: 60px 5%;
}

#faq-heading {
  text-align: center;
  color: var(--dark-slate);
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: 40px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 15px 20px;
  transition: box-shadow 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-slate);
  cursor: pointer;
  position: relative;
  list-style: none;
  padding-right: 30px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary-teal);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-teal);
}

.faq-answer {
  padding-top: 15px;
  color: var(--text-color);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   📝 INTAKE LEAD CAPTURE FORM
   ========================================================================== */
#lead-capture {
  background: var(--light-gray);
  padding: 60px 5%;
  text-align: center;
  align-items: center;
}

#lead-capture p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

#quote-form {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
  gap: 12px;
}

#quote-form input {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

#submit-lead-btn {
  background: var(--primary-teal);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#submit-lead-btn:hover {
  background: #0b727a;
}

/* ==========================================================================
   🏪 FOOTER MARKUP UTILITIES
   ========================================================================== */
footer {
  background: var(--dark-slate);
  color: white;
  flex-shrink: 0;
  width: 100%;
  padding: 40px 20px;
}

footer a[href^="tel:"] {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a[href^="tel:"]:hover {
  color: var(--primary-teal) !important;
}

/* ==========================================================================
   📱 MOBILE RESPONSIVE MEDIA QUERIES (Breakpoint: 768px UI limits)
   ========================================================================== */
@media screen and (max-width: 768px) {
  header {
    position: sticky;
    flex-direction: row !important;
    justify-content: space-between;
    padding: 15px 5%;
  }

  /* .header-cta {
    display: none;
  } */

  .hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 100;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-slate);
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 5%;
    gap: 15px;
    align-items: flex-start !important;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .menu-toggle-checkbox:checked ~ nav {
    max-height: 300px;
  }

  .menu-toggle-checkbox:checked
    ~ .hamburger-button
    .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle-checkbox:checked
    ~ .hamburger-button
    .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle-checkbox:checked
    ~ .hamburger-button
    .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 5%;
  }

  #patient-faq {
    padding: 40px 5%;
  }

  .faq-question {
    font-size: 1rem;
  }

  #quote-form {
    width: 100%;
    max-width: 100%;
  }
}
