:root {
  --ink: #3c4150;
  --paper: #ffffff;
  --lilac: #aeacd6;
  --mint: #bed6d0;
  --sun: #f9b052;
  --line: rgba(60, 65, 80, 0.16);
  --muted: rgba(60, 65, 80, 0.62);
  --radius: 50px;
  --gap: 20px;
  --edge: clamp(16px, 3vw, 40px);
  --section: clamp(80px, 12vw, 160px);
  --sans: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sun-grad: linear-gradient(180deg, var(--lilac) 0%, var(--mint) 45%, var(--sun) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x no html + body: no mobile só no body não chega (o viewport alarga).
   "clip" em vez de "hidden" para não criar um contentor de scroll (mantém o position: sticky). */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  /* a Barlow Condensed é estreita: textos um pouco maiores para se lerem bem em qualquer idade */
  font-size: 17px;
  line-height: 1.22;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
[hidden] { display: none !important; }

/* ===== Loader ===== */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); }
@keyframes rise { from { transform: scaleY(0) translateY(20px); } to { transform: none; } }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center;
  padding: 14px var(--edge);
  font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase;
  transition: background .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__link { position: relative; justify-self: start; }
.nav__link:nth-child(2) { justify-self: center; }
.nav__link:nth-child(4) { justify-self: center; }
.nav__link:last-child { justify-self: end; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__mark img { width: 76px; height: auto; transition: transform .6s var(--ease); }
.nav__mark:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__cta { border: 1px solid var(--ink); border-radius: var(--radius); padding: 7px 16px; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh;
  padding: 110px var(--edge) 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  /* largura do sol: cabe sempre no ecrã com o título, a frase e o "Ver catálogo" por baixo */
  --sun-w: clamp(200px, min(62vw, 660px, calc((100svh - 400px) * 1.3)), 660px);
}
.hero__sun {
  position: relative; flex: none;
  width: var(--sun-w); aspect-ratio: 2 / 1;
  transform-origin: 50% 100%; /* no scroll encolhe em direção ao horizonte */
}
.hero__dome {
  position: absolute; inset: 0;
  /* corta tudo abaixo do horizonte: o disco "nasce" de trás da linha */
  clip-path: inset(-100vh -100vw 0 -100vw);
}
.hero__disc { position: absolute; inset: 0; border-radius: 999px 999px 0 0; background: var(--sun-grad); }
.hero__horizon { /* linha do horizonte */
  position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 1px; background: var(--ink); /* sempre de ponta a ponta do ecrã */
}
/* o "a" fica centrado na linha (metade acima, metade abaixo), como no logo */
.hero__mark {
  position: absolute; left: 50%; top: 100%; height: 96%;
  transform: translate(-50%, -50%); overflow: visible;
}
.hero__a, .hero__star { fill: var(--ink); }
.hero__star { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__title {
  position: relative; z-index: 2;
  /* espaço para a metade do "a" que fica abaixo da linha */
  margin: calc(var(--sun-w) * 0.24 + 22px) 0 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1; letter-spacing: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .1em; }
.hero__title .word { display: inline-block; }
.hero__title em { font-style: italic; }
.hero__lead {
  position: relative; z-index: 2;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1;
  max-width: 32ch; margin: 10px auto 0; text-wrap: balance;
}
.hero__foot { position: relative; z-index: 2; margin-top: 40px; display: flex; justify-content: center; }
.right { text-align: right; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.scroll-cue__dot { width: 14px; height: 14px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }
.scroll-cue__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 40px); white-space: nowrap; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: var(--section) var(--edge) 0; }
.spot { overflow-x: clip; } /* os cartões rodados/deslocados dos destaques nunca saem do ecrã */
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; margin-bottom: 48px; }
.label { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
h2.label { font-size: clamp(18px, 1.6vw, 22px); }
.mark { display: inline-block; color: #b9b4db; font-size: 18px; /* estrela animada em lilás (pedido da cliente) */ animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: rotate(90deg) scale(.8); } }
.section__intro { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.01em; display: grid; }
.section__intro > span {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.section__intro > span.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s, visibility 0s;
}
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-bottom: 40px; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.filters__label { color: var(--muted); }
.filter { display: inline-flex; align-items: center; gap: 8px; }
.filter::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--ink); border-radius: 50%; transition: background .3s, box-shadow .3s; }
.filter.is-active::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.filter:hover::before { background: var(--mint); }
.filter.is-active:hover::before { background: var(--ink); }

