/* Maggie A. Kleem, DDS — Custom Styles
   Tailwind handles most styling. This file covers:
   - FAQ accordion transitions
   - Hero background with image overlay
   - Mobile sticky CTA bar
   - Image placeholders
   - Smooth scroll
*/

html {
  scroll-behavior: smooth;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero-section {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(15,23,42,0.88) 60%, rgba(13,148,136,0.25) 100%),
    url('../assets/hero-bg.jpg') center center / cover no-repeat;
  min-height: 600px;
}

.page-hero {
  background:
    linear-gradient(to right, rgba(15,23,42,0.96), rgba(15,23,42,0.85)),
    url('../assets/hero-bg.jpg') center 30% / cover no-repeat;
}

/* ─── Image Placeholders ────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
  font-family: inherit;
  text-align: center;
  padding: 1rem;
}

/* ─── FAQ Accordion ─────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-answer.open {
  max-height: 500px;
  padding: 0.75rem 1.5rem 1.25rem;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-toggle-icon.open {
  transform: rotate(45deg);
}

/* ─── Nav ───────────────────────────────────────────────── */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* Active nav state */
.nav-link-active {
  color: #0d9488;
  font-weight: 600;
}

/* ─── Sticky Mobile Call Bar ─────────────────────────────── */
.mobile-call-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
  }

  /* Push footer above the sticky call bar so content isn't hidden */
  footer {
    padding-bottom: 5rem;
  }
}

/* ─── Testimonial card ──────────────────────────────────── */
.star-rating::before {
  content: "★★★★★";
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ─── Service card hover ────────────────────────────────── */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  background-color: #0d9488;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #0f766e;
  transform: translateY(-1px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
  header, footer, .mobile-call-bar, .cta-banner { display: none; }
  .hero-section, .page-hero { min-height: auto; background: none; color: #000; }
}
