/* Asymmetrical Editorial Testimonials Grid */
@media (min-width: 901px) {
  .proof-testimonials {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 28px !important;
  }
  .proof-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  /* Alternating widths to break the grid monotony */
  .proof-card:nth-child(1) { grid-column: span 3; }
  .proof-card:nth-child(2) { grid-column: span 3; }
  .proof-card:nth-child(3) { grid-column: span 4; }
  .proof-card:nth-child(4) { grid-column: span 2; }
  .proof-card:nth-child(5) { grid-column: span 2; }
  .proof-card:nth-child(6) { grid-column: span 4; }
  .proof-card:nth-child(7) { grid-column: span 3; }
  .proof-card:nth-child(8) { grid-column: span 3; }
  .proof-card:nth-child(9) { grid-column: span 2; }
  .proof-card:nth-child(10) { grid-column: span 4; }

  /* Typography Hierarchy & Contrast on Featured Columns */
  .proof-card:nth-child(3) .proof-quote,
  .proof-card:nth-child(6) .proof-quote,
  .proof-card:nth-child(10) .proof-quote {
    font-size: 1.15rem !important;
    line-height: 1.75 !important;
    color: #f8fafc !important;
  }
  
  /* Interactive scale for organic responsiveness */
  .proof-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    border-color: rgba(226, 184, 87, 0.25) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(226, 184, 87, 0.01) !important;
  }
}

/* Always-Visible Header CTA Button Styles */
.header-cta-btn {
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  margin-left: 16px !important;
  z-index: 110 !important;
  display: inline-flex !important;
}
.cta-desktop { display: inline !important; }
.cta-mobile { display: none !important; }

@media (max-width: 768px) {
  .header-cta-btn {
    margin-left: auto !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
  .cta-desktop { display: none !important; }
  .cta-mobile { display: inline !important; }
}

/* Typographic scale corrections */
.hero-serif-title {
  font-size: clamp(1.4rem, 5vw, 3.8rem) !important;
  white-space: nowrap !important;
}
.hero-display-title {
  font-size: clamp(2.0rem, 8vw, 6.5rem) !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
  padding-bottom: 0.15em !important;
}
.bio-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
}
.proof-title {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  font-style: italic !important;
}
.proof-title-accent {
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  font-style: normal !important;
}

/* Utility classes for previously inline styles */
.hidden-noscript-iframe {
  display: none;
  visibility: hidden;
}
.netlify-form-hidden {
  display: none;
}

/* Premium Edge-to-Edge Hero Image Presentation (Static & Styled) */
@media (min-width: 901px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr !important; /* Allocate more space for the image column */
    gap: 60px !important; /* Unified spacing */
  }
}

.hero-float {
  animation: none !important;
  transform: none !important;
}

.hero-image-wrapper {
  perspective: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 520px !important; /* Significantly larger visual presence */
  aspect-ratio: 3 / 2 !important; /* Matches natural landscape format */
  margin: 0 auto !important;
  position: relative !important;
}

.hero-image-card {
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(10, 10, 15, 0.6) !important;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(226, 184, 87, 0.08) !important; /* Warm champagne gold glow matching the mountain sunlight */
  width: 100% !important;
  height: 100% !important;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: none !important;
}

.hero-image-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    max-width: 90% !important;
  }
}

/* Hover interactions for a premium, tactical feel */
.hero-image-wrapper:hover .hero-image-card {
  border-color: rgba(226, 184, 87, 0.3) !important;
  box-shadow: 
    0 40px 90px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(226, 184, 87, 0.22) !important; /* Warm gold halo flare */
}

.hero-image-wrapper:hover .hero-image-card img {
  transform: scale(1.05);
}

/* Navigation Procedure Button Color Differentiator */
#nav-procedure-btn {
  background: rgba(168, 85, 247, 0.05) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#nav-procedure-btn:hover {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(168, 85, 247, 0.15) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

#nav-procedure-btn:active {
  transform: translateY(-1px) scale(0.99) !important;
}

/* Color System & Accent Optimizations */
:root {
  /* Enhance readability of muted text */
  --text-muted: #8493a8 !important;
}

/* Glass panel interactive transitions */
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-panel:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 25%, transparent) !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.6), 
    0 0 30px color-mix(in srgb, var(--accent-primary) 8%, transparent) !important;
}

/* Laser-specific styling (Violet for Femtosecond, Gold for Excimer) */
.steps-progress-dot {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Customize active and completed steps based on laser stage */
/* Step 3: Femtosecond laser flap creation (Violet) */
.steps-progress-dot:nth-child(3).active-radar-dot {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5) !important;
  border-color: var(--accent-tertiary) !important;
  color: var(--accent-tertiary) !important;
}

