/* Lucky Cake — a página é uma fatia de bolo vista de lado.
   Cada secção é uma camada: cobertura, massa, recheio, base. */

@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/caprasimo-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/caprasimo-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* camadas */
  --cobertura: #f7d4e2;
  --cobertura-deep: #eab3c9;
  --baunilha: #f2c66c;
  --baunilha-deep: #dda64a;
  --chocolate: #3b2018;
  --chocolate-soft: #5a3324;
  --frutos: #a8213f;
  --frutos-deep: #861733;
  --nata: #fff4f7;
  --ameixa: #352a39;

  /* tinta */
  --ink: #2a1611;
  --ink-soft: #5b3a2f;
  --on-dark: #fbe6ee;
  --on-dark-soft: #f3d6e1;
  --sun: #f6c453;

  --edge: 22px;          /* altura das ondas entre camadas */
  --wrap: 76rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: max(var(--pad), (100% - var(--wrap)) / 2);
  --radius: 16px;
  --line: 2px;           /* traço único em todo o desenho */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 4.25rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ameixa);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: "Caprasimo", Georgia, serif; letter-spacing: -.01em; }
h3 { font-family: "Caprasimo", Georgia, serif; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
h4 { font-size: .95rem; font-weight: 700; margin-top: 1.4rem; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
sup { font-size: .7em; }
.small { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { display: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--frutos); color: var(--nata); }
:focus-visible { outline: 3px solid var(--frutos); outline-offset: 3px; border-radius: 6px; }
.chocolate :focus-visible, .frutos :focus-visible, .base :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
html { scrollbar-color: var(--frutos) var(--cobertura); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cobertura); }
::-webkit-scrollbar-thumb { background: var(--frutos); border-radius: 12px; border: 3px solid var(--cobertura); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--chocolate); color: var(--on-dark); padding: .7rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --b-bg: var(--chocolate); --b-fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: .8rem 1.35rem;
  font: 650 1rem/1.1 "Hanken Grotesk", sans-serif;
  color: var(--b-fg); background: var(--b-bg);
  border: var(--line) solid var(--ink); border-radius: 14px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 14px -8px rgb(42 22 17 / .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgb(42 22 17 / .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-choc:hover { --b-bg: #4d2a1f; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: none; }
.btn-ghost:hover { --b-bg: rgb(255 255 255 / .45); box-shadow: none; }
.btn-sun { --b-bg: var(--sun); --b-fg: var(--ink); border-color: var(--sun); }
.btn-sun:hover { --b-bg: #ffd36f; }
.btn-sm { min-height: 2.6rem; padding: .5rem 1rem; font-size: .95rem; border-radius: 12px; }
.btn-lg { min-height: 3.75rem; padding: 1rem 1.75rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Trevo (logótipo) ---------- */
.clover {
  display: inline-block; width: 2.4rem; height: 2.4rem; flex: none;
  background: currentColor;
  -webkit-mask: url("../assets/img/trevo.webp") center / contain no-repeat;
          mask: url("../assets/img/trevo.webp") center / contain no-repeat;
}

/* ---------- Cabeçalho ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: var(--cobertura);
  transition: box-shadow .3s, background-color .3s;
}
.top.scrolled { box-shadow: 0 8px 24px -16px rgb(42 22 17 / .45); }
.top-in {
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: "Caprasimo", serif; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.brand .clover { transition: transform .6s var(--ease-out); }
.brand:hover .clover { transform: rotate(-25deg); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  padding: .5rem .75rem; border-radius: 10px; text-decoration: none;
  font-weight: 560; font-size: .97rem; color: var(--ink);
  transition: background-color .2s;
}
.nav a:hover { background: rgb(255 255 255 / .55); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 2.75rem; height: 2.75rem; place-items: center;
  background: transparent; color: var(--ink); border: var(--line) solid var(--ink); border-radius: 12px; cursor: pointer;
}

/* ---------- Camadas e fronteiras onduladas ---------- */
.layer { position: relative; background: var(--bg); color: var(--fg, var(--ink)); }
.layer + .layer::before,
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--edge) + 1px); height: var(--edge);
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12C20 2 40 2 60 12S100 22 120 12V24Z'/%3E%3C/svg%3E") 0 100% / 120px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12C20 2 40 2 60 12S100 22 120 12V24Z'/%3E%3C/svg%3E") 0 100% / 120px 100% repeat-x;
  pointer-events: none; z-index: 2;
}
/* recheios espremem mais: onda mais curta e mais funda */
.frutos::before, .nata::before { --edge: 26px; -webkit-mask-size: 84px 100%; mask-size: 84px 100%; }

.cobertura { --bg: var(--cobertura); }
.massa {
  --bg: var(--baunilha);
  background-color: var(--bg);
  /* miolo: grão fino */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .38 0 0 0 0 .1 0 0 0 1.1 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.massa::before { background-color: var(--baunilha); }
.chocolate {
  --bg: var(--chocolate); --fg: var(--on-dark);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .04 0 0 0 0 .02 0 0 0 1.3 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frutos { --bg: var(--frutos); --fg: var(--on-dark); --sun: #ffd877; }
.nata { --bg: var(--nata); }
.base { --bg: var(--ameixa); --fg: var(--on-dark); }

.wrap { padding-inline: var(--gutter); }
:where(section.layer) { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Hero (cobertura) ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) 0; z-index: 3; }
/* rebordo de pérolas de buttercream sobre a massa */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 30px; z-index: 4;
  background: radial-gradient(circle at 50% 0, var(--cobertura) 12px, var(--cobertura-deep) 13.5px, transparent 14.5px) 0 0 / 30px 30px repeat-x;
  pointer-events: none;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem);
  padding-inline: var(--gutter);
  min-height: min(calc(100svh - var(--head-h)), 56rem);
}
.hero-copy { align-self: center; padding-block: clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(3rem, 1.6rem + 5.6vw, 6rem); line-height: .98; letter-spacing: -.02em; max-width: 11ch; }
.lede { margin-top: 1.4rem; max-width: 36rem; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); }
.hero .actions { margin-top: 2rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.facts li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border: var(--line) solid var(--ink); border-radius: 999px;
  font-size: .92rem; font-weight: 560; background: rgb(255 255 255 / .38);
}
.facts strong { font-weight: 800; }
.facts .ic { width: 1.05rem; height: 1.05rem; color: var(--frutos); }
.hero-cake { margin: 0; align-self: end; justify-self: center; position: relative; margin-bottom: -2.5rem; z-index: 5; }
.hero-cake img {
  width: min(100%, 34rem); max-height: min(78svh, 46rem); object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 28px 26px rgb(42 22 17 / .32));
}
.js .hero-cake img { animation: settle .9s var(--ease-out) both; }
@keyframes settle { from { opacity: .55; translate: 0 -22px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Construtor de bolo (massa) ---------- */
.builder { padding-block: 0; z-index: 2; }
.builder-stick { padding: clamp(5rem, 9vw, 7.5rem) var(--gutter) clamp(4rem, 7vw, 6rem); }
.builder-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy stage" "copy readout";
  column-gap: clamp(2rem, 5vw, 5rem); row-gap: 1.25rem; align-items: start;
}
.builder-copy { grid-area: copy; }
.builder h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); max-width: 13ch; }
.builder-intro { margin-top: 1.1rem; max-width: 34rem; color: var(--ink-soft); font-size: 1.08rem; }
.steps { list-style: none; margin: 2rem 0 2rem; display: grid; gap: .25rem; max-width: 34rem; }
.step { padding: .9rem 0 .9rem; border-top: var(--line) solid rgb(42 22 17 / .22); position: relative; transition: opacity .4s var(--ease-out); }
.step::after {
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--line)); height: var(--line); width: calc(var(--fill, 0) * 100%);
  background: var(--ink);
}
.step h3 { display: flex; align-items: baseline; gap: .6rem; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.step-n { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: .85rem; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border: var(--line) solid var(--ink); border-radius: 50%; translate: 0 -.15em; flex: none; }
.step p { margin-top: .35rem; color: var(--ink-soft); }
.builder-note { margin-top: 2.5rem; max-width: 46rem; font-weight: 560; }

.stage { grid-area: stage; position: relative; aspect-ratio: 420 / 330; }
.cut { width: 100%; height: 100%; overflow: visible; }
.cut .ly, .cut .board, .cut .cobertura-coat { stroke: var(--ink); stroke-width: var(--line); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cut .board { fill: var(--nata); }
.cut .massa-ly { fill: var(--massa, #f8dc9c); transition: fill .45s var(--ease-out); }
.cut .recheio-ly { fill: var(--recheio, #3d1f15); transition: fill .45s var(--ease-out); }
.cut .cobertura-coat { fill: var(--nata); }
.cut .crumb { fill: url(#miolo); stroke: none; pointer-events: none; }
#miolo circle { fill: rgb(42 22 17 / .3); }
.cut .board, .cut .dims { transition: opacity .5s var(--ease-out); }
.builder.is-live .cut .crumb { opacity: 0; transition: opacity .45s var(--ease-out); }
.builder.is-live[data-step="1"] .cut .crumb, .builder.is-live[data-step="2"] .cut .crumb, .builder.is-live[data-step="3"] .cut .crumb { opacity: 1; }
.builder.is-live.show-photo .cut .board, .builder.is-live.show-photo .cut .dims, .builder.is-live.show-photo .cut .cake { opacity: 0; }
.cut .dim { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cut .cake { transform-box: view-box; transform-origin: 210px 286px; transform: scaleX(var(--w, .7)); transition: transform .6s var(--ease-out); }
.cut .dims path:first-child { transform-box: view-box; transform-origin: 210px 0; transform: scaleX(var(--w, .7)); transition: transform .6s var(--ease-out); }
.stage-photo {
  position: absolute; inset: -4% 8% 0; margin: 0;
  border: var(--line) solid var(--ink); border-radius: 22px 22px 6px 6px; overflow: hidden;
  box-shadow: 0 30px 40px -24px rgb(42 22 17 / .55);
}
.stage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.readout { grid-area: readout; padding-top: .8rem; border-top: var(--line) solid var(--ink); }
.readout dl { margin: .45rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; }
.readout-cap { font-size: .85rem; font-weight: 750; color: var(--frutos-deep); }
.readout div { min-width: 0; }
.readout dt { font-size: .8rem; font-weight: 750; color: var(--ink-soft); }
.readout dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

/* estado estático (sem JS ou com movimento reduzido): tudo à vista, bolo completo */
.builder:not(.is-live) .stage-photo { display: none; }
.builder:not(.is-live) .cut { --w: 1; }

/* estado vivo: o bolo monta-se com o scroll */
.builder.is-live { height: 420vh; }
.builder.is-live .builder-stick { position: sticky; top: var(--head-h); min-height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2rem, 5vh, 3.5rem); }
.builder.is-live .step { opacity: .42; }
.builder.is-live .step.on { opacity: 1; }
.builder.is-live .cut .ly { fill: var(--nata); }
.builder.is-live .cut .cobertura-coat { opacity: 0; transition: opacity .5s var(--ease-out); }
.builder.is-live[data-step="1"] .cut .massa-ly,
.builder.is-live[data-step="2"] .cut .massa-ly,
.builder.is-live[data-step="3"] .cut .massa-ly { fill: var(--massa); }
.builder.is-live[data-step="2"] .cut .recheio-ly,
.builder.is-live[data-step="3"] .cut .recheio-ly { fill: var(--recheio); }
/* no modo preso tudo cabe num ecrã */
.builder.is-live h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
.builder.is-live .builder-intro { margin-top: .8rem; font-size: 1rem; }
.builder.is-live .steps { margin: 1.25rem 0 1.25rem; }
.builder.is-live .step { padding: .6rem 0; }
.builder.is-live .step p { max-height: 0; overflow: hidden; margin: 0; transition: max-height .5s var(--ease-out), margin .5s var(--ease-out); }
.builder.is-live .step.on p { max-height: 7rem; margin-top: .35rem; }
.builder.is-live .builder-note { margin-top: 1.25rem; font-size: .95rem; }
.builder.is-live .stage { align-self: center; }
.builder.is-live[data-step="3"] .cut .cobertura-coat { opacity: 1; }
.builder.is-live .stage-photo { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), filter .6s var(--ease-out); }
.builder.is-live[data-step="3"].show-photo .stage-photo { opacity: 1; transform: none; filter: none; }
.builder.is-live .readout dd { transition: color .3s; }

/* ---------- Festas (frutos) ---------- */
.festas { padding-block: 0; z-index: 3; }
.festas-stick { padding-block: clamp(5rem, 9vw, 7.5rem) clamp(4rem, 7vw, 6rem); overflow: hidden; }
.festas-head { padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem 4rem; align-items: end; }
.festas h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); max-width: 13ch; }
.festas-head p { color: var(--on-dark-soft); font-size: 1.1rem; max-width: 30rem; }
.reel { margin-top: clamp(2rem, 4vw, 3.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--cobertura) var(--frutos-deep); padding-bottom: 1rem; }
.reel:focus-visible { outline-offset: -3px; }
.reel-track { list-style: none; display: flex; align-items: flex-end; gap: clamp(1.25rem, 3vw, 3rem); padding-inline: var(--gutter); width: max-content; }
.cake-item { scroll-snap-align: center; width: clamp(15rem, 26vw, 22rem); flex: none; }
.cake-item img { width: 100%; height: clamp(17rem, 34vw, 27rem); object-fit: contain; object-position: bottom; }
.cake-item.cut-out img { filter: drop-shadow(0 22px 20px rgb(40 0 12 / .45)); }
.cake-item p { margin-top: 1.1rem; padding-top: .8rem; border-top: var(--line) solid rgb(251 230 238 / .5); color: var(--on-dark-soft); font-size: .95rem; }
.cake-item strong { display: block; color: var(--on-dark); font-size: 1.05rem; font-weight: 700; }
.festas-notes { list-style: none; padding-inline: var(--gutter); margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; color: var(--on-dark-soft); }
.festas-notes strong { color: var(--on-dark); }

.festas.is-live .reel { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.festas.is-live .reel-track { transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.festas.is-live .festas-stick { position: sticky; top: var(--head-h); min-height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2rem, 5vh, 4rem); }

/* ---------- Sabores (chocolate) ---------- */
.sabores { z-index: 4; }
.sabores-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.sabores h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); }
.sabores-head p { color: var(--on-dark-soft); max-width: 32rem; }
.table-wrap { margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; border: var(--line) solid var(--on-dark); border-radius: var(--radius); }
.sizes { width: 100%; min-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.sizes th, .sizes td { padding: .9rem 1rem; text-align: right; white-space: nowrap; }
.sizes th[scope="row"] { text-align: left; font-weight: 650; }
.sizes thead th { font-family: "Caprasimo", serif; font-weight: 400; font-size: 1.6rem; color: var(--sun); padding-block: 1.1rem .6rem; }
.sizes tbody tr { border-top: 1px solid rgb(251 230 238 / .22); }
.sizes .meta td, .sizes .meta th { color: var(--on-dark-soft); font-size: .95rem; padding-block: .55rem; }
.sizes tbody tr:not(.meta) td { font-size: 1.2rem; font-weight: 700; }
.sizes tbody tr:not(.meta):hover { background: rgb(251 230 238 / .06); }

.lines { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 5vw, 5rem); }
.lines h3 { color: var(--sun); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.lines .small { color: var(--on-dark-soft); margin-top: .4rem; }
.lines h4 { color: var(--on-dark); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tags li { padding: .35rem .8rem; border: var(--line) solid var(--on-dark-soft); border-radius: 999px; font-size: .95rem; }
.list-cols { columns: 2 15rem; column-gap: 2rem; margin-top: .6rem; list-style: none; }
.list-cols li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid rgb(251 230 238 / .18); font-size: .98rem; }
.specials { margin: 1.2rem 0 0; display: grid; gap: 1.3rem; }
.specials div { padding-top: 1.1rem; border-top: var(--line) solid rgb(251 230 238 / .35); }
.specials dt { font-family: "Caprasimo", serif; font-size: 1.35rem; }
.specials dd { margin: .3rem 0 0; color: var(--on-dark-soft); }

.slices-title { margin-top: clamp(3.5rem, 7vw, 5rem); color: var(--sun); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.slices { list-style: none; margin-top: 1.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.slices li { text-align: center; }
.slices img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: var(--line) solid var(--on-dark); background: var(--cobertura);
  transition: transform .5s var(--ease-out);
}
.slices li:hover img { transform: rotate(-6deg) scale(1.04); }
.slices span { display: block; margin-top: .7rem; font-weight: 650; font-size: .95rem; line-height: 1.3; }

/* ---------- Menu (nata) ---------- */
.menu { z-index: 5; }
.menu-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.menu h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); max-width: 12ch; }
.menu-head p { color: var(--ink-soft); max-width: 34rem; }
.menu-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}
.m-block { min-width: 0; }
.m-block h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); margin-bottom: .6rem; }
.m-block > p, .m-block div > p { margin-top: .5rem; }
.m-bento { grid-column: 1 / span 7; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: center; }
.m-express { grid-column: 8 / span 5; align-self: center; padding: 1.5rem; border: var(--line) solid var(--ink); border-radius: var(--radius); background: var(--cobertura); }
.m-casa { grid-column: 1 / span 5; }
.m-sobre { grid-column: 6 / span 7; }
.m-cuca { grid-column: 1 / span 7; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.75rem; align-items: start; }
.m-brownie { grid-column: 8 / span 5; display: grid; gap: 1rem; align-content: start; }
.m-doces { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); gap: 2rem; align-items: center; padding-top: clamp(2rem, 4vw, 3rem); border-top: var(--line) solid var(--ink); }
.m-img.cut { filter: drop-shadow(0 16px 16px rgb(42 22 17 / .25)); }
.m-img.photo { border: var(--line) solid var(--ink); border-radius: 18px 18px 6px 6px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.m-brownie .m-img { max-height: 15rem; width: auto; }
.price-line, .prices li { display: flex; align-items: baseline; gap: .5rem; }
.prices { list-style: none; margin-top: .9rem; }
.prices li { padding: .55rem 0; border-bottom: 1px solid rgb(42 22 17 / .14); }
.prices li > span:first-child, .prices li > span:nth-child(2):not(.dots) { min-width: 0; }
.dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgb(42 22 17 / .35); translate: 0 -.3em; }
.price { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: "Hanken Grotesk", sans-serif; }
.price-line .price { font-size: 1.2rem; }
.prices.with-img li { align-items: center; }
.prices.with-img img { width: 3.6rem; height: 2.6rem; object-fit: contain; flex: none; }
.prices.with-img .dots { align-self: center; translate: 0 .2em; }

