/* ========================================
   HOME PAGE SPECIFIC STYLES
   ======================================== */

/* Shared background wrapper for hero + highlights */
.hero-banner-bg {
  /* Image is provided via inline CSS variable: --hero-banner-bg */
  --hero-banner-bg: none;
  background-image: var(--hero-banner-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.hero {
  padding: 4rem 2rem;
  text-align: left;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 { font-size:2.5rem; margin:0 0 1rem; line-height:1.2; }
.hero em { font-style:italic; color:var(--color-primary); }

/* Banner Highlights Section */
.banner-highlights {
  /* Semi-transparent overlay to show shared bg */
  background: linear-gradient(135deg, rgba(15, 72, 180, 0.85), rgba(10, 53, 128, 0.85));
  padding: 3rem 2rem;
  margin-top: -2rem; /* Pull up to overlap hero */
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.highlight-item {
  text-align: center;
  color: #fff;
}

.highlight-item h4 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
}

/* Steps Section */
.steps {
  padding: 4rem 2rem;
  background: #fff;
}

.steps h2 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step-item {
  padding: 2rem;
  border-radius: var(--radius);
  background: #f9f9fb;
  border: 1px solid var(--color-border);
}

.step-number {
  display: block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.step-item h3 {
  color: #029fbd;
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.step-item p {
  margin: 0;
  line-height: 1.7;
}

.step-item a {
  color: var(--color-primary);
  font-weight: 600;
}

.cta-center {
  text-align: center;
  margin-top: 3rem;
}

/* Video Section */
.video-section {
  padding: 3rem 2rem;
  background: #fafafa;
}

.video-wrapper {
  text-align: center;
}

.video-wrapper iframe {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* First Appointment Section */
.first-appointment {
  padding: 4rem 2rem;
  background: #fff;
}

.appointment-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-primary);
  color: #fff;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.appointment-card .subtitle {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.appointment-card h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.appointment-card p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Doctor Section */
.doctor-section {
  padding: 4rem 2rem;
  background: #f9f9fb;
}

/* Two Column Layouts */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.two-column .column img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.two-column .column h6 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.two-column .column h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.two-column .column p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button-group.center {
  justify-content: center;
}

/* For reverse layout on TMJ section */
.two-column.reverse {
  direction: rtl;
}

.two-column.reverse .column {
  direction: ltr;
}

/* Assessment Cards */
.assessments {
  padding: 4rem 2rem;
  background: rgba(218, 218, 218, 0.25);
}

.assessment-card {
  background: #297f9d;
  color: #fff;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.assessment-card h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.assessment-card p {
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

/* Services Grid */
.services-grid {
  padding: 3rem 2rem;
  background: #fff;
}

.four-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.service-card {
  text-align: center;
}

.service-card a {
  display: block;
  text-decoration: none;
}

.service-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.service-card a:hover img {
  transform: scale(1.02);
}

.service-card .button {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 2rem;
  background: #fafafa;
}

.testimonials-section h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 3rem;
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.testimonial {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

.testimonial blockquote p {
  margin: 0 0 1rem;
}

.testimonial footer {
  text-align: right;
  font-style: normal;
  margin-top: 1.5rem;
}

.testimonial strong {
  color: var(--color-primary);
}

/* FAQ / Details Elements */
.faq-item {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #f9f9fb;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: #f0f2f5;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 1.25rem;
  margin: 0;
  background: #fff;
  line-height: 1.8;
}

/* TMJ & Sleep Apnea Detailed Sections */
.tmj-detailed,
.sleep-apnea-detailed {
  padding: 4rem 2rem;
}

.tmj-detailed {
  background: #fff;
}

.sleep-apnea-detailed {
  background: #f9f9fb;
}

/* Contact Form Section */
.contact-form-section {
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a3680 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 0;
}

.contact-form-section .container {
  position: relative;
  z-index: 1;
}

.contact-form-section h3 {
  text-align: center;
  color: #fff;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 72, 180, 0.1);
}

.contact-form input::placeholder {
  color: #999;
  opacity: 1;
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form button[type="submit"]:hover {
  background: #0a3680;
  border-color: #0a3680;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 72, 180, 0.3);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .contact-form-section {
    padding: 1.5rem 1rem;
  }

  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-section h3 {
    font-size: 1.5rem;
  }
}

/* Responsive tweaks for home */
@media (max-width: 768px) {
  .hero h1 { font-size:2rem; }
}
