/* ==========================================================
   ROST by Nazarov - styles.css
   Non-critical styles (loaded async after inline critical CSS)
   ========================================================== */

/* ---- 1. CUSTOM PROPERTIES ---- */
:root {
  /* Colors - from packaging */
  --bg-dark: #1A1A1A;
  --bg-dark-secondary: #2C2C2C;
  --bg-light: #F5F0EB;
  --bg-light-secondary: #FAFAF7;
  --accent: #C8A96E;
  --accent-hover: #D4B87A;
  --accent-glow: rgba(200, 169, 110, 0.2);
  --text-light: #F5F0EB;
  --text-dark: #1A1A1A;
  --text-muted-dark: #8A8A8A;
  --text-muted-light: #737373;

  /* Shadows - no borders, depth through shadow */
  --shadow-card-light: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-light-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card-dark: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-dark-hover: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-section-mobile: 64px;
  --space-section: 100px;

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* ---- 2. SECTIONS (shared) ---- */
.section {
  position: relative;
  overflow: hidden;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-section-mobile) 0;
}
/* Dark sections with photo backgrounds - image loads over solid fallback */
#about {
  background:
    linear-gradient(180deg, rgba(26,26,26,0.88) 0%, rgba(30,27,24,0.8) 50%, rgba(26,26,26,0.92) 100%),
    url('../assets/images/about-bg.jpg') center/cover no-repeat,
    var(--bg-dark);
}
#testimonials {
  background:
    linear-gradient(180deg, rgba(26,26,26,0.9) 0%, rgba(30,27,24,0.82) 50%, rgba(26,26,26,0.92) 100%),
    url('../assets/images/testimonials-bg.jpg') center/cover no-repeat,
    var(--bg-dark);
}
.section--light {
  background:
    linear-gradient(180deg, rgba(245,240,235,0.60) 0%, rgba(250,247,242,0.57) 30%, rgba(247,243,238,0.58) 70%, rgba(240,235,228,0.63) 100%),
    url('../assets/images/light-texture.jpg') center/cover no-repeat,
    #F5F0EB;
  color: var(--text-dark);
  padding: var(--space-section-mobile) 0;
}
/* ---- 2b. SECTION TRANSITIONS (dark ↔ light smooth fades) ---- */
/* Top gradient: warm fade from dark into burlap (when light follows dark/hero) */
.section--dark + .section--light::before,
.hero + .section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom,
    rgba(26,26,26,0.65) 0%,
    rgba(60,48,36,0.35) 35%,
    rgba(140,120,100,0.12) 70%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Bottom gradient: warm fade from burlap into dark (when light precedes dark/footer) */
.section--light:has(+ .section--dark)::after,
.section--light:has(+ .footer)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top,
    rgba(26,26,26,0.65) 0%,
    rgba(60,48,36,0.35) 35%,
    rgba(140,120,100,0.12) 70%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  color: var(--text-light);
  margin-top: var(--space-2);
}
.section__title--dark { color: var(--text-dark); }
.section__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.7);
  max-width: 50ch;
  margin: var(--space-3) auto 0;
}
.section__subtitle--dark { color: var(--text-muted-light); }

