/* ==========================================================================
   WISDOM TOOTH SUPER PILLAR — CUSTOM VARIABLE DESIGN SYSTEM
   ========================================================================== */
:root {
  --wt-blue: #0284c7;       /* Brand Sky Blue (Surgical Precision) */
  --wt-blue-hover: #0369a1; /* Darker blue for hovers */
  --wt-bg: #f0f9ff;         /* Tinted background (5% blue) */
  --wt-navy: #0f172a;       /* Slate Dark Navy for extreme readability */
  --wt-text: #334155;       /* Charcoal Slate body text */
  --wt-muted: #64748b;      /* Slate Gray secondary text */
  --wt-border: #e2e8f0;     /* Border elements */
  --wt-green: #10b981;      /* Emerald Green for pricing & trusts */
  --wt-red: #ef4444;        /* Crimson Red for emergency alerts */
  --wt-amber: #f59e0b;      /* Warm Amber for warnings */
  
  --wt-radius: 12px;
  --wt-trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --wt-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --wt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

/* === Basic Resets & Wrappers === */
body.wt-page #secondary, 
body.wt-page .widget-area { 
  display: none !important; 
}

.wt-wrapper {
  color: var(--wt-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  background-color: #ffffff;
}
.wt-wrapper h1, .wt-wrapper h2, .wt-wrapper h3, .wt-wrapper h4 {
  color: var(--wt-navy);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.25;
}
.wt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Layout Grids === */
.wt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.wt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 992px) {
  .wt-grid-2, .wt-grid-3 { grid-template-columns: 1fr; gap: 24px; }
}

/* === Buttons === */
.wt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--wt-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--wt-trans);
  cursor: pointer;
  border: 2px solid transparent;
}
.wt-btn--wa {
  background-color: #25d366;
  color: #ffffff !important;
}
.wt-btn--wa:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}
.wt-btn--outline {
  border-color: var(--wt-blue);
  color: var(--wt-blue) !important;
  background: transparent;
}
.wt-btn--outline:hover {
  background-color: var(--wt-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* === Breadcrumb === */
.wt-breadcrumb {
  background-color: #f8fafc;
  padding: 12px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--wt-border);
}
.wt-breadcrumb a {
  color: var(--wt-blue);
  text-decoration: none;
  transition: var(--wt-trans);
}
.wt-breadcrumb a:hover {
  text-decoration: underline;
}
.wt-breadcrumb span {
  color: var(--wt-muted);
  margin: 0 6px;
}

/* === Hero Section === */
.wt-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-bottom: 1px solid var(--wt-border);
}
.wt-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--wt-navy);
}
.wt-hero__eyebrow {
  color: var(--wt-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.wt-hero__kicker {
  font-weight: 600;
  color: var(--wt-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.wt-hero__lead {
  font-size: 1.12rem;
  color: var(--wt-text);
  margin-bottom: 30px;
}
.wt-hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 0.95rem;
}
.wt-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.wt-hero__img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--wt-shadow-lg);
}

@media (max-width: 992px) {
  .wt-hero { padding: 40px 0; }
  .wt-hero h1 { font-size: 2.2rem; }
  .wt-hero__trust { grid-template-columns: 1fr; }
  .wt-hero__img { margin-top: 30px; }
}

/* === Stats Bar === */
.wt-stats {
  background-color: var(--wt-navy);
  color: #ffffff;
  padding: 24px 0;
}
.wt-stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.wt-stats__item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--wt-blue);
  line-height: 1.2;
}
.wt-stats__item span {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .wt-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wt-stats__item:last-child { grid-column: span 2; }
}

/* Prevent horizontal scroll WITHOUT breaking position:sticky */
body.wt-page { background:#fff; overflow-x:clip; }
body.wt-page #primary,
body.wt-page #main {
  overflow: visible !important;
}

