:root {
  --bg: #FAFBF8;
  --bg-alt: #F2F6F3;
  --text: #0E2318;
  --muted: #4D6356;
  --accent: #045D2A;
  --accent-hover: #034921;
  --surface: #E8F0EA;
  --border: #D8E4DC;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(14, 35, 24, 0.08);
  --display: "Outfit", "DM Sans", -apple-system, sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  overflow-x: hidden; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }

.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px;
  padding: 10px 16px; background: var(--text); color: var(--bg);
  font-weight: 700; border-radius: 6px; transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* SITE HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; text-decoration: none;
}
.brand-logo-img {
  height: 48px; width: auto; max-width: 180px; object-fit: contain; display: block;
}
.footer-logo {
  height: 52px;
  /* Dark footer background contrast filter if PNG is dark transparent */
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav > a:not(.button) { color: var(--muted); transition: color 0.2s ease; }
.site-nav > a:not(.button):hover { color: var(--text); }

.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: 0.25s;
}

/* BUTTONS */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--accent);
  border-radius: var(--radius); background: var(--accent); color: #fff;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
}
.button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.button-small { min-height: 38px; padding: 0 15px; font-size: 13px; border-radius: 8px; }
.button-ghost { background: transparent; border-color: var(--text); color: var(--text); }
.button-ghost:hover { background: var(--text); color: var(--bg); }
.button.disabled, a.whatsapp-link.disabled {
  opacity: 0.5; pointer-events: none; cursor: not-allowed;
}

/* HERO SECTION */
.hero-section {
  position: relative; min-height: 560px; display: flex; align-items: center;
  padding: 64px 0; overflow: hidden; background: var(--bg);
}
.hero-bg-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-size: cover; background-position: center; opacity: 0.08;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent); font-size: 12px;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
}

h1, h2 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.025em; margin: 0; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(40px, 5.2vw, 62px); }
h1 em { font-style: normal; color: var(--accent); font-weight: 600; }
h2 { font-size: clamp(32px, 3.8vw, 48px); }

.hero-text { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 520px; margin: 20px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-packet-wrapper {
  width: min(390px, 100%); min-height: 480px; perspective: 1100px;
  border-radius: 20px; cursor: pointer;
}
.hero-packet-wrapper:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.hero-packet-card {
  position: relative; width: 100%; min-height: 480px;
  transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.hero-packet-wrapper.is-flipped .hero-packet-card { transform: rotateY(180deg); }
.hero-packet-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; backface-visibility: hidden;
  -webkit-backface-visibility: hidden; box-shadow: 0 16px 36px rgba(14,35,24,.12);
  border: 1px solid var(--border); background: var(--surface);
}
.hero-packet-front { justify-content: center; }
.hero-packet-back {
  transform: rotateY(180deg); padding: 34px; overflow-y: auto;
  background: linear-gradient(145deg, var(--surface), var(--bg-alt));
}
.hero-packet-back h2 { font-size: 29px; margin-bottom: 20px; }
.hero-packet-back dl { margin: 0; }
.hero-packet-back dl div { padding: 10px 0; border-top: 1px solid var(--border); }
.hero-packet-back dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-packet-back dd { margin: 3px 0 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.hero-flip-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 7px 10px; border-radius: 999px; background: rgba(14,35,24,.82);
  color: #fff; font-size: 10px; font-weight: 700;
}
.hero-packet-img {
  width: 100%; height: auto; max-height: 480px; object-fit: cover;
  border-radius: 20px;
  clip-path: inset(0 round 20px);
  -webkit-clip-path: inset(0 round 20px);
  display: block;
}

/* SECTIONS COMMON */
.section-heading { margin-bottom: 40px; }
.section-subtext { font-size: 16px; color: var(--muted); max-width: 520px; margin-top: 8px; }

/* PRODUCT SECTION */
.product-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.products-loading { display: flex; justify-content: center; padding: 40px 0; }
.product-card-skeleton {
  width: 100%; max-width: 800px; height: 320px; background: rgba(31, 26, 23, 0.04);
  border-radius: var(--radius); animation: pulseSkeleton 1.4s ease-in-out infinite alternate;
}
@keyframes pulseSkeleton { from { opacity: 0.4; } to { opacity: 0.8; } }

.products-public-grid { display: grid; gap: 32px; }

/* 1-Product Feature Layout */
.pub-product-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.pub-feature-img-wrap {
  aspect-ratio: 1; border-radius: 16px; background: var(--surface);
  display: grid; place-items: center; overflow: hidden; position: relative;
  border: 1px solid var(--border);
}
.pub-feature-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.pub-feature-info { display: flex; flex-direction: column; }
.pub-feature-header { margin-bottom: 12px; }
.pub-product-title { font-family: var(--display); font-size: 32px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.pub-product-pack { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }

.pub-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.pub-price { font-size: 26px; font-weight: 700; color: var(--text); }
.pub-original-price { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.pub-discount-pill { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(140,59,43,0.1); padding: 2px 8px; border-radius: 4px; }

.pub-product-desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

.pub-specs-preview { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--border); }
.pub-specs-preview li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; display: grid; grid-template-columns: 120px 1fr; }
.pub-specs-preview strong { color: var(--text); font-weight: 600; }

.pub-feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Multi-Product Responsive Grid (Max 3 Cols) */
.pub-multi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
@media (min-width: 1024px) {
  .pub-multi-grid { grid-template-columns: repeat(min(3, var(--grid-count, 3)), 1fr); }
}
.pub-product-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.pub-product-card:hover { transform: translateY(-3px); }
.pub-card-img-wrap { aspect-ratio: 1; border-radius: 14px; background: var(--surface); display: grid; place-items: center; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); }
.pub-card-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
  -webkit-clip-path: inset(0 round 14px);
}

