/* Minimal landing page styles (reuses tokens + theme) */

/* ===== TYPOGRAPHY HIERARCHY ENFORCEMENT ===== */
/* Enforce Zuume for h1/h2 only, Industry for everything else */

h1, h2 {
  font-family: var(--font-heading) !important; /* Zuume */
  font-weight: 700; /* Can use bold for display headings */
}

h3, h4, h5, h6 {
  font-family: var(--font-body) !important; /* Industry */
  font-weight: 600; /* Max weight for Industry */
}

/* Stat numbers - Industry font with moderate weight */
.stat-number,
.stat-value {
  font-family: var(--font-body) !important;
  font-weight: 600;
}

/* Override Bootstrap bold utilities to prevent excessive weight */
.fw-bold {
  font-weight: 600 !important; /* Prevent 700 weight on body text */
}

.fw-bolder {
  font-weight: 600 !important; /* Same as bold */
}

/* ===== COMPREHENSIVE DARK MODE TEXT VISIBILITY FIX ===== */
/* Nuclear option: Force all problematic text classes to be visible in dark mode */

/* Primary text visibility fixes */
:root[data-bs-theme="dark"] .text-muted,
:root[data-bs-theme="dark"] p.text-muted,
:root[data-bs-theme="dark"] h1.text-muted,
:root[data-bs-theme="dark"] h2.text-muted,
:root[data-bs-theme="dark"] h3.text-muted,
:root[data-bs-theme="dark"] h4.text-muted,
:root[data-bs-theme="dark"] h5.text-muted,
:root[data-bs-theme="dark"] h6.text-muted,
:root[data-bs-theme="dark"] .lead.text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

:root[data-bs-theme="dark"] .text-dark,
:root[data-bs-theme="dark"] p.text-dark,
:root[data-bs-theme="dark"] .accordion-header.text-dark {
  color: rgba(255, 255, 255, 0.95) !important;
}

:root[data-bs-theme="dark"] .text-secondary,
:root[data-bs-theme="dark"] p.text-secondary {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Accordion button text in dark mode */
:root[data-bs-theme="dark"] .accordion-header.text-dark .accordion-button,
:root[data-bs-theme="dark"] .accordion-header.text-dark button {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Force all body text to be visible */
:root[data-bs-theme="dark"] p,
:root[data-bs-theme="dark"] .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Stat labels and small text */
:root[data-bs-theme="dark"] .stat-label,
:root[data-bs-theme="dark"] .small,
:root[data-bs-theme="dark"] small {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Light mode contrast improvements */
:root[data-bs-theme="light"] .text-muted,
:root[data-bs-theme="light"] p.text-muted,
:root[data-bs-theme="light"] .lead.text-muted {
  color: rgba(0, 0, 0, 0.65) !important;
}

:root[data-bs-theme="light"] .text-secondary {
  color: rgba(0, 0, 0, 0.55) !important;
}

/* ===== END TEXT VISIBILITY FIX ===== */

/* ===== PARTNERSHIP OPPORTUNITIES OVERVIEW ===== */

/* Icon circles for card headers */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card hover lift effect - DISABLED */
/* .hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
} */

/* Opportunities overview section styling */
#opportunities-overview .card {
  overflow: hidden;
}

#opportunities-overview .card-body {
  display: flex;
  flex-direction: column;
}

#opportunities-overview .btn {
  margin-top: auto;
}

/* Light mode card backgrounds */
:root[data-bs-theme="light"] #opportunities-overview .card {
  background: var(--map-surface);
}

/* Dark mode adjustments */
:root[data-bs-theme="dark"] #opportunities-overview {
  background: var(--map-surface) !important;
}

:root[data-bs-theme="dark"] #opportunities-overview .card {
  background: var(--map-surface-alt);
}

/* Dark mode hover effects - DISABLED */
/* :root[data-bs-theme="dark"] .hover-lift:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
} */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  /* .hover-lift {
    transition: none !important;
  }
  
  .hover-lift:hover {
    transform: none !important;
  } */
}

/* ===== END PARTNERSHIP OPPORTUNITIES OVERVIEW ===== */

.skip-to-content {
  position: fixed;
  top: -100%;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--map-color-brand, #c62828);
  color: #fff;
  text-decoration: none;
  transition: top .2s ease;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 .75rem .75rem;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.35);
  opacity: 0;
}

.skip-to-content:focus {
  top: 0;
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Minimal navbar: transparent over hero, solid on scroll */
.navbar-minimal {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.navbar-minimal .btn.btn-sm { padding: .375rem .5rem; }
.navbar-minimal .btn.btn-primary.btn-sm { padding: .375rem .75rem; }
.navbar-minimal .navbar-brand img { height: 40px; width: auto; }
.navbar-minimal .theme-toggle-fixed { margin-left: auto; }
.navbar-minimal.navbar-solid {
  background: color-mix(in srgb, #000 85%, transparent);
  border-bottom-color: color-mix(in srgb, #fff 8%, transparent);
  backdrop-filter: saturate(130%) blur(6px);
}

.lp-hero {
  position: relative;
  min-height: 95vh; /* Increased from 80vh to give more vertical space */
  padding-top: 88px; /* make room for fixed navbar */
  overflow: visible; /* Allow theater mode overlay to extend beyond */
  background: transparent;
}
/* Additional breathing room below hero content (restored) */
.lp-hero > .container { padding-bottom: clamp(3rem, 10vh, 6rem); } /* Increased from 6vh */
/* Use modern small viewport units when available to avoid mobile browser UI shrink issues */
@supports (height: 100svh) {
  .lp-hero { min-height: 95svh; }
}
/* On small screens keep full immersive height */
@media (max-width: 575.98px) {
  .lp-hero { min-height: 100vh; }
  @supports (height: 100svh) { .lp-hero { min-height: 100svh; } }
}
/* Optional gentle cap so ultra-tall desktops don’t create excessive vertical emptiness */
@media (min-width: 992px) and (min-height: 1100px) {
  .lp-hero { min-height: 72vh; }
}

/* Background video fills container */
/* Native video background */
.lp-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(70%) contrast(95%) brightness(65%);
  pointer-events: none;
}

/* Gradient overlay on top of video for readability */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(0,0,0,0.35), rgba(0,0,0,0.65) 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 40%, transparent 60%);
}

/* Bottom fade to visually fuse hero into overlapping next section */
.lp-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px; /* fade zone */
  pointer-events: none;
  z-index: 2; /* above ::before, below overlapping section (z=3) */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.45) 100%);
}
:root[data-bs-theme="light"] .lp-hero::after {
  /* Fade to transparent instead of white so showcase section shows through */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
}

/* Theme-aware hero adjustments */
:root[data-bs-theme="light"] .lp-hero-video {
  /* Restored ultra-washed visual: full grayscale, very low contrast, high brightness */
  filter: grayscale(100%) contrast(25%) brightness(220%);
}
:root[data-bs-theme="dark"] .lp-hero-video {
  filter: saturate(70%) contrast(100%) brightness(60%);
}

:root[data-bs-theme="light"] .lp-hero::before {
  /* Restored feathered white from top to transparent for light theme */
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255,255,255,0.99) 8%,
    rgba(255,255,255,0.95) 18%,
    rgba(255,255,255,0.88) 30%,
    rgba(255,255,255,0.76) 46%,
    rgba(255,255,255,0.58) 64%,
    rgba(255,255,255,0.34) 82%,
    transparent 100%
  );
}
:root[data-bs-theme="dark"] .lp-hero::before {
  /* Darker neutral-dominant top with a restrained red lift toward the lower third */
  background:
    /* Bottom halo: subtle, less saturated red (reduced alpha) */
    radial-gradient(140% 130% at 50% 100%, rgba(40,0,8,0.65) 0%, rgba(120,0,20,0.22) 60%, rgba(140,0,24,0.18) 75%, rgba(170,0,28,0.16) 100%),
    /* Vertical stack: deep neutral top -> faint red mid -> gentle glow near bottom */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.82) 0%,        /* near-black top */
      rgba(4,0,1,0.78) 10%,
      rgba(8,0,2,0.74) 20%,
      rgba(12,0,3,0.70) 32%,
      rgba(18,0,4,0.64) 44%,      /* still mostly neutral */
      rgba(30,0,6,0.58) 56%,
      rgba(55,0,10,0.46) 66%,     /* gentle transition begins */
      rgba(95,0,16,0.34) 76%,
      rgba(140,0,24,0.26) 86%,
      rgba(185,0,30,0.22) 92%,
      rgba(235,0,41,0.18) 100%    /* restrained red glow tail */
    );
}