/* === Main Layout Structure === */
.wt-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start; /* CRITICAL: allows sticky to scroll within the track */
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}
.wt-main {
  min-width: 0;
}
.wt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1024px) {
  .wt-layout { grid-template-columns: 1fr; gap: 30px; margin: 24px auto; }
  .wt-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .wt-sidebar .wt-sidebar-card { flex: 1; min-width: 260px; }
}

@media (max-width: 640px) {
  .wt-sidebar { display: none; } /* Hidden on mobile; floating CTA handles mobile CTAs */
}

/* === AIO Quick Answer === */
.wt-aio-box {
  background-color: var(--wt-bg);
  border-left: 4px solid var(--wt-blue);
  padding: 20px;
  border-radius: 0 var(--wt-radius) var(--wt-radius) 0;
  margin-bottom: 40px;
}
.wt-aio-question {
  margin-bottom: 8px;
  color: var(--wt-navy);
  font-size: 1.05rem;
}

/* === Standard Section Setup === */
.wt-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--wt-border);
}
.wt-section:last-of-type {
  border-bottom: none;
}
.wt-section-title {
  font-size: 1.95rem;
  margin-bottom: 8px;
}
.wt-section-sub {
  color: var(--wt-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.wt-section-img {
  width: 100%;
  height: auto;
  border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow);
  display: block;
}
.wt-img-caption {
  font-size: 0.82rem;
  color: var(--wt-muted);
  text-align: center;
  margin-top: 8px;
}

/* === Impaction List === */
.wt-impaction-list {
  padding-left: 20px;
  margin: 20px 0;
}
.wt-impaction-list li {
  margin-bottom: 12px;
}

/* === Symptom Cards === */
.wt-card {
  background: #ffffff;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 24px;
  box-shadow: var(--wt-shadow);
  transition: var(--wt-trans);
}
.wt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wt-shadow-lg);
  border-color: var(--wt-blue);
}
.wt-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.wt-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* === Timeline Module === */
.wt-timeline {
  position: relative;
  padding-left: 32px;
  margin: 30px 0;
}
.wt-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--wt-border);
}
.wt-timeline__item {
  position: relative;
  margin-bottom: 30px;
}
.wt-timeline__item:last-child {
  margin-bottom: 0;
}
.wt-timeline__badge {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 26px;
  height: 26px;
  background-color: var(--wt-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.wt-timeline__badge--alert { background-color: var(--wt-amber); }
.wt-timeline__badge--danger { background-color: var(--wt-red); }

/* === Structured Tables === */
.wt-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
}
.wt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.wt-table th, .wt-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--wt-border);
}
.wt-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--wt-navy);
}
.wt-table tr:last-child td {
  border-bottom: none;
}
.wt-table__good {
  color: var(--wt-green);
  font-weight: 600;
  background-color: #ecfdf5;
}
.wt-table__bad {
  color: var(--wt-red);
  background-color: #fef2f2;
}
.wt-table__highlight {
  background-color: #f0f9ff;
  font-weight: 700;
}

/* === Danger/Warning Box === */
.wt-warning-box {
  background-color: #fffbeb;
  border-left: 4px solid var(--wt-amber);
  padding: 16px 20px;
  border-radius: 0 var(--wt-radius) var(--wt-radius) 0;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}
.wt-warning-box p { margin: 0; }

