/* =========================================================================
   HUSHABOO — page sections (built on top of theme.css design system)
   ========================================================================= */

/* ---------------- Sticky nav header ---------------- */
.nav {
  position: sticky;
  top: 6px; /* sits under the fixed pastel topbar */
  z-index: 950;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .95); }
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  gap: 10px;
}
.nav__links { display: flex; gap: 24px; align-items: center; height: 100%; }
.nav__links a {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2px;
  color: var(--navy);
  padding: 8px 2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--coral-dark); border-bottom-color: var(--coral); }
.nav__logo { justify-self: center; display: flex; align-items: center; }
.nav__logo img { max-height: 40px; width: auto; display: block; }
.nav__cart {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, color .15s ease;
}
.nav__cart:hover { transform: translateY(-2px); color: var(--coral-dark); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--r-md) var(--r-md);
    padding: 6px 0 10px;
  }
  .nav__links.is-open { display: flex; animation: navdrop .18s ease; }
  .nav__links a { padding: 12px 24px; font-size: 1.05rem; }
  .nav__logo img { height: 32px; }
}
@keyframes navdrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Anchor targets clear the sticky header */
section[id], [id="faq"], [id="how-it-works"], [id="notify"], [id="reviews"], [id="shop"] {
  scroll-margin-top: 76px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 48px 0 42px;
  text-align: center;
  position: relative;
}
.hero h1 { max-width: 21ch; margin-left: auto; margin-right: auto; }
.hero .sub { font-size: clamp(1.1rem, 3vw, 1.35rem); color: var(--slate); margin: 6px 0 28px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------------- Trust strip ---------------- */
.trust { padding: 8px 0 12px; }

/* ---------------- Product picker ---------------- */
.picker__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}
.picker-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.picker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.picker-card--featured { border: 2px solid var(--coral); }
.picker-card--soon {
  background: rgba(255,255,255,.6);
  border: 2px dashed var(--lavender);
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate-soft);
  min-height: 320px;
}
.picker-card--soon:hover { transform: none; box-shadow: none; }
.picker-card__img { aspect-ratio: 4 / 3; }
.picker-card__img .img-ph, .picker-card__img img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); width: 100%; }
.picker-card__price { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.25rem; }
.picker-card__price .from { font-size: .85rem; font-weight: 600; color: var(--slate-soft); }

/* corner ribbon */
.ribbon {
  position: absolute;
  top: 18px; right: -42px;
  transform: rotate(38deg);
  background: var(--coral);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1px;
  padding: 6px 48px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* ---------------- Transformation block ---------------- */
.transform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.transform__img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.pullquote {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 26px;
  border-left: 6px solid var(--coral);
  margin-top: 22px;
}
.pullquote p {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}
.pullquote cite { color: var(--slate-soft); font-style: normal; font-weight: 700; font-size: .9rem; }

/* ---------------- Benefit tiles ---------------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.benefit {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  text-align: center;
  transition: transform .18s ease;
}
.benefit:hover { transform: translateY(-4px); }
.benefit__emoji { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { font-size: .92rem; margin: 0; color: var(--slate-soft); }

/* ---------------- How it works ---------------- */
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  text-align: left;
}
.step__num {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--navy);
}
.step:nth-child(1) .step__num { background: var(--baby-blue); }
.step:nth-child(2) .step__num { background: var(--lavender); }
.step:nth-child(3) .step__num { background: var(--mint); }
.step h3 { margin: 0 0 2px; font-size: 1.05rem; }
.step p { margin: 0; font-size: .95rem; color: var(--slate-soft); }

