/* ============================================================
   Cêlie Doces — sistema visual
   Acolhedor & artesanal · base rosa claro
   ============================================================ */

:root {
  --rose: oklch(0.63 0.16 8);
  --rose-deep: oklch(0.53 0.155 9);
  --cream: oklch(0.973 0.013 62);
  --radius: 22px;
  --font-display: "Spectral", Georgia, serif;

  /* paleta fixa */
  --cream-2: oklch(0.955 0.022 54);
  --card: oklch(0.992 0.008 70);
  --pink-50: oklch(0.965 0.018 8);
  --pink-100: oklch(0.94 0.032 8);
  --pink-200: oklch(0.885 0.052 8);
  --pink-300: oklch(0.83 0.07 8);
  --ink: oklch(0.315 0.03 38);
  --ink-soft: oklch(0.47 0.028 36);
  --ink-faint: oklch(0.6 0.022 36);
  --line: oklch(0.875 0.02 30);

  --font-script: "Parisienne", cursive;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --shadow-sm: 0 2px 10px oklch(0.5 0.06 8 / 0.08);
  --shadow-md: 0 14px 40px oklch(0.5 0.08 8 / 0.13);
  --shadow-lift: 0 26px 60px oklch(0.45 0.09 8 / 0.18);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(900px 520px at 88% -8%, var(--pink-100), transparent 60%),
    radial-gradient(760px 480px at -6% 12%, oklch(0.96 0.02 30), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--rose);
  display: inline-block;
}

.script { font-family: var(--font-script); font-weight: 400; color: var(--rose); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }

.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 8px 22px oklch(0.55 0.15 9 / 0.32); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: 0 14px 30px oklch(0.5 0.15 9 / 0.4); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }

.btn-sm { padding: 11px 18px; font-size: 0.88rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  background: oklch(0.973 0.013 62 / 0.82);
  border-bottom: 1px solid oklch(0.87 0.02 30 / 0.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 4px; }
.brand .mark { font-family: var(--font-script); font-size: 2.1rem; color: var(--rose); line-height: 1; }
.brand .sub { font-family: var(--font-body); font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.66rem; color: var(--ink-soft); align-self: center; padding-bottom: 3px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--rose); transition: width .22s ease; border-radius: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 70px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); margin: 18px 0 0; }
.hero h1 em { font-style: normal; font-family: var(--font-script); color: var(--rose); font-weight: 400; }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); margin: 22px 0 0; max-width: 30ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .item { display: flex; flex-direction: column; }
.hero-meta .item b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.hero-meta .item span { font-size: 0.82rem; color: var(--ink-faint); font-weight: 700; letter-spacing: 0.04em; }

.hero-art { position: relative; max-width: 440px; margin-inline: auto; }
.hero-art .blob {
  position: absolute; inset: -6% -8% -10% -4%;
  background: radial-gradient(circle at 50% 45%, var(--pink-200), var(--pink-100) 55%, transparent 72%);
  filter: blur(6px); z-index: 0;
}
/* real hero photo — mirrors the prototype's <image-slot> box (shape=rounded radius=24) */
.hero-art .hero-img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/5;
  max-height: min(58vh, 520px);   /* fit the screen; crop via object-fit */
  object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow-lift);
}
.hero-badge {
  position: absolute; z-index: 2; right: -14px; bottom: 28px;
  width: 126px; height: 126px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-md);
  display: grid; place-content: center; text-align: center;
  border: 1px dashed var(--pink-300);
  transform: rotate(-8deg);
}
.hero-badge .s { font-family: var(--font-script); color: var(--rose); font-size: 1.7rem; line-height: 1; }
.hero-badge .t { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

/* ---------- ribbon marquee ---------- */
.ribbon { background: var(--rose); color: #fff; overflow: hidden; margin-top: 34px; }
.ribbon .track { display: flex; gap: 0; white-space: nowrap; animation: slide 26s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; padding: 13px 0; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
.ribbon span::after { content: "✿"; margin: 0 26px; opacity: 0.7; font-size: 0.7rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   PHOTO PLACEHOLDERS (owner fills these later)
   ============================================================ */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, oklch(0.97 0.02 8 / 0.5) 18px 19px),
    var(--pink-50);
  border: 1.5px dashed var(--pink-300);
  color: var(--ink-faint);
}
.ph svg { width: 30px; height: 30px; opacity: 0.55; }
.ph span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; max-width: 90%; }
.product-card .ph { width: 100%; aspect-ratio: 5/4; }
.about-art .ph { width: 100%; aspect-ratio: 1/1; border-radius: 24px; box-shadow: var(--shadow-md); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; z-index: 1; }
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; margin: 16px 0 0; }

/* scallop divider */
.scallop { height: 26px; --c: var(--cream); }
.scallop.on-card { --c: var(--card); }
.scallop::before {
  content: ""; display: block; height: 26px;
  background:
    radial-gradient(circle at 13px 0, transparent 12px, var(--c) 12.5px) 0 0 / 26px 26px repeat-x;
}

/* ============================================================
   CARDÁPIO
   ============================================================ */
.menu { background: var(--card); }
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.chip {
  font-family: var(--font-body); font-weight: 800; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--pink-300); color: var(--ink); }
