/* Pão de Deus — site público
   Conceito: o dia do forno (06h–22h). Azul-marinho e dourado do logótipo, azul-farinha como superfície clara.
   Young Serif (títulos) + Figtree (texto), alojadas localmente. */

@font-face {
  font-family: 'Young Serif';
  src: url('../fonts/young-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-var.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #1F2E43;
  --navy-deep: #15202F;
  --navy-line: rgba(255, 255, 255, .14);
  --gold: #D9AD42;
  --gold-ink: #86651A;          /* dourado legível sobre fundo claro (AA) */
  --flour: #EAF0F5;             /* azul-farinha */
  --flour-deep: #D5DFE9;
  --white: #FFFFFF;
  --ink: #1B2533;
  --muted: #586374;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.4rem);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden, .hp {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #e7bd55; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; font-size: .92rem; padding: 0 1.1em; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; }
.open-status { margin: 0 auto 0 0; display: inline-flex; align-items: center; gap: .5em; color: rgba(255, 255, 255, .8); font-size: .9rem; white-space: nowrap; }
.open-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; box-shadow: 0 0 0 3px rgba(111, 207, 151, .2); }
.open-status.is-closed .dot { background: #9aa4b2; box-shadow: none; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
.main-nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; padding: .4em 0; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

@media (max-width: 1060px) {
  .header-inner { min-height: 66px; gap: 1rem; }
  .brand-logo { height: 46px; }
  .open-status { font-size: .82rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--navy-line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .9em 0; border-bottom: 1px solid var(--navy-line); }
  .main-nav .btn { margin-top: 1rem; }
}
@media (max-width: 420px) { .open-status-text { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; } }

/* ---------- Hero e régua do dia ---------- */
.hero {
  background-color: var(--navy);
  /* pó de farinha: pontos muito ténues */
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 1.3rem + 3.2vw, 3.7rem); margin-bottom: .5em; }
.hero h1 span { display: block; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.day { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); }
.day-clock { color: rgba(255, 255, 255, .7); font-size: .95rem; margin-bottom: 2.6rem; }
.day-clock span { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }

.day-track { position: relative; margin-bottom: 2.4rem; }
.day-segments { list-style: none; margin: 0; padding: 0; position: relative; height: 56px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.day-segments li { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 100%); width: calc(var(--len) * 100%); padding: 0 2px; }
.day-segments li:first-child { padding-left: 0; }
.day-segments li:last-child { padding-right: 0; }
.day-seg {
  width: 100%; height: 100%; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .72);
  font: 600 .9rem var(--sans); transition: background-color .2s, color .2s;
}
.day-seg:hover { background: rgba(255, 255, 255, .13); color: var(--white); }
.day-seg.is-shown { background: var(--white); color: var(--navy); }
.day-seg.is-now:not(.is-shown) { box-shadow: inset 0 0 0 1.5px var(--gold); }

