/* ===========================================================
   THE COOKIES — Site institucional
   Paleta: roxo profundo / violeta / magenta / laranja / creme
   =========================================================== */

:root {
  --ink:        #1c0c20;
  --purple-900: #2b0a33;
  --purple-800: #3d1149;
  --purple-700: #6a1f7d;
  --purple:     #8a2ba0;
  --magenta:    #c13fb8;
  --orange:     #f49a1e;
  --orange-300: #fbb84a;
  --cream:      #faf4ec;
  --cream-2:    #f2e7d6;
  --paper:      #fffdf9;
  --white:      #ffffff;

  --font-display: 'Anton', 'Arial Black', sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-script:  'Grand Hotel', cursive;

  --maxw: 1240px;
  --shadow-card: 0 18px 40px -22px rgba(43,10,51,.55);
  --shadow-soft: 0 8px 24px -14px rgba(43,10,51,.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.eyebrow {
  font-weight: 800;
  font-size: clamp(.72rem, 1.2vw, .82rem);
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-orange {
  background: var(--orange);
  color: var(--purple-900);
  box-shadow: 0 12px 26px -10px rgba(244,154,30,.7);
}
.btn-orange:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -10px rgba(244,154,30,.8); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-purple {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(138,43,160,.8);
}
.btn-purple:hover { transform: translateY(-3px); background: var(--purple-700); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 44px);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(43,10,51,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  padding-block: 10px;
}
.brand { display: flex; align-items: baseline; gap: .55rem; color: var(--white); }
.brand .the { font-family: var(--font-script); font-size: 1.3rem; color: var(--orange-300); line-height: 1; transform: translateY(1px); }
.brand .cookies { font-family: var(--font-script); font-size: 2rem; color: var(--white); line-height: 1; }
.brand .csc {
  font-family: var(--font-body); font-weight: 800; font-size: .6rem; letter-spacing: .18em;
  color: var(--magenta); align-self: flex-start; margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--white); font-weight: 700; font-size: .95rem; position: relative; opacity: .9;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .22s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, rgba(43,17,73,.5), rgba(18,7,18,.55)), url('assets/hero-poster.jpg') center/cover no-repeat, var(--ink); }
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0; transition: opacity .8s ease;
}
.hero video.playing { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(28,12,32,.55) 0%, rgba(28,12,32,.15) 32%, rgba(43,10,51,.55) 70%, rgba(43,10,51,.95) 100%),
    radial-gradient(120% 80% at 15% 90%, rgba(138,43,160,.45), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(96px,14vh,150px) clamp(20px,4vw,44px) clamp(40px,6vh,84px); width: min(100%, var(--maxw)); margin-inline: auto; }
.hero .eyebrow { color: var(--orange-300); display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.1rem; }
.hero .eyebrow::before { content:''; width: 34px; height: 2px; background: var(--orange-300); }
.hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 6.8rem);
  max-width: 15ch;
  text-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.hero h1 .o { color: var(--orange); }
.hero h1 .m { color: var(--magenta); -webkit-text-stroke: 0; }
.hero p.lead {
  margin: 1.4rem 0 2rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 46ch; color: rgba(255,255,255,.92); font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.75); font-size: .72rem; letter-spacing: .25em; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-transform: uppercase;
}
.scroll-hint .dot { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.scroll-hint .dot::after { content:''; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px; background:#fff; transform: translateX(-50%); animation: scrolly 1.6s ease infinite; }
@keyframes scrolly { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,12px)} }

/* ===========================================================
   MARQUEE
   =========================================================== */