/* Step 4: Excimer laser sculpting (Violet / Gold hybrid) */
.steps-progress-dot:nth-child(4).active-radar-dot {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4), 0 0 25px rgba(226, 184, 87, 0.2) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}

/* Layout Adaptation & Touch Optimizations */
/* Touch targets comfort boost on progress dots */
.steps-progress-dot {
  position: relative !important;
}
.steps-progress-dot::after {
  content: '' !important;
  position: absolute !important;
  top: -10px !important;
  bottom: -10px !important;
  left: -10px !important;
  right: -10px !important;
  cursor: pointer !important;
}

/* Tablet portrait optimizations (viewports below 1024px) */
@media (max-width: 1024px) {
  .marano-profile-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .marano-stats-column {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(226, 184, 87, 0.15) !important;
    padding-top: 24px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: space-around !important;
  }
  .marano-stats-column > div {
    flex: 1 !important;
    min-width: 150px !important;
    text-align: center !important;
  }
  /* Remove divider lines in row view */
  .marano-stats-column > div[style*="height: 1px"],
  .marano-stats-column > div[style*="height:1px"] {
    display: none !important;
  }
  .marano-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .marano-consultation-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Unified Page Layout Spacing */
.section,
#social-proof-section,
.cta-section {
  padding: clamp(80px, 7vw, 120px) 0 !important;
}

/* Adjust secondary sections to match the rhythm */
.trust-metrics-section {
  padding: 48px 0 !important;
  margin-top: 0 !important;
}

.footer-content {
  padding: 64px 0 32px 0 !important;
}

.container {
  padding: 0 24px !important;
}

/* ==========================================
   BOLD DIRECTIONS PREMIUM OVERLAY OVERRIDES
   ========================================== */

/* 1. Tactile Noise overlay to break standard digital flat design */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.012;
  pointer-events: none;
  z-index: 9999;
}

/* 2. Cinematic Refraction Shimmer on Hero Panel */
.hero-image-card {
  position: relative;
  overflow: hidden !important;
}
.hero-image-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 10;
}
.hero-image-wrapper:hover .hero-image-card::after {
  left: 150%;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 3. Active Step Progress Diagnostic HUD labels */
.steps-progress-dot {
  position: relative;
}
.steps-progress-dot.active-radar-dot::before {
  content: "SYS_OK" !important;
  position: absolute;
  bottom: calc(100% + 12px) !important; /* Elegant telemetry positioned above the dot */
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-primary);
  white-space: nowrap;
  opacity: 0.85;
  pointer-events: none;
  z-index: 20;
}
.steps-progress-dot:nth-child(3).active-radar-dot::before {
  content: "SYS_OK // 1053nm" !important;
  color: var(--accent-tertiary) !important;
}
.steps-progress-dot:nth-child(4).active-radar-dot::before {
  content: "SYS_OK // 193nm" !important;
  color: var(--accent-primary) !important;
}

/* 4. Animated Light-Sweep Shimmer on CTA Buttons */
.btn {
  position: relative;
  overflow: hidden !important;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: none;
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before {
  left: 100%;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 5. Editorial Typography & Layout Contrast Spacing */
h1, h2, h3, .hero-display-title, .bio-heading {
  letter-spacing: -0.015em !important;
}
.hero-eyebrow {
  letter-spacing: 3px !important;
  font-weight: 600 !important;
  background: rgba(226, 184, 87, 0.05) !important;
  border-color: rgba(226, 184, 87, 0.15) !important;
}
.proof-card {
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  background: rgba(13, 20, 30, 0.4) !important;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7) !important;
}

/* 6. Tactile Noise Overlay to break digital flatness */
.tactile-grain-overlay {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.012;
  pointer-events: none;
  z-index: 9999;
}

/* 7. Dr. Matthew Marano Mini-Portrait Styling & Spacing Restoration */
.marano-mini-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mini-portrait-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(226, 184, 87, 0.25);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5), 
    0 0 20px rgba(226, 184, 87, 0.05);
}

@media (min-width: 1025px) {
  .mini-portrait-wrapper {
    top: -100px !important;
  }
}

.mini-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-portrait-wrapper:hover {
  transform: scale(1.03);
  border-color: rgba(226, 184, 87, 0.5);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6), 
    0 0 30px rgba(226, 184, 87, 0.1);
}