/* A auréola do logótipo marca a hora atual */
.day-halo {
  position: absolute; top: -22px; left: calc(var(--pos) * 100%);
  width: 46px; height: 13px; margin-left: -23px;
  border: 3px solid var(--gold); border-radius: 50%;
  pointer-events: none;
  animation: halo-float 3.2s ease-in-out infinite;
}
.day-halo::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 64px; margin-left: -1px; margin-top: 3px;
  background: linear-gradient(var(--gold), rgba(217, 173, 66, 0));
}
.day-halo.is-closed { border-color: #8d97a6; animation: none; }
.day-halo.is-closed::after { background: linear-gradient(#8d97a6, transparent); }
@keyframes halo-float { 50% { transform: translateY(-4px); } }

.day-hours { position: relative; height: 1.4em; margin-top: .55rem; font-size: .8rem; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.day-hours span { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); }
.day-hours span:first-child { transform: none; }
.day-hours span:last-child { transform: translateX(-100%); }

.day-panel { min-height: 9.5rem; }
.day-when { color: var(--gold); font-weight: 600; margin-bottom: .35rem; }
.day-panel h2 { font-size: var(--step-2); margin-bottom: .4em; }
.day-panel p:not(.day-when) { color: rgba(255, 255, 255, .78); max-width: 42ch; }
.day-panel a { color: var(--white); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.day-panel.is-swapping > * { opacity: 0; transform: translateY(4px); }
.day-panel > * { transition: opacity .2s, transform .2s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .day-clock { margin-bottom: 2.2rem; }
  .day-seg { font-size: .78rem; }
  .day-segments { height: 50px; }
}

/* ---------- Sabores ---------- */
.flavours { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.flavours-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.flavours-intro { position: sticky; top: 110px; }
.flavours-intro h2 { font-size: var(--step-3); }
.flavours-intro p { color: var(--muted); max-width: 38ch; }
.flavour-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.flavour-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--flour-deep);
}
.flavour-list h3 { font-size: var(--step-2); margin: 0; color: var(--navy); }
.flavour-list p { grid-column: 1; margin: 0; color: var(--muted); max-width: 46ch; }
.flavour-price { grid-column: 2; grid-row: 1; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .flavours-grid { grid-template-columns: 1fr; }
  .flavours-intro { position: static; }
}

/* ---------- Encomendas (início rápido) ---------- */
.cake { background: var(--flour); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.cake-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cake-copy h2 { font-size: var(--step-3); color: var(--navy); max-width: 12ch; }
.cake-copy p { max-width: 40ch; color: var(--ink); }
.cake-note { color: var(--muted); font-size: var(--step--1); }
.cake-start { background: var(--white); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 1px 0 var(--flour-deep), 0 18px 40px -24px rgba(21, 32, 47, .35); }
.cake-start fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.cake-start legend, .cake-start label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.cake-start legend { margin-bottom: .7rem; }
.cake-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cake-type { position: relative; }
.cake-type input { position: absolute; opacity: 0; inset: 0; }
.cake-type span {
  display: grid; place-items: center; min-height: 64px; padding: .4rem; text-align: center;
  border: 1.5px solid var(--flour-deep); border-radius: 12px; font-weight: 600; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.cake-type input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.cake-type input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.cake-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.cake-fields input { display: block; width: 100%; margin-top: .35rem; min-height: 48px; padding: 0 .9em; border: 1.5px solid var(--flour-deep); border-radius: 10px; font: 400 1rem var(--sans); color: var(--ink); }
.cake-fields input:focus { border-color: var(--navy); outline: none; }
@media (max-width: 860px) { .cake-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cake-types { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Menu do Dia (folha impressa) ---------- */
.today { padding: clamp(4rem, 9vw, 7rem) 0; }
.today-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.today-copy h2 { font-size: var(--step-3); }
.today-copy p { color: var(--muted); max-width: 34ch; }
.today-phone a { font-weight: 700; color: var(--navy); }
.sheet {
  background: var(--white); max-width: 460px; justify-self: center; width: 100%;
  border: 1px solid var(--flour-deep); border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21, 32, 47, .45);
  transform: rotate(-1.2deg);
}
.sheet-head { background: var(--navy); padding: 1.6rem 1rem 1.3rem; border-bottom: 5px solid var(--gold); }
.sheet-head img { width: 170px; margin: 0 auto; }
.sheet-body { padding: 1.6rem 1.8rem 2rem; }
.sheet-title { font-family: var(--serif); font-size: 2rem; color: var(--navy); text-align: center; margin: 0; }
.sheet-sub { text-align: center; margin: .6rem auto 0; padding: .25rem 1rem; border: 1px solid var(--gold); border-radius: 99px; width: fit-content; font-size: .9rem; font-weight: 600; color: var(--navy); }
.sheet-section { margin-top: 1.5rem; }
.sheet-section h3 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-ink); text-align: center; margin-bottom: .6rem; }
.sheet-section ul { list-style: none; margin: 0; padding: 0; }
.sheet-section li { display: flex; align-items: baseline; gap: .5rem; padding: .3rem 0; }
.sheet-dish { font-weight: 600; color: var(--navy); }
.sheet-dish small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.sheet-dots { flex: 1; border-bottom: 1px dotted #b9c2cf; transform: translateY(-.3em); min-width: 1rem; }
.sheet-price { font-weight: 700; color: var(--gold-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sheet-empty { margin: 1.4rem 0 0; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .today-grid { grid-template-columns: 1fr; }
  .sheet { transform: none; }
}

/* ---------- Visite-nos ---------- */
.visit { background: var(--flour); padding: clamp(4rem, 8vw, 6rem) 0; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit h2 { font-size: var(--step-3); max-width: 14ch; }
.visit-kicker { margin: 0 0 .6rem; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.visit-address { font-style: normal; font-size: var(--step-1); line-height: 1.4; color: var(--navy); margin-bottom: 1.6rem; }
.visit-facts { margin: 0 0 1.8rem; display: grid; gap: .7rem; }
.visit-facts div {
  display: grid; grid-template-columns: 44px 6.5rem 1fr; align-items: center; gap: .3rem 1rem;
  padding: .85rem 1rem; background: var(--white); border-radius: 14px; box-shadow: 0 1px 0 rgba(31, 46, 67, .06), 0 6px 18px -12px rgba(31, 46, 67, .35);
}
.vf-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.visit-facts dt { color: var(--muted); font-size: .9rem; }
.visit-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.visit-facts dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .visit-facts div { grid-template-columns: 44px 1fr; }
  .vf-icon { grid-row: span 2; }
  .visit-facts dt, .visit-facts dd { grid-column: 2; }
  .visit-facts dt { font-size: .8rem; }
}

.map-wrap { border-radius: 16px; overflow: hidden; min-height: 380px; background: var(--flour-deep); display: grid; box-shadow: 0 18px 40px -24px rgba(31, 46, 67, .55); border: 1px solid var(--flour-deep); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-tall { min-height: 420px; margin-top: 2rem; }
.map-consent {
  border: 0; cursor: pointer; font: inherit; color: var(--navy);
  background:
    linear-gradient(90deg, rgba(31, 46, 67, .06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(31, 46, 67, .06) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--flour-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
}
.map-consent strong { font-size: 1.1rem; }
.map-consent span { color: var(--muted); font-size: .9rem; }
.map-consent:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.faq { max-width: 800px; }
.faq h2 { font-size: var(--step-3); margin-bottom: 1.2em; }
.faq details { border-top: 1px solid var(--flour-deep); }
.faq details:last-of-type { border-bottom: 1px solid var(--flour-deep); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 62ch; padding-bottom: 1.1rem; margin: 0; }

/* ---------- Páginas interiores ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-light { background: var(--flour); }
.page-hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--white); padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}
.page-hero h1, .page-hero .script-title { font-size: var(--step-4); color: var(--white); margin-bottom: .25em; }
.page-hero p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 52ch; font-size: var(--step-1); }
.script-title { font-family: var(--serif); font-size: var(--step-3); }
.script-title.dark { color: var(--navy); }

/* Página Menu */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter {
  min-height: 44px; padding: 0 1.2em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--flour-deep); background: var(--white); color: var(--navy); font: 600 .95rem var(--sans);
}
.filter:hover { border-color: var(--navy); }
.filter.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.menu-category { margin-bottom: 3rem; }
.menu-category[hidden] { display: none; }
.menu-category h2 { font-size: var(--step-2); color: var(--navy); padding-bottom: .5rem; border-bottom: 2px solid var(--navy); }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 3rem; }
.menu-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--flour-deep); }
.menu-list h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 0 0 .15rem; color: var(--ink); }
.menu-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.price, .menu-list .price { font-weight: 700; color: var(--gold-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-cta { margin-top: 1rem; padding: 1.6rem 1.8rem; background: var(--flour); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.menu-cta p { margin: 0; font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }

/* Formulários */
.form-card { background: var(--white); border: 1px solid var(--flour-deep); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.6rem); }
.form-card label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 1.15rem; color: var(--navy); }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card input[type=password],
.form-card input[type=date], .form-card input[type=number], .form-card input[type=file], .form-card textarea,
.danger-details input[type=password] {
  display: block; width: 100%; margin-top: .4rem; padding: .8em .95em; font: 400 1rem var(--sans);
  border: 1.5px solid var(--flour-deep); border-radius: 10px; background: var(--white); color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--navy); outline: none; }
.form-card [aria-invalid=true] { border-color: #b3261e; }
.form-card small { display: block; font-weight: 400; color: var(--muted); margin-top: .3rem; }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.form-card legend { font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .6rem; }
.form-subtitle { font-size: var(--step-2); color: var(--navy); margin: 2rem 0 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.radio-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pills label { margin: 0; position: relative; }
.radio-pills input { position: absolute; opacity: 0; }
.radio-pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2em; border: 1.5px solid var(--flour-deep); border-radius: 999px; cursor: pointer; font-weight: 600; }
.radio-pills input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.radio-pills input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent { display: flex !important; gap: .65rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--muted) !important; }
.consent input { margin-top: .3rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--navy); }
.field-error { display: block; color: #b3261e; font-size: .88rem; font-weight: 500; margin-top: .3rem; }

.alert { padding: 1rem 1.2rem; border-radius: 12px; margin: 1.2rem 0; font-weight: 500; }
.alert-success { background: #e8f4ec; color: #1e6b3a; }
.alert-error { background: #fdecea; color: #a52a1f; }

/* Contactos */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 2rem; }
.contact-card { padding: 1.4rem 0; border-top: 2px solid var(--navy); }
.contact-card h2 { font-size: var(--step-1); color: var(--navy); }
.contact-card address { font-style: normal; margin-bottom: 1rem; }

/* Legal */
.legal h2 { font-size: var(--step-2); color: var(--navy); margin-top: 2.2rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--flour-deep); padding: .6rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--flour); color: var(--navy); }
.notice { background: #fff6dd; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: clamp(3rem, 7vw, 5rem) 0 1.6rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2, .site-footer h3 { font-family: var(--serif); color: var(--white); font-size: 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-logo { width: 200px; margin-bottom: 1rem; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.subscribe-row { display: flex; gap: .5rem; margin-bottom: .8rem; }
.subscribe-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1.1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: var(--white); font: inherit; }
.subscribe-row input::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe-row input:focus { outline: none; border-color: var(--gold); }
.site-footer .consent { color: rgba(255, 255, 255, .65) !important; font-size: .82rem !important; }
.site-footer .consent a { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .subscribe-row { flex-direction: column; }
}

/* Barra de ações em telemóvel */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(21, 32, 47, .97); border-top: 1px solid var(--navy-line);
  }
  .mobile-bar a {
    display: grid; place-items: center; min-height: 48px; border-radius: 12px; text-decoration: none;
    color: var(--white); font-weight: 600; font-size: .92rem; background: rgba(255, 255, 255, .08);
  }
  .mobile-bar .mobile-bar-main { background: var(--gold); color: var(--navy-deep); }
  .mobile-bar .mobile-bar-wa { background: #1f7a4d; color: #fff; }
  .mobile-bar a { font-size: .95rem; }
}
/* Em ecrãs pequenos o conteúdo nunca fica tapado nem a barra desaparece */
@media (max-width: 700px) { .mobile-bar { grid-template-columns: 1fr 1.1fr 1.2fr; } }

/* ---------- Montra (página inicial) ---------- */
.showcase { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.showcase-head h2 { font-size: var(--step-3); margin-bottom: .3em; }
.showcase-head p { color: var(--muted); max-width: 44ch; margin: 0; }
.showcase-nav { display: flex; gap: .5rem; flex-shrink: 0; }
.showcase-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--flour-deep); background: var(--white);
  color: var(--navy); font: 400 1.8rem/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.showcase-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.showcase-btn:disabled { opacity: .35; cursor: default; background: var(--white); color: var(--navy); border-color: var(--flour-deep); }

/* Faixa centrada no contentor: 4 cartões inteiros em ecrã grande, 3 em tablet, 1 centrado em telemóvel */
.showcase-track {
  --gap: clamp(1rem, 2vw, 1.6rem); --cols: 4;
  list-style: none; margin: 0 auto; padding: .4rem 0 1.2rem; position: relative;
  width: min(100% - 2 * var(--gutter), 1180px);
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.showcase-card { scroll-snap-align: start; text-align: center; }
.showcase-photo { position: relative; margin: 0 0 1rem; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--flour); }
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.showcase-card:hover .showcase-photo img { transform: scale(1.04); }
.showcase-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .5rem; font-size: .68rem; line-height: 1.3;
  color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(21, 32, 47, .75));
}
.showcase-photo.is-empty {
  display: grid; place-items: center; background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 18px 18px;
}
.showcase-halo { position: absolute; top: 34%; left: 50%; width: 64px; height: 18px; margin-left: -32px; border: 3.5px solid var(--gold); border-radius: 50%; }
.showcase-initial { font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--white); margin-top: 1.2rem; }
.showcase-section { margin: 0 0 .2rem; font-size: .88rem; color: var(--muted); }
.showcase-text h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: .3rem; }
.showcase-desc { margin: 0 0 .5rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.showcase-price { margin: 0; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.showcase-foot { margin-top: 1rem; }
.showcase-pause { font: 700 .7rem/1 var(--sans); letter-spacing: -1px; padding-bottom: 0; }
.showcase-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem; margin: .2rem 0 .6rem; }
.showcase-dot { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.showcase-dot::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--flour-deep); transition: width .25s, background-color .25s; }
.showcase-dot[aria-current="true"]::before { width: 26px; background: var(--gold); }
.showcase-dot:focus-visible, .showcase-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.showcase-foot { text-align: center; }
@media (max-width: 1000px) { .showcase-track { --cols: 3; } }
@media (max-width: 760px) { .showcase-track { --cols: 2; } }
@media (max-width: 700px) {
  .showcase-head { flex-wrap: wrap; align-items: center; gap: 1rem; }
  .showcase-nav { width: 100%; justify-content: center; }
  .showcase-btn { width: 46px; height: 46px; }
  /* um cartão de cada vez, centrado, com o vizinho a espreitar dos dois lados */
  .showcase-track { width: 100%; --gap: 14px; grid-auto-columns: 100%; padding-inline: 13%; scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: center; }
}