.lp-hero .header-text-main {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Light theme text & button overrides (restored) */
:root[data-bs-theme="light"] .lp-hero .header-text-main { color: #111 !important; text-shadow: none; }
:root[data-bs-theme="light"] .lp-hero .lp-headline .line-2 { color: var(--map-color-brand, #c62828) !important; }
:root[data-bs-theme="light"] .lp-hero .text-white { color: #111 !important; }
:root[data-bs-theme="light"] .lp-hero .text-white-50,
:root[data-bs-theme="light"] .lp-hero .lp-lead,
:root[data-bs-theme="light"] .lp-hero .lead { color: rgba(0,0,0,0.7) !important; }
:root[data-bs-theme="light"] .lp-hero .btn.btn-outline-light {
  --bs-btn-color: #111;
  --bs-btn-border-color: rgba(0,0,0,0.7);
  --bs-btn-hover-bg: rgba(0,0,0,0.08);
  --bs-btn-hover-border-color: rgba(0,0,0,0.85);
}

/* Landing headline emphasis */
.lp-headline .line-1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: .02em;
  opacity: .95;
}
.lp-headline .line-2 {
  font-size: clamp(3.25rem, 11vw, 8rem);
  letter-spacing: .025em; /* Increased for Zuume bold */
  line-height: 1.05;
  font-family: var(--font-heading, var(--font-body, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif));
  font-weight: 700;
}

.lp-hero .btn.btn-outline-light {
  --bs-btn-border-color: rgba(255,255,255,0.8);
  --bs-btn-hover-bg: rgba(255,255,255,0.1);
  --bs-btn-hover-border-color: rgba(255,255,255,0.9);
  --bs-btn-color: #fff;
}

/* Cards */
.card .material-icons {
  font-size: 28px;
}

/* Footer spacing harmonized with sections */
footer {
  background: var(--map-surface-alt);
}

/* Slightly larger lead line */
.lp-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-family: var(--font-body, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif);
  letter-spacing: .02em;
  font-weight: 400;
}

/* Respect prefers-reduced-motion: pause video and use poster image */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-video { display: none; }
  .lp-hero {
    background: radial-gradient(120% 100% at 50% 0%, rgba(0,0,0,0.35), rgba(0,0,0,0.65) 70%),
                linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 40%, transparent 60%),
                url('../img/brick-building-bg.webp') center/cover no-repeat;
  }
}

/* Illustration sizing and subtle pop over video */
.lp-hero-illustration {
  max-height: clamp(260px, 52vh, 520px);
  object-fit: contain;
  /* Shadow removed per request */
  filter: none;
}

/* Initiatives section */
.lp-initiatives {
  /* No background - transparent so hero and showcase sections meet */
  background: transparent;
  padding: 0 !important; /* Remove py-4 padding to eliminate gap */
}

.lp-initiatives .brand-logos img {
  height: auto;
  max-height: 62px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.lp-initiatives.over-hero {
  /* Stronger overlap: dynamic based on viewport height, capped for extreme cases */
  margin-top: clamp(-120px, -14vh, -72px);
  margin-bottom: clamp(-120px, -14vh, -72px); /* Also overlap bottom to close gap */
  position: relative;
  z-index: 3; /* above hero overlays/content */
}
@media (max-width: 575.98px) {
  .lp-initiatives.over-hero { margin-top: -44px; }
}
.lp-initiatives-card {
  /* Restore transparency with backdrop filter */
  background: color-mix(in srgb, var(--map-surface) 70%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid color-mix(in srgb, var(--map-text) 10%, transparent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

:root[data-bs-theme="dark"] .lp-initiatives-card {
  /* Restore dark mode transparency */
  background: color-mix(in srgb, var(--map-surface) 25%, rgba(255,255,255,0.06));
  border-color: color-mix(in srgb, var(--map-text) 12%, transparent);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

/* Landing ticker overrides (remove black background) */
.lp-capability-ticker .slider-2 {
  background: transparent !important;
  height: auto !important;
  min-height: 44px;
}
.lp-capability-ticker .slider-2::before,
.lp-capability-ticker .slider-2::after {
  background: none !important;
}
/* Theme adaptive ticker text */
.lp-capability-ticker .slide-text p { color: var(--map-text-on-accent, #f8f9fa); }
:root[data-bs-theme="light"] .lp-capability-ticker .slide-text p { color: #1a1d21; }
:root[data-bs-theme="dark"] .lp-capability-ticker .slide-text p { color: #f1f3f5; }
.lp-capability-ticker .slide-text i.material-icons,
.lp-capability-ticker .slide-text svg { opacity: .9; }
:root[data-bs-theme="light"] .lp-capability-ticker .slide-text i.material-icons,
:root[data-bs-theme="light"] .lp-capability-ticker .slide-text svg { color: #111; }
:root[data-bs-theme="dark"] .lp-capability-ticker .slide-text i.material-icons,
:root[data-bs-theme="dark"] .lp-capability-ticker .slide-text svg { color: #fafafa; }
/* Remove any residual padding contrast */
.lp-capability-ticker { background: none !important; }
/* Fix: prevent ticker clipping (original compiled CSS forces height:40px & slide-text height:26px) */
.lp-capability-ticker .slider-2 { height: auto !important; min-height: 44px; }
.lp-capability-ticker .slider-2 .slide-track-2 { align-items: center; }
.lp-capability-ticker .slider-2 .slide-text { height: auto !important; display:flex; align-items:center; padding: .35rem .25rem !important; }
.lp-capability-ticker .slider-2 .slide-text p { line-height: 1.15; padding: 0; }
/* Slightly tighten icon baseline alignment */
.lp-capability-ticker .slider-2 .slide-text i.material-icons, 
.lp-capability-ticker .slider-2 .slide-text svg { position: relative; top: 1px; }

/* -------------------------------------------------- */
/* Strategic Brands Carousel Section (Swiper.js)      */
/* -------------------------------------------------- */
.brands-carousel-section {
  position: relative;
  /* Theme-aware gradient using surface tokens */
  background: 
    linear-gradient(to bottom,
      var(--map-surface) 0%,
      var(--map-surface-alt) 50%,
      var(--map-surface) 100%
    );
}
/* Enhanced dark mode gradient for more depth */
:root[data-bs-theme="dark"] .brands-carousel-section {
  background: 
    linear-gradient(to bottom,
      var(--map-surface) 0%,
      color-mix(in srgb, var(--map-surface) 80%, #000 20%) 30%,
      color-mix(in srgb, var(--map-surface) 60%, #000 40%) 50%,
      color-mix(in srgb, var(--map-surface) 80%, #000 20%) 70%,
      var(--map-surface) 100%
    );
}

.brands-swiper-container {
  position: relative;
  background: var(--map-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}
:root[data-bs-theme="dark"] .brands-swiper-container {
  background: color-mix(in srgb, var(--map-surface) 25%, rgba(255,255,255,0.04));
  border-color: color-mix(in srgb, var(--map-text) 15%, transparent);
}

.brands-swiper {
  padding-bottom: 1rem;
  overflow: hidden;
}

/* Brand Logo Items */
.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 1.5vw, 1.25rem);
  background: #f5f5f5; /* Light gray background, stays consistent in both modes */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  min-height: 80px;
  width: 100%;
  cursor: pointer;
  transition: all .3s var(--anim-ease-out, ease);
}
:root[data-bs-theme="dark"] .brand-logo-item {
  background: #f5f5f5; /* Same light gray in dark mode */
  border-color: rgba(0, 0, 0, 0.12);
}

/* Hover effects removed per user request */

/* Image Logos */
.brand-logo-item img,
.brand-logo-img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%) contrast(95%) brightness(90%);
  transition: filter 0.3s ease;
}

/* Dark mode brand logos - DISABLED (always show light logos as-is) */

/* Text Logos */
.brand-logo-item.text-logo {
  text-align: center;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(.75rem, 1vw, .9rem);
  color: var(--map-text);
  line-height: 1.2;
  letter-spacing: var(--font-letterspacing-heading, .01em);
  display: block;
  max-width: 100%;
}

/* Carousel Controls */
.carousel-controls {
  position: relative;
  max-width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Swiper Navigation Buttons */
.brands-swiper-next,
.brands-swiper-prev {
  position: static;
  background: var(--map-surface);
  border: 1px solid color-mix(in srgb, var(--map-text) 15%, transparent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--map-text) 20%, transparent);
  margin-top: 0;
  flex-shrink: 0;
}
:root[data-bs-theme="dark"] .brands-swiper-next,
:root[data-bs-theme="dark"] .brands-swiper-prev {
  background: var(--map-surface-alt);
  border-color: color-mix(in srgb, var(--map-text) 25%, transparent);
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--map-text) 10%, transparent);
}

.brands-swiper-next:hover,
.brands-swiper-prev:hover {
  background: var(--map-color-brand);
  border-color: var(--map-color-brand);
  transform: scale(1.1);
}
.brands-swiper-next:hover .material-icons,
.brands-swiper-prev:hover .material-icons {
  color: #fff;
}
.brands-swiper-next .material-icons,
.brands-swiper-prev .material-icons {
  font-size: 18px;
  color: var(--map-text);
  transition: color .3s ease;
}

/* ----------------------------------------- */
/* Alliance Video Spotlight                  */
/* ----------------------------------------- */
.lp-video-section {
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
    url('../img/curtains.jpg') center/cover no-repeat;
  position: relative;
}
:root[data-bs-theme="dark"] .lp-video-section {
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6)),
    url('../img/curtains.jpg') center/cover no-repeat;
}

.lp-video-section .text-brand {
  color: var(--map-color-brand, #c62828) !important;
}

/* Force light text on curtain background */
.lp-video-section h2,
.lp-video-section .lead,
.lp-video-section .text-white {
  color: #ffffff !important;
}

/* Ensure text is readable in both themes */
:root[data-bs-theme="dark"] .lp-video-section h2,
:root[data-bs-theme="dark"] .lp-video-section .lead,
:root[data-bs-theme="dark"] .lp-video-section .text-white {
  color: #ffffff !important;
}

:root[data-bs-theme="light"] .lp-video-section h2,
:root[data-bs-theme="light"] .lp-video-section .lead,
:root[data-bs-theme="light"] .lp-video-section .text-white {
  color: #ffffff !important;
}


.lp-video-section .lp-video-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; /* Ensure wrapper is positioned for absolute curtains */
}

/* Curtain reveal animation for video section */
.video-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 100; /* Above video frame */
  pointer-events: none;
  background: 
    linear-gradient(to bottom, rgba(139, 0, 0, 0.6), rgba(139, 0, 0, 0.4)),
    url('../img/curtains.jpg') center/cover no-repeat;
  transition: 
    transform 1.5s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.0s ease-out 1.5s; /* Fade AFTER slide completes (1.5s delay) */
  border-radius: 1.75rem; /* Match video-frame border-radius */
  box-shadow: inset 0 0 60px rgba(0,0,0,0.3); /* Add depth/texture */
  opacity: 1;
}

.video-curtain-left {
  left: 0;
  transform: translateX(0);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 
    inset -20px 0 40px rgba(0,0,0,0.4),
    inset 0 0 60px rgba(0,0,0,0.2); /* Left-side shadow for depth */
}

.video-curtain-right {
  right: 0;
  transform: translateX(0);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 
    inset 20px 0 40px rgba(0,0,0,0.4),
    inset 0 0 60px rgba(0,0,0,0.2); /* Right-side shadow for depth */
}

/* Opened state - curtains slide away AND fade (but fade is delayed) */
.video-curtain-left.curtain-open {
  transform: translateX(-100%);
  opacity: 0;
}

.video-curtain-right.curtain-open {
  transform: translateX(100%);
  opacity: 0;
}

/* Theme-aware curtain overlays - keep red tint in both themes */
:root[data-bs-theme="dark"] .video-curtain {
  background: 
    linear-gradient(to bottom, rgba(139, 0, 0, 0.6), rgba(139, 0, 0, 0.4)),
    url('../img/curtains.jpg') center/cover no-repeat;
}

:root[data-bs-theme="light"] .video-curtain {
  background: 
    linear-gradient(to bottom, rgba(139, 0, 0, 0.6), rgba(139, 0, 0, 0.4)),
    url('../img/curtains.jpg') center/cover no-repeat;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .video-curtain {
    transition: none;
    display: none; /* Skip animation entirely */
  }
}

.lp-video-section .lp-video-placeholder {
  display: none;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.lp-video-section [data-video-anchor].is-empty .lp-video-placeholder {
  display: block;
}

.lp-video-section .video-frame {
  background: color-mix(in srgb, var(--map-surface-alt) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--map-text) 12%, transparent);
  border-radius: 1.75rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  backdrop-filter: saturate(125%) blur(12px);
  -webkit-backdrop-filter: saturate(125%) blur(12px);
  position: relative;
}
:root[data-bs-theme="dark"] .lp-video-section .video-frame {
  background: color-mix(in srgb, rgba(255,255,255,0.1) 60%, transparent);
  border-color: color-mix(in srgb, var(--map-text) 18%, transparent);
}

.lp-video-section .ratio {
  border-radius: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}

.lp-video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin-bottom: 0.75rem;
}

.video-toolbar .small {
  color: color-mix(in srgb, var(--map-text) 65%, transparent);
}

/* Theater Mode Modal Styles */
#videoTheaterModal .modal-content {
  background: rgba(10,12,16,0.92);
  /* Blur removed from here - now on backdrop */
}

/* Bootstrap's modal-backdrop is added as a sibling, not child - needs global selector */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1050 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(16px) !important; /* Blur moved here for full screen effect */
  -webkit-backdrop-filter: blur(16px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

/* Ensure modal itself is above backdrop */
#videoTheaterModal {
  z-index: 1055 !important;
}

#videoTheaterModal .video-theater-wrapper {
  width: min(92vw, 1180px);
  margin: 0 auto;
}

#videoTheaterModal .btn-outline-light {
  --bs-btn-border-color: rgba(255,255,255,0.75);
  --bs-btn-hover-bg: rgba(255,255,255,0.15);
  --bs-btn-hover-border-color: rgba(255,255,255,0.9);
  --bs-btn-color: #fff;
}

#videoTheaterModal video {
  background: #000;
  box-shadow: 0 32px 76px rgba(0,0,0,0.65);
}

@media (max-width: 767.98px) {
  #videoTheaterModal .video-theater-wrapper {
    width: 96vw;
  }
  .video-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .video-theater-toggle {
    width: 100%;
  }
  .lp-video-section .cta-group .btn {
    min-width: 160px;
  }
}

/* Hide default Swiper button content */
.brands-swiper-next:after,
.brands-swiper-prev:after {
  content: none;
}

/* Swiper Pagination */
.brands-swiper-pagination {
  position: static !important;
  text-align: center !important;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
}
.brands-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: color-mix(in srgb, var(--map-text) 20%, transparent);
  opacity: 1;
  margin: 0 3px;
  transition: all .3s ease;
  display: inline-block;
  vertical-align: middle;
}
.brands-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--map-color-brand);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--map-color-brand) 20%, transparent);
}