/* ---- 3. LABEL STYLE (etiquette-inspired) ---- */
.label-style {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.label-style--dark { color: var(--text-muted-light); }

/* ---- 4. STEAM / WISP ANIMATION (Hero) ---- */
/* Temporarily hidden — can re-enable by removing display:none */
.steam {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  z-index: 3;
  pointer-events: none;
}
.steam__particle {
  position: absolute;
  bottom: -8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: hero-steam 7s ease-out infinite;
}
/* Thin tall wisps — narrow width + tall height = steam tendrils */
.steam__particle--1 {
  left: 12%; width: 28px; height: 160px;
  filter: blur(8px);
  animation-delay: 0s; animation-duration: 7s;
}
.steam__particle--2 {
  left: 30%; width: 35px; height: 190px;
  filter: blur(9px);
  animation-delay: 1.2s; animation-duration: 8.5s;
}
.steam__particle--3 {
  left: 60%; width: 30px; height: 170px;
  filter: blur(8px);
  animation-delay: 2.5s; animation-duration: 7.5s;
}
.steam__particle--4 {
  left: 22%; width: 32px; height: 180px;
  filter: blur(9px);
  animation-delay: 3.5s; animation-duration: 8s;
}
.steam__particle--5 {
  left: 44%; width: 38px; height: 200px;
  filter: blur(10px);
  animation-delay: 4.5s; animation-duration: 9s;
}
/* Secondary layer — opposite drift */
.steam__particle--6 {
  left: 6%; width: 25px; height: 140px;
  filter: blur(7px);
  animation-delay: 0.8s; animation-duration: 6.5s;
  animation-name: hero-steam-alt;
}
.steam__particle--7 {
  left: 38%; width: 40px; height: 210px;
  filter: blur(11px);
  animation-delay: 2.8s; animation-duration: 9.5s;
  animation-name: hero-steam-alt;
}
.steam__particle--8 {
  left: 78%; width: 28px; height: 150px;
  filter: blur(8px);
  animation-delay: 5s; animation-duration: 7s;
  animation-name: hero-steam-alt;
}

@keyframes hero-steam {
  0% {
    transform: translateY(0) translateX(0) scaleX(1) scaleY(1) rotate(0deg);
    opacity: 0;
  }
  6% {
    opacity: 0.5;
  }
  20% {
    transform: translateY(-12vh) translateX(5px) scaleX(1.05) scaleY(1.03) rotate(1deg);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-24vh) translateX(-3px) scaleX(1.15) scaleY(1.1) rotate(-0.5deg);
    opacity: 0.3;
  }
  65% {
    transform: translateY(-38vh) translateX(4px) scaleX(1.3) scaleY(1.2) rotate(1.5deg);
    opacity: 0.12;
  }
  100% {
    transform: translateY(-55vh) translateX(-2px) scaleX(1.5) scaleY(1.3) rotate(2deg);
    opacity: 0;
  }
}

@keyframes hero-steam-alt {
  0% {
    transform: translateY(0) translateX(0) scaleX(1) scaleY(1) rotate(0deg);
    opacity: 0;
  }
  6% {
    opacity: 0.4;
  }
  20% {
    transform: translateY(-10vh) translateX(-6px) scaleX(1.04) scaleY(1.03) rotate(-1deg);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-22vh) translateX(4px) scaleX(1.12) scaleY(1.08) rotate(0.5deg);
    opacity: 0.22;
  }
  65% {
    transform: translateY(-35vh) translateX(-3px) scaleX(1.25) scaleY(1.18) rotate(-1deg);
    opacity: 0.08;
  }
  100% {
    transform: translateY(-50vh) translateX(2px) scaleX(1.4) scaleY(1.25) rotate(-1.5deg);
    opacity: 0;
  }
}

/* ---- 5. FLOATING COFFEE BEANS ---- */
.floating-beans {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.floating-bean {
  position: absolute;
  width: 20px;
  height: 28px;
  will-change: transform;
}
.floating-bean--1 { top: 10%; left: 5%; animation: float-bean 12s ease-in-out infinite; }
.floating-bean--2 { top: 60%; left: 15%; animation: float-bean 15s ease-in-out infinite reverse; }
.floating-bean--3 { top: 30%; right: 10%; animation: float-bean 18s ease-in-out infinite; animation-delay: -4s; }
.floating-bean--4 { top: 70%; right: 20%; animation: float-bean 14s ease-in-out infinite reverse; animation-delay: -2s; }
.floating-bean--5 { top: 15%; right: 30%; animation: float-bean 16s ease-in-out infinite; animation-delay: -6s; }
.floating-bean--6 { top: 80%; left: 40%; animation: float-bean 13s ease-in-out infinite reverse; animation-delay: -3s; }

@keyframes float-bean {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(15deg); }
  66% { transform: translateY(10px) rotate(-10deg); }
}

