/* ═══════════════════════════════════════════════
   KIDS — CSS VARIABLES
═══════════════════════════════════════════════ */
.kids-page {
  --honey: #e8a33d;
  --honey-dk: #b87d28;
  --honey-soft: #fdf6ec;
  --forest: #1b4332;
  --cream: #faf8f4;
  --rule: #e8e3da;
  --txt: #1a1a1a;
  --muted: #888;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.kids-hero {
  background: var(--forest);
  padding: 6rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  margin-bottom: -2rem;
}

.kids-hero-eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.kids-hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  max-width: 700px;
}

.kids-hero-title em {
  font-style: italic;
  color: var(--honey);
}

.kids-hero-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   NEEDS NAV
═══════════════════════════════════════════════ */
.kids-needs-nav {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
}
.kids-needs-nav::-webkit-scrollbar {
  display: none;
}

.kids-needs-nav-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.kids-need-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.4rem;
  border-bottom: 2px solid transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.18s,
    border-color 0.18s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.kids-need-chip:hover {
  color: var(--honey-dk);
  border-bottom-color: var(--honey);
}

.kids-need-chip--active {
  color: var(--txt);
  border-bottom-color: var(--honey);
}

.kids-need-chip--disabled {
  color: #bbb;
  cursor: default;
  pointer-events: none;
}

.kids-need-chip-soon {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccc;
}

/* ═══════════════════════════════════════════════
   NEED SECTIONS
═══════════════════════════════════════════════ */
.kids-need-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.kids-need-section:last-of-type {
  border-bottom: none;
}

/* Nomor dekoratif besar di background */
.kids-need-section::before {
  content: attr(data-index);
  position: absolute;
  top: 3rem;
  right: 1.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.kids-need-header {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.kids-need-label {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey-dk);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

.kids-need-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--txt);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.kids-need-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   PRODUCT GRID (dalam section kebutuhan)
═══════════════════════════════════════════════ */
.kids-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
}

.kids-product-card {
  background: var(--cream);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.kids-product-card:hover {
  background: #fff;
}

.kids-product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #ede8e0;
}
.kids-product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.kids-product-card:hover .kids-product-img-wrap img {
  transform: scale(1.04);
}

.kids-product-img-placeholder {
  position: absolute;
  inset: 0;
  background: #ede8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: #ccc;
  letter-spacing: 0.05em;
}

.kids-product-body {
  padding: 1rem 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kids-product-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.kids-product-benefit {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kids-product-price {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forest);
  margin-top: auto;
}

/* CTA hover slide-up */
.kids-product-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--forest);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.kids-product-card:hover .kids-product-cta {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   ARTIKEL STRIP (di bawah grid, kalau ada)
═══════════════════════════════════════════════ */
.kids-article-strip {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.kids-article-strip-label {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.kids-article-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.kids-article-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--honey-soft);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  flex: 1;
  min-width: 260px;
  max-width: 460px;
  transition: background 0.15s;
}
.kids-article-card:hover {
  background: #f5e8cc;
}

.kids-article-img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ede0c8;
}

.kids-article-body {
  flex: 1;
  min-width: 0;
}

.kids-article-label {
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-dk);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
}

.kids-article-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════
   TRUST CLOSING
═══════════════════════════════════════════════ */
.kids-trust {
  background: var(--forest);
  padding: 4rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}

.kids-trust-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.kids-trust-title em {
  font-style: italic;
  color: var(--honey);
}

.kids-trust-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.kids-trust-points {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.kids-trust-point {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.kids-trust-point:last-child {
  border-right: none;
}

.kids-trust-point {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.kids-trust-point:last-child {
  border-right: none;
}
.kids-trust-point-check {
  color: var(--honey);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .kids-hero {
    clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
    padding: 4rem 1.5rem 6rem;
  }
  .kids-need-section::before {
    font-size: 6rem;
    opacity: 0.5;
  }
  .kids-trust-points {
    flex-direction: column;
    border-radius: 6px;
  }
  .kids-trust-point {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .kids-trust-point:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .kids-need-section {
    padding: 3rem 1.25rem;
  }
  .kids-needs-nav {
    padding: 0 1rem;
  }
  .kids-need-chip {
    padding: 0.85rem 0.9rem;
    font-size: 0.74rem;
  }
  .kids-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kids-article-card {
    min-width: 100%;
  }
  /* Sembunyikan footer di halaman Kids */
  body:has(.kids-page) .footer-reveal-outer,
  body:has(.kids-page) .sf-bottom {
    display: none;
  }
}
