/* Text Visibility Fixes */

/* Ensure all text is visible */
* {
    color: inherit !important;
}

body {
    color: #333 !important;
}

/* Fix main content text */
.brochure-content,
.brochure-content * {
    color: #333 !important;
}

.brochure-content h1,
.brochure-content h2,
.brochure-content h3,
.brochure-content h4 {
    color: #222 !important;
    opacity: 1 !important;
}

.brochure-content p,
.brochure-content li,
.brochure-content span {
    color: #444 !important;
    opacity: 1 !important;
}

/* Fix background opacity issues */
.brochure-content {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
}

/* Ensure glass cards have proper backgrounds */
.glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

/* Fix distance stats visibility */
.distance-stats {
    background: rgba(255, 255, 255, 0.98) !important;
}

.distance-stats .stat-item {
    background: linear-gradient(135deg, rgba(232, 97, 0, 0.1), rgba(0, 153, 204, 0.1)) !important;
    color: #333 !important;
}

.distance-stats .stat-value {
    color: #E86100 !important;
    font-weight: bold !important;
}

.distance-stats .stat-label {
    color: #666 !important;
}

/* Fix icon visibility */
i, .icon, [class*="lni-"], [class*="fa-"] {
    color: inherit !important;
    opacity: 1 !important;
}

.stat-item i {
    color: #E86100 !important;
    opacity: 1 !important;
}

/* Fix hero text */
.hero-content h1,
.hero-content p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Fix CTA button text */
.cta-button {
    color: white !important;
    background: #E86100 !important;
    border: 2px solid #E86100 !important;
    opacity: 1 !important;
}

.cta-button:hover {
    background: #A23E2D !important;
    border-color: #A23E2D !important;
    color: white !important;
}

.cta-secondary {
    background: white !important;
    color: #E86100 !important;
    border: 2px solid #E86100 !important;
}

.cta-secondary:hover {
    background: #E86100 !important;
    color: white !important;
}

/* Fix navigation text */
.navbar a,
.navbar-nav .nav-link {
    color: #333 !important;
    opacity: 1 !important;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
    padding: clamp(0.6rem, 1.2vw, 0.9rem) clamp(1rem, 2vw, 1.3rem) !important;
}

.navbar-nav .nav-link i {
    display: none !important;
}

/* Fix internal links */
.internal-links a {
    background: white !important;
    color: #E86100 !important;
    border: 1px solid #E86100 !important;
    opacity: 1 !important;
}

.internal-links a:hover {
    background: #E86100 !important;
    color: white !important;
}

/* Remove any problematic filters */
.brochure-frame *:not(img) {
    filter: none !important;
}

/* Ensure proper contrast for all text elements */
h1, h2, h3, h4, h5, h6 {
    opacity: 1 !important;
    font-weight: 600 !important;
}

p, li, span, div {
    opacity: 1 !important;
}

/* Fix FAQ section */
.faq-item {
    background: rgba(255, 255, 255, 0.98) !important;
}

.faq-item h3 {
    color: #E86100 !important;
}

.faq-item p {
    color: #444 !important;
}

/* Ensure icons in buttons are visible */
.cta-button i,
.btn i {
    color: currentColor !important;
    margin-right: 8px !important;
}

/* Fix any transparent text issues */
.text-white {
    color: white !important;
}

.text-dark {
    color: #333 !important;
}

/* Override any rgba colors that might be too transparent */
[style*="rgba"] {
    opacity: 1 !important;
}



/* Performance Optimizations */
* {
    /* Disable heavy animations during scroll */
    scroll-behavior: smooth !important;
}

