/* ============================================================
   BOTOX FOR TMJ MICROSITE STYLES
   Supplement to clue.css for the /botox-tmj/ landing-page cluster.
   Adapted from clue-invisalign.css. Brand-aligned to Brammeier
   Family Dental (Lisle) — teal accent on navy.
   ============================================================ */

/* ---------- Headings use site-wide Playfair Display (loaded in base-simple.njk) ---------- */
.botox-tmj-hero .hero-content h1,
.hp-section-heading,
.treatment-band > .container > .text-center > h2,
.treatment-band > .container > h2,
.treatment-band-dark h2,
.explore-card h4,
.contact-gallery-heading {
  font-family: var(--font-family-headings, "Playfair Display", Georgia, serif);
}

/* ---------- Variables ---------- */
:root {
  --botox-accent: var(--secondary-color, #007399);
  --botox-accent-dark: #005a78;
  --botox-accent-light: rgba(0, 115, 153, 0.08);
  --botox-gold: var(--accent-color, #00ab68);
  --botox-gold-light: rgba(0, 171, 104, 0.12);
}

/* ---------- Microsite Sub-Navigation ---------- */
.microsite-subnav {
  padding: 0.75rem 0;
  background: var(--botox-accent);
}

.microsite-subnav .subnav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.microsite-subnav .subnav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.microsite-subnav .subnav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

/* ---------- Botox/TMJ Hero (Hub Page Only) ---------- */
.botox-tmj-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.botox-tmj-hero .background-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.botox-tmj-hero .background-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.botox-tmj-hero .background-video-container-overlay {
  position: absolute;
  inset: 0;
  /* Match the homepage hero: branded diagonal gradient + readability tint.
     Uses the same --hero-overlay-* vars defined in modern-header-modern.css
     so it stays in sync if those corner colors are retuned in client.css. */
  background:
    linear-gradient(135deg, var(--hero-overlay-corner-1, rgba(42, 95, 138, 0.92)) 0%, transparent 45%),
    linear-gradient(315deg, var(--hero-overlay-corner-2, rgba(52, 119, 173, 0.88)) 0%, transparent 45%),
    linear-gradient(0deg, var(--hero-overlay-tint, rgba(0, 0, 0, 0.4)), var(--hero-overlay-tint, rgba(0, 0, 0, 0.4)));
}

.botox-tmj-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 2rem 1rem;
}

.botox-tmj-hero .hero-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: #fff;
}

.botox-tmj-hero .hero-content .lead {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}

.botox-tmj-hero .hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .botox-tmj-hero .hero-content h1 {
    font-size: 3.25rem;
  }
}

/* Hero video pause/play toggle (WCAG 2.2.2) */
.botox-tmj-hero .hero-video-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(24, 43, 85, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Stat Highlight (e.g. "85% of TMJ pain is muscle-related") ---------- */
.botox-stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.botox-stat {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  padding: 1.5rem 1rem;
}

.botox-stat .botox-stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--botox-accent);
  margin-bottom: 0.35rem;
}

.treatment-band-dark .botox-stat .botox-stat-number {
  color: #fff;
}

.botox-stat .botox-stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ---------- Process / Treatment Timeline ---------- */
.smile-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  counter-reset: step;
}

.smile-timeline .timeline-step {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  position: relative;
  padding: 1.5rem 0.75rem 1rem;
}

.smile-timeline .timeline-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--botox-accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 auto 0.75rem;
}

.smile-timeline .timeline-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.smile-timeline .timeline-step p {
  font-size: 0.82rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0;
}

/* On a dark band the timeline sits on navy — keep its headings and text white
   (the template's dark-band rules whiten h2/h3 but not h4, and the gray
   timeline-step p above out-specifies the band's white paragraph rule). */
.treatment-band-dark .smile-timeline .timeline-step h4 {
  color: #fff;
}

.treatment-band-dark .smile-timeline .timeline-step p {
  color: rgba(255, 255, 255, 0.92);
}