.brands-swiper-pagination span[class*="swiper-pagination-bullet"] {
  position: static !important;
  transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .brands-swiper-next,
  .brands-swiper-prev {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .brands-swiper-container {
    padding: 1.25rem 1rem;
  }
  .carousel-controls {
    gap: .75rem;
  }
}

@media (max-width: 575.98px) {
  .brand-logo-item {
    min-height: 70px;
    padding: .6rem;
  }
  .brand-text {
    font-size: .7rem;
  }
}

/* Reveal animation (on scroll) */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--anim-ease-out, ease), transform .75s var(--anim-ease-out, ease); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal].revealed:nth-child(1) { transition-delay: .05s; }
[data-reveal].revealed:nth-child(2) { transition-delay: .12s; }
[data-reveal].revealed:nth-child(3) { transition-delay: .18s; }
[data-reveal].revealed:nth-child(4) { transition-delay: .24s; }
[data-reveal].revealed:nth-child(5) { transition-delay: .30s; }
[data-reveal].revealed:nth-child(6) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .subbrand-item .logo-box { transform: none !important; }
}

/* -------------------------------------------------- */
/* Hero → Section Morph Effect                        */
/* -------------------------------------------------- */
/* Structure:
   <div class="hero-morph-sequence">
      <header class="lp-hero morph-hero">...</header>
      <section class="lp-initiatives morph-target">...</section>
   </div>
   Behavior: As user scrolls past hero, hero shrinks, gains rounded corners & padding,
   while the target section expands upward to occupy former full-bleed space.
*/