/* Enable hardware acceleration */
.brochure-frame,
.brochure-content,
.hero-location,
.glass-card {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize backdrop filters for performance */
@media (min-width: 768px) {
    .brochure-content {
        /* Reduce blur intensity for better performance */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
}

/* Disable backdrop filter on mobile for performance */
@media (max-width: 767px) {
    .brochure-content,
    .glass-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Reduce animation complexity */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* Optimize transitions */
* {
    transition-duration: 0.3s !important;
}

.cta-button,
.internal-links a {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Reduce shadow complexity for performance */
.brochure-frame {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.glass-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reduce repaints on hover */
a:hover,
button:hover,
.cta-button:hover {
    transform: translateY(-2px);
}



/* Digital Brochure/Poster Frame Design for Location Pages */

/* Import Spanish Theme Colors */
:root {
  --primary: #E86100;
  --secondary: #A23E2D;
  --accent: #0099CC;
  --olive: #708238;
  --amber: #FFBF00;
  --cream: #F8F5F0;
  --text: #333;
  --white: #FFFFFF;
  --shadow-soft: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
  --shadow-large: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  min-height: 100vh;
  padding: 20px;
  color: var(--text);
}

/* Digital Poster Frame Container */
.brochure-frame {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 
    0 0 0 1px rgba(0,0,0,0.05),
    0 0 0 8px white,
    0 0 0 9px rgba(0,0,0,0.1),
    0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;

    max-width: 1600px !important;
    margin: 0 auto !important;
}

/* Frame Border Effect */
.brochure-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 15px solid transparent;
  border-image: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent)) 1;
  pointer-events: none;
  z-index: 10;
}

/* Inner Content Wrapper */
.brochure-content {
  position: relative;
  background: white;
  min-height: 100vh;
}

/* Professional Header/Hero Section */
.brochure-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 60px 40px;
  color: white;
  text-align: center;
  overflow: hidden;
}

.brochure-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
  animation: wave 2s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.badge-elegant {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.badge-elegant:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.badge-elegant i {
  color: var(--amber);
  font-size: 18px;
}

.header-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
}

.header-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  opacity: 0.95;
  margin-bottom: 40px;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.header-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.header-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.header-feature i {
  font-size: 24px;
  color: var(--amber);
}

/* Main Content Area - Magazine Style */
.brochure-main {
  padding: 60px;
  background: white;
}

/* Content Sections with Poster Layout */
.poster-section {
  margin-bottom: 60px;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-icon-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 30px rgba(232, 97, 0, 0.3);
  position: relative;
}

.section-icon-circle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--amber);
  animation: pulse-ring 2.0s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.section-icon-circle i {
  font-size: 40px;
  color: white;
}

