/* LAYOUT FIXES - Add these to your styles.css file */

/* Fix main content spacing to account for fixed headers */
main {
  padding-top: calc(72px + 36px); /* header + announcement bar height */
}

/* Hero section improvements */
.hero {
  position: relative;
  min-height: 70vh;
  padding: 4rem 0; /* Changed from padding-block */
  margin: 2rem 0 0 0; /* Add top margin for breathing room */
  background: url("/assets/hero.jpg") center/cover no-repeat !important;
  border-radius: 1rem;
  display: flex;
  align-items: center;
}

/* REMOVE ALL DARK OVERLAYS AND TINTS */
.hero::before {
  display: none !important;
}

/* Remove the dark overlay container */
.hero-text-container::before {
  display: none !important;
}

/* REMOVE TEXT CAPSULE BACKGROUND */
.hero-text-capsule {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 2rem !important;
  backdrop-filter: none !important;
  display: block !important;
  max-width: 100% !important;
}

/* Enhanced hero text container with better gradient */
.hero-text-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Enhanced text shadows for readability without overlay */

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem) !important;
  margin: 0 0 1.5rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

.hero p {
  color: #ffffff !important;
  margin: 0 0 2.5rem !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  line-height: 1.4 !important;
}

/* Enhanced CTA button styling */
.hero-cta {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  transition: all 0.2s ease !important;
  font-weight: 700 !important;
}

.hero-cta:hover {
  transform: translateY(-2px) !important;
  background: var(--primary-strong) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
  border: none !important;
}

.hero-cta:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8) !important;
  outline-offset: 2px !important;
  border: none !important;
}

/* REMOVE BLACK OUTLINE FROM "HOW IT WORKS" BUTTON */
.hero .btn-secondary {
  border: 2px solid rgba(255,255,255,0.8) !important;
  color: var(--ink) !important;
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
}

.hero .btn-secondary:hover {
  background: white !important;
  border-color: rgba(255,255,255,1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* Improve button spacing */
.hero-actions {
  display: flex;
  gap: 1.5rem !important;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem !important;
}

/* Reviews section spacing */
.reviews-carousel-section {
  padding: 4rem 0;
  background: var(--surface);
  margin-top: 2rem;
}

.reviews-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-section-header h2 {
  margin: 0 0 1rem 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.reviews-subline {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-strong);
  font-weight: 500;
}

/* Product showcase spacing */
.product-showcase {
  padding: 4rem 0;
  background: var(--surface);
  margin-top: 2rem;
}

/* Container improvements */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  main {
    padding-top: calc(72px + 36px);
  }
  
  .hero {
    min-height: 60vh;
    margin: 1rem 0 0 0;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  }
  
  .hero p {
    font-size: 1.125rem !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem !important;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .reviews-carousel-section {
    padding: 3rem 0;
    margin-top: 1.5rem;
  }
  
  .product-showcase {
    padding: 3rem 0;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: 2.5rem 0;
  }
  
  .reviews-section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
  
  .announce-text {
    font-size: 0.8rem;
    padding: 0 12px;
  }
}

/* Fix any layout shifts */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  min-height: inherit;
}

/* Ensure proper stacking context */
.site-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 45;
}

.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

