/* ═══════════════════════════════════════════════════════════════
   SECTION FIXES — Targeted Redesign for 4 Problem Areas
   • Our Difference  • The Procedure  • Implant Choices  • Recovery
   Hero/Banner is intentionally untouched.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. OUR DIFFERENCE ("Why") SECTION
   Strategy: Rich, layered deep-blue bg → elevated white/warm cards
   Maximum contrast: white cards on dark bg (hotel-card style)
   ───────────────────────────────────────────────────────────── */

.why {
  background:
    linear-gradient(145deg, #0a1628 0%, #0d2040 40%, #0a1a32 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Atmospheric texture overlay */
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 55% 45% at 15% 80%, rgba(201, 168, 76, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 85% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Background watermark — keep it */
.why-bg-text {
  color: rgba(255, 255, 255, 0.025) !important;
}

/* GRID — tighter gap for premium panel look */
.why-grid {
  gap: 20px !important;
  position: relative;
  z-index: 2;
}

/* WHY CARDS — bright elevated white surfaces on dark bg */
.why-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: none !important;
  border-top: 3px solid transparent !important;
  border-radius: 2px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.15) !important;
  padding: 40px 32px !important;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s,
    border-top-color 0.35s !important;
  position: relative;
  overflow: hidden;
}

/* Gold top bar that slides in on hover */
.why-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
  bottom: auto !important;
  width: auto !important;
}

.why-card:hover::before {
  transform: scaleX(1) !important;
}

.why-card:hover {
  transform: translateY(-8px) !important;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(201, 168, 76, 0.12) !important;
  background: rgba(255, 255, 255, 1) !important;
}

/* Card number — subtle gold on white */
.why-card-num {
  color: rgba(201, 168, 76, 0.15) !important;
  font-size: 52px !important;
}