.hero-morph-sequence {
  position: relative;
  /* create room for overlap without layout jumps */
}

/* Base states */
.morph-hero {
  transform-origin: top center;
  will-change: transform, border-radius, padding, box-shadow;
  transition: box-shadow .4s ease;
}

.morph-target {
  position: relative;
  z-index: 2;
  /* We'll ease opacity/translate in view timeline */
}

/* CSS variable fallback (JS sets --hero-morph-p 0→1) */
:root { --hero-morph-p: 0; }

/* Derived interpolation using clamp for safety */
.morph-hero {
  /* Scale from 1 → .72 */
  --_p: var(--hero-morph-p);
  --_scale: calc(1 - 0.28 * var(--_p));
  --_radius: calc(0px + 28px * var(--_p));
  --_pad-inline: calc(0rem + 1.25rem * var(--_p));
  --_shadow-alpha: calc(0.0 + 0.4 * var(--_p));
  transform: scale(var(--_scale));
  border-radius: var(--_radius);
  box-shadow: 0 18px 48px -12px rgba(0,0,0,var(--_shadow-alpha));
  margin-left: auto;
  margin-right: auto;
  width: min(100%, calc(100% - 0px + 140px * var(--_p))); /* creates side whitespace */
  padding-left: var(--_pad-inline);
  padding-right: var(--_pad-inline);
  /* Ensure background overlay & video also clip */
  overflow: hidden;
}

/* Ensure inner container shrinks elegantly */
.morph-hero > .container { transition: padding .4s ease; }

/* Target rises: translateY from 0.5rem closer when morph in progress */
.morph-target {
  --_p: var(--hero-morph-p);
  transform: translateY(calc(-2rem * var(--_p)));
  opacity: calc(0.2 + 0.8 * var(--_p));
  transition: opacity .3s ease;
}

/* Removed view-timeline animations; JS now controls progression entirely. */

/* Responsive nuance: tighten side whitespace on narrow screens */
@media (max-width: 991.98px) {
  .morph-hero { width: 100% !important; border-radius: calc(14px * var(--hero-morph-p)); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .morph-hero, .morph-target { animation: none !important; transform: none !important; width: 100% !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; }
}

/* -------------------------------------------------- */
/* Industry & MCAA Reach Statistics Section           */
/* -------------------------------------------------- */
/* Default tiles (MCAA - Red) */
.stat-tile {
  background: color-mix(in srgb, var(--map-surface) 85%, var(--map-color-brand) 5%);
  border: 1px solid color-mix(in srgb, var(--map-color-brand) 12%, transparent);
  border-radius: 16px;
  transition: all .3s var(--anim-ease-out, ease);
  position: relative;
  overflow: hidden;
}

/* Hover effects removed for stat tiles */

/* Industry tiles (Gray/Black) */
.stat-tile-industry {
  background: color-mix(in srgb, var(--map-surface) 85%, #6c757d 8%);
  border-color: color-mix(in srgb, #6c757d 15%, transparent);
}

/* Hover effects removed for industry stat tiles */

/* Dark theme adjustments */
:root[data-bs-theme="dark"] .stat-tile {
  background: color-mix(in srgb, var(--map-surface-alt) 20%, rgba(235,0,41,0.08));
  border-color: color-mix(in srgb, var(--map-color-brand) 30%, transparent);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.3);
}
:root[data-bs-theme="dark"] .stat-tile-industry {
  background: color-mix(in srgb, var(--map-surface-alt) 20%, rgba(108,117,125,0.12));
  border-color: color-mix(in srgb, #6c757d 35%, transparent);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.3);
}
/* Hover effects removed for dark mode stat tiles */

/* Typography for stats */
.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-family: var(--font-heading);
  letter-spacing: .02em; /* Increased for Zuume bold */
  color: var(--map-text);
}
.stat-label {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* Stat icon - theme responsive */
.stat-icon-symbol {
  font-size: 2.5rem !important;
  color: var(--map-text-muted);
}
:root[data-bs-theme="dark"] .stat-icon-symbol {
  color: #adb5bd;
}

/* General Zuume bold letter spacing */
.tk-zuume,
[class*="zuume"] {
  font-weight: 700;
  letter-spacing: var(--font-letterspacing-heading-bold, .025em);
}

/* Dark mode text visibility fixes */
:root[data-bs-theme="dark"] #industry-reach .text-muted {
  color: #adb5bd !important;
}
:root[data-bs-theme="dark"] #industry-reach .h2,
:root[data-bs-theme="dark"] #industry-reach .h4 {
  color: var(--map-text) !important;
}
/* Removed overline color override - now uses .text-brand from HTML */

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .stat-tile {
    padding: 1.25rem !important;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-icon .material-icons {
    font-size: 2rem !important;
  }
}

/* -------------------------------------------------- */
/* Scroll-Responsive Image Showcase Section          */
/* -------------------------------------------------- */
.image-showcase-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: visible; /* Allow theater mode overlay to extend beyond */
  /* Swapped: now uses light background like brands-carousel used to */
  background: var(--map-surface-alt, #f8f9fa);
  /* NO padding-top - let it meet the hero directly */
  /* Advanced scroll optimization */
  transform: translateZ(0);
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
  /* Prevent layout thrashing during scroll */
  contain: layout style paint;
  /* Smooth scroll behavior */
  scroll-behavior: smooth;
  /* Optimize repaints */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
}

/* Remove the ::before gradient overlay - not needed with new approach */
.image-showcase-section::before {
  display: none;
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem; /* Add space between image rows */
  overflow: hidden; /* Keep overflow hidden only on container for image scrolling */
  /* Isolate from parent scroll effects */
  transform: translateZ(0);
  will-change: auto;
}

.showcase-row {
  flex: 1;
  position: relative;
  overflow: hidden;
  opacity: 0.6; /* Transparent for overlay text visibility */
}

/* Simple scroll-responsive animation with direct transforms */
.showcase-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  gap: 2rem;
  /* Hardware acceleration */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Initial positions - make sure images are visible */
.showcase-row-top .showcase-track {
  transform: translate3d(0, 0, 0);
}

.showcase-row-bottom .showcase-track {
  transform: translate3d(0, 0, 0);
}

.showcase-item {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none; /* No filters - sharp, clear images */
}

/* Hover effects removed per user request */

/* Overlay content */
.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0,0,0,0.5); /* Increased from 0.4 for better contrast */
  backdrop-filter: none; /* Blur removed */
  -webkit-backdrop-filter: none;
}

/* Animation will be controlled by JavaScript based on scroll */
/* Initial positions - centered for visibility before JS loads */
.showcase-row-top .showcase-track {
  transform: translateX(0);
}

.showcase-row-bottom .showcase-track {
  transform: translateX(0);
}