.mini-portrait-wrapper:hover .mini-portrait-image {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.mini-portrait-divider {
  height: 1px;
  background: rgba(226, 184, 87, 0.15);
  margin: 16px 0 24px 0;
  width: 100%;
}

/* Responsive Mini Portrait Adapters */
@media (max-width: 1024px) {
  .marano-mini-portrait {
    flex: 1 0 100% !important;
    margin-bottom: 16px !important;
  }
  .mini-portrait-divider {
    display: none !important;
  }
}

/* ==========================================
   MARANO HIGH-END UX POLISH ADDITIONS
   ========================================== */

/* 8. Cohesive Motion Language Transitions (60fps Cubic-Bezier) */
.btn, 
.quiz-option-btn, 
.science-tab-btn, 
.steps-progress-dot, 
.faq-item, 
.proof-card, 
.glass-panel, 
.mini-portrait-wrapper, 
.contact-phone-box,
input,
textarea {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 9. Premium Keyboard Focus Indicators (WCAG AA Compliance) */
:focus-visible,
.btn:focus-visible, 
.quiz-option-btn:focus-visible, 
.science-tab-btn:focus-visible, 
.steps-progress-dot:focus-visible,
.faq-item:focus-visible {
  outline: 2px solid #e2b857 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 15px rgba(226, 184, 87, 0.45) !important;
}

/* Custom indicator for native range inputs/sliders */
input[type="range"]:focus-visible {
  outline: 2px solid #e2b857 !important;
  outline-offset: 6px !important;
}

/* 10. Mobile Touch Target Calibration (>= 44x44px target bounds) */
@media (max-width: 768px) {
  .science-tab-btn {
    padding: 14px 22px !important; /* height is guaranteed >= 44px */
  }
  .quiz-option-btn {
    padding: 22px 26px !important; /* height is guaranteed >= 44px */
  }
  .btn {
    min-height: 48px !important; /* height is guaranteed >= 44px */
  }
  /* Give sliders larger vertical grab areas */
  input[type="range"] {
    min-height: 44px !important;
  }
}

/* 11. Editorial Typographical Orphans & Widows Protection */
p, li, .proof-quote, .faq-answer {
  text-wrap: pretty !important;
}
h1, h2, h3, h4, .hero-serif-title, .hero-display-title, .bio-heading {
  text-wrap: balance !important;
}

/* ==========================================
   LIFESTYLE OUTCOME SECTIONS STYLING
   ========================================== */
.lifestyle-tab-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 24px !important;
  border-radius: 100px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
}

.lifestyle-tab-btn:hover {
  background: rgba(226, 184, 87, 0.04) !important;
  border-color: rgba(226, 184, 87, 0.3) !important;
  color: #f8fafc !important;
  transform: translateY(-2px) !important;
}

.lifestyle-tab-btn.active {
  background: linear-gradient(135deg, rgba(226, 184, 87, 0.15) 0%, rgba(226, 184, 87, 0.03) 100%) !important;
  border-color: #e2b857 !important;
  color: #ffe293 !important;
  box-shadow: 0 8px 24px -4px rgba(226, 184, 87, 0.1) !important;
}

.tab-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.lifestyle-pane-grid {
  opacity: 0;
  transform: translateY(12px);
  animation: tabFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 12. Visual Comparison Slider Component - Removed (Simulators deleted per user request) */

/* Tablet portrait adaptations for Lifestyle section */
@media (max-width: 768px) {
  .lifestyle-pane-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .lifestyle-slider-container {
    max-width: 100% !important;
    height: 240px !important;
  }
  .lifestyle-tab-btn {
    flex: 1 0 calc(50% - 8px) !important;
    justify-content: center !important;
  }
}
@media (max-width: 480px) {
  .lifestyle-tab-btn {
    flex: 1 0 100% !important;
  }
}

/* ==========================================
   P1/P2: NEW SECTION STYLES
   ========================================== */

/* Timeline Strip Cards */
.timeline-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.timeline-card:hover {
  border-color: rgba(226, 184, 87, 0.2) !important;
  background: rgba(226, 184, 87, 0.02) !important;
  transform: translateY(-3px);
}

/* ROI Grid Hover */
.roi-grid > div {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.roi-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Metrics Banner */
.metrics-banner-grid > div {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9990 !important;
    padding: 12px 16px !important;
    background: rgba(3, 5, 8, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(226, 184, 87, 0.15) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6) !important;
  }
  /* Add body bottom padding so content isn't hidden behind sticky bar */
  body {
    padding-bottom: 70px !important;
  }
}

/* Responsive: Timeline strip stacks on mobile */
@media (max-width: 768px) {
  .timeline-strip-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
@media (max-width: 480px) {
  .timeline-strip-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive: ROI grid stacks on mobile */
@media (max-width: 768px) {
  .roi-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Responsive: Metrics banner stacks on mobile */
@media (max-width: 768px) {
  .metrics-banner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .metrics-banner-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Persona Tags — subtle entry animation */
.persona-tag {
  animation: tagFadeIn 0.6s ease-out forwards;
}
@keyframes tagFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 0.8; transform: translateY(0); }
}