/* ---------- Avaliações (frutos) ---------- */
.reviews { z-index: 6; }
.reviews-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; }
.score-h { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); color: var(--sun); max-width: 10ch; }
.score-stars { display: flex; gap: .25rem; margin-top: 1rem; color: var(--sun); }
.score-stars .ic { width: 1.6rem; height: 1.6rem; fill: var(--sun); }
.score-src { margin-top: 1rem; font-size: 1.1rem; max-width: 26rem; }
.score-g { margin-top: .5rem; color: var(--on-dark-soft); }
.link-out { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.4rem; font-weight: 650; }
.link-out .ic { width: 1.1rem; height: 1.1rem; }
.quotes { list-style: none; display: grid; gap: 1.75rem; }
.quotes li { padding-top: 1.5rem; border-top: var(--line) solid rgb(251 230 238 / .45); }
.quotes li:nth-child(2) { padding-left: clamp(0rem, 4vw, 3rem); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-family: "Caprasimo", serif; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); line-height: 1.32; }
.who { margin-top: .7rem; font-size: .92rem; color: var(--on-dark-soft); }

/* ---------- Loja (massa) ---------- */
.loja { z-index: 7; }
.loja-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: stretch; }
.loja h2 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); }
.addr { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: 1.2rem; font-weight: 700; }
.addr .ic { color: var(--frutos); }
.status { margin-top: .4rem; font-weight: 600; color: var(--ink-soft); }
.status.open { color: #1f5a2a; }
.hours { margin: 1.5rem 0 2rem; border-collapse: collapse; width: 100%; max-width: 24rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .5rem 0; border-bottom: 1px solid rgb(42 22 17 / .2); }
.hours th { text-align: left; font-weight: 560; }
.hours td { text-align: right; font-weight: 650; }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours tr.today th::after { content: " · hoje"; font-weight: 600; color: var(--frutos); }
.map { min-height: 24rem; border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--cobertura); box-shadow: 0 24px 36px -26px rgb(42 22 17 / .6); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 24rem; border: 0; }

