/* Dóffee Donuts & Coffee · sistema comum
   Direção "Absurdamente delicioso": o rosa do logo, o magenta do cardápio, o creme do site e o azul do "Donuts & Coffee". */
:root {
  /* cores medidas no logo, no cardápio e no site atual da Dóffee */
  --ink: #4A1033;
  --plum: #AE2A72;
  --plum-2: #9A2264;
  --plum-3: #861C57;
  --berry: #EC4396;
  --berry-2: #D93286;
  --blush: #FCE4F0;
  --rose: #F6C6DE;
  --butter: #FFF1CF;
  --butter-2: #F8E3B8;
  --sky: #D8F0F6;
  --sky-2: #009CC2;
  --teal: #009CC2;
  --lime: #E8F4DA;
  --navy: #004878;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1760px;
  --r: clamp(22px, 3vw, 40px);
  --hd-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--berry); color: var(--butter); }
:focus-visible { outline: 2.5px solid var(--berry); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--plum); color: var(--butter); padding: 10px 16px; border-radius: 999px; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tons de seção */
[data-tone='plum'].sec, .t-plum { background: var(--plum); color: var(--butter); }
[data-tone='butter'].sec, .t-butter { background: var(--butter); color: var(--ink); }
[data-tone='berry'].sec, .t-berry { background: var(--berry); color: var(--butter); }
[data-tone='sky'].sec, .t-sky { background: var(--sky); color: var(--ink); }
[data-tone='blush'].sec, .t-blush { background: var(--blush); color: var(--ink); }
.sec { position: relative; }

/* calda escorrendo: borda de seção. Cor = seção de cima */
.drip { position: absolute; left: 0; right: 0; width: 100%; height: clamp(46px, 7vw, 110px); z-index: 2; pointer-events: none; fill: var(--drip, var(--butter)); transform-origin: top; }
.drip--below { top: 100%; margin-top: -1px; }
.drip--top { top: -1px; }

/* ---------- tipografia */
.eyebrow { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hand { font-family: var(--f-hand); font-weight: 700; font-size: 1.5em; line-height: 1; letter-spacing: 0; }
.h-xl, .h-l, .h-m { font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; line-height: .92; text-wrap: balance; }
.h-xl { font-size: clamp(42px, 7.2vw, 118px); }
.h-l { font-size: clamp(34px, 5vw, 76px); }
.h-m { font-size: clamp(26px, 3vw, 44px); letter-spacing: -.035em; line-height: 1; }
.h-xl em, .h-l em, .h-m em, h1 em {
  font-family: var(--f-hand); font-style: normal; font-weight: 700;
  font-size: 1.18em; letter-spacing: -.01em; line-height: .8;
  color: var(--accent, var(--berry));
}
[data-tone='berry'] { --accent: var(--butter); }
[data-tone='plum'] { --accent: var(--rose); }
[data-tone='sky'] { --accent: var(--berry-2); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 34em; }

/* ---------- botões */
.btn {
  --bg: var(--plum); --fg: var(--butter);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn--plum { --bg: var(--plum); --fg: var(--butter); }
.btn--berry { --bg: var(--berry); --fg: #fff; }
.btn--butter { --bg: var(--butter); --fg: var(--ink); }
.btn--line { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translateX(3px); }
  .btn--plum:hover { --bg: var(--plum-3); }
  .btn--berry:hover { --bg: var(--berry-2); }
  .btn--butter:hover { --bg: #fff; }
  .btn--line:hover { box-shadow: inset 0 0 0 2.5px currentColor; }
}
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 18px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } }

.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--butter-2); color: var(--ink);
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.chip svg { width: 15px; height: 15px; }
.chip:active { transform: scale(.96); }
.chip--ifood { background: #EA1D2C; color: #fff; }
.chip--wa { background: #1FAF5B; color: #fff; }
.chip--map { background: var(--plum); color: var(--butter); }
@media (hover: hover) and (pointer: fine) { .chip:hover { filter: brightness(1.08); } }

/* ---------- cabeçalho */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h); color: var(--butter); transition: color 300ms ease, transform 450ms var(--ease-out); }
.hd::before {
  content: ''; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--hd-bg, var(--plum)) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  opacity: 0; transition: opacity 300ms ease, background-color 300ms ease;
}
.hd.is-scrolled::before { opacity: 1; }
.hd.is-hidden { transform: translateY(-100%); }
.hd[data-tone='plum'] { --hd-bg: var(--plum); }
.hd[data-tone='berry'] { --hd-bg: var(--berry); }
.hd[data-tone='butter'], .hd[data-tone='sky'], .hd[data-tone='blush'] { color: var(--ink); }
.hd[data-tone='butter'] { --hd-bg: var(--butter); }
.hd[data-tone='sky'] { --hd-bg: var(--sky); }
.hd[data-tone='blush'] { --hd-bg: var(--blush); }
.hd .wrap { max-width: none; }
.hd__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.hd__brand { position: relative; display: block; width: 118px; height: 53px; margin-right: auto; }
.hd__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 300ms ease, transform 500ms var(--ease-spring); }
.hd__logo--pink { opacity: 0; }
.hd[data-tone='butter'] .hd__logo--pink, .hd[data-tone='sky'] .hd__logo--pink, .hd[data-tone='blush'] .hd__logo--pink { opacity: 1; }
.hd[data-tone='butter'] .hd__logo--white, .hd[data-tone='sky'] .hd__logo--white, .hd[data-tone='blush'] .hd__logo--white { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .hd__brand:hover .hd__logo { transform: rotate(-4deg) scale(1.04); } }
.hd__nav { display: flex; gap: 2px; }
.hd__nav a { position: relative; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 15.5px; }
.hd__nav a::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform 300ms var(--ease-spring); }
.hd__nav a[aria-current]::after { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .hd__nav a:hover::after { transform: scale(1); } }
.hd__cta { display: flex; align-items: center; gap: 10px; }
.hd[data-tone='berry'] .hd__order { --bg: var(--butter); --fg: var(--ink); }
.hd__menu { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px currentColor; }
.hd__menu span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease-out); }
.hd__menu span:first-child { top: 18px; } .hd__menu span:last-child { top: 26px; }
.hd__menu[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.hd__menu[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--berry); color: var(--butter);
  padding: calc(var(--hd-h) + 20px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  clip-path: circle(0 at calc(100% - var(--gutter) - 23px) 39px);
  transition: clip-path 650ms var(--ease-in-out);
}
.menu[hidden] { display: flex; visibility: hidden; transition: clip-path 500ms var(--ease-in-out), visibility 0s 500ms; }
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 39px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; overflow-y: auto; }
.menu nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,241,212,.25); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 7.4vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
.menu nav a small { font-family: var(--f-body); font-size: 13px; font-weight: 600; opacity: .7; }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu__soc { display: flex; gap: 8px; }
body.menu-open .hd { color: var(--butter) !important; }
body.menu-open .hd::before { opacity: 0 !important; }
body.menu-open .hd .hd__logo--white { opacity: 1 !important; }
body.menu-open .hd .hd__logo--pink { opacity: 0 !important; }
body.menu-open .hd__order { visibility: hidden; }