/* Dark theme adjustments */
:root[data-bs-theme="dark"] .image-showcase-section {
  /* Seamless transition from hero fade using page background color */
  background: 
    linear-gradient(to bottom,
      var(--map-surface, #0b0d10) 0%,
      #000 15%,
      #0a0a0a 50%,
      #000 100%
    );
}

:root[data-bs-theme="dark"] .showcase-overlay {
  background: rgba(0,0,0,0.6); /* Increased opacity for dark mode */
  backdrop-filter: none; /* Blur removed */
  -webkit-backdrop-filter: none;
}

/* Dark theme already has dark background via gradient */
:root[data-bs-theme="dark"] .image-showcase-section {
  background: color-mix(in srgb, var(--map-surface) 85%, transparent);
}

:root[data-bs-theme="light"] .image-showcase-section {
  /* Swapped: Light mode now keeps light surface */
  background: var(--map-surface-alt, #f8f9fa);
}

:root[data-bs-theme="light"] .image-showcase-section .showcase-overlay {
  background: rgba(255,255,255,0.5); /* Increased from 0.4 */
  backdrop-filter: none; /* Blur removed */
  -webkit-backdrop-filter: none;
}

:root[data-bs-theme="light"] .image-showcase-section .text-white {
  color: #212529 !important;
}

:root[data-bs-theme="light"] .image-showcase-section .text-white-50 {
  color: rgba(33,37,41,0.7) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .image-showcase-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .showcase-item {
    width: 240px;
    height: 150px;
  }
  
  .showcase-track {
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .image-showcase-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .showcase-item {
    width: 200px;
    height: 120px;
  }
  
  .showcase-track {
    gap: 1rem;
  }
}

/* Additional scroll performance optimizations */
.image-showcase-section * {
  /* Prevent unnecessary repaints during scroll */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

/* Force GPU acceleration on all animated elements */
.showcase-row {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .showcase-track {
    animation: none !important;
    transform: translateX(0) !important;
  }
  
  .showcase-item {
    transform: none !important;
  }
}

/* Temporary mock content styling (remove when mock sections removed) */
.lp-mock-section { background: var(--map-surface, #111); color: var(--map-text, #eee); }
.lp-mock-section-alt { background: color-mix(in srgb, var(--map-surface) 60%, #222); color: var(--map-text, #f5f5f5); }
.lp-mock-section h2, .lp-mock-section-alt h2 { letter-spacing: .08em; font-weight: 600; }
.lp-mock-section-alt ul { margin-left: 1.25rem; }

/* ==========================================
   APPLE-STYLE TILES SECTION
   ========================================== */

.tiles-section {
  background: var(--map-surface);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 8vw, 6rem) !important;
  padding-bottom: clamp(3rem, 8vw, 6rem) !important;
}

.tiles-section-alt {
  background: var(--map-surface-alt);
}

/* Tiles Grid - Masonry-style layout similar to Apple */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Mobile: single column */
@media (max-width: 767.98px) {
  .tiles-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991.98px) {
  .tiles-grid {
    gap: 0.625rem;
  }
}

/* Desktop: maintain 2 columns with slightly larger gap */
@media (min-width: 992px) {
  .tiles-grid {
    gap: 0.75rem;
  }
}

/* Individual Tile - Apple style with gradient backgrounds */
.tile {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--map-surface) 100%, transparent) 0%,
    color-mix(in srgb, var(--map-surface-alt) 100%, transparent) 100%
  );
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 0.5px solid color-mix(in srgb, var(--map-text) 6%, transparent);
  min-height: 380px;
}

/* Dark theme tile adjustments - richer gradients */
:root[data-bs-theme="dark"] .tile {
  background: linear-gradient(135deg,
    color-mix(in srgb, #1a1a1a 100%, transparent) 0%,
    color-mix(in srgb, #0a0a0a 100%, transparent) 100%
  );
  border-color: color-mix(in srgb, var(--map-text) 10%, transparent);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover effects removed for tiles */

/* Large tiles (span full width) - taller for prominence */
.tile-large {
  grid-column: span 2;
  min-height: 480px;
}

@media (max-width: 767.98px) {
  .tile-large {
    grid-column: span 1;
    min-height: 420px;
  }
}

/* Tile Content - more generous spacing like Apple */
.tile-content {
  padding: clamp(2.5rem, 5vw, 4rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

@media (max-width: 575.98px) {
  .tile-content {
    padding: 2rem 1.75rem;
  }
}

/* Tile Icons - larger, more prominent */
.tile-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.tile-icon .material-icons {
  font-size: 3.5rem;
  color: var(--map-color-brand);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
}

/* Tile icon hover effect removed */

/* Tile Title - Apple's bold, confident typography */
/* NOTE: Zuume is condensed - use lighter weight + more spacing */
.tile-title {
  color: var(--map-text);
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em; /* MORE spacing for condensed Zuume */
  line-height: 1.3; /* More breathing room */
  font-weight: 500; /* Lighter weight - NOT bold */
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  text-transform: uppercase; /* Zuume looks better uppercase */
}

.tile-large .tile-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em; /* Even more spacing for larger sizes */
  line-height: 1.25;
}

/* Tile Text - refined readability */
.tile-text {
  color: var(--map-text-muted);
  line-height: 1.65;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  margin-bottom: 0;
  font-weight: 400;
}

.tile-large .tile-text {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  max-width: 90%;
}

@media (max-width: 575.98px) {
  .tile-text {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .tile-large .tile-text {
    font-size: 1rem;
    max-width: 100%;
  }
}

/* Tile Lists (for MASONRY STRONG shows) */
.tile-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  color: var(--map-text-muted);
}

.tile-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.tile-list li:last-child {
  margin-bottom: 0;
}

.tile-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--map-color-brand);
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.tile-list strong {
  color: var(--map-text);
  font-weight: 600;
}

/* Apple-style "Learn More" links (optional, for future use) */
.tile-link {
  display: inline-flex;
  align-items: center;
  color: var(--map-color-brand);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 1.0625rem;
  transition: all 0.3s ease;
}

.tile-link:hover {
  color: var(--map-color-accent);
  transform: translateX(4px);
}

.tile-link .material-icons {
  font-size: 1.25rem;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}

.tile-link:hover .material-icons {
  transform: translateX(4px);
}

/* Specific tile accent colors for visual variety */
.tile:nth-child(1) .tile-icon .material-icons {
  color: #5e17eb; /* Purple for AI */
}

.tile:nth-child(2) .tile-icon .material-icons {
  color: var(--map-color-brand); /* Red for MASONRY STRONG */
}

.tile:nth-child(3) .tile-icon .material-icons {
  color: #0066cc; /* Blue for Education */
}

.tile:nth-child(4) .tile-icon .material-icons {
  color: #34c759; /* Green for Analytics */
}

.tile:nth-child(5) .tile-icon .material-icons {
  color: #ff9500; /* Orange for Design */
}

/* Events tiles - consistent brand color */
.tiles-grid-events .tile .tile-icon .material-icons {
  color: var(--map-color-brand);
}

/* Subtle background pattern for depth (very light) */
.tile::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at top right,
    color-mix(in srgb, var(--map-color-brand) 3%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Tile overlay hover effect removed */

/* Events Grid - 2x2 layout */
.tiles-grid-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 767.98px) {
  .tiles-grid-events {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (min-width: 992px) {
  .tiles-grid-events {
    gap: 0.875rem;
  }
}

/* Event tiles - uniform sizing, slightly taller */
.tile-event {
  min-height: 320px;
}

@media (min-width: 768px) {
  .tile-event {
    min-height: 360px;
  }
}

@media (min-width: 992px) {
  .tile-event {
    min-height: 380px;
  }
}

/* Section intro text - Apple's elegant headings */
.tiles-section .section-intro {
  margin-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.tiles-section .section-intro .overline {
  /* Color now controlled by .text-brand class in HTML */
  letter-spacing: 0.15em; /* Wide tracking for small caps */
  font-weight: 600;
  font-size: 0.875rem;
}

/* Force .text-brand to work on overlines */
.tiles-section .section-intro .overline.text-brand,
.overline.text-brand {
  color: var(--map-red-600) !important;
}

/* Section headers with Zuume - lighter weight, more spacing */
.tiles-section .section-intro .display-5 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em; /* Positive tracking for condensed Zuume */
  font-weight: 500; /* Medium weight, NOT bold */
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.25rem !important;
  line-height: 1.2;
  text-transform: uppercase; /* Zuume designed for uppercase */
}

.tiles-section .section-intro .lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  font-weight: 400;
  opacity: 0.85;
  font-family: var(--font-body); /* Use Industry for body text, NOT Zuume */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile-icon .material-icons {
    transition: none !important;
    transform: none !important;
  }
}

/* Accessibility: Focus states */
.tile:focus-within {
  outline: 3px solid var(--map-color-brand);
  outline-offset: 4px;
}

/* Print styles */
@media print {
  .tiles-section {
    background: white !important;
  }
  
  .tile {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
  }
}

/* ==========================================
   THEME COMPATIBILITY FOR COPIED SECTIONS
   ========================================== */

/* Tiers Section - Theme Aware */
#leading {
  background: var(--map-surface);
  transition: background 0.3s ease;
}

#leading .text-body {
  color: var(--map-text) !important;
}

#leading .lead {
  color: var(--map-text-muted) !important;
}

/* Tier card alignment and centering */
#leading .row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#leading .row > div > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#leading h4 {
  margin: 1rem 0 0.75rem 0;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Tier badge images - ensure consistent sizing */
#leading img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tier badges theme adjustments - FIXED for dark mode visibility */
#leading .badge {
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50rem !important; /* Force pill shape */
  display: inline-block;
  min-width: 120px;
  text-align: center;
  border: none !important; /* Remove border to let background color show */
}

#leading .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Force consistent badge appearance */
.badge.bg-cornerstone,
.badge.bg-platinum,
.badge.bg-gold,
.badge.bg-silver {
  padding: 0.5rem 1.25rem !important;
  border-radius: 50rem !important;
  border: none !important;
}

/* Ensure background colors are applied */
.badge.bg-cornerstone {
  background-color: var(--map-color-brand) !important;
}

.badge.bg-platinum {
  background-color: var(--map-color-accent) !important;
}

.badge.bg-gold {
  background-color: var(--map-color-gold) !important;
}

.badge.bg-silver {
  background-color: var(--map-color-silver) !important;
}

/* Dark mode: make badge text white for visibility */
:root[data-bs-theme="dark"] .badge.bg-cornerstone,
:root[data-bs-theme="dark"] .badge.bg-platinum,
:root[data-bs-theme="dark"] .badge.bg-gold,
:root[data-bs-theme="dark"] .badge.bg-silver {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Light mode: dark text on colored badges for contrast */
:root[data-bs-theme="light"] .badge.bg-cornerstone,
:root[data-bs-theme="light"] .badge.bg-platinum,
:root[data-bs-theme="light"] .badge.bg-gold {
  color: #fff !important; /* White text on red, blue, gold */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

:root[data-bs-theme="light"] .badge.bg-silver {
  color: #000 !important; /* Dark text on silver for contrast */
  text-shadow: none;
}

/* Enhance badge glow animations for better visibility - ALL BADGES */
.badge.badge-animate::before,
.badge.badge-animate-blue::before,
.badge.badge-animate-red::before,
.badge.badge-animate-white::before {
  opacity: 0.7 !important;
  display: block !important;
}

:root[data-bs-theme="dark"] .badge.badge-animate::before,
:root[data-bs-theme="dark"] .badge.badge-animate-blue::before,
:root[data-bs-theme="dark"] .badge.badge-animate-red::before,
:root[data-bs-theme="dark"] .badge.badge-animate-white::before {
  opacity: 0.9 !important;
}

/* Bento Box Section - Refined & Theme Aware */
.bento-section {
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--map-color-brand) 15%, transparent) 0%,
    transparent 60%
  );
  transition: background 0.3s ease;
}

:root[data-bs-theme="dark"] .bento-section {
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--map-color-brand) 25%, transparent) 0%,
    transparent 60%
  );
}

