/* ==========================================================================
   SECÇÕES (partilhadas pelas duas vertentes)
   hero · sobre · serviços · galeria · processo · testemunhos · contacto
   ========================================================================== */

.section__head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); }
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1.25fr 1fr; align-items: end; gap: var(--sp-8); }
}

/* ---- Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* Os dois heróis têm SEMPRE a mesma altura: 100svh, ou a do mais alto dos dois se o texto for maior (js/ui.js mede e define --hero-h) */
  min-height: var(--hero-h, max(36rem, 100svh));
  background: var(--field);
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }  /* o blur está embutido nas imagens (tools/gerar-imagens.py, HERO_BLUR): um filter em CSS era repintado a cada frame e travava a troca de vertente */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--deep) 46%, transparent) 0%, transparent 22%),
    linear-gradient(to top, color-mix(in srgb, var(--deep) 82%, transparent) 0%, color-mix(in srgb, var(--deep) 48%, transparent) 55%, color-mix(in srgb, var(--deep) 30%, transparent) 100%);
}
/* Composição: título, texto e botões juntos, centrados na vertical e encostados à esquerda; o link para a outra vertente fica em baixo */
.hero__grid {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-block: clamp(7.5rem, 6rem + 4vw, 9.5rem) clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
}
.hero__grid.container { max-width: none; padding-inline: clamp(1.25rem, .5rem + 2.2vw, 2.5rem); }
.hero__title { margin-top: auto; margin-bottom: 0; }
.hero__cross { margin-top: auto; padding-top: var(--sp-6); }

.hero__title {
  max-width: 11em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.25rem);
  font-weight: 500;
  font-optical-sizing: none;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(0 0 0 / .28);
}
@media (max-width: 599px) { .hero__title { max-width: 8em; } }  /* mesma quebra em qualquer telemóvel: "Ingredientes / frescos," nunca cabe numa linha só, por mais largo que seja o ecrã */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: block; animation: rise 1.15s var(--ease-out) both; animation-delay: calc(var(--play-delay, 0ms) + var(--i, 0) * 120ms); }
.hero__fade { animation: fade 1.1s var(--ease-out) both; animation-delay: calc(var(--play-delay, 0ms) + var(--d, 500ms)); }

.hero__lead { max-width: 32rem; margin-top: var(--sp-4); font-size: var(--fs-lead); font-weight: 400; line-height: 1.55; color: var(--white); text-wrap: pretty; text-shadow: 0 1px 18px rgb(0 0 0 / .35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__cross { font-size: var(--fs-small); color: var(--white); }


/* Anel de texto que roda: o texto curvo dos logos, feito movimento */
/* Telemóvel: o anel vive dentro de .hero__actions e fica à direita dos botões, no espaço livre (não por cima do título). Desde 960px volta ao canto do herói. */
.hero__actions { position: relative; }
.ring { position: absolute; top: 50%; right: 0; translate: 0 -50%; width: clamp(6.25rem, 4.5rem + 8vw, 10.5rem); aspect-ratio: 1; color: var(--white); }
@media (max-width: 599px) { .ring { width: 27vw; } }  /* o máximo que cabe à direita do botão do WhatsApp */
@media (max-width: 359px) { .ring { display: none; } }
.ring > svg:first-child { width: 100%; height: auto; overflow: visible; animation: spin 46s linear infinite; will-change: transform; }
.ring text { font-family: var(--font-text); font-size: 10.6px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; fill: currentColor; }
.ring__sprig { position: absolute; inset: 0; margin: auto; width: 31.5%; height: auto; fill: currentColor; }
@media (min-width: 960px) {
  .hero__actions { position: static; }
  .ring { display: block; top: auto; translate: none; right: var(--gutter); bottom: clamp(2.5rem, 5vw, 5rem); }
}

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.07); } to { transform: none; } }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---- Sobre -------------------------------------------------------------------- */
.about__grid { display: grid; gap: var(--sp-8); align-items: center; }
.window { position: relative; width: 100%; max-width: 29rem; margin-inline: auto; }
.window__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--win-radius); overflow: hidden; background: var(--paper-2); }
.window__frame img { width: 100%; height: 100%; object-fit: cover; }
/* Sem foto: indicação do que ali vai ficar */
.window__vazio { position: absolute; inset: 1.25rem; display: grid; place-content: center; padding: 1.5rem; text-align: center; border: 1px dashed color-mix(in srgb, var(--ink-soft) 45%, transparent); border-radius: var(--win-radius); font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.window::after { content: ""; position: absolute; inset: calc(-1 * (var(--win-gap) + var(--win-line))); border: var(--win-line) solid var(--line); border-radius: var(--win-radius-out); pointer-events: none; }
.about__copy { display: grid; gap: var(--sp-5); align-content: center; }
.about__copy .lead { margin-top: var(--sp-1); }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.tags li { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 7.5rem); }
  .about--flip .about__grid { grid-template-columns: 6fr 5fr; }
  .about--flip .window { order: 2; }
}