/* ---------- Opiniões ---------- */
.stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: .08em; color: #cfd6df; white-space: nowrap; }
.stars::before {
  content: "★★★★★"; position: absolute; inset: 0; width: var(--fill, 0%); overflow: hidden; color: var(--gold);
}
.stars-lg { font-size: 1.6rem; }

.review { background: var(--white); border-radius: 16px; padding: 1.4rem 1.5rem; border: 1px solid var(--flour-deep); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin-bottom: .7rem; }
.review-meta { margin: 0; font-size: .92rem; color: var(--muted); }
.review-meta strong { color: var(--navy); margin-right: .35rem; }
.review-text { margin: 0; color: var(--ink); line-height: 1.6; }
.review-reply { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--gold); background: var(--flour); border-radius: 0 10px 10px 0; }
.review-reply p { margin: 0; font-size: .95rem; }
.review-reply .review-reply-from { font-weight: 700; color: var(--navy); font-size: .85rem; margin-bottom: .25rem; }

/* Secção na página inicial */
.voices { padding: clamp(4rem, 8vw, 6rem) 0; }
.voices-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.2rem; }
.voices-head h2 { font-size: var(--step-3); margin-bottom: .35em; }
.voices-head p { margin: 0; max-width: 46ch; }
.voices-score { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: var(--muted); }
.voices-score .stars { font-size: 1.35rem; }
.voices-score strong { color: var(--navy); font-size: 1.15rem; }
.voices-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.voices-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.voices-list .review { background: var(--flour); border-color: transparent; }
.voices-list .review-reply { background: var(--white); }