/* Box hover effects removed */

/* Better text shadows for readability on dark backgrounds */
.box h1, .box h2, .box span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* SVG icons in boxes */
.box .bi-buildings {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

/* Image filters for better contrast */
.box img {
  filter: brightness(0.95) contrast(1.05);
}

/* Hover effects removed per user request */

/* Responsive heights for bento boxes */
@media (max-width: 767.98px) {
  .height-h {
    height: 200px;
  }
  
  .height-2h {
    height: 400px;
  }
}

@media (min-width: 1400px) {
  .height-h {
    height: 280px;
  }
  
  .height-2h {
    height: 560px;
  }
}

/* Gradient border animation */
.gradient-border {
  position: relative;
  overflow: hidden;
}

.gradient-border::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(235, 0, 41, 0.1),
    transparent
  );
  animation: borderShine 3s linear infinite;
  pointer-events: none;
}

@keyframes borderShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================
   SPECS SECTION - MODERN REDESIGN
   ========================================== */

#specs {
  background: var(--map-surface);
  transition: background 0.3s ease;
  padding: 5rem 0;
}

/* Color scheme variables for each tab */
:root {
  --specs-print-color: #4a6fc8; /* Blue */
  --specs-digital-color: #10b981; /* Green */
  --specs-native-color: #eb0029; /* Red */
}

/* Section header styling */
#specs .header-text {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
}

#specs .text-warning {
  color: var(--map-color-brand) !important;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#specs .text-body {
  color: var(--map-text) !important;
}

/* Modern horizontal tabs at top */
#specs .side-nav {
  width: 100%;
  margin-bottom: 2rem;
}

#specs .side-nav .nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: static;
  padding: 0.5rem;
  background: color-mix(in srgb, var(--map-text) 3%, transparent);
  border-radius: 16px;
  max-width: 500px;
  margin: 0 auto;
}

#specs .side-nav .nav-item {
  flex: 1;
}

#specs .side-nav .nav-link {
  color: var(--map-text-muted);
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: center;
  white-space: nowrap;
}

#specs .side-nav .nav-link:hover {
  color: var(--map-text);
  background: color-mix(in srgb, var(--map-text) 5%, transparent);
}

#specs .side-nav .nav-link.active {
  color: #fff;
  background: var(--map-color-brand);
  box-shadow: 0 4px 12px rgba(235, 0, 41, 0.25),
              0 2px 6px rgba(235, 0, 41, 0.15);
}

/* Color-coded active states for main nav */
#specs .side-nav .nav-link.print-tab.active {
  background: var(--specs-print-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-print-color) 40%, transparent),
              0 2px 6px color-mix(in srgb, var(--specs-print-color) 25%, transparent);
}

#specs .side-nav .nav-link.digital-tab.active {
  background: var(--specs-digital-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-digital-color) 40%, transparent),
              0 2px 6px color-mix(in srgb, var(--specs-digital-color) 25%, transparent);
}

#specs .side-nav .nav-link.native-tab.active {
  background: var(--specs-native-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-native-color) 40%, transparent),
              0 2px 6px color-mix(in srgb, var(--specs-native-color) 25%, transparent);
}

/* Tab content area - Clean modern card */
#specs .content {
  background: var(--map-surface);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
  overflow: hidden;
  overflow-x: hidden; /* Explicitly prevent horizontal scrollbar */
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding-left: 0 !important; /* Remove Bootstrap column padding */
  padding-right: 0 !important; /* Remove Bootstrap column padding */
}

/* Hide scrollbar track completely */
#specs .content::-webkit-scrollbar {
  display: none;
}

#specs .content {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

:root[data-bs-theme="dark"] #specs .content {
  border-color: color-mix(in srgb, var(--map-text) 15%, transparent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Tab-specific color schemes */
/* Print Tab - Blue */
#print.active {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--specs-print-color) 20%, var(--map-surface)) 0%,
    color-mix(in srgb, var(--specs-print-color) 8%, var(--map-surface)) 100%);
}

#print.active .spec-title,
#print.active .digital-card-title {
  color: var(--specs-print-color);
  text-shadow: none; /* Remove text shadow */
}

#print.active .inner-tabs {
  background: color-mix(in srgb, var(--specs-print-color) 10%, transparent);
}

#print.active .inner-tabs .nav-link.active {
  background: var(--specs-print-color);
}

#print.active .spec-card {
  background: color-mix(in srgb, var(--specs-print-color) 5%, var(--map-surface));
  border-color: color-mix(in srgb, var(--specs-print-color) 25%, transparent);
}

#print.active .spec-item {
  border-bottom-color: color-mix(in srgb, var(--specs-print-color) 15%, transparent);
}

#print.active .spec-note {
  background: color-mix(in srgb, var(--specs-print-color) 15%, transparent);
  border-left-color: var(--specs-print-color);
  border-left-width: 4px;
}

#print.active .spec-download-btn {
  background: var(--specs-print-color) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--specs-print-color) 40%, transparent);
}

#print.active .spec-download-btn:hover {
  background: color-mix(in srgb, var(--specs-print-color) 90%, #000) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-print-color) 50%, transparent);
}

/* Digital Tab - Green */
#digital.active {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--specs-digital-color) 20%, var(--map-surface)) 0%,
    color-mix(in srgb, var(--specs-digital-color) 8%, var(--map-surface)) 100%);
}

#digital.active .spec-title,
#digital.active .digital-card-title {
  color: var(--specs-digital-color);
  text-shadow: none; /* Remove text shadow */
}

#digital.active .digital-card {
  border-color: color-mix(in srgb, var(--specs-digital-color) 30%, transparent);
  background: color-mix(in srgb, var(--specs-digital-color) 3%, var(--map-surface));
}

/* Digital card hover effect removed */

#digital.active .digital-specs-list li::before {
  color: var(--specs-digital-color);
  font-size: 1.2rem;
}

#digital.active .digital-specs-list li {
  border-bottom-color: color-mix(in srgb, var(--specs-digital-color) 20%, transparent);
}

#digital.active .digital-note {
  background: color-mix(in srgb, var(--specs-digital-color) 15%, transparent);
  border-left-color: var(--specs-digital-color);
  border-left-width: 4px;
}

#digital.active .spec-download-btn {
  background: var(--specs-digital-color) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--specs-digital-color) 40%, transparent);
}

#digital.active .spec-download-btn:hover {
  background: color-mix(in srgb, var(--specs-digital-color) 90%, #000) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-digital-color) 50%, transparent);
}

