/* #folder: theme/assets/css/main.css — all custom styling for the DreamBooklet theme: base, buttons, section joins, and each home section. */

/* ---------- Tokens ---------- */
:root {
  --db-ink-soft: rgba(0, 0, 0, 0.87);        /* pair 12 text at 87% for long body copy on cream */
  --db-salmon-hover: #f79e88;                /* darkened salmon, hover only */
  --db-radius-card: 20px;
  --db-radius-btn: 14px;
  --db-radius-frame: 24px;
  --db-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --db-section-pad: clamp(56px, 4.5vw + 40px, 96px);
  --db-focus: #00796b;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(summary):focus-visible {
  outline: 3px solid var(--db-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.db-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.db-section { padding-block: var(--db-section-pad); }

.db-prose { max-width: 720px; }

/* Amatic SC serves eyebrows, rhyme lines and pull-quotes only */
.db-eyebrow {
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: clamp(24px, 2vw + 16px, 32px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.db-heading {
  font-family: "Lexend Exa", "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 1.2vw + 24px, 36px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.db-sub {
  font-size: clamp(17px, 0.4vw + 15px, 18px);
  line-height: 1.65;
  max-width: 65ch;
}

/* ---------- Button: the single salmon buy style ---------- */
.db-btn {
  display: inline-block;
  font-family: Comfortaa, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: #2d3b4a;
  background: #ffb4a2;
  border: 0;
  border-radius: var(--db-radius-btn);
  padding: 16px 32px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out;
}
.db-btn:hover {
  background: var(--db-salmon-hover);
  transform: translateY(-2px);
  box-shadow: var(--db-shadow-soft);
}
.db-btn:active { transform: translateY(0); }

/* Quiet outline pill for WhatsApp; never competes with the buy colour */
.db-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Comfortaa, "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #00796b;
  border: 2px solid #00796b;
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  background: transparent;
  transition: transform 180ms ease-out;
}
.db-pill:hover { transform: translateY(-2px); }
.db-pill svg { width: 18px; height: 18px; }

/* ---------- Gold star (four-point, pair 11 fill) ---------- */
.db-star { width: 22px; height: 22px; flex: none; }

/* ---------- Torn-paper joins (max four on the page) ---------- */
.db-tear { display: block; width: 100%; height: clamp(28px, 4vw, 48px); margin-bottom: -1px; }
.db-tear svg { display: block; width: 100%; height: 100%; }

/* ---------- Scroll reveal ---------- */
.db-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .db-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 240ms ease-out, transform 240ms ease-out;
  }
  .js .db-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Floating WhatsApp button ---------- */
/* #ffffff-on-#128c4e is a scoped exception to the fixed pairs (owner
   confirmed 2026-08-03): a messaging-app green reads as intended only at
   real saturation, and none of the 12 pairs offers one. Used here only. */
.db-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #128c4e;
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--db-shadow-soft);
  text-decoration: none;
  transition: transform 180ms ease-out;
}
.db-whatsapp-float:hover { transform: translateY(-2px); }
.db-whatsapp-float svg { width: 26px; height: 26px; }

/* A quick double-bounce every ~9s, then still; draws the eye without nagging */
@keyframes db-wa-bounce {
  0%, 91%, 100% { transform: translateY(0); }
  93% { transform: translateY(-8px); }
  95% { transform: translateY(0); }
  97% { transform: translateY(-4px); }
  99% { transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .db-whatsapp-float { animation: db-wa-bounce 9s ease-in-out infinite; }
  .db-whatsapp-float:hover { animation-play-state: paused; }
}

/* ---------- Screen-reader-only helper ---------- */
.db-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 1. Header ---------- */
/* The wp:template-part wrapper is exactly as tall as .db-header (no extra
   content), so position:sticky must live on it, not on .db-header: a sticky
   box can't move beyond its containing block, and a containing block with
   zero spare height leaves it nothing to stick within. */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
}
.db-header {
  background: #fffaf0;            /* pair 7 */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.db-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
  transition: padding-block 180ms ease-out;
}
.db-header.is-scrolled .db-header__inner { padding-block: 8px; }
.db-header__brand { display: inline-flex; }
.db-header__logo {
  width: auto;
  height: 46px;
  transition: height 180ms ease-out;
}
.db-header.is-scrolled .db-header__logo { height: 38px; }
.db-header__nav { display: flex; justify-content: center; gap: clamp(16px, 3vw, 32px); }
.db-header__nav a {
  font-family: Comfortaa, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #00796b;                 /* pair 7 text on cream */
  text-decoration: none;
}
.db-header__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.db-header__actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 759px) {
  .db-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-block: 8px;
  }
  .db-header.is-scrolled .db-header__inner { padding-block: 5px; }
  .db-header__brand { flex: none; min-width: 0; }
  .db-header__logo { height: 26px; }
  .db-header.is-scrolled .db-header__logo { height: 22px; }
  .db-header__nav { flex: none; justify-content: flex-start; gap: 10px; }
  .db-header__nav a { font-size: 12px; white-space: nowrap; }
  .db-header__actions { flex: none; gap: 0; }
  .db-pill { font-size: 11px; padding: 6px 10px; gap: 4px; }
  .db-pill svg { width: 14px; height: 14px; }
  .db-pill__extra { display: none; }
}

