:root {
  --green: #2a6231;
  --green-card: #4f9a46;
  --blue: #049bbf;
  --teal: #17bcc9;
  --yellow: #fbbb1e;
  --grey: #e6e7e7;
  --ink: #3a3a3a;
  --muted: #6b6b6b;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 60, 80, .16);
  --display: "Lalezar", "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.15; text-transform: uppercase; }
.deco { position: absolute; pointer-events: none; z-index: 1; }
.edge { position: absolute; left: 0; width: 100%; z-index: 3; pointer-events: none; }
.edge-top { top: 0; transform: translateY(-1px); }
.edge-bottom { bottom: 0; transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--teal);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { width: 110px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink);
  position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--yellow); border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.header-contact { display: flex; align-items: center; gap: 10px; }
.icon-btn, .hotline svg { fill: currentColor; }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white);
}
.icon-btn svg { width: 16px; height: 16px; }
.hotline {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--blue); font-weight: 800; font-size: 15px; white-space: nowrap;
}
.hotline svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--blue); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--teal); }
.hero-img { width: 100%; }

/* ---------- About ---------- */
.about { position: relative; padding: 80px 0 120px; overflow: hidden; }
.about-zigzag { width: 150px; left: 0; top: 30px; }
.about-cloud { width: 140px; left: 42%; top: 40px; opacity: .45; }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-title { color: var(--green); font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; }
.about-text p { margin: 0 0 14px; text-align: justify; }
.about-visual { position: relative; justify-self: center; }
.about-products { width: min(360px, 80vw); position: relative; z-index: 2; }
.about-sun { width: 130px; right: -60px; top: -40px; animation: spin 24s linear infinite; }
.about-question { width: 70px; right: -40px; top: 110px; z-index: 3; animation: bob 3s ease-in-out infinite; }

/* ---------- Dosage ---------- */
.dosage { position: relative; background: var(--teal); padding: 140px 0 170px; color: var(--white); }
.dosage-inner { position: relative; }
.section-title {
  text-align: center; color: var(--green); font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 auto 48px; position: relative; padding-bottom: 26px;
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 18px; background: url("../img/tieu-de.png") center / contain no-repeat;
}
.section-title.on-dark { color: var(--white); text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.dosage-board {
  position: relative; max-width: 760px; margin: 0 auto; padding: 72px 36px 36px;
  background: var(--white); border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 60, 80, .25);
  transform: rotate(-1deg);
}
.note-tag { position: absolute; width: 240px; left: -30px; top: -34px; transform: rotate(-6deg); }
.table-wrap { overflow-x: auto; }
.dosage-table {
  width: 100%; border-collapse: separate; border-spacing: 0; color: var(--green);
  border: 3px solid #333; border-radius: 16px; overflow: hidden; text-align: center;
}
.dosage-table th, .dosage-table td { padding: 22px 12px; border-right: 2px solid #333; border-bottom: 2px solid #333; }
.dosage-table tr > :last-child { border-right: 0; }
.dosage-table tbody tr:last-child > * { border-bottom: 0; }
.dosage-table thead th { font-weight: 700; color: var(--green); }
.dosage-table td { color: var(--blue); font-weight: 600; }
.dosage-table tbody th { color: var(--blue); font-weight: 700; }
.dosage-balloon { width: 160px; right: -40px; top: -40px; animation: float 6s ease-in-out infinite; }
.dosage-birds { width: 200px; left: 2%; bottom: 120px; opacity: .9; }

/* ---------- Patterned sections ---------- */
.patterned { position: relative; background: var(--white) url("../img/bg-zigzag.png") center / cover; }
.products { padding: 90px 0 110px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.product-card {
  position: relative; border-radius: 6px var(--radius) var(--radius) var(--radius); color: var(--white);
  padding: 42px 28px 30px; box-shadow: var(--shadow);
  transition: transform .3s;
}
.product-card:hover { transform: translateY(-6px); }
.product-card.blue { background: var(--teal); }
.product-card.green { background: var(--green-card); }
.card-top { position: absolute; top: -14px; left: 0; width: 100%; height: 30px; object-fit: cover; object-position: top; }
.clip { position: absolute; width: 64px; right: 18px; top: -26px; transform: rotate(10deg); z-index: 4; }
.product-body { display: flex; gap: 22px; align-items: center; }
.product-img { width: 100px; flex-shrink: 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.product-info h3 { font-size: 26px; margin: 0; }
.product-sub { margin: 2px 0 10px; font-weight: 700; opacity: .9; }
.product-info p:last-child { margin: 0; font-size: 13.5px; text-align: justify; }
.product-actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }
.btn {
  border: 0; border-radius: 999px; padding: 10px 26px; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em; transition: transform .2s, box-shadow .2s;
}
.btn-white { background: var(--white); color: var(--blue); }
.green .btn-white { color: var(--green); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }

/* ---------- Mid banner ---------- */
.mid-banner { position: relative; background: #fdf1df; }
.mid-img { width: 100%; }

/* ---------- Recipes ---------- */
.recipes { padding: 90px 0 100px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.recipe-card, .news-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: center;
  background: none; color: inherit; align-self: start;
}
.recipe-card {
  background: var(--teal); border-radius: var(--radius); padding: 18px 18px 24px; box-shadow: var(--shadow);
  transition: transform .3s;
}
.recipe-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.recipe-card .clip { width: 46px; right: 26px; top: -22px; }
.recipe-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--grey); }
.recipe-photo img, .news-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.recipe-card:hover img, .news-card:hover img { transform: scale(1.06); }
.recipe-title { display: block; color: var(--white); font-size: 21px; margin-top: 16px; }

/* ---------- News ---------- */
.news { padding: 90px 0 110px; overflow: hidden; }
.news-balloons { width: 110px; left: 1%; top: 30px; animation: float 7s ease-in-out infinite; }
.news-baby { width: 170px; right: 2%; top: 20px; }
.news-zigzag { width: 150px; right: 0; bottom: 30px; }
.news-photo {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border: 6px solid var(--yellow); border-radius: 6px; background: var(--grey);
}
.news-photo .arrow {
  position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--yellow); color: var(--white); font-weight: 800; font-size: 20px; border-top-left-radius: 8px;
}
.news-title { display: block; margin-top: 16px; font-weight: 800; text-transform: uppercase; font-size: 14px; color: var(--ink); }
.news-card:hover .news-title { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #f3f4f4; padding: 110px 0 0; }
.footer-title { text-align: center; color: var(--blue); font-size: clamp(22px, 3vw, 30px); margin: 0 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; }
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--blue); margin-top: 4px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover, .footer-links a:hover { color: var(--blue); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.footer-links a { text-decoration: none; font-size: 14px; padding-left: 30px; position: relative; }
.footer-links a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 10px; transform: translateY(-50%);
  background: url("../img/tieu-de.png") center / contain no-repeat;
}
.brand-note { text-align: center; margin: 34px 0 4px; font-size: 13px; color: var(--muted); }
.brand-note a { color: var(--blue); font-weight: 600; }
.copyright { text-align: center; margin: 0; font-size: 12px; color: var(--muted); }
.footer-sea { width: 100%; margin-top: -10px; position: relative; z-index: 1; }

