/* ============================================================
   Chocobello — styles
   Soft, airy, minimalist. Warm cream + chocolate.
   ============================================================ */

:root {
  --bg: #faf6f0;
  --surface: #fffdf9;
  --choc: #3b2417;
  --choc-soft: #6f5644;
  --line: rgba(59, 36, 23, 0.08);
  --accent: #b45f2e;
  --accent-soft: #f3e0cf;
  --gold: #c99a2e;
  --green: #1faa53;
  --ink: #2c1a10;
  --radius: 14px;
  --shadow-sm: 0 6px 20px -12px rgba(59, 36, 23, 0.18);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

/* A photo that failed to load never shows a broken-image icon */
img.missing { display: none; }

/* Photos are rendered only when the file exists (see resolvePhotos in main.js) */
.photo-slot { display: block; }
.photo-slot .hero-photo { display: block; }

/* ---------- typography ---------- */

h1, h2, h3, .brand-name { font-family: var(--font-serif); }

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 12px 0 16px;
  color: var(--choc);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--choc);
  margin: 4px 0 10px;
  letter-spacing: -0.3px;
}

h3 { font-size: 1.15rem; font-weight: 600; color: var(--choc); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.sub { color: var(--choc-soft); font-size: 1.02rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--choc);
  color: var(--bg);
}
.btn-primary:hover { background: #4a2f1f; }

.btn-wa {
  background: var(--green);
  color: #fff;
}
.btn-wa:hover { background: #179448; }

.btn-ghost {
  background: transparent;
  color: var(--choc);
  border-color: var(--choc);
}
.btn-ghost:hover { background: var(--choc); color: var(--bg); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* WhatsApp icon inside buttons & links */
.wa-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--choc);
}

.brand-mark {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.brand-name { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.3px; }

.nav { display: flex; gap: 2px; }

.nav-link {
  color: var(--choc-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { color: var(--choc); background: rgba(59, 36, 23, 0.05); }
.nav-link.active { color: var(--choc); background: var(--accent-soft); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--choc);
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 6px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 11px 12px; }
.nav-mobile .btn { margin-top: 8px; }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 70px 0 56px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-emoji { font-size: 2.6rem; margin-bottom: 6px; }

.hero-sub {
  font-size: 1.13rem;
  color: var(--choc-soft);
  max-width: 540px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-note { margin-top: 20px; color: var(--choc-soft); font-size: 0.93rem; }

.hero-photo {
  margin: 40px auto 0;
  border-radius: var(--radius);
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}

/* ---------- sections ---------- */

.section { padding: 48px 0; }

.section-alt {
  background: rgba(59, 36, 23, 0.035);
  border-radius: 20px;
  padding-left: 28px;
  padding-right: 28px;
}

.section-narrow { max-width: 720px; margin: 0 auto; }

.section-head { margin-bottom: 28px; }

.center { text-align: center; margin-top: 28px; }
.center-text { text-align: center; }
.center .btn { margin: 0 5px; }

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-photo-wrap { border-bottom: 1px solid var(--line); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.card-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 12px;
  margin: 22px 0 0 22px;
}

.card h3 { margin-bottom: 6px; }

.card p { color: var(--choc-soft); font-size: 0.95rem; flex: 1; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }

.tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 999px;
}

.card-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.card-order:hover { color: var(--choc); }

/* ---------- steps ---------- */

.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.step h3 { margin-bottom: 2px; }
.step p { color: var(--choc-soft); font-size: 0.95rem; }

/* ---------- quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 3px solid var(--gold);
}

.quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--choc);
  font-style: italic;
  line-height: 1.5;
}

.quote figcaption { margin-top: 10px; color: var(--choc-soft); font-size: 0.88rem; font-weight: 500; }

/* Bodiqo nutritionist reviews */
.quote-nutri { border-top-color: var(--green); }

.nutri-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  background: rgba(31, 170, 83, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- story ---------- */

.story-hero {
  text-align: center;
  padding: 60px 0 24px;
  max-width: 700px;
  margin: 0 auto;
}

.story-hero p {
  color: var(--choc-soft);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto;
}

.story-photo {
  margin: 30px auto 0;
  border-radius: var(--radius);
  max-height: 340px;
  width: 100%;
  object-fit: cover;
}

.story-copy {
  max-width: 640px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--choc-soft);
  font-size: 1.02rem;
}

.story-copy p:first-child { font-size: 1.12rem; color: var(--choc); font-family: var(--font-serif); }

.award {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 640px;
  margin: 0 auto;
}

.award-icon { font-size: 1.8rem; flex-shrink: 0; }
.award h3 { margin-bottom: 4px; }
.award p { color: var(--choc-soft); font-size: 0.93rem; }
.award-photo { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; margin-left: auto; flex-shrink: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.value-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.value h3 { margin-bottom: 4px; }
.value p { color: var(--choc-soft); font-size: 0.94rem; }

/* ---------- order form ---------- */

.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field > span { font-weight: 600; color: var(--choc); font-size: 0.95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--choc-soft); font-size: 0.84rem; }

.field input[type="text"],
.field textarea {
  font: inherit;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 95, 46, 0.1);
  background: var(--surface);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--choc-soft);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip input:checked + span {
  background: var(--choc);
  border-color: var(--choc);
  color: var(--bg);
  font-weight: 600;
}

.chip span:hover { border-color: var(--accent); }

.form-note { text-align: center; color: var(--choc-soft); font-size: 0.84rem; }

/* ---------- faq ---------- */

.faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--choc);
  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.2rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 20px 16px; color: var(--choc-soft); font-size: 0.95rem; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card p { color: var(--choc-soft); font-size: 0.95rem; flex: 1; }
.contact-card .btn { align-self: flex-start; margin-top: 10px; }

/* ---------- legal (privacy / terms) ---------- */

.legal-hero {
  text-align: center;
  padding: 60px 0 20px;
  max-width: 680px;
  margin: 0 auto;
}

.legal-block { margin-bottom: 30px; }
.legal-block h3 { margin-bottom: 8px; }
.legal-block p { color: var(--choc-soft); font-size: 0.97rem; margin-bottom: 10px; }
.legal-block ul { margin: 0 0 10px 20px; color: var(--choc-soft); font-size: 0.97rem; }
.legal-block li { margin-bottom: 6px; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 56px;
  background: var(--choc);
  color: #e8d8c6;
  padding: 40px 28px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
}

.footer-tag { color: #c9b29d; margin-top: 8px; }

.site-footer .brand-name { color: var(--bg); }

.footer-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c9b29d;
  margin-bottom: 12px;
}

.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links .nav-link { color: #e8d8c6; padding: 4px 0; border-radius: 0; }
.footer-links .nav-link:hover { color: var(--bg); background: none; }

.footer-contact { display: flex; flex-direction: column; gap: 7px; }

.footer-contact a { color: #e8d8c6; text-decoration: none; }
.footer-contact a:hover { color: var(--bg); text-decoration: underline; }

.footer-addr { color: #c9b29d; }

.wa-link { display: inline-flex; align-items: center; gap: 6px; }

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #c9b29d;
}

.footer-bottom a { color: #e8d8c6; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -8px rgba(31, 170, 83, 0.55);
  z-index: 50;
  transition: transform 0.15s ease;
}

.wa-float svg { width: 28px; height: 28px; }

.wa-float:hover { transform: scale(1.07); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav, .nav-wa { display: none; }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 38px 0; }
}

@media (max-width: 520px) {
  .page { padding: 0 16px; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .award { flex-wrap: wrap; }
  .award-photo { margin-left: 0; }
}