/* Native Tab - Neutral Gray (no color tint) */
#native.active {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--map-text) 8%, var(--map-surface)) 0%,
    color-mix(in srgb, var(--map-text) 3%, var(--map-surface)) 100%);
}

#native.active .spec-title,
#native.active .digital-card-title {
  color: var(--specs-native-color);
  text-shadow: none; /* Remove text shadow */
}

#native.active .digital-card {
  border-color: color-mix(in srgb, var(--specs-native-color) 30%, transparent);
  background: color-mix(in srgb, var(--specs-native-color) 3%, var(--map-surface));
}

/* Native card hover effect removed */

#native.active .digital-specs-list li::before {
  color: var(--specs-native-color);
  font-size: 1.2rem;
}

#native.active .digital-specs-list li {
  border-bottom-color: color-mix(in srgb, var(--specs-native-color) 20%, transparent);
}

#native.active .digital-note {
  background: color-mix(in srgb, var(--specs-native-color) 15%, transparent);
  border-left-color: var(--specs-native-color);
  border-left-width: 4px;
}

#native.active .spec-download-btn {
  background: var(--specs-native-color) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--specs-native-color) 40%, transparent);
}

#native.active .spec-download-btn:hover {
  background: color-mix(in srgb, var(--specs-native-color) 90%, #000) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-native-color) 50%, transparent);
}

/* Tab pane headers */
#specs .tab-pane {
  padding: 3rem 2rem;
}

/* Fix: Prevent .row negative margins from causing horizontal scrollbar */
#specs .tab-pane .row {
  margin-left: 0;
  margin-right: 0;
}

/* Also remove column padding to compensate for removed row margins */
#specs .tab-pane .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Spec content wrapper */
.spec-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden; /* Contain any overflow within wrapper */
}

.spec-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--map-text);
}

.spec-subtitle {
  color: var(--map-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Inner tabs (for sub-navigation within each main tab) */
.inner-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the items */
  gap: 0.75rem;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--map-text) 3%, transparent);
  border-radius: 16px;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.inner-tabs .nav-item {
  flex: 0 1 auto; /* Don't grow, shrink if needed, auto size */
  min-width: auto; /* Remove fixed min-width */
}

.inner-tabs .nav-link {
  color: var(--map-text-muted);
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
}

.inner-tabs .nav-link:hover {
  color: var(--map-text);
  background: color-mix(in srgb, var(--map-text) 6%, transparent);
}

.inner-tabs .nav-link.active {
  color: #fff;
  background: var(--map-color-brand);
  box-shadow: 0 4px 12px rgba(235, 0, 41, 0.25);
}

/* Override inner tabs color when inside specific tab panes */
#print.active .inner-tabs .nav-link.active {
  background: var(--specs-print-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-print-color) 40%, transparent);
}

#digital.active .inner-tabs .nav-link.active {
  background: var(--specs-digital-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-digital-color) 40%, transparent);
}

#native.active .inner-tabs .nav-link.active {
  background: var(--specs-native-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--specs-native-color) 40%, transparent);
}

/* Inner tab content */
.inner-tab-content {
  min-height: 350px;
}

/* Spec card - Clean card layout for each tab */
.spec-card {
  background: color-mix(in srgb, var(--map-text) 2%, transparent);
  border: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

:root[data-bs-theme="dark"] .spec-card {
  background: color-mix(in srgb, var(--map-text) 4%, transparent);
  border-color: color-mix(in srgb, var(--map-text) 12%, transparent);
}

/* Override spec card colors for each tab */
#print.active .spec-card {
  background: color-mix(in srgb, var(--specs-print-color) 5%, var(--map-surface)) !important;
  border-color: color-mix(in srgb, var(--specs-print-color) 25%, transparent) !important;
}

#digital.active .spec-card {
  background: color-mix(in srgb, var(--specs-digital-color) 5%, var(--map-surface)) !important;
  border-color: color-mix(in srgb, var(--specs-digital-color) 25%, transparent) !important;
}

#native.active .spec-card {
  background: color-mix(in srgb, var(--specs-native-color) 5%, var(--map-surface)) !important;
  border-color: color-mix(in srgb, var(--specs-native-color) 25%, transparent) !important;
}

.spec-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--map-text);
  text-align: center;
}

/* Spec details - Key/value pairs */
.spec-details {
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 700;
  color: var(--map-text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: 0 0 auto;
  margin-right: 1.5rem;
}

.spec-value {
  color: var(--map-text-muted);
  font-size: 1rem;
  text-align: right;
  flex: 1;
}

.spec-note {
  background: color-mix(in srgb, var(--map-color-brand) 5%, transparent);
  border-left: 4px solid var(--map-color-brand);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  color: var(--map-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Download button in spec card */
.spec-download-btn {
  background: var(--map-color-brand) !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.625rem 1.25rem !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body) !important; /* Industry font, not Zuume */
  width: auto;
  margin: 0;
  color: #fff !important;
}

.spec-download-btn:hover {
  background: color-mix(in srgb, var(--map-color-brand) 90%, #000) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.spec-download-btn:active {
  transform: translateY(1px);
}

/* Digital & Native Card Grid Layout */
.digital-card {
  background: color-mix(in srgb, var(--map-text) 2%, transparent);
  border: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Digital card hover effects removed */

:root[data-bs-theme="dark"] .digital-card {
  background: color-mix(in srgb, var(--map-text) 4%, transparent);
  border-color: color-mix(in srgb, var(--map-text) 12%, transparent);
}

:root[data-bs-theme="dark"] .digital-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.digital-card-image {
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--map-text) 5%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.digital-card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hover zoom removed per user request */

.digital-card-video {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.digital-card-video iframe {
  width: 100%;
  border: none;
  display: block;
}

.digital-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.digital-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--map-text);
}

.digital-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.digital-specs-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--map-text) 8%, transparent);
  color: var(--map-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.digital-specs-list li:last-child {
  border-bottom: none;
}

.digital-specs-list li::before {
  content: '→';
  color: var(--map-color-brand);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.digital-note {
  background: color-mix(in srgb, var(--map-color-brand) 5%, transparent);
  border-left: 3px solid var(--map-color-brand);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0 0 0;
  color: var(--map-text);
  font-size: 0.9rem;
  line-height: 1.7;
}

#specs .tab-pane h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--map-text);
}

#specs .tab-pane hr {
  border-color: color-mix(in srgb, var(--map-text) 15%, transparent);
  opacity: 0.5;
  margin: 1.5rem 0 2rem 0;
  max-width: 100px;
}

/* Icon styling at top of each tab */
#specs .tab-pane img[width="50"] {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
  opacity: 0.9;
}

/* Accordion improvements - Modern clean style */
#specs .accordion {
  margin-top: 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#specs .accordion-item {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--map-text) 10%, transparent);
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

#specs .accordion-item:hover {
  border-color: color-mix(in srgb, var(--map-color-brand) 30%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

:root[data-bs-theme="dark"] #specs .accordion-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#specs .accordion-header {
  border-radius: 16px !important;
}

#specs .accordion-button {
  background: transparent;
  color: var(--map-text);
  font-weight: 700;
  padding: 1.5rem 2rem;
  border-radius: 16px !important;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  border: none;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

#specs .accordion-button strong {
  font-weight: 700;
}

#specs .accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--map-color-brand) 5%, transparent);
  color: var(--map-text);
  box-shadow: none;
}

#specs .accordion-button:hover {
  background: color-mix(in srgb, var(--map-color-brand) 3%, transparent);
}

#specs .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eb0029'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
  width: 1.5rem;
  height: 1.5rem;
}

#specs .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

#specs .accordion-body {
  padding: 2.5rem 2rem;
  background: color-mix(in srgb, var(--map-text) 2%, transparent);
  color: var(--map-text);
}

/* Accordion body with background images - Native/Digital tabs */
#specs .accordion-collapse[style*="digital-bg"] .accordion-body {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(14, 14, 14, 0.88) 100%
  ), url("../../img/digital-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff !important;
}

#specs .accordion-body img {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

/* Removed hover zoom effect for images */

#specs .accordion-body p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: inherit;
  font-size: 1rem;
}

#specs .accordion-body iframe {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
}

/* Download buttons - Modern style */
.accordion-download-button,
#specs .btn-info {
  background: linear-gradient(135deg, var(--map-color-brand) 0%, color-mix(in srgb, var(--map-color-brand) 85%, #000) 100%) !important;
  border: none !important;
  border-radius: 50rem !important;
  padding: 1rem 2.5rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(235, 0, 41, 0.3);
  margin-top: 1.5rem;
  display: inline-block;
  font-family: var(--font-heading);
}

.accordion-download-button:hover,
#specs .btn-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(235, 0, 41, 0.4);
}