/* ---- 6. PRODUCTS ---- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.product-card {
  background: var(--bg-light-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card-light);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow var(--transition-base);
  /* 3D perspective for tilt effect */
  transform-style: preserve-3d;
}
.product-card:hover {
  box-shadow: var(--shadow-card-light-hover);
  /* will-change applied only on hover for performance */
  will-change: transform;
}
/* Product card visual area */
.product-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  background: linear-gradient(180deg, #f5f0eb 0%, #ede7e0 100%);
  overflow: visible;
  min-height: 420px;
}

/* Outer wrapper - hover lift */
.package-mockup {
  width: 65%;
  max-width: 250px;
  min-width: 170px;
  position: relative;
  transition: transform 400ms ease-out;
}
.product-card:hover .package-mockup {
  transform: translateY(-6px);
}

/* SVG bag shape - real pouch 13x20cm */
.package-bag {
  position: relative;
  width: 100%;
  aspect-ratio: 13 / 20;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: filter 400ms ease-out;
}
.product-card:hover .package-bag {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

/* The SVG creates the bag silhouette */
.package-bag__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Label positioned on the bag face: 8x12cm on 13x20cm bag */
.package-label {
  position: absolute;
  z-index: 1;
  top: 15%;
  left: 11.5%;
  right: 11.5%;
  bottom: 15%;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Degassing valve */
.package-mockup__valve {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(35, 30, 26, 0.7);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Valve steam — always visible, wispy realistic effect */
.valve-steam {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 600ms ease-out;
}
.product-card:hover .valve-steam {
  opacity: 1;
}
.valve-steam__particle {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, rgba(245,240,235,0.3) 50%, transparent 80%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(4px);
  animation: steam-wisp 3.5s ease-out infinite;
}
.valve-steam__particle:nth-child(1) { left: 20%; animation-delay: 0s; width: 12px; height: 18px; }
.valve-steam__particle:nth-child(2) { left: 45%; animation-delay: 0.5s; width: 16px; height: 24px; filter: blur(5px); }
.valve-steam__particle:nth-child(3) { left: 65%; animation-delay: 1.0s; width: 11px; height: 16px; }
.valve-steam__particle:nth-child(4) { left: 35%; animation-delay: 1.5s; width: 14px; height: 22px; filter: blur(6px); }
.valve-steam__particle:nth-child(5) { left: 55%; animation-delay: 2.0s; width: 10px; height: 15px; }
.valve-steam__particle:nth-child(6) { left: 30%; animation-delay: 2.5s; width: 13px; height: 19px; filter: blur(5px); }

@keyframes steam-wisp {
  0% {
    transform: translateY(0) translateX(0) scaleX(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  30% {
    transform: translateY(-25px) translateX(4px) scaleX(1.3);
    opacity: 0.6;
  }
  60% {
    transform: translateY(-50px) translateX(-3px) scaleX(1.8);
    opacity: 0.35;
  }
  100% {
    transform: translateY(-80px) translateX(6px) scaleX(2.5);
    opacity: 0;
  }
}

.package-label img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Fallback - hidden by default, shown only when image is missing */
.package-label__fallback {
  aspect-ratio: 5 / 7;
  background: var(--bg-light);
  display: none;
  align-items: center;
  justify-content: center;
}
.package-label__fallback--visible {
  display: flex;
}
.package-label__fallback svg {
  width: 32px;
  height: 32px;
  opacity: 0.15;
}
/* Photo-style visual for 100g product cards */
.product-card__visual--photo {
  padding: 0;
  background: #1a1815;
  overflow: hidden;
}
.product-card__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 400ms ease-out;
}
.product-card:hover .product-card__photo {
  transform: scale(1.03);
}
.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-card__body {
  padding: var(--space-6);
}
.product-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}
.product-card__origin {
  font-size: 14px;
  color: var(--text-muted-light);
  margin-bottom: var(--space-4);
}
.product-card__tasting {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted-light);
  margin-bottom: var(--space-5);
  max-width: 45ch;
}

/* Grind toggle (Whole/Ground) */
.grind-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: var(--space-4);
}
.grind-toggle__btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-light);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grind-toggle__btn:hover {
  color: var(--text-dark);
}
.grind-toggle__btn--active {
  background: white;
  color: var(--text-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Product price */
.product-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: var(--space-5);
  transition: opacity 0.2s ease;
}

/* Label image fade transition */
.package-label__img {
  transition: opacity 0.2s ease;
}

.product-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-6);
}
.product-spec__label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-light);
  margin-bottom: 2px;
}
.product-spec__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.product-card__actions {
  display: flex;
  gap: var(--space-3);
}
.product-card__actions .btn { flex: 1; }