.products-empty-state, .products-error-state {
  text-align: center; padding: 48px 24px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border); max-width: 540px; margin: 0 auto;
}
.products-empty-state p, .products-error-state p { margin-bottom: 20px; color: var(--muted); font-size: 15px; }

/* QUALITY & STORY SECTION */
.story-section { background: var(--bg); }
.story-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.story-image-wrapper { aspect-ratio: 1.15; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.story-image {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 20px;
  clip-path: inset(0 round 20px);
  -webkit-clip-path: inset(0 round 20px);
}
.story-content .lead { font-family: var(--sans); font-size: 19px; line-height: 1.65; color: var(--text); margin: 16px 0 28px; }

.proof-list { border-top: 1px solid var(--border); }
.proof-item { padding: 16px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.proof-item strong { font-size: 15px; color: var(--text); }
.proof-item span { font-size: 13.5px; color: var(--muted); }

/* PREPARATION SECTION */
.prep-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.prep-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.prep-step { position: relative; }
.step-num { font-family: var(--display); font-size: 38px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 8px; }
.prep-step h3 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.prep-step p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ORDER CTA SECTION */
.cta-section { background: var(--bg); text-align: center; }
.cta-box { max-width: 600px; margin: 0 auto; }
.cta-box h2 { font-size: 36px; margin-bottom: 12px; }
.cta-box p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

/* FOOTER */
.site-footer { background: #081C12; color: #CAD6CF; padding: 60px 0 32px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-content { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand-col { max-width: 320px; }
.footer-brand-col .brand { color: #fff; margin-bottom: 12px; }
.footer-brand-col p { margin: 0; color: #8CA595; font-size: 13.5px; line-height: 1.5; }
.footer-info-col h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.footer-info-col p { margin: 6px 0; color: #8CA595; }
.footer-info-col a { color: #CAD6CF; text-decoration: underline; text-underline-offset: 3px; }
.footer-info-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 12px; color: #60796B; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js-ready .reveal.visible { opacity: 1; transform: none; }

/* ACCESSIBLE MODAL DIALOG */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(25, 21, 19, 0.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease; padding: 20px;
}
.modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-dialog {
  background: var(--bg); border-radius: var(--radius); width: min(600px, 100%);
  max-height: 85vh; overflow-y: auto; padding: 32px; position: relative;
  transform: scale(0.96); transition: transform 0.25s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); outline: none; border: 1px solid var(--border);
}
.modal-backdrop.open .modal-dialog { transform: scale(1); }

.modal-close-btn {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  font-size: 20px; color: var(--text); cursor: pointer; display: grid;
  place-items: center; transition: background 0.2s ease;
}
.modal-close-btn:hover { background: var(--border); }

.modal-product-layout { display: flex; flex-direction: column; gap: 20px; }
.modal-product-img-wrap { aspect-ratio: 1.2; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; }
.modal-product-img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
}

.modal-product-header h2 { font-size: 28px; margin-bottom: 4px; }
.modal-code-tag { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }

.modal-price-box { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 16px; }
.modal-price { font-size: 24px; font-weight: 700; color: var(--text); }
.modal-original-price { font-size: 15px; color: var(--muted); text-decoration: line-through; }

.modal-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 16px 0 4px; }
.modal-text { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 0; }

.modal-info-list { list-style: none; padding: 0; margin: 16px 0 24px; border-top: 1px solid var(--border); }
.modal-info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; display: grid; grid-template-columns: 130px 1fr; }
.modal-info-list strong { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .menu-toggle { display: block; z-index: 3; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .site-nav {
    position: fixed; inset: 72px 0 auto; background: var(--bg);
    padding: 20px 24px 28px; display: flex; flex-direction: column;
    align-items: stretch; gap: 12px; border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(31, 26, 23, 0.06); transform: translateY(-140%);
    opacity: 0; visibility: hidden; transition: 0.25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a { padding: 8px 0; border-bottom: 1px solid var(--border); }
  .site-nav > a:last-child { border-bottom: none; }
  
  .hero-section { min-height: auto; padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  
  .pub-product-feature { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .prep-steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-content { flex-direction: column; gap: 28px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 56px 0; }
  
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero-text { font-size: 15px; }
  
  .pub-product-title { font-size: 26px; }
  .pub-specs-preview li { grid-template-columns: 1fr; gap: 2px; }
  .modal-info-list li { grid-template-columns: 1fr; gap: 2px; }
  .modal-dialog { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
