/* Xerim — landing page. Mobile-first, CSS puro. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope";  src: url("../fonts/manrope-normal.woff2")  format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --cream: #FAF7F0;
  --vanilla: #F3E9D8;
  --sage: #A8B8A0;
  --olive: #485C48;
  --olive-dark: #364636;
  --terra: #C78D72;
  --terra-dark: #8A4F36;   /* texto sobre creme: contraste AA */
  --honey: #D9A441;
  --ink: #30352F;
  --ink-soft: #4F564D;
  --line: rgba(48, 53, 47, .14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --radius: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- Tipografia ---------- */
.display, .h2, .card__title, .pillar h3, .benefit__title, .footer__name, .consent__title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0;
}
.display { font-size: clamp(2.25rem, 9vw, 4rem); line-height: 1.06; color: var(--olive-dark); margin: 0 0 .5em; }
.h2 { font-size: clamp(1.85rem, 6.4vw, 2.9rem); line-height: 1.12; color: var(--olive-dark); margin-bottom: .6em; }
.h2--light { color: var(--cream); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.lead--light { color: var(--vanilla); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-dark); margin: 0 0 1em; }
.fineprint { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary:hover { background: var(--olive-dark); }
.btn--gold { background: var(--honey); color: #2b2a1e; }
.btn--gold:hover { background: #e3b255; }
.btn--ghost { border-color: rgba(250, 247, 240, .45); color: var(--cream); }
.btn--ghost:hover { background: rgba(250, 247, 240, .1); }
.btn--outline { border-color: var(--olive); color: var(--olive-dark); background: transparent; }
.btn--outline:hover { background: var(--vanilla); }
.btn--lg { min-height: 58px; font-size: 1.05rem; padding-inline: 1.9em; }
.btn--small { min-height: 44px; padding: .55em 1.1em; font-size: .92rem; }
.btn .icon { width: 1.35em; height: 1.35em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 56px; background:
  radial-gradient(60% 50% at 100% 0%, rgba(217, 164, 65, .14), transparent 70%), var(--cream); }
.hero__grid { display: grid; gap: 36px; }
.hero__logo { width: 72px; height: 72px; margin-bottom: 22px; }
.hero__note { color: var(--olive); font-weight: 600; margin-bottom: 1.6em; }
.hero__cta .btn { width: 100%; }
.hero__media { position: relative; max-width: 460px; width: 100%; margin: 0 auto; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--vanilla); }
.arch__img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.sprig { color: var(--sage); }
.sprig--hero { position: absolute; width: 56px; height: 112px; right: -8px; bottom: -22px; color: var(--olive); opacity: .7; }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section--vanilla { background: var(--vanilla); }
.section--olive { background: var(--olive-dark); color: var(--cream); }
.section__head { max-width: 40rem; margin-bottom: 36px; }
.section__head--light .h2 { color: var(--cream); }
.section__head--light .eyebrow { color: var(--honey); }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; }
.section__sub--light { color: var(--vanilla); text-align: center; max-width: 36rem; margin: 40px auto 0; }

.split { display: grid; gap: 40px; align-items: center; }
.split__text p { max-width: 34em; }
.frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--sage); box-shadow: 0 1px 0 var(--line); }
.frame__img { width: 100%; height: 100%; object-fit: cover; }
.split__media { position: relative; }
.stamp { position: absolute; left: 14px; bottom: -22px; margin: 0; width: 96px; height: 96px; border-radius: 50%;
  background: var(--honey); color: #2b2a1e; display: grid; place-items: center; text-align: center;
  font: 600 .95rem/1.15 var(--serif); transform: rotate(-8deg); }
.signature { font-family: var(--serif); color: var(--olive); font-size: 1.15rem; margin-top: 1.4em; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.card__icon, .benefit__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--vanilla); color: var(--olive); margin-bottom: 16px; }
.card__title { font-size: 1.35rem; line-height: 1.2; color: var(--olive-dark); margin-bottom: .45em; }
.card p { margin: 0; color: var(--ink-soft); }
.cta-row { margin-top: 40px; display: grid; gap: 16px; justify-items: start; padding: 28px 24px; border-radius: var(--radius); background: var(--vanilla); }
.cta-row p { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--olive-dark); }