/* ---- Serviços / ofertas -------------------------------------------------------- */
.cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  display: grid;
  align-content: start;
  justify-items: var(--card-justify);
  gap: var(--sp-3);
  padding: var(--card-pad);
  text-align: var(--card-align);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
}
.card .icon { color: var(--accent); margin-bottom: var(--sp-2); }
.card p { font-size: .975rem; color: var(--ink-soft); }

/* ---- Galeria ------------------------------------------------------------------- */
.gallery { columns: 2; column-gap: .75rem; }
.gallery li { break-inside: avoid; margin-bottom: .75rem; cursor: zoom-in; }
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item picture, .gallery__item img { width: 100%; }
.gallery__item img { transition: transform .9s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.035); }
.section__aside { display: grid; gap: var(--sp-3); justify-items: start; }
.section__aside .lead { font-size: 1.0625rem; }
@media (min-width: 900px) { .section__aside { justify-self: end; justify-items: end; text-align: right; } }
.section__links { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (min-width: 900px) {
  .section__aside { justify-items: end; }
  .section__links { justify-content: flex-end; }
  .section__head:has(.section__links) { grid-template-columns: 1fr auto; }   /* título à esquerda, as duas caixas lado a lado à direita */
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-align: left;
  padding: .45rem 1.4rem .45rem .45rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.ig-link__icon { display: grid; place-items: center; width: 3.1rem; aspect-ratio: 1; border-radius: 50%; background: var(--field); color: var(--white); transition: background-color .35s var(--ease-out), color .35s var(--ease-out); }
.ig-link__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ig-link__text { display: grid; line-height: 1.25; }
.ig-link__text strong { font-size: 1.05rem; font-weight: 500; }
.ig-link__text small { font-size: .8125rem; opacity: .7; }
.ig-link:hover { background: var(--field); color: var(--white); border-color: var(--field); }
.ig-link:hover .ig-link__icon { background: var(--white); color: var(--field); }

.gallery.is-collapsed li.is-extra { display: none; }
.gallery__more { margin-top: var(--sp-6); display: flex; justify-content: center; }
@media (min-width: 700px) { .gallery { columns: 3; column-gap: 1rem; } .gallery li { margin-bottom: 1rem; } }

/* ---- Como trabalhamos ----------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-7); counter-reset: step; }
.steps li { position: relative; padding-top: var(--sp-5); }
.steps li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgb(255 255 255 / .4);
  transform-origin: left;
}
.steps h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: var(--sp-2); }
.steps p { color: rgb(255 255 255 / .86); font-size: .975rem; max-width: 20rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

/* ---- Testemunhos ---------------------------------------------------------------- */
.quotes { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; }
.quote figcaption { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--ink-soft); }

/* ---- Contacto ------------------------------------------------------------------- */
.contact__grid { display: grid; gap: var(--sp-8); align-items: start; }
.contact__intro { display: grid; gap: var(--sp-5); }
.contact__intro .lead { color: var(--white); }
.contact__list { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.contact__list dt { font-size: .875rem; font-weight: 500; color: var(--white); }
.contact__list dd { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.25; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease-out); }
.contact__list a:hover { background-size: 0 1px; background-position: 100% 100%; }
/* Instagram e WhatsApp: duas pílulas com a mesma largura (a da mais comprida) e ícones grandes */
.contact__botoes { display: grid; justify-self: start; gap: var(--sp-3); }
.contact__botoes .btn { justify-content: flex-start; }
.contact__botoes .btn svg { width: 1.6em; height: 1.6em; }
.contact__ig svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); } }