.marquee {
  background: var(--orange); color: var(--purple-900);
  border-block: 3px solid var(--purple-900);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee-track { display: inline-flex; gap: 0; animation: scrollx 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem); padding: 0 1.4rem;
  display: inline-flex; align-items: center; gap: 1.4rem;
}
.marquee-track span::after { content: '✦'; color: var(--magenta); font-size: .8em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ===========================================================
   SECTION SHELL
   =========================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .eyebrow { color: var(--magenta); display:inline-flex; align-items:center; gap:.7em; }
.sec-head .eyebrow::before { content:''; width: 30px; height: 2px; background: var(--orange); }
.sec-head h2 { font-size: clamp(2.3rem, 5.5vw, 4.6rem); margin-top: 1rem; color: var(--purple-900); }
.sec-head h2 .o { color: var(--orange); }
.sec-head p { margin-top: 1rem; font-size: 1.1rem; color: #5b4a5f; max-width: 56ch; }

/* ---------- Sabores ---------- */
.sabores { background: var(--cream); }
.cat-label {
  font-family: var(--font-display); text-transform: uppercase; color: var(--purple);
  font-size: clamp(1.3rem,2.4vw,1.8rem); margin: 8px 0 22px; display:flex; align-items:center; gap: 14px;
}
.cat-label::after { content:''; flex:1; height:2px; background: linear-gradient(90deg, var(--orange), transparent); }
.cat-label + .cat-label { margin-top: 60px; }
.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flavor {
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(43,10,51,.06);
}
.flavor:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.flavor image-slot { width: 100%; aspect-ratio: 4/3; display: block; }
.flavor image-slot::part(frame) {
  background: linear-gradient(150deg, #f6e8d2 0%, #ecd6b6 55%, #e3c9a4 100%);
}
.flavor image-slot::part(empty) { color: var(--purple-700); }
.flavor image-slot::part(ring) { border-color: rgba(106,31,125,.35); }
.flavor-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.flavor .tag {
  align-self: flex-start; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--purple); color: #fff; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.flavor .tag.novo { background: var(--orange); color: var(--purple-900); }
.flavor h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.45rem; color: var(--purple-900); line-height: 1; }
.flavor .copy { margin-top: 10px; font-size: .92rem; color: #6a5870; flex: 1; }
.flavor .price { margin-top: 16px; font-family: var(--font-display); color: var(--magenta); font-size: 1.35rem; }

/* ---------- Sobre ---------- */
.sobre { background: var(--purple-900); color: #fff; position: relative; overflow: hidden; }
.sobre::before {
  content:''; position:absolute; right:-8%; top:-10%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(193,63,184,.45), transparent 65%); filter: blur(20px);
}
.sobre-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px,5vw,72px); align-items: center; position: relative; z-index:1; }
.sobre-grid img { border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.sobre .eyebrow { color: var(--orange-300); }
.sobre h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem,4.6vw,3.8rem); line-height: .95; margin: 1rem 0 1.3rem; }
.sobre h2 .o { color: var(--orange); }
.sobre p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 1rem; }
.sobre .pull { font-family: var(--font-script); color: var(--orange-300); font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.2; margin: 1.4rem 0; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.badge {
  display:inline-flex; align-items:center; gap:.5em; font-weight:800; font-size:.85rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 16px; border-radius: 999px;
}
.badge svg { width: 16px; height: 16px; color: var(--orange-300); }

/* ---------- Depoimentos ---------- */
.depo { background: var(--cream-2); }
.depo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.depo-card {
  background: var(--paper); border-radius: 20px; padding: 30px 28px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  border: 1px solid rgba(43,10,51,.06);
}
.stars { color: var(--orange); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 14px; }
.depo-card blockquote { font-size: 1.05rem; color: #43303f; flex: 1; font-weight: 500; }
.depo-card .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.depo-card .av { width: 44px; height: 44px; border-radius: 50%; display:grid; place-items:center; font-family: var(--font-display); color:#fff; font-size:1.1rem; }
.depo-card .who b { display:block; color: var(--purple-900); }
.depo-card .who span { font-size: .82rem; color: #8a7790; }

/* ---------- Onde estamos ---------- */
.onde { background: var(--cream); }
.onde-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: stretch; }
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 16px; }
.info-row .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--purple); color:#fff; display:grid; place-items:center; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-weight: 800; color: var(--purple-900); font-size: 1.05rem; }
.info-row p, .info-row a { color: #5b4a5f; }
.info-row a:hover { color: var(--magenta); }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours td { padding: 6px 0; font-size: .95rem; color: #5b4a5f; border-bottom: 1px dashed rgba(43,10,51,.12); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--purple-900); }
.hours tr.closed td:last-child { color: var(--magenta); }
.hours tr.today td { color: var(--purple-900); font-weight: 800; }
.hours tr.today td:first-child::before { content:'● '; color: var(--orange); }
.map-card { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); min-height: 380px; border: 4px solid var(--white); }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display:block; filter: saturate(1.05); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--purple-900);
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(244,154,30,.35), transparent 55%),
                    radial-gradient(120% 120% at 0% 100%, rgba(193,63,184,.4), transparent 55%);
  color: #fff; text-align: center; padding: clamp(64px,8vw,110px) 0;
}
.cta-band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem,6vw,5.5rem); line-height: .95; }
.cta-band h2 .o { color: var(--orange); }
.cta-band p { margin: 1.1rem auto 2rem; max-width: 48ch; color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { margin-bottom: 14px; }
.footer h5 { color:#fff; font-size:.8rem; letter-spacing:.18em; text-transform:uppercase; margin-bottom:16px; font-weight:800; }
.footer ul { list-style: none; display:flex; flex-direction:column; gap:10px; }
.footer ul a:hover { color: var(--orange-300); }
.footer .ig { display:inline-flex; align-items:center; gap:10px; font-weight:700; color:#fff; }
.footer .ig svg { width: 22px; height: 22px; }
.foot-bottom { padding-top: 22px; display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* ===========================================================
   REVEAL  (fail-safe: visible is the base state; the hidden
   state only applies once JS confirms it can reveal again)
   =========================================================== */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal { opacity: 0; transform: translateY(28px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .scroll-hint .dot::after { animation: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .flavor-grid { grid-template-columns: repeat(2,1fr); }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-grid .sobre-media { order: -1; }
  .depo-grid { grid-template-columns: 1fr; }
  .onde-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { 
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--purple-900); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px; transform: translateX(100%);
    transition: transform .3s ease; z-index: 70;
  }
  .nav-links.open { transform: none; box-shadow: -20px 0 50px -20px rgba(0,0,0,.6); }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; z-index: 80; position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .flavor-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}
