/* Croquito — modal do formulário (filho direto do <body>, fora de wrappers com overflow) */
.cq-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(58, 36, 18, 0.55);
  overscroll-behavior: contain;
  overflow-y: auto;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.cq-box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #f3efdd;
  color: #3a2412;
  box-shadow: 0 24px 60px rgba(58, 36, 18, 0.35);
}

.cq-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3a2412;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.cq-close:hover { background: rgba(58, 36, 18, 0.1); }

.cq-title {
  margin: 0 0 6px;
  font-family: "Bungee", "Instrument Sans", sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  text-transform: uppercase;
  padding-right: 28px;
}
.cq-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: #715035; }

.cq-form { display: flex; flex-direction: column; gap: 14px; }
.cq-field { display: flex; flex-direction: column; gap: 6px; }
.cq-field label { font-weight: 600; font-size: 15px; }

.cq-input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #cfcaa8;
  border-radius: 10px;
  background: #fbf8ec;
  color: #3a2412;
  font: inherit;
  font-size: 16px; /* evita zoom automático no iOS */
}
.cq-input::placeholder { color: #a39c80; }
.cq-input:focus { outline: 3px solid rgba(200, 100, 29, 0.35); border-color: #c8641d; }
.cq-input[aria-invalid="true"] { border-color: #b3321b; }

.cq-err { min-height: 0; font-size: 13.5px; color: #b3321b; }
.cq-err:empty { display: none; }

.cq-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; }
.cq-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #c8641d; }
.cq-consent a { color: #c8641d; }

.cq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cq-status { margin: 0; font-size: 14.5px; }
.cq-status:empty { display: none; }
.cq-status--err { color: #b3321b; font-weight: 500; }

.cq-btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #c8641d;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
}
.cq-btn:hover { background: #4b5a32; }
.cq-btn:disabled { opacity: 0.7; cursor: progress; }
.cq-btn:focus-visible, .cq-close:focus-visible { outline: 3px solid #4b5a32; outline-offset: 2px; }

/* Sucesso */
.cq-check {
  width: 64px;
  height: 64px;
  margin: 4px 0 16px;
  border-radius: 50%;
  background: #4b5a32;
  color: #f3efdd;
  font-size: 34px;
  line-height: 64px;
  text-align: center;
}

@media (max-width: 480px) {
  .cq-box { padding: 28px 18px 20px; }
  .cq-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cq-btn { transition: none; }
}

/* crédito do template no rodapé (removido) */
.cf-na7bps-container { display: none !important; }

/* ------------------------------------------------------------------
   Carrossel de depoimentos (carousel.js)
------------------------------------------------------------------ */
.cq-carousel { width: 100%; max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 0 16px; }
.cq-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  outline-offset: 4px;
}
.cq-track::-webkit-scrollbar { display: none; }
.cq-slide { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; display: flex; scroll-snap-align: start; }
.cq-slide > * { width: 100% !important; height: auto !important; min-height: 100%; flex: 1 1 auto; margin: 0 !important; opacity: 1 !important; transform: none !important; }
@media (max-width: 1099.98px) { .cq-slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 699.98px) { .cq-slide { flex-basis: 88%; } .cq-track { gap: 16px; } }

.cq-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.cq-nav {
  appearance: none; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #3a2412; background: transparent; color: #3a2412;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.cq-nav:hover:not(:disabled) { background: #3a2412; color: #f3efdd; }
.cq-nav:disabled { opacity: .35; cursor: default; }
.cq-nav:focus-visible, .cq-dot:focus-visible { outline: 3px solid #c8641d; outline-offset: 3px; }
.cq-dots { display: flex; align-items: center; gap: 8px; }
.cq-dot {
  appearance: none; position: relative; padding: 0; border: 0; cursor: pointer;
  width: 8px; height: 8px; border-radius: 999px; background: #cfcaa8;
  transition: width .25s ease, background .25s ease;
}
.cq-dot::before { content: ""; position: absolute; inset: -10px; }
.cq-dot.is-active { width: 26px; background: #c8641d; }
@media (prefers-reduced-motion: reduce) { .cq-nav, .cq-dot { transition: none; } }

/* ------------------------------------------------------------------
   Hero: profundidade atrás do prato (círculo verde-oliva, anel laranja, folhas e sombra)
------------------------------------------------------------------ */
[data-cf-name="Section Hero"] [data-cf-name="left"] { position: relative; isolation: isolate; overflow: visible !important; }
[data-cf-name="Section Hero"] [data-cf-name="left"]::before {
  content: "";
  position: absolute;
  z-index: -2;
  right: -5%;
  top: -1%;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 53% 47% 56% 44% / 47% 55% 45% 53%;
  background: radial-gradient(circle at 30% 26%, #71844a 0%, #4b5a32 58%, #3e4b28 100%);
  box-shadow: inset 0 -30px 60px rgba(30, 38, 18, 0.28);
}
[data-cf-name="Section Hero"] [data-cf-name="left"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 1%;
  bottom: 4%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(200, 100, 29, 0.65);
}
[data-cf-name="Section Hero"] [data-cf-name="left"] > div { position: relative; }
[data-cf-name="Section Hero"] [data-cf-name="left"] > div::before,
[data-cf-name="Section Hero"] [data-cf-name="left"] > div::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  aspect-ratio: 1;
  filter: drop-shadow(0 10px 10px rgba(58, 36, 18, 0.3));
}
[data-cf-name="Section Hero"] [data-cf-name="left"] > div::before {
  background-image: url("imagens/prova/manjericao.png");
  width: 24%; left: 3%; top: 5%; transform: rotate(-26deg);
}
[data-cf-name="Section Hero"] [data-cf-name="left"] > div::after {
  background-image: url("imagens/prova/batata-doce.png");
  width: 25%; right: 2%; bottom: 3%; transform: rotate(14deg);
}
[data-cf-name="Section Hero"] [data-cf-name="left"] img {
  filter: drop-shadow(0 14px 12px rgba(30, 20, 8, 0.36));
}
.cq-slide > * { justify-content: flex-start !important; }

/* Rodapé: colunas de links mais juntas, para "Política de Privacidade" não ser cortada pelo limite do contentor */
.cf-ka4ml4 { column-gap: 56px !important; }

/* ------------------------------------------------------------------
   Benefícios: ícone e título sempre à mesma altura em todos os cartões
------------------------------------------------------------------ */
[data-cf-name="Section Features"] .cf-gI0bd { justify-content: flex-start !important; padding-top: 52px !important; }

/* Secção final: o campo de email sai; o botão abre o formulário "Quero provar" */
form.cf-1laqz0g > label { display: none !important; }

/* Telemóvel com seletor de país (bandeiras SVG locais) */
.cq-phone-group { position: relative; }
.cq-phone { display: flex; gap: 8px; align-items: stretch; }
.cq-phone-input { flex: 1 1 auto; min-width: 0; }
.cq-cc-trigger {
  appearance: none; flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1.5px solid #cfcaa8; border-radius: 10px; background: #fbf8ec; color: #3a2412;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s ease;
}
.cq-cc-trigger:hover { border-color: #c8641d; }
.cq-cc-trigger:focus-visible, .cq-cc-search:focus-visible, .cq-cc-option:focus-visible { outline: 3px solid rgba(200, 100, 29, 0.45); outline-offset: 1px; }
.cq-cc-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: 0 0 auto; }
.cq-cc-chev { color: #715035; flex: 0 0 auto; }
.cq-cc-menu {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 6px; padding: 8px;
  background: #f8f5e8; border: 1px solid #cfcaa8; border-radius: 12px; box-shadow: 0 18px 40px rgba(58, 36, 18, .22);
}
.cq-cc-menu[hidden] { display: none; }
.cq-cc-search { box-sizing: border-box; width: 100%; padding: 10px 12px; margin-bottom: 6px; border: 1.5px solid #cfcaa8; border-radius: 8px; background: #fbf8ec; color: #3a2412; font: inherit; font-size: 16px; }
.cq-cc-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.cq-cc-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; color: #3a2412; }
.cq-cc-option:hover, .cq-cc-option:focus { background: #eae6cf; }
.cq-cc-option.is-active { color: #c8641d; font-weight: 600; }
.cq-cc-name { flex: 1 1 auto; min-width: 0; }
.cq-cc-code { flex: 0 0 auto; color: #715035; font-size: 14px; }

/* Rodapé sem bloco de contactos: os links ficam à direita */
.cf-k24h3l { justify-content: space-between !important; align-items: flex-start !important; gap: 32px; }
/* Rodapé: frase da marca à esquerda (preenche o espaço dos contactos removidos); texto por idioma */
.cf-k24h3l::before {
  content: "Croquete proteico e pronto em 15 minutos.";
  white-space: pre-line;
  flex: 0 1 460px;
  font-family: "Bungee", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #eae6cf;
}
html[data-lang="en"] .cf-k24h3l::before { content: "High-protein croquettes, ready in 15 minutes."; }

/* Telemóvel: o rodapé original não tem a linha de direitos; acrescenta-se aqui (o Instagram solto sai, já está nos links) */
@media (max-width: 809.98px) {
  footer .cf-1wejxu7::after {
    content: "© 2026 Croquito. Todos os direitos reservados.";
    align-self: flex-start;
    font-family: "Bungee", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: #ffffff;
  }
  html[data-lang="en"] footer .cf-1wejxu7::after { content: "© 2026 Croquito. All rights reserved."; }
}
@media (max-width: 809.98px) {
  .cf-k24h3l { flex-direction: column !important; }
  .cf-k24h3l::before { flex-basis: auto; }
}

/* ------------------------------------------------------------------
   Cabeçalho: sempre visível ao fazer scroll, com fundo, e menu centrado
------------------------------------------------------------------ */
.cf-h91ewh-container {
  background: rgba(243, 239, 221, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(58, 36, 18, 0.08);
}
/* menu de navegação ao centro do cabeçalho (desktop); logótipo à esquerda e idioma à direita */
.cf-ee2r0k { position: relative; }
.cf-tfpb9n { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ------------------------------------------------------------------
   Mobile: nada pode alargar a página (evita o espaço em branco à direita) e logótipo mais pequeno
------------------------------------------------------------------ */
html, body { max-width: 100%; }
[data-cf-name="Section Hero"], [data-cf-name="Section Hero"] [data-cf-name="Bottom"], .cf-5tsl5f-container {
  max-width: 100vw;
  min-width: 0;
  contain: paint;
}
@media (max-width: 809.98px) {
  .cf-139auqf, .cf-vno4hx { width: 168px !important; height: 29px !important; min-width: 0 !important; }
  .cf-139auqf img, .cf-vno4hx img { width: 100% !important; height: 100% !important; object-fit: contain; object-position: left center; }
}