/* Página /opinioes */
.reviews-page { background: var(--flour); }
.reviews-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.reviews-summary { position: sticky; top: 110px; }
.reviews-average { font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: var(--navy); margin: 0 0 .3rem; }
.reviews-summary .muted { margin: .5rem 0 1.4rem; }
.reviews-first { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--navy); }
.reviews-dist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .45rem; }
.reviews-dist li { display: grid; grid-template-columns: 2.2rem 1fr 2rem; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.dist-bar { height: 8px; border-radius: 99px; background: var(--flour-deep); overflow: hidden; }
.dist-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.dist-n { text-align: right; font-variant-numeric: tabular-nums; }
.reviews-elsewhere { padding-top: 1.4rem; border-top: 1px solid var(--flour-deep); }
.reviews-elsewhere p { margin: 0 0 .7rem; color: var(--muted); font-size: .95rem; }
.review-form h2 { font-size: var(--step-2); color: var(--navy); }
.review-list { display: grid; gap: 1rem; margin-top: 2rem; }
.review-pages { display: flex; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.review-pages a { min-width: 42px; min-height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--white); text-decoration: none; font-weight: 600; }
.review-pages a[aria-current] { background: var(--navy); color: var(--white); }
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary { position: static; }
}

/* Seletor de estrelas: os rádios vêm de 5 para 1 e são mostrados invertidos,
   para que "~" pinte a estrela escolhida e todas as anteriores */