.soc { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: transform 200ms var(--ease-spring), background-color 200ms ease, color 200ms ease; }
.soc svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) { .soc:hover { background: var(--butter); color: var(--ink); transform: translateY(-2px) rotate(-6deg); } }

@media (max-width: 1080px) { .hd__nav { display: none; } .hd__menu { display: block; } }
@media (max-width: 560px) {
  :root { --hd-h: 66px; }
  .hd__brand { width: 96px; height: 44px; }
  .hd__order span { display: none; }
  .hd__order { width: 44px; padding: 0; }
}

/* ---------- cabeçalho de página interna */
.ph { position: relative; padding: calc(var(--hd-h) + clamp(48px, 9vw, 120px)) 0 clamp(64px, 9vw, 130px); overflow: hidden; }
.ph__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.ph h1 { margin-top: 18px; }
.ph .lede { margin-top: 22px; }
@media (max-width: 820px) { .ph__grid { grid-template-columns: 1fr; } }

/* linhas que sobem */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.js .reveal-lines .line > span { transform: translateY(105%); }
.js .reveal-up { opacity: 0; }

/* ---------- marquee */
.marquee { overflow: hidden; padding: 20px 0; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; align-items: center; gap: 34px; animation: mq 38s linear infinite; padding-left: 34px; }
.marquee__track span { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 46px); letter-spacing: -.04em; }
.marquee__track span.hand { font-family: var(--f-hand); font-size: clamp(32px, 4.4vw, 60px); }
.marquee__track img { width: clamp(44px, 5vw, 68px); height: auto; animation: spin 9s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- rodapé */
.ft { position: relative; background: var(--berry); color: var(--butter); padding: clamp(120px, 14vw, 200px) 0 28px; overflow: hidden; }
.ft .drip { --drip: var(--ft-drip, var(--butter)); }
.ft__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.ft__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.8vw, 58px); letter-spacing: -.045em; line-height: .98; }
.ft__big em { font-family: var(--f-hand); font-style: normal; color: var(--ink); font-size: 1.15em; letter-spacing: 0; }
.ft__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft__cols a { display: block; text-decoration: none; padding: 5px 0; opacity: .85; transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .ft__cols a:hover { opacity: 1; } }
.ft__h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.ft__soc { display: flex; gap: 8px; }
.ft__soc a { padding: 0; opacity: 1; }
.ft__handle { margin-top: 12px; font-family: var(--f-hand); font-size: 26px; color: var(--ink); }
.ft__word { font-family: var(--f-display); font-weight: 900; font-size: clamp(80px, 18.5vw, 300px); letter-spacing: -.07em; line-height: .78; color: var(--butter); margin: clamp(48px, 7vw, 100px) 0 24px -.04em; white-space: nowrap; }
.ft__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; opacity: .7; border-top: 1px solid rgba(255,241,212,.18); padding-top: 18px; }
@media (max-width: 900px) { .ft__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ft__cols { grid-template-columns: 1fr 1fr; } .ft__cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- formulários */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%; min-height: 54px; padding: 14px 18px;
  border-radius: 16px; border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: currentColor; background: color-mix(in srgb, currentColor 9%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--berry); }
.form__ok { display: none; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, currentColor 10%, transparent); font-weight: 600; }
.form.is-sent .form__ok { display: block; animation: pop 500ms var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- calculadora sem royalties */
.calc { display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--plum); color: var(--butter); }
.calc__lab { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.calc__fat { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 4px 0; }
.calc__range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--berry) var(--fill, 30%), rgba(255,241,212,.18) var(--fill, 30%)); }
.calc__range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--berry) var(--fill, 30%), rgba(255,241,212,.18) var(--fill, 30%)); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -13px; border-radius: 50%; background: var(--butter) url('img/menu/homer.webp') center / 118% no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform 160ms var(--ease-out); }
.calc__range::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--butter) url('img/menu/homer.webp') center / 118% no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.calc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__res { display: grid; gap: 4px; padding: 16px 0 10px; border-top: 1px solid rgba(255,241,212,.15); }
.calc__res span { font-size: 14px; opacity: .75; }
.calc__year { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.04em; color: var(--rose); font-variant-numeric: tabular-nums; }
.calc .btn { justify-self: start; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