/* ===== Grid ===== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px var(--gap); }
.card { cursor: pointer; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: #f3f2f0; isolation: isolate;
  transform: translateZ(0);
  touch-action: pan-y; /* deslizar na horizontal troca a foto; na vertical a página faz scroll */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.card__media img { -webkit-user-drag: none; }
/* Safari: garante que os cantos arredondados recortam bem durante animações */
.card__media { -webkit-mask-image: -webkit-radial-gradient(white, black); }
.card__zoom { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0;
}
/* a foto anterior fica opaca por baixo enquanto a nova entra por cima: nunca aparece o fundo */
.card__media img.is-prev { opacity: 1; z-index: 1; }
.card__media img.is-on { opacity: 1; z-index: 2; transition: opacity .7s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__zoom { transform: scale(1.04); }
}
.card__badge {
  position: absolute; z-index: 2; top: 18px; left: 18px;
  background: var(--paper); border-radius: var(--radius); padding: 5px 12px;
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
}
.card__dots { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .4s, transform .4s; }
.card__dots i.is-on { background: #fff; transform: scale(1.3); }
.card__view {
  position: absolute; z-index: 2; right: 18px; bottom: 18px;
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 22px;
  transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease);
}
.card:hover .card__view { transform: scale(1) rotate(0); }
.card__meta { padding: 16px 20px 0; display: flex; justify-content: space-between; gap: 12px; }
.card__title { margin: 0; font-size: 19px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.card__desc { margin: 4px 0 0; font-size: 17px; color: var(--muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { font-size: 17px; white-space: nowrap; }

/* ===== Spotlights ===== */
.spotlight {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: center; min-height: 92vh; padding: 40px 0;
}
.spotlight:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
.spotlight:nth-child(even) .spotlight__stage { order: 2; }
/* nos pares a imagem fica à direita: o texto alinha à direita e encosta-se a ela (espelho dos ímpares),
   assim um texto curto não deixa um buraco entre o texto e a imagem */
.spotlight:nth-child(even) .spotlight__text { justify-self: end; text-align: right; }
.spotlight:nth-child(even) .spotlight__actions { justify-content: flex-end; }
.spotlight__stage { position: relative; aspect-ratio: 1 / 1.02; }
.spotlight__card {
  position: absolute; border-radius: var(--radius); overflow: hidden; background: #f3f2f0;
  will-change: transform;
}
.spotlight__card img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__card--a { left: 0; top: 0; width: 76%; height: 74%; z-index: 1; }
.spotlight__card--b { right: 0; bottom: 0; width: 54%; height: 62%; z-index: 2; }
.spotlight__text { max-width: 460px; }
.spotlight__idx { font-size: 16px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.spotlight__title {
  margin: 14px 0 26px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 6.4vw, 104px); line-height: .84; letter-spacing: -0.05em;
}
.spotlight__title span { background: linear-gradient(transparent 62%, #f9b34b 62%); }
.spotlight__desc { font-size: 21px; line-height: 1.2; margin: 0 0 26px; }
.spotlight__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius); padding: 14px 26px; border: 1px solid var(--ink);
  font-size: 16px; text-transform: uppercase; letter-spacing: .05em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
/* todos os botões são transparentes e enchem de --ink no hover (pedido da cliente, nov/2026).
   Para voltar aos principais cheios: .btn--solid { background: var(--ink); color: var(--paper); } + ::before laranja (var(--sun)) */
.btn--solid::before, .btn--ghost::before { background: var(--ink); }
.btn--solid:hover, .btn--ghost:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ===== Mosaic ===== */
.mosaic { padding: var(--section) 0 0; }
/* largura inteira da foto (sem cortar os lados); a moldura é 18% mais baixa que a foto para haver folga para o parallax */
.mosaic__frame { overflow: hidden; aspect-ratio: 2048 / 772; }
.mosaic__frame img { width: 100%; height: auto; will-change: transform; }
.mosaic__quote {
  margin: 48px auto 0; padding: 0 var(--edge); max-width: calc(24ch + 2 * var(--edge)); text-align: center;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.02em;
}
.mosaic__quote span { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ===== Criamos com intenção ===== */
.pillars__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.pillar { border-top: 1px solid var(--ink); padding-top: 20px; }
.pillar__n { font-size: 16px; letter-spacing: .06em; color: var(--muted); }
.pillar__title { margin: 14px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.6vw, 40px); line-height: .98; letter-spacing: -.03em; } /* a quebra de linha está no HTML: os 4 títulos ficam sempre em 2 linhas, com o mesmo ritmo */
.pillar p { margin: 0; font-size: 19px; line-height: 1.22; max-width: 30ch; }

/* ===== Steps ===== */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { border: 1px solid var(--ink); border-radius: var(--radius); padding: 34px 32px 38px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s var(--ease); }
.step:hover { background: var(--mint); }
.step__n { font-family: var(--serif); font-weight: 300; font-size: 72px; line-height: .8; letter-spacing: -.05em; }
.step p { margin: 28px 0 0; font-size: 20px; line-height: 1.2; }

/* ===== Order ===== */
.order__wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.order__side { position: sticky; top: 110px; }
.order__big { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.4vw, 84px); line-height: .86; letter-spacing: -.05em; margin: 22px 0 22px; }
.order__side .muted { font-size: 19px; max-width: 34ch; margin: 0 0 22px; }
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .field > span { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.form legend { font-size: clamp(16px, 1.4vw, 19px); margin-bottom: 14px; } /* "Produtos" acompanha os títulos das secções */
.field em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field textarea, .feedback textarea, .feedback input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  padding: 14px 22px; outline: none; transition: box-shadow .3s, border-color .3s;
}
.field textarea, .feedback textarea { border-radius: 28px; resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .feedback textarea:focus, .feedback input:focus { box-shadow: 0 0 0 4px var(--mint); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194,65,45,.12); }
.picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 6px 6px; cursor: pointer; transition: border-color .3s, background .3s; }
.pick:hover { border-color: var(--ink); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pick__name { flex: 1; font-size: 18px; line-height: 1.05; }
.pick__price { font-size: 16px; color: var(--muted); white-space: nowrap; }
.pick__tick { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink); flex: none; display: grid; place-items: center; font-size: 12px; color: transparent; transition: background .3s, color .3s; }
.pick:has(input:checked) { border-color: var(--ink); background: #faf8f4; }
.pick:has(input:checked) .pick__tick { background: var(--ink); color: var(--paper); }
.pick.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--sun); } 100% { background: #faf8f4; } }
.form__products.is-invalid .pick { border-color: rgba(194,65,45,.5); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; flex-wrap: wrap; }
.total { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.total strong { font-family: var(--serif); font-weight: 400; font-size: 32px; text-transform: none; margin-left: 6px; }
.form__msg { margin: 0; min-height: 1.2em; font-size: 16px; }
.form__msg.is-error { color: #c2412d; }
.success { border: 1px solid var(--ink); border-radius: var(--radius); padding: 56px 40px 0; text-align: center; overflow: hidden; }
.success__sending { padding: 40px 0 76px; display: grid; justify-items: center; gap: 22px; }
.success__eyebrow { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.spinner { position: relative; width: 120px; height: 60px; overflow: hidden; }
.spinner::before { /* horizonte */
  content: ""; position: absolute; left: -20px; right: -20px; bottom: 0; height: 1px; background: var(--ink); z-index: 2;
}
.spinner span { /* sol que nasce e se põe em loop */
  position: absolute; left: 0; bottom: 0; width: 120px; height: 120px; border-radius: 50%;
  background: var(--sun-grad); animation: sunloop 1.6s var(--ease) infinite;
}
.spinner span::after { /* estrela a rodar */
  content: "✦"; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); color: var(--ink); font-size: 18px; animation: spinstar 1.6s linear infinite;
}
@keyframes sunloop { 0% { transform: translateY(100%); } 45%, 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes spinstar { to { transform: translateX(-50%) rotate(360deg); } }
.success__done { padding-bottom: 44px; position: relative; }
.success__sun { width: 120px; height: 60px; margin: 0 auto 24px; border-radius: 120px 120px 0 0; background: var(--sun-grad); animation: rise 1.2s var(--ease) both; }
.success h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 72px); line-height: .9; margin: 18px 0 22px; letter-spacing: -.045em; }
.success p { font-size: 19px; max-width: 44ch; margin: 0 auto 14px; }
.success p.muted { font-size: 16px; margin-bottom: 28px; }
.success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success__timer { position: absolute; left: -40px; right: -40px; bottom: 0; height: 3px; background: var(--line); }
.success__timer i { display: block; height: 100%; background: var(--sun-grad); background: linear-gradient(90deg, var(--lilac), var(--mint), var(--sun)); transform-origin: left; }

/* ===== Social ===== */
.social__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.social__card { border-radius: var(--radius); padding: 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.social__card .label { text-transform: none; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.04; letter-spacing: -.02em; display: block; }
.social__card--pattern { background: url(/img/pattern.jpg) center / cover; position: relative; overflow: hidden; }
.social__card--pattern::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.92) 30%, rgba(255,255,255,.35)); }
.social__card--pattern > * { position: relative; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--ink); border-radius: var(--radius); padding: 10px 20px; background: var(--paper); text-transform: uppercase; font-size: 16px; letter-spacing: .04em; transition: background .3s, color .3s; }
.pill:hover { background: var(--ink); color: var(--paper); }
.feedback { border: 1px solid var(--ink); }
.feedback__row { display: flex; gap: 10px; }
.feedback__row input { flex: 1; }

