/* Classic Biscuiteers Custom Styles */

/* Self-hosted Roboto — eliminates the Google Fonts render-blocking chain */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-700.woff2') format('woff2');
}

:root {
  --primary-color: #6B4423;        /* Rich brown - sophisticated biscuit color */
  --secondary-color: #C17A3C;      /* Warm caramel - elegant accent */
  --light-cream: #FFF9F0;          /* Soft cream - refined background */
  --dark-brown: #3D2415;           /* Deep chocolate - premium text */
  --gold: #D4AF37;                 /* True gold - luxury accent */
  --white: #FFFFFF;
  --soft-shadow: rgba(61, 36, 21, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-brown);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Inline SVG icon defaults */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}
.icon--whatsapp { width: 1.4em; height: 1.4em; }
.icon--google { width: 1em; height: 1em; }
.icon--star { width: 1em; height: 1em; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  /* Static base image for instant LCP. JS-managed slides cross-fade on top. */
  background-image: url('../images/ALMOND%20PUFF.webp');
  background-size: cover;
  background-position: center;
}

/* Background Image Slideshow */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.0);
  transform-origin: center center;
  /* Cross-fade quickly (3s), but zoom evenly across the WHOLE dwell+fade window (14s)
     so motion is always visible — never feels like a static image. */
  transition: opacity 3s ease-in-out, transform 14s ease-in-out;
  filter: blur(1px) brightness(0.8);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Ken Burns effect: image fades in AND keeps slowly zooming the whole time it is on screen */
.hero-background-image.active {
  opacity: 1;
  transform: scale(1.55);
}

/* Vary the zoom origin per image so the motion feels organic instead of mechanical */
.hero-background-image:nth-child(1) { transform-origin: 50% 50%; }
.hero-background-image:nth-child(2) { transform-origin: 30% 40%; }
.hero-background-image:nth-child(3) { transform-origin: 70% 60%; }
.hero-background-image:nth-child(4) { transform-origin: 40% 70%; }
.hero-background-image:nth-child(5) { transform-origin: 60% 30%; }
.hero-background-image:nth-child(6) { transform-origin: 50% 65%; }

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.6) 0%, 
    rgba(61, 36, 21, 0.5) 50%,
    rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  will-change: auto;
}

.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at center, 
    rgba(212, 175, 55, 0.1) 0%, 
    transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out;
  padding: 2rem;
  max-width: 900px;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  margin-bottom: 2rem;
  animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logo {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) 
          drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(218, 165, 32, 0.6)) 
          drop-shadow(0 0 30px rgba(218, 165, 32, 0.4));
}

h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8),
               0 0 30px rgba(212, 175, 55, 0.6),
               0 0 60px rgba(212, 175, 55, 0.4);
  animation: fadeInUp 1s ease-out 0.2s both;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tagline {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
               0 0 20px rgba(212, 175, 55, 0.5);
  letter-spacing: 2px;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(61, 36, 21, 0.3),
              0 5px 15px rgba(212, 175, 55, 0.4);
  animation: fadeInUp 1s ease-out 0.6s both;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(61, 36, 21, 0.4),
              0 10px 25px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold) 100%);
}

.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
              0 5px 15px rgba(37, 211, 102, 0.4);
  animation: fadeInUp 1s ease-out 0.8s both;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(37, 211, 102, 0.5);
  position: relative;
  overflow: hidden;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.whatsapp-button:hover::before {
  left: 100%;
}

.whatsapp-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
              0 10px 25px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-button .icon {
  width: 1.4em;
  height: 1.4em;
}

.scroll-indicator {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
  transform: translateZ(0);
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
}

.scroll-mascot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: mascotFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  position: relative;
  transform: translateZ(0);
  will-change: transform;
}

@keyframes mascotFloat {
  0%, 100% { 
    transform: translateY(0) translateZ(0); 
  }
  50% {
    transform: translateY(-15px) translateZ(0);
  }
}

.scroll-bubble {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: bubblePulse 2s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}

.scroll-bubble::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid rgba(255, 255, 255, 0.95);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

@keyframes bubblePulse {
  0%, 100% {
    transform: scale(1) translateZ(0);
  }
  50% {
    transform: scale(1.05) translateZ(0);
  }
}

.scroll-text {
  font-size: 1rem;
  color: var(--dark-brown);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* Section Styles */
section {
  padding: 5rem 2rem;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gold);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-brown);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Products Section */
#products {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  background: linear-gradient(to bottom, var(--white), var(--light-cream));
}

.product-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--dark-brown);
  font-size: 1rem;
}

/* Reviews Section */
#reviews {
  background: linear-gradient(180deg, #FFFBF3 0%, var(--white) 100%);
  padding: 3.5rem 2rem;
}

#reviews .section-title {
  margin-bottom: 0.75rem;
}

.reviews-rating {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 500px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.rating-stars {
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.2rem;
  filter: drop-shadow(0 1px 2px rgba(212, 175, 55, 0.25));
  line-height: 1;
}

.rating-stars .icon {
  width: 1em;
  height: 1em;
  margin: 0 0.05rem;
}

.rating-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
}

.rating-subtext {
  font-size: 0.92rem;
  color: var(--dark-brown);
}

.rating-subtext a {
  color: var(--dark-brown);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.rating-subtext a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--gold);
}