/* ---------- Encomendar (base) ---------- */
.encomendar { z-index: 8; }
.enc-in { max-width: calc(var(--wrap) * .8 + 2 * var(--gutter)); }
.encomendar h2 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); color: var(--cobertura); max-width: 14ch; }
.howto { list-style: none; counter-reset: h; margin: 2.5rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.howto li { counter-increment: h; padding-top: 1rem; border-top: var(--line) solid var(--on-dark-soft); color: var(--on-dark-soft); }
.howto li::before { content: counter(h); display: block; font-family: "Caprasimo", serif; font-size: 2rem; line-height: 1; color: var(--sun); margin-bottom: .6rem; }
.howto strong { color: var(--on-dark); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.5rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; text-decoration: none; padding-block: .4rem; }
.socials a:hover { text-decoration: underline; }

/* ---------- Rodapé (placa do bolo) ---------- */
.foot { position: relative; z-index: 9; --bg: #261d29; background: var(--bg); color: var(--on-dark-soft); padding-block: 3.5rem 3rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.seal { display: inline-flex; align-items: center; gap: .9rem; color: var(--cobertura); text-decoration: none; }
.seal .clover { width: 3.2rem; height: 3.2rem; }
.seal-txt b { display: block; font-family: "Caprasimo", serif; font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.seal-txt i { display: block; font-style: normal; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; }
.foot p { font-size: .95rem; }
.copy { justify-self: end; }

/* ---------- Ecrãs médios ---------- */
@media (max-width: 64rem) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .top-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--head-h); left: 0; right: 0;
    padding: .75rem var(--gutter) 1.25rem; background: var(--cobertura); box-shadow: 0 18px 24px -18px rgb(42 22 17 / .5);
  }
  .nav.open a { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid rgb(42 22 17 / .15); border-radius: 0; }

  .festas-head, .sabores-head, .menu-head { grid-template-columns: minmax(0, 1fr); }
  .slices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .m-bento, .m-cuca { grid-column: 1 / -1; }
  .m-express { grid-column: 1 / -1; }
  .m-casa { grid-column: 1 / span 6; }
  .m-sobre { grid-column: 7 / span 6; }
  .m-brownie { grid-column: 1 / -1; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: center; }
  .reviews-in, .loja-in { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .copy { justify-self: start; }
}

/* ---------- Telemóvel ---------- */
@media (max-width: 47.99rem) {
  :root { --head-h: 3.75rem; --edge: 16px; }
  .brand-name { font-size: 1.2rem; white-space: nowrap; }
  .clover { width: 2rem; height: 2rem; }
  .top-in { gap: .6rem; }
  .top-cta { padding-inline: .8rem; font-size: .9rem; }
  .top-cta .ic { display: none; }

  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-copy { padding-block: 1.25rem 1rem; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .lede { margin-top: 1rem; }
  .hero .actions { margin-top: 1.5rem; }
  .hero .actions .btn-choc { flex: 1 1 100%; }
  .hero .actions .btn-ghost { min-height: 2.75rem; padding: .4rem .2rem; border: 0; text-decoration: underline; }
  .facts { gap: .4rem; }
  .facts li { padding: .3rem .65rem; font-size: .85rem; }
  .facts { margin-top: 1.4rem; }
  .hero-cake { margin-bottom: -1.5rem; }
  .hero-cake img { max-height: 60svh; width: min(88%, 22rem); margin-inline: auto; }

  .builder-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "readout"; }
  .builder.is-live .builder-grid { row-gap: .75rem; }
  .builder.is-live .builder-stick { justify-content: flex-start; padding-block: 1.25rem 1rem; }
  .builder.is-live h2 { font-size: 1.75rem; max-width: none; }
  .builder.is-live .builder-intro, .builder.is-live .builder-copy > .btn, .builder.is-live .builder-note { display: none; }
  .builder.is-live .steps { margin: .75rem 0 0; min-height: 6.5rem; }
  .builder.is-live .step { display: none; border: 0; padding: 0; }
  .builder.is-live .step.on { display: block; }
  .builder.is-live .stage { max-height: 38svh; width: 100%; aspect-ratio: auto; height: 38svh; }
  .builder.is-live .stage-photo { inset: 0 18%; }
  .readout dl { gap: .35rem 1rem; }
  .readout dd { font-size: .95rem; }

  .cake-item { width: 72vw; }
  .cake-item img { height: 19rem; }
  .slices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .sizes { min-width: 0; }
  .sizes th, .sizes td { padding: .6rem .35rem; }
  .sizes th[scope="row"] { white-space: normal; padding-left: .75rem; font-size: .9rem; line-height: 1.3; }
  .sizes td:last-child, .sizes th:last-child { padding-right: .75rem; }
  .sizes thead th { font-size: 1.2rem; }
  .sizes tbody tr:not(.meta) td { font-size: 1rem; }
  .sizes .meta td { font-size: .82rem; }
  .slices span { font-size: .85rem; }
  .m-bento, .m-cuca, .m-doces, .m-brownie { grid-template-columns: minmax(0, 1fr); }
  .m-casa, .m-sobre { grid-column: 1 / -1; }
  .m-bento .m-img { max-width: 15rem; }
  .m-cuca .m-img, .m-doces .m-img { max-width: 20rem; aspect-ratio: 4 / 3; }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .encomendar .btn-lg { width: 100%; }
  .quotes li:nth-child(2) { padding-left: 0; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero-cake img { animation: none; }
}