/* connector lines between steps (desktop only) */
@media (min-width: 768px) {
  .smile-timeline .timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.75rem;
    right: -0.75rem;
    width: 1.5rem;
    height: 2px;
    background: var(--botox-accent);
    opacity: 0.35;
  }
}

/* ---------- Condition Cards (Conditions / Candidate Pages) ---------- */
.condition-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.condition-card {
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.condition-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.condition-card .condition-icon {
  font-size: 2.5rem;
  color: var(--botox-accent);
  margin-bottom: 0.6rem;
  display: block;
}

.treatment-band-dark .condition-card .condition-icon {
  color: #fff;
}

.condition-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--primary-color, #182b55);
}

.treatment-band-dark .condition-card h4 {
  color: #fff;
}

.condition-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ---------- Comparison Table ---------- */
.botox-comparison {
  margin-left: auto;
  margin-right: auto;
}

.botox-comparison thead {
  background: var(--botox-accent);
  color: #fff;
}

.botox-comparison thead th {
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.botox-comparison td {
  padding: 0.65rem 1rem;
  vertical-align: middle;
}

.botox-comparison .bi-check-circle-fill {
  color: var(--botox-accent);
}

.botox-comparison .bi-x-circle-fill {
  color: #dc3545;
  opacity: 0.5;
}

/* ---------- Self-Assessment Quiz ---------- */
.quiz-container {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.quiz-question:hover {
  border-color: var(--botox-accent);
}

.quiz-question.selected {
  border-color: var(--botox-accent);
  background: var(--botox-accent-light);
}

.quiz-question .quiz-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ced4da;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quiz-question.selected .quiz-toggle {
  border-color: var(--botox-accent);
  background: var(--botox-accent);
  color: #fff;
}

.quiz-result {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  display: none;
}

.quiz-result.show {
  display: block;
}

.quiz-result.great-candidate {
  background: var(--botox-accent-light);
  border: 2px solid var(--botox-accent);
}

.quiz-result.good-with-consult {
  background: #e8f4f8;
  border: 2px solid var(--botox-accent);
}

.quiz-result.discuss {
  background: var(--botox-gold-light);
  border: 2px solid var(--botox-gold);
}

.quiz-result h3 {
  margin-bottom: 0.5rem;
}

/* ---------- Offer / Promo / Cost Page ---------- */
.offer-highlight {
  background: linear-gradient(135deg, var(--primary-color, #182b55), #0f1c3a);
  color: #fff;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
}

.offer-highlight .offer-badge {
  display: inline-block;
  background: var(--botox-gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1.25rem;
  border-radius: 30px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-highlight h2 {
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #fff;
}

/* The offer-highlight panel is navy and lives inside #content, whose
   `#content a` rule (ID specificity) hijacks anchor color to teal — turning
   these buttons blue-on-blue. Restore proper button colors with a matching
   ID-scoped selector. */
#content .offer-highlight .btn-outline-light {
  color: #fff;
}
#content .offer-highlight .btn-outline-light:hover,
#content .offer-highlight .btn-outline-light:focus,
#content .offer-highlight .btn-outline-light:active {
  color: var(--primary-color);
}
#content .offer-highlight .btn-light {
  color: var(--primary-color);
}

.offer-value-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
  height: 100%;
  border: 1px solid #e9ecef;
  border-top: 4px solid var(--botox-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.offer-value-card .offer-icon {
  font-size: 2rem;
  color: var(--botox-accent);
  margin-bottom: 0.75rem;
}

.offer-value-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ---------- Explore Cards (Hub Page) ---------- */
.explore-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.explore-card .explore-icon {
  font-size: 2rem;
  color: var(--botox-accent);
  margin-bottom: 0.75rem;
}

.explore-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.explore-card p {
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0;
}

/* ---------- Before & After Cards ---------- */
.ba-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ba-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
  .microsite-subnav .subnav-link {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
  }

  .smile-timeline .timeline-step {
    flex: 1 1 130px;
  }

  .condition-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-highlight {
    padding: 2rem 1.25rem;
  }

  .botox-stat .botox-stat-number {
    font-size: 2.25rem;
  }
}