/* ===== Footer ===== */
.footer { padding: var(--section) var(--edge) 24px; overflow: hidden; }
.footer__logo { display: block; width: clamp(90px, 8vw, 115px); height: auto; margin: 0 auto; } /* logo monocromático, estilo assinatura */
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; margin-top: 40px; font-size: 16px; line-height: 1.2; }
.footer__row p { margin: 0; }
.footer__links { display: flex; gap: 22px; text-transform: uppercase; letter-spacing: .04em; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Voltar ao topo ===== */
.to-top {
  --base: 20; /* distância ao fundo do ecrã; o JS sobe-o quando chega ao rodapé */
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s, color .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top:hover svg { animation: nudge .9s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(255,255,255,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* O painel não scrolla (o botão Fechar fica sempre visível); quem scrolla é o .modal__body */
.modal__panel {
  position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: start;
}
.modal__close { position: absolute; z-index: 3; top: 18px; right: 18px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); padding: 8px 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.modal__close:hover { background: var(--ink); color: var(--paper); }
.modal__gallery { display: grid; gap: 12px; padding: 12px; }
.modal__gallery img { width: 100%; border-radius: 38px; }
.modal__info { padding: 70px 40px 40px; position: sticky; top: 0; align-self: start; }
.modal__info h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 4.6vw, 72px); line-height: .86; letter-spacing: -.05em; margin: 16px 0 20px; }
.modal__desc { font-size: 20px; line-height: 1.2; margin: 0 0 26px; }
.specs { margin: 0 0 18px; border-top: 1px solid var(--ink); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.specs dt { text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.modal__note { font-size: 17px; line-height: 1.3; white-space: pre-line; margin: 0 0 22px; }
.modal__note:empty { display: none; }
.modal__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 40px; font-weight: 400; letter-spacing: -.02em; }

/* ===== Newsletter (modal estreito) ===== */
.modal--nl .modal__panel { width: min(560px, 100%); }
.modal--nl .modal__body { display: block; }
.nl { display: grid; gap: 16px; padding: 64px 40px 40px; }
.nl[hidden] { display: none; }
.nl h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 68px); line-height: .86; letter-spacing: -.05em; margin: 4px 0 2px; }
.nl h3 em { font-style: italic; }
.nl__lead { font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.nl__optin { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.25; cursor: pointer; }
.nl__optin input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.nl__optin .pick__tick { margin-top: 1px; }
.nl__optin strong { font-weight: 500; }
.nl__optin input:checked + .pick__tick { background: var(--ink); color: var(--paper); }
.nl__optin input:focus-visible + .pick__tick { box-shadow: 0 0 0 4px var(--mint); }
.nl__legal { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
.nl .btn { justify-self: start; }
.nl .btn[disabled] { opacity: .6; pointer-events: none; }
.nl__done { text-align: center; justify-items: center; }
.nl__done .success__sun { margin: 0 auto 4px; }
.nl__done .nl__lead { max-width: 40ch; }
.nl__done .btn { justify-self: center; }

/* ===== Reveal helpers (JS adiciona) ===== */
.js .reveal-up { opacity: 0; transform: translateY(24px); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --radius: 32px; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__hide-sm { display: none; }
  .nav__link:last-child { justify-self: end; }
  .section__head { grid-template-columns: 1fr; gap: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card__meta { padding: 12px 8px 0; flex-direction: column; gap: 4px; }
  .card__title { font-size: 17px; }
  .card__desc { font-size: 16px; }
  .card__badge { top: 12px; left: 12px; font-size: 12px; padding: 4px 9px; }
  .card__view { display: none; }
  .spotlight, .spotlight:nth-child(even) { grid-template-columns: 1fr; min-height: 0; padding: 30px 0 60px; }
  .spotlight:nth-child(even) .spotlight__stage { order: 0; }
  .spotlight:nth-child(even) .spotlight__text { justify-self: auto; text-align: left; }
  .spotlight:nth-child(even) .spotlight__actions { justify-content: flex-start; }
  .steps__list { grid-template-columns: 1fr; }
  .pillars__list { grid-template-columns: 1fr 1fr; gap: 36px var(--gap); }
  .step { min-height: 0; }
  .order__wrap { grid-template-columns: 1fr; }
  .order__side { position: static; }
  .social__grid { grid-template-columns: 1fr; }
  .social__card { padding: 30px 26px; min-height: 0; }
  /* Bottom sheet */
  .to-top { --base: 14; width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { width: 100%; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 92vh; max-height: 92dvh; }
  .modal__panel::before { /* pega do sheet */
    content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 4px; background: var(--line);
  }
  .modal__close { top: 14px; right: 14px; padding: 7px 14px; font-size: 14px; }
  /* block e não grid: numa grelha com altura fixa, a galeria (que é scroll horizontal) encolhia e ficava por cima do texto */
  .modal__body { display: block; }
  .modal__info { padding: 8px 22px calc(28px + env(safe-area-inset-bottom)); position: static; }
  .modal__info h3 { font-size: clamp(38px, 11vw, 56px); }
  .modal__desc { font-size: 18px; }
  .modal__gallery {
    grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 60px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .modal__gallery::-webkit-scrollbar { display: none; }
  .modal__gallery.is-single { grid-auto-columns: 100%; }
  .modal__gallery img { scroll-snap-align: center; border-radius: 22px; aspect-ratio: 4/5; object-fit: cover; }
  .specs div { font-size: 16px; }
  .modal__note { font-size: 16px; }
  .modal__buy .btn { flex: 1; }
  .nl { padding: 48px 22px calc(28px + env(safe-area-inset-bottom)); }
  .nl .btn { justify-self: stretch; }
  .footer__row { grid-template-columns: 1fr; text-align: left; }
  .footer__row .right { text-align: left; }
  .footer__row p:first-child br { display: none; } /* a quebra fixa deixava o "traz" sozinho numa linha */
  .hero__foot { display: none; }
  .hero { padding-top: 90px; padding-bottom: 60px; --sun-w: min(84vw, calc((100svh - 330px) * 1.3)); }
  .hero__title { font-size: clamp(36px, 11vw, 56px); }
}
@media (max-width: 560px) {
  .form__row, .picker { grid-template-columns: 1fr; }
  .pillars__list { grid-template-columns: 1fr; gap: 30px; }
  .feedback__row { flex-direction: column; }
  .pick { padding-right: 12px; }
  .btn { padding: 13px 20px; }
  .form__foot .btn { width: 100%; }
}
/* Ecrãs táteis: o :hover fica "preso" depois de um toque — desligamos e usamos :active */
@media (hover: none) {
  .btn:hover::before { transform: translateY(101%); }
  .btn:active::before { transform: none; }
  .btn--solid:hover, .btn--ghost:hover { color: inherit; }
  .btn--solid:active, .btn--ghost:active { color: var(--paper); }
  .step:hover { background: none; }
  .filter:hover::before { background: none; }
  .filter.is-active:hover::before { background: var(--ink); }
  .pill:hover, .nav__cta:hover, .modal__close:hover { background: var(--paper); color: var(--ink); }
  .nav__cta:hover { background: none; }
  .nav__link:hover::after { transform: scaleX(0); }
  .nav__mark:hover img { transform: none; }
  .to-top:hover { background: var(--paper); color: var(--ink); }
  .to-top:hover svg { animation: none; }
  .to-top:active { background: var(--ink); color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