.accordion-download-button:active,
#specs .btn-info:active {
  transform: translateY(-1px);
}

/* Fine print styling */
#specs .fine-print {
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.7;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--map-text) 10%, transparent);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
  #specs {
    padding: 4rem 0;
  }
  
  #specs .tab-pane {
    padding: 2rem 1.5rem;
  }
  
  .spec-card {
    padding: 2rem 1.5rem;
  }
  
  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .spec-label {
    margin-right: 0;
  }
  
  .spec-value {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  #specs .side-nav .nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    max-width: 100%;
  }
  
  #specs .side-nav .nav-link {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  #specs .content {
    border-radius: 20px;
  }
  
  #specs .tab-pane {
    padding: 1.5rem 1rem;
  }
  
  .spec-title {
    font-size: 1.5rem;
  }
  
  .spec-subtitle {
    font-size: 0.9rem;
  }
  
  /* Inner tabs scroll horizontally on mobile */
  .inner-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    max-width: 100%;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .inner-tabs .nav-item {
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .inner-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .spec-card {
    padding: 1.75rem 1.25rem;
  }
  
  .spec-card-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .spec-note {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    margin: 1.5rem 0;
  }
  
  .spec-download-btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.85rem;
  }
}

/* Accordion theme - Additional dark mode styling */
:root[data-bs-theme="dark"] .accordion-item {
  background: color-mix(in srgb, var(--map-surface) 95%, #fff);
  border-color: color-mix(in srgb, var(--map-text) 12%, transparent);
}

:root[data-bs-theme="dark"] .accordion-button {
  background: color-mix(in srgb, var(--map-surface) 90%, #fff);
  color: var(--map-text);
}

:root[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--map-surface) 85%, #fff);
  color: var(--map-color-brand);
}

:root[data-bs-theme="dark"] .accordion-body {
  background: var(--map-surface);
  color: var(--map-text);
}

/* Tab panes theme */
:root[data-bs-theme="dark"] .tab-pane {
  background: var(--map-surface);
  color: var(--map-text);
}

/* Reduced motion for bento animations */
@media (prefers-reduced-motion: reduce) {
  .box,
  .gradient-border::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ================================================== */
/* APPLE-STYLE FULL-BLEED FEATURE BLOCKS              */
/* ================================================== */

/* Feature Block Base */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  width: 100%;
  overflow: visible; /* Allow overlays to extend beyond */
  background: transparent; /* No background color - uses page background */
  gap: 12px; /* Wider horizontal and vertical gaps */
  margin-bottom: 12px; /* Match gap size for vertical spacing between blocks */
}

/* Image on right side */
.feature-block-image-right {
  grid-template-columns: 1fr 1.2fr;
}

/* Image on left side */
.feature-block-image-left {
  grid-template-columns: 1.2fr 1fr;
}

/* Content side */
.feature-block-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem);
  background: var(--map-surface);
}

.feature-block-text {
  max-width: 560px;
}

/* Media side - edge-to-edge images */
.feature-block-media {
  position: relative;
  overflow: hidden; /* Keep overflow hidden only on the media container for image cropping */
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.08));
}

.feature-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hover zoom removed per user request */

/* Split section (50/50) */
.feature-block-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  gap: 12px; /* Wider horizontal and vertical gaps */
  margin-bottom: 12px; /* Match gap size for vertical spacing between blocks */
  background: transparent; /* No background color - uses page background */
}

.feature-block-half {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
  background: var(--map-surface);
}

/* Half section with background image */
.feature-block-half-with-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.feature-block-half-with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(0,0,0,0.75) 0%, 
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}

.feature-block-half-with-image .feature-block-text {
  position: relative;
  z-index: 2;
  color: #fff;
}

.feature-block-half-with-image .feature-title,
.feature-block-half-with-image .feature-description {
  color: #fff !important;
}

/* Dark/Light variants */
.feature-block-dark {
  background: linear-gradient(135deg, #000 0%, #111 100%);
}

.feature-block-dark .feature-block-content {
  background: linear-gradient(135deg, #000 0%, #111 100%);
}

.feature-block-dark .feature-title,
.feature-block-dark .feature-description,
.feature-block-dark .tile-icon {
  color: #fff !important;
}

.feature-block-light {
  background: var(--map-surface);
}

/* Typography */
.feature-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--map-text);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--map-text);
  opacity: 0.85;
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.feature-list li {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--map-text);
  opacity: 0.8;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--map-color-brand);
  font-weight: 700;
}

/* Icons in feature blocks */
.feature-block .tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--map-color-brand) 10%, transparent);
}

.feature-block .tile-icon .material-icons {
  font-size: 32px;
  color: var(--map-color-brand);
}

/* Dark theme adjustments */
:root[data-bs-theme="dark"] .feature-block-content {
  background: var(--map-surface);
}

:root[data-bs-theme="dark"] .feature-block-media {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
}

:root[data-bs-theme="dark"] .feature-title,
:root[data-bs-theme="dark"] .feature-description,
:root[data-bs-theme="dark"] .feature-list li {
  color: var(--map-text) !important;
}

/* Responsive breakpoints */
@media (max-width: 991.98px) {
  .feature-block,
  .feature-block-image-right,
  .feature-block-image-left {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .feature-block-media {
    min-height: 50vh;
    order: -1; /* Image always on top on mobile */
  }
  
  .feature-block-content {
    padding: 3rem 2rem;
  }
  
  .feature-block-split {
    grid-template-columns: 1fr;
  }
  
  .feature-block-half {
    padding: 3rem 2rem;
    min-height: 50vh;
  }
}

@media (max-width: 575.98px) {
  .feature-block-content,
  .feature-block-half {
    padding: 2.5rem 1.5rem;
  }
  
  .feature-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .feature-description {
    font-size: 1rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
  }
  
  .feature-block .tile-icon {
    width: 52px;
    height: 52px;
  }
  
  .feature-block .tile-icon .material-icons {
    font-size: 26px;
  }
}

/* ===== STATS SECTION IMAGE SLIDESHOW ===== */
.stats-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 1rem; /* Match rounded-4 */
}

.stats-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden; /* Ensure content clips to parent */
  border-radius: 1rem; /* Match rounded-4 */
}

.stats-slide.active {
  opacity: 1;
}

.stats-slide img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block; /* Remove any inline spacing */
}

/* Quote overlay positioning - bottom by default */
.stats-slide > div {
  bottom: 0 !important;
  top: auto !important;
  border-radius: 0 0 1rem 1rem !important;
}

/* On mobile/single column, move quote to top and reduce image height */
@media (max-width: 1399.98px) {
  .stats-slideshow {
    min-height: 250px;
  }
  
  .stats-slide img {
    min-height: 250px;
  }
  
  .stats-slide > div {
    bottom: auto !important;
    top: 0 !important;
    border-radius: 1rem 1rem 0 0 !important;
  }
}

/* Compact stats on mobile */
@media (max-width: 767.98px) {
  .stat-tile {
    padding: 1rem !important;
  }
  
  .stat-icon .material-icons,
  .stat-icon-symbol {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.25rem !important;
  }
  
  .stat-label {
    font-size: 0.75rem !important;
  }
}

/* Disable slideshow transitions for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .stats-slide {
    transition: none !important;
  }
  
  /* Show only the first slide when motion is reduced */
  .stats-slide:not(:first-child) {
    display: none;
  }
  
  .stats-slide:first-child {
    opacity: 1 !important;
  }
}

/* Quote attribution styling - theme-aware */
.stats-slide footer {
  color: rgba(255, 255, 255, 0.7) !important;
}

:root[data-bs-theme="light"] .stats-slide footer {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== TIER CARDS STYLING ===== */
/* Professional tier card styling with proper spacing and alignment */

.tier-card {
  padding: 1.5rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
}

/* Ensure consistent badge positioning */
.tier-card .badge {
  margin: 0 auto;
}

/* Responsive adjustments for tier cards */
@media (max-width: 768px) {
  .tier-card {
    padding: 1rem 0.75rem;
  }
  
  .tier-card img {
    max-width: 120px !important;
  }
}

/* Disable hover effects for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tier-card {
    transition: none !important;
  }
  
  .tier-card:hover {
    transform: none !important;
  }
}