.star-input { border: 0; padding: 0; margin: 0 0 1.3rem; }
.star-options { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-options label {
  font-size: 2.4rem; line-height: 1; color: #cfd6df; cursor: pointer; padding: 0 .1rem; margin: 0 !important;
  transition: color .12s, transform .12s;
}
.star-options label:hover, .star-options label:hover ~ label,
.star-options input:checked ~ label { color: var(--gold); }
.star-options label:hover { transform: scale(1.12); }
.star-options input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

/* ---------- Página Menu ("a carta") ---------- */
.halo-mark {
  display: inline-block; width: 1.05em; height: .32em; margin-right: .45em; vertical-align: .22em;
  border: 2px solid var(--gold); border-radius: 50%;
}
.carta-hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.carta-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); margin-bottom: .3em; }
.carta-hero p { color: rgba(255, 255, 255, .8); max-width: 50ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.carta-hero .carta-legend { margin: 1.6rem 0 0; font-size: .95rem; color: var(--white); }

.carta { background: var(--flour); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.carta-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* Índice lateral: a auréola acompanha a secção visível */
.carta-index { position: sticky; top: 110px; }
.carta-index ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--flour-deep); }
.carta-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .75rem 0 .75rem 1.4rem; text-decoration: none; color: var(--muted);
  font-family: var(--serif); font-size: 1.3rem; transition: color .2s;
}
.carta-index a:hover, .carta-index a.is-active { color: var(--navy); }
.carta-index-count { font-family: var(--sans); font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.carta-index-halo {
  position: absolute; left: -15px; top: 0; width: 28px; height: 9px;
  border: 2.5px solid var(--gold); border-radius: 50%; background: var(--flour);
  transform: translateY(var(--halo-y, 24px)); transition: transform .35s cubic-bezier(.3, .7, .2, 1);
  opacity: 0;
}
.carta-index.is-ready .carta-index-halo { opacity: 1; }

/* A folha do menu */
.carta-body {
  background: var(--white); border-radius: 6px;
  padding: clamp(1.6rem, 4.5vw, 4rem) clamp(1.3rem, 5vw, 4.5rem);
  box-shadow: 0 1px 0 var(--flour-deep), 0 30px 60px -40px rgba(21, 32, 47, .4);
}
.carta-section { scroll-margin-top: 100px; }
.carta-section + .carta-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.carta-section-head { text-align: center; margin-bottom: 2rem; }
.carta-section-head h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); color: var(--navy); margin-bottom: .25em; }
.carta-section-head h2::after {
  content: ""; display: block; width: 46px; height: 13px; margin: .35em auto 0;
  border: 2.5px solid var(--gold); border-radius: 50%;
}
.carta-section-head p { color: var(--muted); margin: 0 auto; max-width: 40ch; }