/* === Pricing Big Banner === */
.wt-pricing-banner {
  background: linear-gradient(135deg, var(--wt-navy) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--wt-radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 30px;
}
.wt-pricing-banner h3 { color: #ffffff; margin-bottom: 8px; font-size: 1.45rem;}
.wt-price-big {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--wt-green);
  margin: 16px 0;
}
.wt-pricing-banner p { color: #94a3b8; font-size: 0.95rem; }

/* === Surgical Steps Ordered List === */
.wt-steps {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}
.wt-steps li {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.wt-steps__num {
  width: 36px;
  height: 36px;
  background-color: var(--wt-blue);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.wt-steps__title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.wt-steps__text {
  color: var(--wt-text);
  margin: 0;
}

/* === Doctor Card E-E-A-T === */
.wt-doctor-card {
  background-color: #ffffff;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 32px;
  display: flex;
  gap: 32px;
  box-shadow: var(--wt-shadow);
}
.wt-doctor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--wt-bg);
  flex-shrink: 0;
}
.wt-doctor-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.wt-doctor-info > p { color: var(--wt-blue); font-weight: 600; margin-bottom: 16px; }
.wt-doctor-creds { padding-left: 0; list-style-type: none; margin-bottom: 20px; }
.wt-doctor-creds li { margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.wt-doctor-quote {
  font-style: italic;
  color: var(--wt-muted);
  border-left: 3px solid var(--wt-border);
  padding-left: 16px;
  margin: 20px 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .wt-doctor-card { flex-direction: column; align-items: center; text-align: center; }
  .wt-doctor-photo { margin-bottom: 16px; }
  .wt-doctor-quote { border-left: none; padding-left: 0; }
}

/* === FAQ Accordion System === */
.wt-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}
.wt-faq__item {
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  background-color: #ffffff;
  overflow: hidden;
  transition: var(--wt-trans);
}
.wt-faq__item--active {
  border-color: var(--wt-blue);
  background-color: var(--wt-bg);
}
.wt-faq__q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wt-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--wt-trans);
}
.wt-faq__q:hover {
  background-color: #f8fafc;
  color: var(--wt-blue);
}
.wt-faq__item--active .wt-faq__q {
  color: var(--wt-blue-hover);
}
.wt-faq__icon {
  font-size: 0.8rem;
  color: var(--wt-muted);
  transition: var(--wt-trans);
}
.wt-faq__item--active .wt-faq__icon {
  transform: rotate(180deg);
  color: var(--wt-blue);
}
.wt-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wt-faq__a > div {
  padding: 0 24px 20px 24px;
  color: var(--wt-text);
  font-size: 0.95rem;
}

/* === Bottom CTA Section === */
.wt-bottom-cta {
  background: linear-gradient(135deg, var(--wt-navy) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--wt-radius);
  padding: 48px 32px;
  text-align: center;
  margin-top: 40px;
}
.wt-bottom-cta h2 { color: #ffffff; font-size: 2rem; margin-bottom: 12px; }
.wt-bottom-cta p { color: #94a3b8; font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; }
.wt-bottom-cta__actions { display: flex; justify-content: center; margin-bottom: 24px; }
.wt-bottom-cta__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 576px) {
  .wt-bottom-cta__trust { flex-direction: column; gap: 8px; }
}

.wt-disclaimer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--wt-muted);
  text-align: center;
}

/* === Sidebar Widgets === */
.wt-sidebar-card {
  background-color: #ffffff;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 24px;
  box-shadow: var(--wt-shadow);
}
.wt-sidebar-card h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--wt-border);
  padding-bottom: 10px;
}
.wt-sidebar-card--emergency {
  background-color: var(--wt-red);
  color: #ffffff;
  border-color: var(--wt-red);
}
.wt-sidebar-card--emergency h4 { color: #ffffff; border-color: rgba(255,255,255,0.2); }
.wt-sidebar-card--emergency p { font-size: 0.9rem; margin-bottom: 16px; }

.wt-price-list span.wt-price {
  font-weight: 700;
  color: var(--wt-navy);
}

/* === Table of Contents Widget === */
.wt-toc li {
  margin-bottom: 8px;
}
.wt-toc a {
  display: block;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  transition: var(--wt-trans);
}
.wt-toc a:hover {
  color: var(--wt-blue) !important;
  border-left-color: var(--wt-blue);
  background-color: #f8fafc;
}
.wt-toc a.wt-toc__link--active {
  color: var(--wt-blue) !important;
  font-weight: 700;
  border-left-color: var(--wt-blue);
  background-color: var(--wt-bg);
}
