/* =========================================================
   WAKODO Cambodia — Redesign 2026
   Soft & trustworthy design system
   ========================================================= */

/* Self-hosted Poppins for Latin — Khmer falls back to system font (same approach as old design) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Poppins-400.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Poppins-500.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Poppins-600.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Poppins-700.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Poppins-800.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pink:        #e0007f;
  --pink-600:    #c20070;
  --pink-50:     #fff0f7;
  --pink-100:    #ffe1ef;
  --cream:       #fff8fb;
  --ink:         #2b2230;
  --muted:       #7a6f7c;
  --mint:        #34b87a;
  --sky:         #4aa3df;
  --gold:        #f0a93a;
  --ring:        rgba(224, 0, 127, 0.18);

  /* Per-product accent (defaults to brand pink; overridden per page on <body>) */
  --accent:      #e0007f;
  --accent-50:   #fff0f7;
  --accent-100:  #ffe1ef;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* Khmer text: let browser fall back to system Khmer font (same as old design) */
:lang(km), .km {
  line-height: 1.85;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-size: .95rem; transition: .25s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 10px 24px -8px var(--ring); }
.btn-primary:hover { background: var(--pink-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--ring); }
.btn-ghost { background: #fff; color: var(--pink); border: 1.5px solid var(--pink-100); }
.btn-ghost:hover { border-color: var(--pink); transform: translateY(-2px); }

/* ---------- Pills / eyebrows ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pink-50); color: var(--pink); font-weight: 600;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; padding: .3rem 0; }
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--pink); border-radius: 2px;
}
.has-drop { position: relative; }
.drop {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--pink-100); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(43,34,48,.25); padding: .6rem; min-width: 230px;
  opacity: 0; visibility: hidden; transition: .2s ease;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 10px; font-size: .9rem; }
.drop a:hover { background: var(--pink-50); }
.drop a span.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 76px 0 0 0; z-index: 49;
  background: #fff; padding: 22px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .9rem .4rem; border-bottom: 1px solid var(--pink-50); font-weight: 500; }
.mobile-menu a.sub { padding-left: 1.6rem; font-size: .9rem; color: var(--muted); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.bg-blossom { background:
  radial-gradient(120% 120% at 100% 0%, var(--pink-50) 0%, transparent 55%),
  radial-gradient(120% 120% at 0% 100%, #f3fbf7 0%, transparent 55%);
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--pink-100); border-radius: 24px;
  padding: 28px; transition: .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(224,0,127,.28); border-color: var(--pink); }

.product-card { text-align: center; overflow: hidden; position: relative; }
.product-card .pc-img { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.product-card .pc-img img { max-height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); transition: .4s ease; }
.product-card:hover .pc-img img { transform: scale(1.06) rotate(-1deg); }

.chip { display:inline-block; font-size:.72rem; font-weight:600; padding:.25rem .7rem; border-radius:999px; }

/* ---------- Stat / feature ---------- */
.feature-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: #2b2230; color: #e9e1ec; padding: 64px 0 28px; }
.site-footer a { color: #cdbfd0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WHO / cookie ---------- */
.who-overlay { position: fixed; inset: 0; background: rgba(43,34,48,.8); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.who-overlay.show { display: flex; }
.who-box { background: #fff; max-width: 600px; border-radius: 24px; padding: 40px 36px; text-align: center; }
.cookie-bar { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 1000px; margin: 0 auto; background:#fff; border:1px solid var(--pink-100); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(43,34,48,.3); padding: 18px 22px; z-index: 9998; display:none; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cookie-bar.show { display: flex; }

/* ---------- Reveal animation (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Social / contact ---------- */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px){ .social-grid { grid-template-columns: 1fr; } }
.social-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--pink-100); border-radius: 18px;
  padding: 18px 20px; transition: .25s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(43,34,48,.3); border-color: var(--pink); }
.social-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.social-card div { display: flex; flex-direction: column; line-height: 1.3; }
.social-card strong { font-size: 1rem; }
.social-card span { font-size: .85rem; color: var(--muted); }
.social-arrow { margin-left: auto; color: var(--pink); font-size: 1.2rem; transition: transform .25s ease; }
.social-card:hover .social-arrow { transform: translateX(4px); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #cdbfd0; transition: .25s ease;
}
.footer-social a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }

/* ---------- Hero product showcase ---------- */
.hero-showcase {
  position: relative;
  border-radius: 28px;
  padding: 34px 28px 28px;
  min-height: 360px;
  display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--pink-50) 55%, var(--pink-100) 100%);
  box-shadow: 0 40px 70px -34px rgba(224,0,127,.4);
  overflow: hidden;
}
.hero-showcase::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.7) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 30%, rgba(255,255,255,.6) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 12%, rgba(255,255,255,.55) 0 3px, transparent 4px);
  opacity: .8; pointer-events: none;
}
.hero-since {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  background: var(--pink); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 999px; letter-spacing: .03em;
}
.hero-tins {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  height: 300px; width: 100%;
}
.hero-tins img {
  height: auto; width: auto;
  max-height: 100%; max-width: 25%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.18));
  transition: transform .35s ease;
}
/* staggered heights for depth, all kept inside the card */
.hero-tins img:nth-child(1) { max-height: 74%; }
.hero-tins img:nth-child(2) { max-height: 100%; }
.hero-tins img:nth-child(3) { max-height: 92%; }
.hero-tins img:nth-child(4) { max-height: 86%; }
.hero-tins img:hover { transform: translateY(-8px); }
@media (max-width: 600px){
  .hero-showcase { min-height: 280px; padding: 28px 12px 20px; }
  .hero-tins { height: 230px; gap: 6px; }
}

/* ---------- Nutrition / ingredients ---------- */
.nutri-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 16px; overflow: hidden; }
.nutri-table caption { caption-side: top; text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: 0 0 10px; }
.nutri-table th { text-align: left; background: var(--accent-50); color: var(--accent); font-weight: 600; padding: 11px 16px; font-size: .82rem; letter-spacing: .02em; }
.nutri-table td { padding: 10px 16px; border-top: 1px solid var(--accent-50); }
.nutri-table td.val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 500; }
.nutri-table tr:last-child td { border-bottom: none; }
.nutri-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--accent-100); border-radius: 16px; }
.ingredient-box { background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: 18px; padding: 22px 24px; }
.ingredient-box p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.8; }
.nutri-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px){ .nutri-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.blob { position:absolute; border-radius:50%; filter: blur(50px); opacity:.5; z-index:0; }
img { max-width: 100%; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width: 900px){ .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; } }
@media (max-width: 900px){ .grid-4 { grid-template-columns:1fr 1fr; } }