.carta-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 3.5rem; }
.carta-item.has-photo { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: start; }
.carta-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.carta-item p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.carta-line { display: flex; align-items: baseline; gap: .6rem; }
.carta-line h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; margin: 0; color: var(--navy); letter-spacing: 0; }
.carta-leader { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted #c2cad6; transform: translateY(-.3em); }
.carta-price { font-weight: 700; color: var(--gold-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carta-item.is-house .carta-line h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

.carta-cake {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--navy); color: var(--white); border-radius: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
}
.carta-cake h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .2em; }
.carta-cake p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.carta-note { margin: 2rem 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.carta-empty { text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .carta-grid { grid-template-columns: 1fr; gap: 0; }
  /* Em ecrãs pequenos o índice passa a barra horizontal fixa */
  .carta-index {
    top: 66px; z-index: 20; margin: 0 calc(-1 * var(--gutter)) 1.2rem; padding: .6rem var(--gutter);
    background: rgba(234, 240, 245, .96); backdrop-filter: blur(6px);
    overflow-x: auto; scrollbar-width: none;
  }
  .carta-index::-webkit-scrollbar { display: none; }
  .carta-index ol { display: flex; gap: .4rem; border: 0; }
  .carta-index a {
    padding: .5rem 1rem; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .95rem;
    background: var(--white); color: var(--navy); white-space: nowrap; gap: .5rem;
  }
  .carta-index a.is-active { background: var(--navy); color: var(--white); }
  .carta-index a.is-active .carta-index-count { color: rgba(255, 255, 255, .7); }
  .carta-index-halo { display: none; }
  .carta-section { scroll-margin-top: 140px; }
}
@media (max-width: 700px) {
  .carta-items { grid-template-columns: 1fr; gap: 1.4rem; }
  .carta-body { border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Conta de cliente e encomendas ---------- */
.page-hero-compact { padding: clamp(2rem, 4.5vw, 3.2rem) 0 clamp(1.8rem, 4vw, 2.6rem); }
.page-hero-compact h1, .page-hero-compact .script-title { font-size: var(--step-3); }
.section-tight { padding-top: clamp(1.8rem, 4vw, 2.6rem); }
.narrow-sm { width: min(480px, 100% - 2 * var(--gutter)); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-danger { background: #a52a1f; color: var(--white); }
.btn-danger:hover { background: #8a2219; color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.pre { white-space: pre-line; }
.alert-info { background: var(--flour); color: var(--navy); }
.form-sep { border: 0; border-top: 1px solid var(--flour-deep); margin: 1.6rem 0 1.2rem; }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 6.2em !important; }
.password-toggle { position: absolute; right: .45rem; top: calc(50% + .2rem); transform: translateY(-50%); min-height: 36px; padding: 0 .8em;
  border: 0; border-radius: 8px; background: var(--flour); color: var(--navy); font: 600 .85rem var(--sans); cursor: pointer; }

.status-card { text-align: center; }
.status-card p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.status-title { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--navy); margin: 0 0 .6rem; }
.status-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--flour);
  color: var(--navy); font-size: 1.8rem; margin-bottom: .8rem; box-shadow: 0 0 0 6px rgba(217, 173, 66, .25); }
.status-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.4rem 0 1rem; }
.form-card .status-title { text-align: left; }
.status-card .status-title { text-align: center; }

/* Como funciona: é mesmo uma sequência, por isso leva números */
.order-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.order-steps li { counter-increment: step; position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem; background: var(--flour); border-radius: 16px; }
.order-steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 400 1rem var(--serif); }
.order-steps strong { display: block; color: var(--navy); }
.order-steps span { display: block; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
@media (max-width: 760px) { .order-steps { grid-template-columns: 1fr; } }

.radio-pills-sm span { min-height: 40px; font-size: .92rem; padding: 0 1em; }
.grid-2-pc { grid-template-columns: 11rem 1fr; }
@media (max-width: 600px) { .grid-2-pc { grid-template-columns: 1fr; } }

.upload-field { margin-bottom: 1.2rem; }
.upload-field > label:first-child { margin-bottom: .5rem; }
.form-card .upload-drop { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.1rem 1.2rem; border: 2px dashed var(--flour-deep);
  border-radius: 14px; background: #f7f9fb; cursor: pointer; font-weight: 400; transition: border-color .15s, background-color .15s; }
.form-card .upload-drop:hover { border-color: var(--navy); background: var(--white); }
.upload-drop[hidden] { display: none !important; }
.upload-drop strong { color: var(--navy); }
.upload-drop small { display: block; margin-top: .15rem; }
.upload-plus { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold);
  color: var(--navy-deep); font: 600 1.7rem/1 var(--sans); }
input.visually-hidden:focus-visible + .upload-drop { outline: 3px solid var(--gold); outline-offset: 3px; }
.upload-field.has-error .upload-drop { border-color: #b3261e; }
.upload-previews { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.upload-previews:empty { display: none; }
.upload-previews li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--flour); }
.upload-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-noprev { display: grid; place-items: center; height: 100%; padding: .4rem; font-size: .75rem; color: var(--muted); word-break: break-all; text-align: center; }
.upload-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 32, 47, .82); color: var(--white); font: 600 1.15rem/1 var(--sans); }
.upload-remove:hover { background: #a52a1f; }

.customer-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.1rem; margin: .4rem 0 1.4rem;
  border-radius: 14px; background: var(--flour); font-size: .93rem; }