.chip.active { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 6px 16px oklch(0.55 0.15 9 / 0.28); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.product-card {
  background: var(--cream); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid oklch(0.9 0.018 30 / 0.8);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .pc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rose); background: var(--pink-50);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.product-name { font-family: var(--font-display); font-size: 1.4rem; }
.product-desc { color: var(--ink-soft); font-size: 0.97rem; margin: 9px 0 0; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.product-price { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); white-space: nowrap; }
.product-price small { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; color: var(--ink-faint); display: block; letter-spacing: 0.02em; }

/* ============================================================
   COMO ENCOMENDAR
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { text-align: center; padding: 12px; }
.step .num {
  counter-increment: step; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; border: 1.5px dashed var(--pink-300); background: var(--pink-50);
  display: grid; place-content: center; font-family: var(--font-display); font-size: 1.7rem; color: var(--rose);
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-soft); margin: 8px 0 0; font-size: 0.97rem; }

/* ============================================================
   SOBRE
   ============================================================ */
.about { background: var(--card); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.about-art { position: relative; }
.about-art .stamp {
  position: absolute; left: -18px; top: -18px; z-index: 2;
  background: var(--rose); color: #fff; border-radius: 50%; width: 104px; height: 104px;
  display: grid; place-content: center; text-align: center; transform: rotate(-9deg);
  box-shadow: var(--shadow-md);
}
.about-art .stamp .s { font-family: var(--font-script); font-size: 1.5rem; line-height: 1; }
.about-art .stamp .t { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.about-text h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 14px 0 0; }
.about-text p { color: var(--ink-soft); margin: 18px 0 0; font-size: 1.06rem; }
.about-sign { font-family: var(--font-script); color: var(--rose); font-size: 2.2rem; margin-top: 22px; }

/* ============================================================
   ONDE PEDIR (delivery apps)
   ============================================================ */
.where-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.where-card {
  background: var(--card); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.where-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.where-card .logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  padding: 9px 16px; border-radius: 12px; margin-bottom: 14px; color: #fff; line-height: 1;
}
.logo.wa { background: oklch(0.62 0.14 150); }
.logo.ifood { background: oklch(0.58 0.21 22); }
.logo.food99 { background: oklch(0.32 0.02 250); }
.where-card h3 { font-size: 1.35rem; }
.where-card p { color: var(--ink-soft); margin: 4px 0 18px; font-size: 0.97rem; }
.where-card .btn { margin-top: auto; align-self: stretch; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--card); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 1.18rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--pink-50); color: var(--rose); display: grid; place-content: center; font-size: 1.3rem; transition: transform .25s ease; font-family: var(--font-body); font-weight: 700; }
.faq-item[open] .ico { transform: rotate(45deg); }
.faq-item .ans { padding: 0 26px 24px; color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta {
  margin: 0 auto; max-width: calc(var(--maxw) - 0px);
  text-align: center; padding: 70px 28px;
}
.cta-inner {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; border-radius: 32px; padding: 64px 40px;
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.cta-inner::before, .cta-inner::after {
  content: "✿"; position: absolute; font-size: 8rem; opacity: 0.12; line-height: 1;
}
.cta-inner::before { top: -10px; left: 20px; }
.cta-inner::after { bottom: -30px; right: 24px; }
.cta-inner .script { color: oklch(0.92 0.05 8); font-size: 2rem; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 0; color: #fff; }
.cta-inner p { margin: 16px auto 30px; max-width: 46ch; opacity: 0.92; font-size: 1.08rem; }
.cta-inner .btn-primary { background: #fff; color: var(--rose-deep); box-shadow: 0 10px 26px oklch(0.3 0.08 9 / 0.3); }
.cta-inner .btn-primary:hover { background: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: oklch(0.28 0.028 30); color: oklch(0.9 0.015 40); padding: 60px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .mark { font-family: var(--font-script); font-size: 2.4rem; color: oklch(0.84 0.08 8); }
.footer p { color: oklch(0.78 0.015 40); font-size: 0.95rem; margin: 12px 0 0; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; color: oklch(0.7 0.04 8); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: oklch(0.85 0.015 40); font-size: 0.95rem; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid oklch(0.4 0.02 30); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: oklch(0.65 0.015 40); }

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: oklch(0.62 0.14 150); color: #fff;
  display: grid; place-content: center;
  box-shadow: 0 10px 30px oklch(0.5 0.1 150 / 0.45);
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid oklch(0.62 0.14 150); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

/* ============================================================
   SCROLL REVEAL (vanilla IntersectionObserver adds .in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  /* text (hero-copy, first in DOM) shows above the photo on mobile */
  .hero-art { max-width: 420px; }
  .grid, .steps, .where-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: grid; place-content: center; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 42px; height: 42px; cursor: pointer; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .steps, .where-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-meta { gap: 18px; }

  /* Cardápio → swipeable carousel (pure CSS scroll-snap, peek next card) */
  .menu .grid {
    display: flex; gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;            /* bleed to screen edges */
    padding: 4px 18px 18px;     /* first card aligns to content; room for shadow */
    scroll-padding-left: 18px;
    scrollbar-width: none;      /* Firefox */
  }
  .menu .grid::-webkit-scrollbar { display: none; }  /* WebKit/Chrome */
  .menu .product-card {
    flex: 0 0 84%;              /* <100% → next card peeks = swipe affordance */
    scroll-snap-align: start;
  }
}

/* Respect reduced-motion preferences (ribbon marquee + FAB ping) */
@media (prefers-reduced-motion: reduce) {
  .ribbon .track { animation: none; }
  .fab::after { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