/* ---------- 10a. Final call ---------- */
.db-final { background: #ffe5cc; color: #2c3e50; }          /* pair 3 */
.db-final__inner { text-align: center; }
.db-final .db-heading { margin-bottom: 32px; }

/* ---------- 10b. Footer (pair 2 inverted: footer only) ---------- */
.db-footer { background: #001f3f; color: #edeeef; padding-block: 64px 32px; }
.db-footer a { color: #edeeef; text-decoration: underline; text-underline-offset: 3px; }
.db-footer a:hover { text-decoration-thickness: 2px; }
.db-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
.db-footer__logochip {
  display: inline-block;
  background: #edeeef;
  border-radius: 14px;
  padding: 10px 16px;
}
.db-footer__logochip img { height: 40px; width: auto; }
.db-footer__line { font-size: 15px; max-width: 34ch; }
.db-footer__head {
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: 17px;
  margin: 4px 0 12px;
}
.db-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.db-footer__base {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(237, 238, 239, 0.25);
  font-size: 15px;
}
.db-footer__base p { margin: 0; }

@media (max-width: 759px) {
  .db-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- 2. Hero (pair 3 peach) ---------- */
.db-hero {
  background: #ffe5cc;
  color: #2c3e50;
  padding-top: var(--db-section-pad);
}
.db-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.db-hero__headline {
  font-family: "Lexend Exa", "Trebuchet MS", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 3vw + 22px, 58px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.db-hero__words .db-sub { margin: 0 0 32px; }
.db-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 32px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}
.db-hero__trust li { display: flex; align-items: center; }
.db-hero__trust li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #2c3e50;
  opacity: 0.45;
  margin-inline: 12px;
}
.db-hero__art { position: relative; }
.db-hero__note {
  font-size: 13px;
  margin: 12px 4px 0;
  max-width: 46ch;
}
.db-hero__star {
  position: absolute;
  top: -28px;
  right: 2px;
  width: 30px; height: 30px;
  transform: rotate(14deg);
}

/* ---------- The hero photo frame ---------- */
.db-hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin-inline: auto;
  border-radius: var(--db-radius-frame);
  overflow: hidden;
  border: 4px solid #fffaf0;
  background: #fffaf0;           /* matches the border; mattes the square art with no crop */
}
.db-hero__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 859px) {
  .db-hero__inner { grid-template-columns: 1fr; }
  .db-hero__art { order: -1; }        /* the art comes first on phones */
  .db-hero__star { top: -20px; right: 8px; }
}

@media (max-width: 759px) {
  .db-eyebrow { font-size: 19px; margin-bottom: 6px; }
  .db-hero__headline { font-size: 23px; line-height: 1.2; margin-bottom: 14px; }
  .db-hero__words .db-sub { font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
  .db-hero__trust {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    font-size: 10.5px;
    margin-top: 24px;
  }
  .db-hero__trust li + li::before { margin-inline: 6px; }
}

/* ---------- 4. How it works (pair 4 mint) ---------- */
.db-how { background: #e8f5e9; color: #1b4332; padding-bottom: calc(var(--db-section-pad) + 8px); }
.db-how .db-heading { text-align: center; margin-bottom: 48px; }
.db-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.db-how__step { text-align: center; }
.db-how__num {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
}
.db-how__num svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.db-how__num b {
  position: relative;
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: #1c1c1c;                 /* pair 11 text on its gold star */
}
.db-how__step h3 {
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 6px;
}
.db-how__step p { font-size: 15px; line-height: 1.6; margin: 0 auto; max-width: 26ch; }

@media (max-width: 859px) {
  .db-how__steps { grid-template-columns: 1fr; row-gap: 24px; }
}

@media (max-width: 759px) {
  .db-how .db-heading { margin-bottom: 28px; }
  .db-how__step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }
  .db-how__num { width: 38px; height: 38px; margin: 2px 0 0; flex: none; }
  .db-how__num b { font-size: 15px; }
  .db-how__step h3 { font-size: 16px; margin: 0 0 4px; }
  .db-how__step p { margin: 0; max-width: none; }
}

/* ---------- 6. A page for every letter (cream base) ---------- */
.db-letters { padding-block: calc(var(--db-section-pad) * 1.1); }
.db-letters__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.db-letters__figure { margin: 0; }
.db-letters__figure img { border-radius: var(--db-radius-frame); }
.db-letters__pull {
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: clamp(28px, 2.4vw + 18px, 40px);
  line-height: 1.25;
  color: #00796b;                 /* pair 7 display colour on cream */
  margin: 0 0 16px;
}
@media (max-width: 859px) {
  .db-letters__inner { grid-template-columns: 1fr; }
}

/* ---------- 7a. Price (pair 1 sky) ---------- */
.db-price { background: #bae6fd; color: #1b263b; }
.db-price__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}
.db-price__card {
  background: #fffaf0;            /* pair 7 surface; body text uses soft black */
  color: var(--db-ink-soft);
  border: 3px solid transparent;  /* reserved so the featured ring below doesn't shift content width */
  border-radius: var(--db-radius-card);
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
}
.db-price__card--featured {
  position: relative;
  border-color: #00796b;          /* pair 7 teal ring marks the featured tier */
  box-shadow: var(--db-shadow-soft);
}
.db-price__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Comfortaa, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1c1c1c;                 /* pair 11 tag */
  background: #ffe0b2;
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}
.db-price__title {
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #00796b;                 /* pair 7 heading colour on cream */
  margin: 0 0 8px;
}
.db-price__amount {
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 3vw + 20px, 52px);
  line-height: 1.1;
  margin: 0 0 24px;
}
.db-price__rupee { font-size: 0.72em; vertical-align: 2px; }
.db-price__list {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 16px;
}
.db-price__list li { padding-left: 22px; position: relative; }
.db-price__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: #00796b;
  transform: rotate(-4deg);       /* a small painted dash, not an icon grid */
}
.db-price__delivery { font-size: 15px; margin: 0 0 28px; opacity: 0.85; }
@media (max-width: 759px) {
  .db-price__grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* ---------- 7b. Occasions (pair 5 lilac) ---------- */
.db-occasions { background: #e8d5f2; color: #4a148c; }
.db-occasions .db-heading { text-align: center; margin-bottom: 32px; }
.db-occasions__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  max-width: 720px;
  margin-inline: auto;
}
.db-occasions__chips li {
  font-family: Comfortaa, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1c1c1c;                 /* pair 11 tag */
  background: #ffe0b2;
  border-radius: 999px;
  padding: 10px 20px;
}

/* ---------- 8. Loved by parents (pair 9 blush) ---------- */
.db-reviews { background: #ffe8ed; color: #3e2723; }
.db-reviews .db-heading { text-align: center; margin-bottom: 40px; }
.db-reviews__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.db-review-card { text-align: center; }
.db-review-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--db-radius-card);
  box-shadow: var(--db-shadow-soft);
  transition: transform 180ms ease-out;
}
.db-review-card:hover img { transform: translateY(-4px); }
.db-review-card__name {
  font-family: "Lexend Exa", sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 16px 0 4px;
}
.db-review-card__quote {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 32ch;
}
@media (max-width: 859px) {
  .db-reviews__grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* ---------- 9. Questions (cream base) ---------- */
.db-faq__inner { max-width: 720px; }
.db-faq .db-heading { margin-bottom: 32px; }
.db-faq__list details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.db-faq__list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 17px;
  color: #00796b;                 /* pair 7: short headings on cream */
}
.db-faq__list summary::-webkit-details-marker { display: none; }
.db-faq__list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #00796b;
  border-bottom: 2.5px solid #00796b;
  transform: rotate(45deg);
  transition: transform 180ms ease-out;
}
.db-faq__list details[open] summary::after { transform: rotate(-135deg); }
.db-faq__list details p {
  margin: 0;
  padding: 0 4px 20px;
  max-width: 62ch;
}

/* ---------- Review-loop refinements ---------- */
/* Letters band: portrait acrostic page, readable at arm's length.
   Scoped to desktop so the 859px stack rule above still wins on phones. */
@media (min-width: 860px) {
  .db-letters__inner { grid-template-columns: 0.95fr 1.05fr; }
}
.db-letters__figure img {
  width: 100%;
  max-width: min(460px, 100%);
  margin-inline: auto;
}

/* Pass-3 polish: caption on the body small-text scale; denser step row */
.db-hero__note { font-size: 15px; }
.db-how__steps { max-width: 960px; margin-inline: auto; }