/* ---------- Modal ---------- */
.modal {
  width: min(620px, 100% - 32px); max-height: 88vh; border: 0; border-radius: 18px; padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); color: var(--ink);
  border-top: 8px solid var(--teal);
}
.modal::backdrop { background: rgba(4, 60, 75, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s ease-out; }
.modal h3 { color: var(--blue); font-size: 26px; margin: 0 40px 16px 0; }
.modal h4 { color: var(--green); margin: 18px 0 6px; }
.modal img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.modal img.modal-product { width: auto; height: 240px; object-fit: contain; margin-inline: auto; }
.modal ul { padding-left: 20px; margin: 6px 0 12px; }
.modal .muted { color: var(--muted); font-size: 13px; font-style: italic; }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--grey); font-size: 22px; line-height: 1; color: var(--ink);
}
.modal-close:hover { background: var(--yellow); }
.shop-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.shop {
  flex: 1 1 140px; text-align: center; padding: 14px; border-radius: 12px; color: var(--white);
  font-weight: 800; text-decoration: none; transition: transform .2s;
}
.shop:hover { transform: translateY(-2px); }
.shopee { background: #ee4d2d; }
.lazada { background: #0f146d; }
.tiki { background: #1a94ff; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.dosage-board.reveal.in { transform: rotate(-1deg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes bob { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .hotline { font-size: 0; gap: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); justify-content: center; color: var(--white); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-contact { order: 2; }
  .nav-toggle { order: 3; margin-left: 0; }
  .header-inner { gap: 12px; }
  .logo { margin-right: auto; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--white); border-bottom: 3px solid var(--teal); box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--grey); }
  .site-nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-inner, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .dosage-balloon { width: 100px; right: -10px; top: -90px; }
  .news-baby { width: 110px; top: 10px; }
  .note-tag { width: 190px; left: -10px; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .logo img { width: 86px; }
  .header-inner { min-height: 62px; }
  .about { padding: 50px 0 80px; }
  .about-zigzag, .about-cloud, .news-zigzag, .dosage-birds { display: none; }
  .about-sun { width: 90px; right: -20px; top: -20px; }
  .about-question { width: 50px; right: -14px; top: 80px; }
  .dosage { padding: 90px 0 110px; }
  .dosage-board { padding: 64px 14px 20px; }
  .dosage-table th, .dosage-table td { padding: 14px 6px; font-size: 12.5px; }
  .product-body { flex-direction: column; text-align: center; }
  .product-info p:last-child { text-align: center; }
  .product-img { width: 80px; }
  .product-actions { flex-wrap: wrap; }
  .card-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .news-balloons { width: 70px; }
  .news-baby { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .modal { padding: 28px 20px 22px; }
  .modal h3 { font-size: 22px; }
}
