/* TenderStep – hệ màu theo footer (xanh nhạt dịu) */
:root {
  --footer-top: #f3f8f1;
  --footer-bottom: #e8f0e5;
  --footer-mid: #eef4eb;
  --brand: #5a8f52;
  --brand-deep: #4a7344;
  --brand-mid: #6b9d64;
  --brand-soft: #8fbc87;
  --sage: #7aab72;
  --sage-light: #d4e8d0;
  --sage-dark: #5a7d54;
  --forest: #4a7344;
  --cream: var(--footer-top);
  --cream-dark: var(--footer-bottom);
  --blush: #e8f0e5;
  --pink-soft: #f3f8f1;
  --gold: #9a8b6a;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fbf7;
  --text: #3a4a3e;
  --text-muted: #6b7d6f;
  --border: #d4e8d0;
  --shadow: 0 8px 32px rgba(74, 115, 68, 0.08);
  --shadow-sm: 0 2px 10px rgba(74, 115, 68, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--footer-top);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 232, 208, 0.45) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

@media (min-width: 1024px) {
  .cursor-glow {
    opacity: 1;
  }
}

/* Header – cùng tông footer */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(243, 248, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(243, 248, 241, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a:not(.btn) {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:not(.btn):hover {
  color: var(--sage-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.2;
}

.btn:hover {
  transform: none;
}

.btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.62rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(90, 143, 82, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 4px 14px rgba(74, 115, 68, 0.3);
}

.btn-ghost {
  padding: 0.45rem 0.85rem;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.btn-ghost:hover {
  background: var(--footer-mid);
  border-color: var(--brand-soft);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, var(--footer-top) 0%, var(--footer-mid) 50%, var(--footer-bottom) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--sage-light);
  top: -10%;
  right: -5%;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--blush);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(212, 232, 208, 0.55);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--sage);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.hero-benefits {
  margin-bottom: 2rem;
}

.hero-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero ảnh sản phẩm thật */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  width: min(380px, 90vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-packshot {
  width: 100%;
  height: auto;
  display: block;
}

.floating-tag {
  position: absolute;
  background: var(--surface);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid var(--sage-light);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: bob 4s ease-in-out infinite;
}

.tag-1 {
  top: 5%;
  left: -5%;
  animation-delay: 0s;
}

.tag-2 {
  bottom: 25%;
  right: -10%;
  animation-delay: -1.5s;
}

.tag-3 {
  bottom: 5%;
  left: 0;
  animation-delay: -3s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--sage-light);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--sage);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

main {
  padding-bottom: 3.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.section-tag.light {
  color: rgba(255, 255, 255, 0.85);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.25;
}

/* Insight */
.section-insight {
  background: var(--surface);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.check-list li {
  position: relative;
  padding: 1rem 0 1rem 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1.05rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-mid);
  color: var(--brand);
  border-radius: 50%;
  font-size: 0.75rem;
}

.quote-card {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Product section */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.nature-frame {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.nature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.product-copy p {
  color: var(--text-muted);
  margin: 1.25rem 0 1.5rem;
}

.feature-pills li {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  margin: 0.35rem 0.35rem 0.35rem 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* Benefits */
.section-benefits {
  background: linear-gradient(180deg, var(--footer-mid) 0%, var(--footer-top) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sage-light);
}

.benefit-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Ingredients */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.ingredient-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.ingredient-card:hover {
  transform: scale(1.03);
}

.ingredient-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.ingredient-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.ingredient-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* USP */
.section-usp {
  padding: 2.5rem 0;
  background: var(--footer-mid);
}

.usp-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  color: var(--text);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  opacity: 1;
  transform: none;
}

.usp-content {
  flex: 1;
  max-width: 640px;
}

.usp-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0.5rem 0 1.25rem;
  color: var(--brand-deep);
}

.usp-box .section-tag {
  color: var(--brand);
}

.usp-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.usp-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--brand);
}

.usp-decoration {
  font-size: 5rem;
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease);
}

.testimonial:hover {
  transform: translateY(-4px);
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Offer */
.section-offer {
  padding: 1.5rem 0 0;
  background: var(--footer-top);
}

.offer-card {
  text-align: center;
  background: linear-gradient(145deg, var(--brand-mid) 0%, var(--brand) 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.offer-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.75rem 0 1.5rem;
}

.offer-list {
  margin-bottom: 2rem;
}

.offer-list li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--footer-top) 0%, var(--footer-bottom) 100%);
  color: var(--text);
  padding: 0;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 2rem 0 1.25rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-col .footer-tagline-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.footer-brand-col .footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 260px;
  line-height: 1.55;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-nav a:hover {
  color: var(--brand);
  padding-left: 4px;
}

.footer-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-contact-item:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
}

.footer-contact-item .icon {
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--forest);
  font-weight: 600;
  word-break: break-all;
}

.footer-contact-item a:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-made {
  font-size: 0.72rem;
  color: var(--brand-soft);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(63, 122, 58, 0.35);
  z-index: 90;
}

.sticky-cta:hover {
  background: var(--brand-deep);
}

@keyframes pulse-cta {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(107, 155, 122, 0.5);
  }
  50% {
    box-shadow: 0 8px 36px rgba(107, 155, 122, 0.7);
  }
}

/* Reveal: chỉ ẩn khi JS chạy (tránh trang trắng nếu GSAP/CDN lỗi) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* Khối nội dung lớn – luôn hiện chữ (tránh trùng animation GSAP) */
.usp-box,
.offer-card,
.quote-card {
  opacity: 1 !important;
  transform: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ingredients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--footer-top);
    padding: 2rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.4s;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-grid,
  .insight-grid,
  .product-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-benefits li {
    text-align: left;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .tag-2 {
    right: 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .usp-box {
    flex-direction: column;
    padding: 2.5rem 2rem;
    text-align: center;
  }

  .usp-decoration {
    font-size: 4rem;
    margin-top: 1rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand-col .footer-desc {
    margin-inline: auto;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .benefits-grid,
  .ingredients-grid {
    grid-template-columns: 1fr;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