.customer-summary span { display: block; color: var(--muted); }
.customer-summary strong { color: var(--navy); }
.customer-summary a { font-weight: 600; color: var(--navy); white-space: nowrap; }

.back-link { margin: 0 0 1rem; }
.back-link a { color: var(--navy); font-weight: 600; }
.order-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.order-head h1 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); color: var(--navy); margin: 0; }
.order-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 .85em; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--flour); color: var(--navy); white-space: nowrap; }
.order-pill-confirmado { background: #e3f1e7; color: #1e6b3a; }
.order-pill-perdido, .order-pill-cancelado { background: #f1f2f4; color: #5b6472; }
.order-pill-novo { background: #fbf1d8; color: #6f5214; }

.order-progress { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.order-progress li { position: relative; padding-top: 1.8rem; font-size: .88rem; color: var(--muted); text-align: center; }
.order-progress li::before { content: ''; position: absolute; top: .3rem; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--flour-deep); z-index: 1; }
.order-progress li::after { content: ''; position: absolute; top: calc(.3rem + 6px); left: -50%; width: 100%; height: 2px; background: var(--flour-deep); }
.order-progress li:first-child::after { display: none; }
.order-progress li.done, .order-progress li.current { color: var(--navy); font-weight: 600; }
.order-progress li.done::before { background: var(--navy); border-color: var(--navy); }
.order-progress li.current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 173, 66, .3); }
.order-progress li.done::after, .order-progress li.current::after { background: var(--navy); }

.confirmed-box { display: grid; gap: .35rem; padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; border-radius: 16px; background: #fbf5e6; border: 1px solid #e9d59b; }
.confirmed-label { font-size: .85rem; font-weight: 700; color: var(--gold-ink); }
.confirmed-when { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--navy); line-height: 1.2; }
.confirmed-box p { margin: .3rem 0; }

.order-details { display: grid; grid-template-columns: 9.5rem 1fr; gap: .55rem 1rem; margin: 0; }
.order-details dt { color: var(--muted); font-size: .93rem; }
.order-details dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .order-details { grid-template-columns: 1fr; gap: .1rem; } .order-details dd { margin-bottom: .6rem; } }
.order-photos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.order-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.order-cancel { margin-top: 1.2rem; text-align: center; }

.account-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.empty-card { text-align: center; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--white);
  border: 1px solid var(--flour-deep); border-radius: 16px; text-decoration: none; color: var(--ink); }
.order-row:hover { border-color: var(--navy); }
.order-row-main { display: grid; gap: .15rem; }
.order-row-main strong { color: var(--navy); }
.order-row-main .muted { font-size: .9rem; }
.order-row-when { font-weight: 600; color: var(--gold-ink); font-size: .92rem; }
.inline-details { margin: 0 0 1.2rem; }
.inline-details summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.account-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--flour-deep); }
.danger-details summary { cursor: pointer; color: #a52a1f; font-weight: 600; }
.danger-details form { margin-top: .8rem; max-width: 22rem; }
.danger-details label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .8rem; }

.nav-account { display: inline-flex; align-items: center; gap: .4em; }
.main-nav a { white-space: nowrap; }
@media (min-width: 1061px) and (max-width: 1240px) {
  .open-status { display: none; }
  .main-nav { margin-left: auto; gap: 1.1rem; }
}