/* Delivery note (below products grid) */
.delivery-note {
  margin-top: var(--space-12);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-light-secondary);
  border-radius: 16px;
  box-shadow: var(--shadow-card-light);
  border: 1px solid rgba(200, 169, 110, 0.15);
}
.delivery-note__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  justify-content: center;
}
.delivery-note__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.delivery-note__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
}
.delivery-note__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  text-align: center;
}
.delivery-note__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.delivery-note__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
}
.delivery-note__value--accent {
  color: var(--accent);
}
.delivery-note__desc {
  font-size: 13px;
  color: var(--text-muted-light);
  line-height: 1.4;
}

/* ---- 7. ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card-dark);
}
.photo-placeholder svg { width: 64px; height: 64px; }
.about__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.8);
  margin-bottom: var(--space-4);
  max-width: 55ch;
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.counter { text-align: center; }
.counter__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
}
.counter__percent {
  font-size: 24px;
  opacity: 0.9;
}
.counter__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-dark);
  margin-top: var(--space-2);
}

/* ---- 8. FOUNDER SECTION ---- */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
.founder__photo {
  position: relative;
}
.founder__photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark-secondary);
  box-shadow: var(--shadow-card-dark);
}
.founder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback SVG (hidden by default, shown when image missing) */
.founder__photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark-secondary);
}
.founder__photo-fallback svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}
.founder__img:not([src]),
.founder__img[src=""],
.founder__img[src="assets/images/founder-placeholder.jpg"] {
  display: none;
}
.founder__img:not([src]) + .founder__photo-fallback,
.founder__img[src=""] + .founder__photo-fallback,
.founder__img[src="assets/images/founder-placeholder.jpg"] + .founder__photo-fallback {
  display: flex;
}

.founder__content {
  max-width: 65ch;
}
.founder-grid--text-only {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.founder__content--centered {
  max-width: 70ch;
}
.founder-grid--text-only .founder__text--highlight {
  border-left: none;
  padding-left: 0;
  border-top: 1px solid rgba(200, 169, 110, 0.3);
  border-bottom: 1px solid rgba(200, 169, 110, 0.3);
  padding: var(--space-4) 0;
}
.founder-grid--text-only .founder__signature {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.founder__story {
  margin-top: var(--space-6);
}
.founder__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.8);
  margin-bottom: var(--space-4);
}
.founder__text--highlight {
  font-size: 17px;
  font-weight: 500;
  color: rgba(245, 240, 235, 0.95);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  margin-top: var(--space-6);
}
.founder__signature {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 240, 235, 0.1);
}
.founder__name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.founder__location {
  font-size: 14px;
  color: rgba(245, 240, 235, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- 9. BENEFITS ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.benefit-card {
  background: var(--bg-light-secondary);
  padding: var(--space-8);
  border-radius: 16px;
  box-shadow: var(--shadow-card-light);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-light-hover);
}
.benefit-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
}
.benefit-card__icon svg { width: 100%; height: 100%; }
.benefit-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}
.benefit-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-light);
  max-width: 35ch;
  margin: 0 auto;
}