.section-title {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Magazine-Style Content Grid */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.magazine-card {
  background: linear-gradient(135deg, #fff 0%, var(--cream) 100%);
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(232, 97, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.magazine-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.magazine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 28px;
  color: white;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 15px;
}

.card-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* Feature List Brochure Style */
.brochure-features {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box i {
  color: white;
  font-size: 22px;
}

.feature-text {
  flex: 1;
}

.feature-heading {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.feature-details {
  color: var(--text);
  line-height: 1.6;
}

/* Distance Box - Poster Style */
.distance-poster {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  padding: 50px;
  border-radius: 25px;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 153, 204, 0.3);
}

.distance-poster::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float-bubble 2s ease-in-out infinite;
}

@keyframes float-bubble {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

.distance-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}

.distance-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.distance-icon-large i {
  font-size: 36px;
}

.distance-title {
  font-size: 2rem;
  font-weight: 700;
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.distance-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.distance-stat i {
  font-size: 24px;
  opacity: 0.9;
}

/* CTA Section - Brochure Style */
.brochure-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 40px;
  text-align: center;
  margin-top: 60px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.brochure-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-icon-main {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  backdrop-filter: blur(10px);
}

.cta-icon-main i {
  font-size: 56px;
}

.cta-heading {
  font-size: 3rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.cta-text {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-brochure {
  padding: 18px 45px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-brochure-primary {
  background: white;
  color: var(--primary);
}

.btn-brochure-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.btn-brochure-secondary {
  background: transparent;
  color: white;
  border: 3px solid white;
}

.btn-brochure-secondary:hover {
  background: white;
  color: var(--primary);
}

/* Footer Frame */
.brochure-footer {
  background: var(--secondary);
  color: white;
  padding: 30px;
  text-align: center;
  font-size: 14px;
}

/* Floating Action Button */
.fab-brochure {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab-brochure:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Ensure all content is visible */
.location-section,
.content-section,
section {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Fix for lists */
ul.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.feature-list li {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brochure-main {
    padding: 30px;
  }
  
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  
  .distance-grid {
    grid-template-columns: 1fr;
  }
  
  .header-features {
    flex-direction: column;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-brochure {
    width: 100%;
    max-width: 300px;
  }
}

/* Print Styles for Actual Brochure Output */
@media print {
  body {
    background: white;
    padding: 0;
  }
  
  .brochure-frame {
    box-shadow: none;
    border: none;
  
    max-width: 1600px !important;
    margin: 0 auto !important;
}
  
  .fab-brochure {
    display: none;
  }
}

/* ============================================
   MODERN GLASS MORPHISM EFFECTS
   ============================================ */

/* Override white backgrounds with glass effect */
.brochure-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.poster-section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%
    ) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 
        0 8px 30px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

/* Glass effect for content sections */
.section-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Distance poster with glass effect */
.distance-poster {
    background: linear-gradient(
        135deg,
        rgba(232, 97, 0, 0.1) 0%,
        rgba(0, 153, 204, 0.1) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

/* Feature items with glass */
.feature-item {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

/* FAQ items with glass */
.faq-item {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    ) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* CTA sections with glass */
.section-cta-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 8px 30px rgba(31, 38, 135, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.1) !important;
}

/* Internal links with glass */
.internal-link-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.internal-link-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgb(255, 255, 255) !important;
}

/* Add gradient overlay to body */
body {
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient /* optimized */(
        135deg,
        rgba(232, 97, 0, 0.03) 0%,
        rgba(162, 62, 45, 0.03) 25%,
        rgba(0, 153, 204, 0.03) 50%,
        rgba(232, 97, 0, 0.03) 75%,
        rgba(162, 62, 45, 0.03) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Brochure frame with subtle glass */
.brochure-frame {
    background: linear-gradient(
        135deg,
        rgba(232, 97, 0, 0.08) 0%,
        rgba(162, 62, 45, 0.06) 50%,
        rgba(0, 153, 204, 0.08) 100%
    ) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;

    max-width: 1600px !important;
    margin: 0 auto !important;
}

/* Header with enhanced glass */
.brochure-header {
    background-blend-mode: overlay !important;
    position: relative !important;
}

.brochure-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(232, 97, 0, 0.7) 0%,
        rgba(162, 62, 45, 0.7) 50%,
        rgba(0, 153, 204, 0.7) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}

.brochure-header > * {
    position: relative;
    z-index: 2;
}

/* Distance stats with glass */
.distance-stat {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        135deg,
        rgba(232, 97, 0, 0.5) 0%,
        rgba(0, 153, 204, 0.5) 100%
    );
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        135deg,
        rgba(232, 97, 0, 0.7) 0%,
        rgba(0, 153, 204, 0.7) 100%
    );
}

/* Enhance text readability on glass */
.poster-section h2,
.poster-section h3,
.feature-title,
.faq-item h3 {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Add subtle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.section-icon-circle {
    animation: float 2s ease-in-out infinite;
}

/* Ensure good contrast */
.poster-section,
.section-container {
    color: #333;
}

/* Glass effect for badges */
.badge-elegant {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}


/* Desktop typography improvements */
@media (min-width: 992px) {
    .brochure-frame {
        padding: 2rem !important;
    }
    
    .brochure-content {
        font-size: 18px !important;
        line-height: 1.8 !important;
    }
    
    /* Ensure readable column width */
    .brochure-content p,
    .brochure-content ul,
    .brochure-content ol {
        max-width: 75ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Center headings but keep them readable */
    .brochure-content h1,
    .brochure-content h2,
    .brochure-content h3 {
        max-width: 90ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Better spacing for glass morphism sections */
    .glass-card {
        padding: 2.5rem !important;
        margin: 2rem 0 !important;
    }
}

/* Extra large screens need even more constraint */
@media (min-width: 1920px) {
    .brochure-content {
        font-size: 20px !important;
        line-height: 1.9 !important;
        padding: 5rem 6rem !important;
    }
    
    .brochure-content p,
    .brochure-content ul,
    .brochure-content ol {
        max-width: 70ch !important;
    }
}



/* Smooth Scrolling Optimizations */
.is-scrolling .brochure-content {
    backdrop-filter: blur(5px) !important;
    transition: backdrop-filter 0.15s ease !important;
}

/* Optimize for 60fps scrolling */
.brochure-frame {
    contain: layout style paint;
}

.brochure-content > * {
    contain: layout style;
}

/* Reduce complexity during scroll */
.is-scrolling * {
    animation-play-state: paused !important;
}

/* Smooth scroll with momentum on iOS */
.brochure-content {
    -webkit-overflow-scrolling: touch !important;
}

/* Fix janky scrolling on Windows */
@supports (scrollbar-width: thin) {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgb(0, 0, 0) transparent;
    }
}

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