.rating-subtext .icon--google {
  color: #4285F4;
  margin-right: 0.3rem;
  vertical-align: -0.18em;
}

.reviews-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
}

.review-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 0;
  box-shadow: 0 4px 14px rgba(61, 36, 21, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(61, 36, 21, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
}

.review-text {
  font-size: 1rem;
  color: var(--dark-brown);
  line-height: 1.4;
  margin: 0 0 0.5rem;
  font-style: italic;
  flex-grow: 1;
}

.review-text--rating-only {
  color: var(--dark-brown);
  font-size: 0.92rem;
  opacity: 0.75;
  font-style: normal;
}

.review-author {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  /* Extend to card edges, with a soft cream panel and rounded bottom corners */
  margin: 0.4rem -1.25rem 0;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(180deg, #FFF8EC 0%, #FFF1DB 100%) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--dark-brown) !important;
  text-align: left !important;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(107, 68, 35, 0.25);
}

.review-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.review-author-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.reviews-cta {
  text-align: center;
  max-width: 500px;
  margin: 0.5rem auto 0;
}

.review-leave-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.5rem;
  background: var(--white);
  color: var(--dark-brown);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid rgba(61, 36, 21, 0.15);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-leave-btn .icon--google {
  color: #4285F4;
}

.review-leave-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.2);
  color: var(--primary-color);
}

/* Mobile compaction */
@media (max-width: 640px) {
  #reviews {
    padding: 2.5rem 1rem;
  }

  .reviews-carousel {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem 1rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .review-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }

  .rating-number {
    font-size: 2rem;
  }

  .rating-stars {
    font-size: 1.15rem;
  }
}

/* About Section */
#about {
  background: linear-gradient(135deg, var(--light-cream) 0%, #FFF5E6 100%);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--dark-brown);
}

.about-content p {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.about-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.feature {
  text-align: center;
  max-width: 200px;
  animation: fadeInUp 1s ease-out;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
  background: var(--white);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  font-size: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: fadeInScale 0.6s ease-out both;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.contact-info {
  margin-top: 3rem;
  font-size: 1.1rem;
  color: var(--dark-brown);
  animation: fadeIn 1s ease-out;
}

.whatsapp-order-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  border: 2px solid rgba(37, 211, 102, 0.5);
}

.whatsapp-order-button .icon {
  width: 1.6em;
  height: 1.6em;
}

.whatsapp-order-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* Footer */
footer {
  background: var(--dark-brown);
  color: var(--light-cream);
  text-align: center;
  padding: 2rem;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
    margin: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .tagline {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .about-features {
    flex-direction: column;
    align-items: center;
  }
  
  .logo {
    max-width: 200px;
  }
  
  /* Move scroll indicator to far bottom right corner on mobile */
  .scroll-indicator {
    bottom: 0.5rem;
    right: 0.5rem;
    left: auto;
    transform: none;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .scroll-indicator.hidden {
    transform: translateX(100px);
  }
  
  .scroll-bubble {
    padding: 0.4rem 0.6rem;
  }
  
  .scroll-bubble::before {
    display: none;
  }
  
  .scroll-text {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    max-width: 50px;
  }
  
  .scroll-mascot {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  /* Optimize hero background for mobile */
  .hero-background-image {
    filter: blur(0.5px) brightness(0.8);
  }
  
  /* Better touch targets for mobile (minimum 48px) */
  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    min-height: 48px;
  }
  
  .whatsapp-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    min-height: 48px;
  }
  
  .whatsapp-button i {
    font-size: 1.3rem;
  }
  
  .hero-cta-buttons {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  
  .whatsapp-order-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 48px;
  }
  
  .whatsapp-order-button i {
    font-size: 1.5rem;
  }
  
  .social-link {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }

  .about-content {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }

  .contact-info {
    font-size: 1rem;
  }
}

/* Small phones (iPhone SE, Galaxy S series, etc.) */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .logo {
    max-width: 160px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .whatsapp-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .product-image {
    height: 200px;
  }

  .product-name {
    font-size: 1.3rem;
  }

  .product-description {
    font-size: 0.95rem;
  }

  .social-link {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Safe area support for notched phones (iPhone X+, modern Android) */
@supports (padding: env(safe-area-inset-bottom)) {
  .hero {
    padding-top: env(safe-area-inset-top);
  }

  footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .scroll-indicator {
    bottom: calc(3rem + env(safe-area-inset-bottom));
    right: calc(3rem + env(safe-area-inset-right));
  }

  @media (max-width: 768px) {
    .scroll-indicator {
      bottom: calc(0.5rem + env(safe-area-inset-bottom));
      right: calc(0.5rem + env(safe-area-inset-right));
    }
  }
}

/* Accessibility: reduce decorative motion for users who prefer it,
   but keep gentle cross-fades since they don't induce vestibular discomfort. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* Disable the slow Ken Burns zoom but keep the cross-fade (shortened). */
  .hero-background-image,
  .hero-background-image.active {
    transform: none !important;
    transition: opacity 1.2s ease-in-out !important;
  }
}

/* Print styles */
@media print {
  .scroll-indicator,
  .hero-background,
  .hero::before,
  .hero::after,
  .whatsapp-button,
  .whatsapp-order-button {
    display: none !important;
  }
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }
  body {
    color: #000;
    background: #fff;
  }
  .product-card,
  .feature {
    page-break-inside: avoid;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll-reveal pattern (toggled by IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