/* Icon — gold ring on white bg */
.why-icon {
  background: rgba(201, 168, 76, 0.08) !important;
  border: 1.5px solid rgba(201, 168, 76, 0.4) !important;
  color: var(--gold) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

.why-card:hover .why-icon {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
  transform: scale(1.12) rotate(-4deg) !important;
}

/* Titles and text — navy on white (max readability) */
.why-card-title {
  color: var(--navy) !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.why-card-text {
  color: var(--text-mid) !important;
  line-height: 1.85 !important;
}

/* Section header text on dark bg — keep white/gold */
.why .section-title {
  color: var(--white) !important;
}

.why .section-subtitle {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ─────────────────────────────────────────────────────────────
   2. THE PROCEDURE SECTION
   Strategy: Rich layered cream/warm bg → elevated white cards
   with numbered gold badges, better image presentation
   ───────────────────────────────────────────────────────────── */

.procedure {
  background: linear-gradient(165deg, #fffdf6 -100%, #fff8e4 30%, #ffffff 70%, #ffffff 100%) !important;
  padding: 80px 0 !important;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric accent */
.procedure::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.procedure::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Procedure header */
.procedure-header {
  position: relative;
  z-index: 2;
}

.procedure .section-title {
  color: var(--navy) !important;
}

.procedure .section-subtitle {
  color: var(--text-mid) !important;
}

/* Grid */
.proc-steps-wrap {
  gap: 20px !important;
  position: relative;
  z-index: 2;
}

/* Procedure cards — white elevated with premium treatment */
.proc-card {
  background: var(--white) !important;
  border: none !important;
  border-radius: 2px;
  box-shadow:
    0 2px 20px rgba(13, 31, 56, 0.07),
    0 8px 40px rgba(13, 31, 56, 0.05) !important;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s !important;
  position: relative;
}

.proc-card:hover {
  transform: translateY(-10px) !important;
  box-shadow:
    0 20px 60px rgba(13, 31, 56, 0.14),
    0 4px 20px rgba(201, 168, 76, 0.1) !important;
  border: none !important;
}

/* Gold bottom bar reveal on hover */
.proc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.proc-card:hover::after {
  transform: scaleX(1);
}

/* Image treatment */
.proc-card-top {
  height: 200px !important;
}

.proc-card-top img {
  filter: brightness(0.9) !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s !important;
}

.proc-card:hover .proc-card-top img {
  transform: scale(1.07) !important;
  filter: brightness(0.95) !important;
}

/* Step number badge */
.proc-step-num {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35) !important;
}

/* Card body — clean white with strong type */
.proc-card-body {
  padding: 24px 22px 26px !important;
}

.proc-card-title {
  color: var(--navy) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

.proc-card-text {
  color: var(--text-mid) !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
}

.proc-card-footer {
  border-top: 1px solid rgba(201, 168, 76, 0.15) !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
}

.proc-footer-icon {
  color: var(--gold) !important;
}

.proc-footer-text {
  color: var(--text-light) !important;
}

/* Shine sweep */
.proc-card-shine {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  z-index: 10;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-15deg);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.proc-card:hover .proc-card-shine {
  left: 150% !important;
}

/* ─────────────────────────────────────────────────────────────
   3. IMPLANT CHOICES SECTION
   Strategy: Rich mid-dark navy bg → bright white elevated cards
   with strong image presentation and readable body text
   ───────────────────────────────────────────────────────────── */

.implants {
  background:
    linear-gradient(150deg, #0b1c36 0%, #0f2445 45%, #091629 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 100px 0 !important;
}

/* Layered radial light effects */
.implants::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(201, 168, 76, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.implants-pattern {
  display: none !important;
}

.implants-header,
.implants-grid {
  position: relative;
  z-index: 2;
}

/* Section header */
.implants .section-title {
  color: var(--white) !important;
}

.implants .section-subtitle {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Grid gap */
.implants-grid {
  gap: 28px !important;
}

/* IMPLANT CARDS — white on dark (maximum contrast) */
.implant-card {
  background: var(--white) !important;
  border: none !important;
  border-radius: 2px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s !important;
  position: relative;
}

/* Gold top stripe — present on all cards */
.implant-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)) !important;
  z-index: 5 !important;
  transform: none !important;
  transition: opacity 0.35s !important;
  opacity: 1 !important;
}

.implant-card:hover {
  transform: translateY(-10px) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(201, 168, 76, 0.15) !important;
}

/* Image */
.implant-card-img {
  height: 220px !important;
  filter: brightness(0.88) !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s !important;
}

.implant-card:hover .implant-card-img {
  transform: scale(1.07) !important;
  filter: brightness(0.95) !important;
}

/* Card body — white background, navy/dark text */
.implant-card-body {
  background: var(--white) !important;
  padding: 26px 24px 28px !important;
}

.implant-tag {
  color: var(--gold) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

.implant-title {
  color: var(--navy) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.implant-text {
  color: var(--text-mid) !important;
  font-size: 13.5px !important;
  line-height: 1.85 !important;
  margin-bottom: 18px !important;
}

.implant-pros {
  gap: 8px !important;
}

.implant-pro {
  color: var(--text-mid) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
}

.implant-pro::before {
  content: '✓' !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  margin-right: 6px !important;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   4. RECOVERY TIMELINE SECTION
   Strategy: Switch from flat dark to rich warm section.
   Light warm bg → navy timeline cards (complete role-reversal for page balance)
   ───────────────────────────────────────────────────────────── */

.recovery {
  background:
    linear-gradient(160deg, #faf7f2 0%, #f5ede0 40%, #fdf9f5 100%) !important;
  padding: 80px 0 !important;
  position: relative;
}

/* Ambient decoration */
.recovery::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.recovery::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Section header — navy on light */
.recovery .section-title {
  color: var(--navy) !important;
}

.recovery .section-subtitle {
  color: var(--text-mid) !important;
}

/* Timeline dots — gold ring */
.tl-dot {
  background: rgba(201, 168, 76, 0.08) !important;
  border: 2px solid var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
  transition: all 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

.tl-item:hover .tl-dot {
  background: var(--gold) !important;
  color: var(--navy) !important;
  transform: scale(1.18) !important;
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45) !important;
}

/* Timeline line — gold on light bg */
.tl-line {
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.5), rgba(201, 168, 76, 0.12)) !important;
  position: relative !important;
  overflow: hidden !important;
}

.tl-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.6), transparent);
  animation: tlScan 3.5s ease-in-out infinite;
}

@keyframes tlScan {
  from {
    top: -40px
  }

  to {
    top: 100%
  }
}

/* Timeline content cards — white elevated on warm bg */
.tl-content {
  background: var(--white) !important;
  border: 1px solid rgba(201, 168, 76, 0.15) !important;
  border-left: 3px solid var(--gold) !important;
  box-shadow: 0 2px 20px rgba(13, 31, 56, 0.07), 0 1px 4px rgba(13, 31, 56, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.3s !important;
}

.tl-content:hover {
  transform: translateX(8px) !important;
  box-shadow: 0 8px 32px rgba(13, 31, 56, 0.12) !important;
  border-color: rgba(201, 168, 76, 0.4) !important;
  border-left-color: var(--gold) !important;
  background: var(--white) !important;
}

/* Timeline period label */
.tl-period {
  color: var(--gold) !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
}

/* Timeline title */
.tl-title {
  color: var(--navy) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
}

/* Timeline body text */
.tl-text {
  color: var(--text-mid) !important;
  line-height: 1.85 !important;
}

/* Tags */
.tl-tag {
  border-color: rgba(201, 168, 76, 0.25) !important;
  color: var(--text-light) !important;
  background: rgba(201, 168, 76, 0.05) !important;
  transition: background 0.25s, border-color 0.25s, color 0.25s !important;
}

.tl-content:hover .tl-tag {
  background: rgba(201, 168, 76, 0.1) !important;
  border-color: rgba(201, 168, 76, 0.35) !important;
  color: var(--gold) !important;
}

/* Sticky right image — warm on cream */
.recovery-sticky-img {
  box-shadow: 0 12px 48px rgba(13, 31, 56, 0.14) !important;
}

.recovery-img-caption {
  background: var(--white) !important;
  border: 1px solid rgba(201, 168, 76, 0.2) !important;
  box-shadow: 0 4px 20px rgba(13, 31, 56, 0.08) !important;
  border-left: 3px solid var(--gold) !important;
}

.recovery-img-caption-title {
  color: var(--navy) !important;
  font-weight: 600 !important;
}

.recovery-img-caption-text {
  color: var(--text-mid) !important;
  font-weight: 300 !important;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL PAGE BALANCE
   Ensure no override from animations-enhancement.css bleeds in
   ───────────────────────────────────────────────────────────── */

/* Procedure must stay light — cancel any dark override */
.procedure,
.procedure .proc-card,
.procedure .proc-card-title,
.procedure .proc-card-text {
  /* Declarations above already handle this — reinforcing */
}

/* Overview — stays light cream */
.overview {
  background: var(--white) !important;
}