/* ---------------- Reviews ---------------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.review {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800;
  color: var(--navy);
  flex: 0 0 44px;
}
.avatar--blue { background: var(--baby-blue); }
.avatar--lav  { background: var(--lavender); }
.avatar--mint { background: var(--mint); }
.review__who strong { display: block; color: var(--navy); font-size: .98rem; }
.review__who span { color: var(--slate-soft); font-size: .82rem; }
.stars { color: #FFB800; letter-spacing: 2px; font-size: .95rem; }
.review p { margin: 0; font-size: .95rem; }
.review__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r-md);
}

/* ---------------- Comparison table ---------------- */
.compare-wrap { overflow-x: auto; margin-top: 28px; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 480px;
}
.compare th, .compare td { padding: 16px 20px; text-align: center; font-size: .95rem; }
.compare th {
  font-family: 'Baloo 2', sans-serif;
  color: var(--navy);
  font-size: 1rem;
  border-bottom: 2px solid var(--cream);
}
.compare th.hush-col { background: var(--blush); border-radius: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 700; color: var(--navy); }
.compare tr + tr td { border-top: 1px solid #F4EEE6; }
.compare td.hush-col { background: #FFF4F0; }
.tick { color: #2EAD6B; font-weight: 800; font-size: 1.1rem; }
.cross { color: #C4CAD4; font-weight: 700; font-size: 1.05rem; }

/* ---------------- FAQ accordion ---------------- */
.faq { max-width: 720px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--coral);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; font-size: .96rem; }

/* ---------------- Final CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--blush), #FBD9D2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 52px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 24px; }

/* ---------------- Email capture ---------------- */
.subscribe { max-width: 480px; margin: 0 auto; text-align: center; }
.subscribe-form {
  display: flex;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  padding: 6px;
  margin-top: 18px;
}
.subscribe-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 10px 16px;
  color: var(--navy);
}
.subscribe-form button {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--coral);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-coral);
  transition: background .15s ease, transform .15s ease;
}
.subscribe-form button:hover { background: var(--coral-dark); transform: scale(1.05); }
.subscribe-msg { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.subscribe-msg.ok { color: #2EAD6B; }
.subscribe-msg.err { color: var(--coral-dark); }

/* ---------------- Footer ---------------- */
.footer {
  padding: 36px 0 44px;
  text-align: center;
  color: var(--slate-soft);
  font-size: .92rem;
}
.footer a { color: var(--slate); font-weight: 700; }
.footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------------- Sticky mobile add-to-cart bar (product page) ---------------- */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 30px rgba(30,42,94,.12);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 14px;
}
.stickybar__price { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; line-height: 1.1; }
.stickybar__price s { color: var(--slate-soft); font-weight: 600; font-size: .85rem; }
.stickybar .btn { flex: 1; width: auto; padding: 13px 20px; }

/* ---------------- Product page (PDP) ---------------- */
.pdp-nav { padding: 18px 0 0; }
.pdp-nav__logo { height: 54px; width: auto; }

.pdp { padding-top: 24px; }
.pdp__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
}

/* gallery */
.gallery__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.gallery__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery__thumb {
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.gallery__thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--coral); }

/* buybox */
.buybox__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 4px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.buybox__price .now { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2rem; color: var(--navy); }
.buybox__price .was { color: var(--slate-soft); font-size: 1.15rem; }
.chip--sale { background: var(--butter); font-size: .78rem; padding: 6px 12px; }

/* bundle ladder */
.bundles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bundle {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid #EFE7DC;
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bundle:hover { border-color: var(--baby-blue); }
.bundle.is-selected {
  border-color: var(--coral);
  box-shadow: 0 10px 30px rgba(255,122,89,.18);
}
.bundle input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.bundle__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bundle__name { font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.bundle__save { color: #2EAD6B; font-weight: 800; font-size: .82rem; margin-top: 2px; }
.bundle__price { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; white-space: nowrap; }
.bundle__ribbon {
  position: absolute;
  top: -11px; right: 14px;
  background: var(--coral);
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

/* variant dropdowns: hidden unless card selected */
.bundle__variants { display: none; flex-direction: column; gap: 8px; margin-top: 12px; }
.bundle.is-selected .bundle__variants:not(:empty) { display: flex; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.variant-row span { font-weight: 700; color: var(--navy); font-size: .88rem; }
.variant-row select {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--lavender);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  background: #fff;
  cursor: pointer;
  outline: none;
  font-size: .9rem;
}
.variant-row select:focus { border-color: var(--coral); }

@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 24px; }
  .pdp-nav__logo { height: 44px; }
  body[data-page="product"] { padding-bottom: 84px; } /* room for sticky bar */
}

/* ---------------- Section headers ---------------- */
.sec-head { text-align: center; max-width: 620px; margin: 0 auto; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .transform__grid { grid-template-columns: 1fr; gap: 26px; }
  .picker__grid { grid-template-columns: 1fr; }
  .picker-card--soon { min-height: 160px; }
}
@media (max-width: 640px) {
  .hero { padding: 22px 0 30px; }
  .hero .sub { margin: 4px 0 20px; }
  /* comparison table fits 390px viewports without horizontal scroll */
  .compare { min-width: 0; }
  .compare th, .compare td { padding: 12px 8px; font-size: .82rem; }
  .compare td:first-child, .compare th:first-child { font-size: .85rem; }
  .benefits__grid { gap: 12px; }
  .benefit { padding: 18px 14px; }
  .stickybar { display: flex; }
}