/* ---- 9. TESTIMONIALS ---- */
.testimonials-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-2) 0;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--bg-dark-secondary);
  padding: var(--space-8);
  border-radius: 16px;
  box-shadow: var(--shadow-card-dark);
}
.testimonial-card__stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}
.testimonial-card__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.85);
  margin-bottom: var(--space-6);
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-light);
}
.testimonial-card__role {
  font-size: 13px;
  color: var(--text-muted-dark);
}
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-base), transform var(--transition-base);
  /* 44px touch target via invisible padding */
  box-sizing: content-box;
  margin: -18px -18px;
  padding: 18px;
  background-clip: content-box;
}
.testimonials-dot--active {
  background: var(--accent);
  background-clip: content-box;
  transform: scale(1.3);
}

/* ---- 10. SOCIAL ---- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4);
  border-radius: 16px;
  background: var(--bg-light-secondary);
  box-shadow: var(--shadow-card-light);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-light-hover);
  color: var(--accent);
}
.social-card__icon {
  width: 32px;
  height: 32px;
}
.social-card__name {
  font-size: 14px;
  font-weight: 500;
}
.social-card--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ---- 11. CTA ---- */
.section--cta {
  text-align: center;
  padding: var(--space-section-mobile) 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.88) 0%, rgba(30,27,24,0.80) 50%, rgba(26,26,26,0.90) 100%),
    url('../assets/images/cta-bg.jpg') center/cover no-repeat,
    var(--bg-dark);
}
.cta-content {
  max-width: 560px;
  margin: 0 auto;
}
.cta__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.7);
  margin: var(--space-3) auto var(--space-8);
  max-width: 40ch;
}

/* ---- 12. CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-1);
}
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input--textarea {
  resize: vertical;
  min-height: 120px;
}
.form-input:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}
.form-error {
  display: none;
  font-size: 13px;
  color: #D9534F;
  margin-top: var(--space-1);
}
.form-group--error .form-error { display: block; }
.form-group--error .form-input { border-color: #D9534F; }

.btn--submit {
  align-self: flex-start;
  min-width: 160px;
}

/* ---- 13. CONTACT INFO ---- */
.contact__info--centered {
  max-width: 500px;
  margin: var(--space-8) auto 0;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.contact-info-item:first-of-type { margin-top: 0; }
.contact-info-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.contact-info-item__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}
a.contact-info-item__text:hover { color: var(--accent); }