/* ---------- Gastronomia ---------- */
.quote { margin: 0 auto 44px; max-width: 46rem; text-align: center; }
.quote p { font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 2.1rem); line-height: 1.3; margin: 0; color: var(--cream); }
.quote::before { content: ""; display: block; width: 56px; height: 3px; background: var(--honey); margin: 0 auto 28px; border-radius: 3px; }
.pillars { display: grid; gap: 16px; }
.pillar { border: 1px solid rgba(250, 247, 240, .2); border-radius: var(--radius); padding: 28px 24px; }
.pillar .icon { color: var(--honey); width: 34px; height: 34px; margin-bottom: 14px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .4em; }
.pillar p { margin: 0; color: var(--vanilla); }
.tiles { display: grid; gap: 12px; margin-top: 40px; }
.tile { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Diferenciais ---------- */
.benefits { display: grid; gap: 22px 40px; }
.benefit { display: flex; gap: 18px; align-items: flex-start; }
.benefit__icon { margin: 0; flex: none; }
.benefit__title { font-size: 1.25rem; color: var(--olive-dark); margin-bottom: .2em; }
.benefit p { margin: 0; color: var(--ink-soft); }

/* ---------- Parceiros ---------- */
.partners { position: relative; border-radius: var(--radius); background: var(--olive); color: var(--cream); padding: 40px 28px 32px; overflow: hidden; }
.partners ul { display: grid; gap: 18px; position: relative; }
.partners li { display: flex; gap: 14px; align-items: center; font-family: var(--serif); font-size: 1.5rem; }
.partners li .icon { color: var(--honey); }
.partners p { margin: 28px 0 0; font-size: .9rem; color: var(--sage); letter-spacing: .04em; }
.sprig--panel { position: absolute; right: 18px; top: 18px; width: 64px; height: 128px; color: var(--sage); opacity: .35; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--vanilla); }
.gal__img { width: 100%; height: 100%; object-fit: cover; }
.gal--0 { grid-column: span 2; aspect-ratio: 16 / 10; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; min-height: 60px; font-weight: 700; color: var(--olive-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform .25s var(--ease); color: var(--terra-dark); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); }

/* ---------- Final ---------- */
.final { position: relative; background: var(--olive); color: var(--cream); padding: 84px 0 92px; text-align: center; overflow: hidden; }
.final__inner { display: grid; justify-items: center; gap: 4px; position: relative; }
.final .lead { margin-bottom: 1.6em; }
.final__note { margin: 20px 0 0; font-size: .92rem; color: var(--sage); }
.sprig--final { width: 44px; height: 88px; color: var(--honey); margin-bottom: 14px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: var(--vanilla); padding: 56px 0 96px; font-size: .95rem; }
.footer a { color: inherit; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(250, 247, 240, .15); }
.footer__brand img { width: 72px; height: 72px; margin-bottom: 14px; }
.footer__name { font-size: 1.6rem; color: var(--cream); }
.footer__desc { max-width: 28em; margin: .4em 0 0; }
.footer__place { display: flex; gap: 10px; align-items: flex-start; }
.footer__place .icon { margin-top: 2px; color: var(--honey); }
.footer__legal { display: grid; gap: 6px; padding-top: 24px; font-size: .85rem; color: #cfc8b8; }
.footer__legal p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--cream);
  border: 2px solid var(--honey); box-shadow: 0 6px 18px rgba(30, 40, 30, .28); transition: transform .2s var(--ease), bottom .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
body.has-consent .wa-float { bottom: calc(var(--consent-h, 0px) + 16px); }

/* ---------- Consentimento ---------- */
.consent { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; max-width: 560px; background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px rgba(30, 40, 30, .25); padding: 20px; max-height: 80vh; overflow: auto; }
.consent[hidden] { display: none; }
.consent__title { font-size: 1.2rem; color: var(--olive-dark); margin-bottom: .3em; }
.consent p { font-size: .92rem; line-height: 1.5; margin-bottom: .8em; }
.consent__prefs { display: grid; gap: 10px; margin: 12px 0; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.consent__opt input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--olive); flex: none; }
.consent__opt strong { display: block; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { flex: 1 1 auto; }

/* ---------- Placeholders (apenas em desenvolvimento) ---------- */
.ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; text-align: center; padding: 12px;
  background: repeating-linear-gradient(45deg, #e7dfcd, #e7dfcd 12px, #efe8d8 12px, #efe8d8 24px); color: #6b6350; font-size: .8rem; border: 2px dashed #b3a889; border-radius: inherit; }

/* ---------- Páginas de texto (política, 404) ---------- */
.doc { padding: 40px 0 72px; }
.doc__top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; color: var(--olive-dark); }
.doc__top img { width: 48px; height: 48px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; color: var(--olive-dark); margin: 0 0 .5em; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--olive-dark); margin: 2em 0 .5em; }
.doc li { margin-bottom: .4em; }
.doc ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.doc a { color: var(--olive); }
.todo { background: #fbe9b5; color: #4a3a05; padding: .05em .35em; border-radius: 4px; }

/* ---------- Animações discretas ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__cta .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gal--0 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .consent { left: auto; right: 20px; bottom: 20px; }
  .cta-row { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
}

/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .hero { padding: 40px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
  .hero__logo { width: 88px; height: 88px; margin-bottom: 36px; }
  .hero__media { max-width: 520px; margin: 0 0 0 auto; }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__media { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr; }
  .footer { padding-bottom: 72px; }
  .footer__legal { grid-template-columns: 1fr auto; }
  .wa-float { width: 60px; height: 60px; }
}