/* ---------- CTAs v13: mais presença, ícones e movimento discreto ---------- */
.btn { gap: .6em; transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
.btn-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { box-shadow: 0 8px 20px -8px rgba(217, 173, 66, .65), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(217, 173, 66, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-navy { box-shadow: 0 8px 18px -10px rgba(22, 34, 47, .7); }
.btn-navy:hover { transform: translateY(-2px); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-lg { min-height: 58px; padding: 0 1.8em; font-size: 1.05rem; }
.hero-actions { gap: .9rem; align-items: center; }
.hero-call { margin: 1.25rem 0 0; font-size: .95rem; }
.hero-call a { display: inline-flex; align-items: center; gap: .6em; color: rgba(255, 255, 255, .82); text-decoration: none; padding: .35em 0; border-bottom: 1px solid transparent; }
.hero-call a:hover { color: #fff; border-bottom-color: var(--gold); }
.hero-call strong { color: var(--gold); font-weight: 700; }
.hero-call .btn-ico { width: 1.1em; height: 1.1em; color: var(--gold); }
@media (max-width: 700px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lg { width: 100%; min-height: 56px; }
  .hero-call { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn, .btn-arrow { transition: none; } .btn:hover { transform: none; } }


/* ---------- CTAs v14: restantes páginas ---------- */
.btn-outline { border-width: 1.5px; border-color: rgba(31, 46, 67, .35); background: transparent; box-shadow: none; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-danger { background: transparent; color: #a52a1f; border-color: rgba(165, 42, 31, .45); }
.btn-danger:hover { background: #a52a1f; border-color: #a52a1f; color: var(--white); }
.btn-block { min-height: 54px; font-size: 1.04rem; }
.btn-sm { gap: .5em; }
.btn-sm .btn-ico { width: 1.05em; height: 1.05em; }
main .btn-block .btn-arrow { margin-left: .2em; }
.status-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Botão "Mostrar" da palavra-passe: centrado na vertical, qualquer altura de campo ---------- */
.password-field { display: grid; align-items: center; margin-top: .35rem; }
.password-field input { grid-area: 1 / 1; margin: 0 !important; width: 100%; }
.password-toggle { position: static; transform: none; grid-area: 1 / 1; justify-self: end; align-self: center; margin: 0 .45rem 0 0;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; z-index: 1; }

/* ---------- Redes sociais no rodapé ---------- */
.footer-bottom nav { align-items: center; }
.soc { display: inline-flex; align-items: center; gap: .55em; padding: .45em .9em .45em .75em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); color: inherit; text-decoration: none; font-weight: 600;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
.soc-ico { width: 1.2em; height: 1.2em; flex: none; }
.soc:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.soc-fb:hover { background: #1877f2; }
.soc-ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 28%, #dc2743 55%, #cc2366 75%, #bc1888 100%); }
@media (max-width: 700px) { .soc { padding: .6em 1em .6em .85em; } }

/* ---------- Visite-nos v2: ícones duotone e cartões com mais vida ---------- */
.visit-facts { gap: .85rem; }
.visit-facts div { background: #fff; border: 1px solid rgba(31, 46, 67, .09); border-radius: 18px; padding: .85rem 1rem;
  box-shadow: 0 10px 24px -18px rgba(31, 46, 67, .55); transition: transform .2s, box-shadow .2s, border-color .2s; }
.visit-facts div:hover { transform: translateY(-2px); border-color: rgba(217, 173, 66, .7); box-shadow: 0 16px 28px -18px rgba(31, 46, 67, .6); }
.vf-icon { position: relative; width: 52px; height: 52px; border-radius: 16px; color: var(--gold);
  background: radial-gradient(120% 120% at 20% 10%, #3a5478 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 173, 66, .38), inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 18px -10px rgba(22, 34, 47, .8); }
.vf-icon::after { content: ""; position: absolute; inset: 5px; border-radius: 11px; border: 1px dashed rgba(217, 173, 66, .28); pointer-events: none; }
.vf-icon svg { width: 25px; height: 25px; stroke-width: 1.6; filter: drop-shadow(0 1px 4px rgba(217, 173, 66, .45)); }
.vf-icon svg circle, .vf-icon svg rect, .vf-icon svg path:first-child { fill: rgba(217, 173, 66, .2); }
.visit-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.visit-facts dd { font-size: 1.02rem; }
@media (max-width: 560px) { .visit-facts div { grid-template-columns: 52px 1fr; column-gap: .9rem; } }
@media (prefers-reduced-motion: reduce) { .visit-facts div { transition: none; } .visit-facts div:hover { transform: none; } }

/* Site numa só página: deslizar suave e ancoras abaixo do cabeçalho fixo */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#inicio, #menu, #encomendar, #opinioes, #localizacao, #menu-do-dia { scroll-margin-top: 72px; }
.carta-hero h2 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); margin-bottom: .3em; color: inherit; }
.main-nav a[data-spy][aria-current] { color: var(--gold); }

/* Telemóvel dinâmico: barra de secções, revelação ao deslizar, topo e progresso */
.section-chips { display: none; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 70; pointer-events: none; }
.to-top { position: fixed; right: 14px; bottom: 24px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; cursor: pointer; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-progress { display: none; } }
@media (max-width: 900px) {
  .section-chips { display: flex; position: sticky; top: 66px; z-index: 40; gap: .45rem; overflow-x: auto; padding: .55rem var(--gutter); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid #e3e7ed; scrollbar-width: none; overscroll-behavior-x: contain; }
  .section-chips::-webkit-scrollbar { display: none; }
  .section-chips a { flex: none; padding: .5rem 1rem; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .93rem; color: var(--navy); background: #eef1f5; text-decoration: none; transition: background .2s, color .2s; }
  .section-chips a.is-active { background: var(--navy); color: #fff; }
  .carta-index { top: 126px; }
  #inicio, #menu, #encomendar, #opinioes, #localizacao, #menu-do-dia { scroll-margin-top: 128px; }
  .carta-section { scroll-margin-top: 200px; }
  .to-top { bottom: 88px; }
  .cake-start, .sheet, .voices-list > *, .visit-grid > * { will-change: transform, opacity; }
  .showcase-track { scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: center; }
}