/* ---- 14. FOOTER ---- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid rgba(200, 169, 110, 0.1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted-dark);
  margin-top: var(--space-3);
  max-width: 30ch;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__link {
  font-size: 14px;
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}
.footer__link:hover { color: var(--accent); }
.footer__social {
  display: flex;
  gap: var(--space-4);
}
.footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-muted-dark);
  transition: color var(--transition-base), background var(--transition-base);
}
.footer__social-link svg { width: 20px; height: 20px; }
.footer__social-link:hover {
  color: var(--accent);
  background: rgba(200, 169, 110, 0.1);
}
.footer__social-link--disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 240, 235, 0.08);
}
.footer__copy {
  font-size: 13px;
  color: var(--text-muted-dark);
}

/* ---- 15. ABOUT PHOTO ---- */
.about__photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card-dark);
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* ---- 16. RESPONSIVE - TABLET (768px) ---- */
@media (min-width: 768px) {
  .section--dark,
  .section--light {
    padding: 80px 0;
  }
  .container { padding: 0 32px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .delivery-note__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .counters {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }

  .founder-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  .founder-grid--text-only {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 45%;
  }

  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

/* ---- 17. RESPONSIVE - DESKTOP (1024px) ---- */
@media (min-width: 1024px) {
  .section--dark,
  .section--light {
    padding: var(--space-section) 0;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonial-card {
    flex: 0 0 32%;
  }

  .section--cta {
    padding: var(--space-section) 0;
  }
}

/* ---- 18. RESPONSIVE - WIDE (1280px) ---- */
@media (min-width: 1280px) {
  .container { padding: 0 40px; }
}

/* ---- 19. MOBILE BACKGROUNDS (smaller images) ---- */
@media (max-width: 767px) {
  #about {
    background:
      linear-gradient(180deg, rgba(26,26,26,0.90) 0%, rgba(30,27,24,0.84) 50%, rgba(26,26,26,0.94) 100%),
      url('../assets/images/about-bg-mobile.jpg') center/cover no-repeat,
      var(--bg-dark);
  }
  #testimonials {
    background:
      linear-gradient(180deg, rgba(26,26,26,0.92) 0%, rgba(30,27,24,0.86) 50%, rgba(26,26,26,0.94) 100%),
      url('../assets/images/testimonials-bg-mobile.jpg') center/cover no-repeat,
      var(--bg-dark);
  }
  .section--cta {
    background:
      linear-gradient(180deg, rgba(26,26,26,0.90) 0%, rgba(30,27,24,0.84) 50%, rgba(26,26,26,0.92) 100%),
      url('../assets/images/cta-bg-mobile.jpg') center/cover no-repeat,
      var(--bg-dark);
  }
  .section--light {
    background:
      linear-gradient(180deg, rgba(245,240,235,0.60) 0%, rgba(250,247,242,0.57) 30%, rgba(247,243,238,0.58) 70%, rgba(240,235,228,0.63) 100%),
      url('../assets/images/light-texture-mobile.jpg') center/cover no-repeat,
      #F5F0EB;
  }
}

/* ---- MOBILE SMALL (< 375px) ---- */
@media (max-width: 374px) {
  .hero__buttons { flex-direction: column; align-items: center; }
  .counters { gap: var(--space-4); }
  .counter__number { font-size: 28px; }
}

/* ---- 20. MOBILE: HIDE EXTRA FLOATING BEANS ---- */
@media (max-width: 767px) {
  .floating-bean--2,
  .floating-bean--4,
  .floating-bean--6 {
    display: none;
  }
  .steam__particle--5,
  .steam__particle--6,
  .steam__particle--7,
  .steam__particle--8 {
    display: none;
  }
}

/* ---- 21. HOVER ONLY ON DEVICES THAT SUPPORT IT ---- */
@media (hover: none) {
  .product-card:hover,
  .benefit-card:hover,
  .social-card:hover {
    transform: none;
    box-shadow: var(--shadow-card-light);
  }
  .product-card:active,
  .benefit-card:active,
  .social-card:active {
    transform: scale(0.98);
  }
}

/* ---- 22. FOCUS VISIBLE (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- 23. ORDER MODAL ---- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal--open {
  opacity: 1;
  visibility: visible;
}
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.modal__content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal--open .modal__content {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-muted-light);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.modal__close:hover {
  color: var(--text-dark);
}
.modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: var(--space-2);
  text-align: center;
}
.modal__subtitle {
  font-size: 15px;
  color: var(--text-muted-light);
  margin-bottom: var(--space-8);
  text-align: center;
  line-height: 1.5;
}
.modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}
.modal__btn svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.modal__btn--telegram {
  background: #0088cc;
  color: white;
}
.modal__btn--telegram:hover {
  background: #006699;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}
.modal__btn--telegram:active {
  transform: translateY(-1px);
}
.modal__btn--zalo {
  background: #0068FF;
  color: white;
}
.modal__btn--zalo:hover {
  background: #0052CC;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.4);
}
.modal__btn--zalo:active {
  transform: translateY(-1px);
}

/* ---- 24. REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .steam,
  .floating-beans,
  .scroll-indicator { display: none; }

  .product-card,
  .benefit-card,
  .social-card,
  .testimonial-card {
    transition: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
