/* =========================================================
   Brechó Pa & Te
   Um fundo claro, um acento (verde da marca). Rosa só em detalhes.
   ========================================================= */
:root {
  --bg: #fbfaf6;
  --bg-tint: #f1f0e8;
  --ink: #1d2616;
  --muted: #5a6352;
  --line: #dfe0d4;
  --green: #3f6b1c;
  --green-dark: #2b4a12;
  --green-deep: #1a2e0a;
  --pink: #ea7c9e;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: clamp(36px, 4.6vw, 60px); }

.link { font-weight: 600; color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .3s; }
.link:hover { color: var(--pink); }

/* ---------- barra de progresso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; }
.progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ---------- botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease);
}
/* o preenchimento nasce do ponto onde o mouse entrou */
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .6s var(--ease);
}
.btn:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: rotate(-12deg) scale(1.12); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary::before { background: var(--pink); }
.btn--primary:hover { color: var(--green-deep); }

.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost::before { background: var(--pink); }
.btn--ghost:hover { color: var(--green-deep); border-color: var(--pink); }

.btn--light { background: #fff; color: var(--green-dark); }
.btn--light::before { background: var(--pink); }
.btn--light:hover { color: var(--green-deep); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light::before { background: var(--pink); }
.btn--outline-light:hover { color: var(--green-deep); border-color: var(--pink); }

.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- topo ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .35s, box-shadow .35s, translate .45s var(--ease); }
.header.is-scrolled { background: rgba(251, 250, 246, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { translate: 0 -100%; }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--green-deep); }
.brand__icon { width: 36px; height: 36px; fill: var(--green); }

.menu { display: flex; gap: 32px; font-weight: 500; font-size: 15px; }
.menu a { position: relative; padding: 8px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero: texto + foto real em tela cheia ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100svh; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 40px) clamp(24px, 5vw, 80px) 64px max(16px, calc((100vw - 1200px) / 2)); }
.hero__title { font-size: clamp(42px, 4.4vw, 70px); color: var(--green-deep); }
.hero__title .js-line { white-space: nowrap; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .js-line { display: inline-block; }
.hero__sub { max-width: 36ch; margin: 28px 0 40px; font-size: 19px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; overflow: hidden; background: var(--bg-tint); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ---------- faixa ---------- */
.marquee { overflow: hidden; white-space: nowrap; background: var(--green); color: #fff; padding: 18px 0; }
/* duas metades idênticas, cada uma mais larga que a tela: o loop nunca mostra vazio */
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 72s) linear infinite; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); will-change: transform; }
.marquee__group { display: flex; flex: none; align-items: center; gap: 2.2rem; padding-right: 2.2rem; }
.marquee__track i { flex: none;  width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--green-deep); color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.section__head p { max-width: 38ch; opacity: .75; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* a loja */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media, .visit__photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--bg-tint); }
.about__media img, .visit__photo img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }
.about__text h2 { color: var(--green-deep); margin-bottom: 24px; }
.lead { font-size: 20px; color: var(--muted); max-width: 46ch; }
.facts { margin-top: 40px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 700; color: var(--green-dark); }
.facts span { color: var(--muted); font-size: 17px; }

/* como funciona: ciclo com a borboleta (fixado enquanto rola) */
.circular { position: relative; overflow: hidden; background: var(--green-dark); color: #fff; }
.circular__stage { min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }
.circular__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.circular h2 { color: #fff; max-width: 14ch; margin-bottom: 40px; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 20px 24px 20px 72px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .14); opacity: .4; counter-increment: step; transition: opacity .5s var(--ease), background-color .5s, border-color .5s, transform .5s var(--ease); }
.step::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: rgba(255, 255, 255, .15); transition: background-color .5s, color .5s; }
.step b { font-family: var(--font-display); font-size: 22px; }
.step p { color: rgba(255, 255, 255, .8); font-size: 16px; margin-top: 4px; }
.step.is-active { opacity: 1; background: rgba(255, 255, 255, .09); border-color: var(--pink); transform: translateX(8px); }
.step.is-active::before { background: var(--pink); color: var(--green-deep); }

.circular__art { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.cycle { width: 100%; overflow: visible; }
.cycle__track { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 10; stroke-dasharray: 2 18; stroke-linecap: round; }
.cycle__path { fill: none; stroke: var(--pink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 200px 200px; }
.cycle__hanger path:first-child { stroke: #fff; }
.cycle__heart { fill: var(--pink); transform-origin: 200px 245px; transform-box: view-box; }
.cycle__dot circle { fill: var(--green-dark); stroke: rgba(255, 255, 255, .4); stroke-width: 3; transition: fill .4s, stroke .4s; }
.cycle__dot text { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; text-anchor: middle; }
.cycle__dot.is-on circle { fill: var(--pink); stroke: var(--pink); }
.cycle__dot.is-on text { fill: var(--green-deep); }

.butterfly { position: absolute; left: 50%; top: 50%; width: 64px; margin: -32px 0 0 -32px; pointer-events: none; z-index: 2; will-change: transform; }
.butterfly .wing { transform-box: fill-box; animation: flap .5s ease-in-out infinite alternate; }
.butterfly .wing--l { transform-origin: right center; }
.butterfly .wing--r { transform-origin: left center; }
@keyframes flap { to { transform: scaleX(.45); } }

/* peças: lista editorial */
.section--dark h2 { color: #fff; }
.cats { border-top: 1px solid rgba(255, 255, 255, .18); }
.cats li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.cat { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; padding: 28px 8px; overflow: hidden; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.cat:hover::before, .cat:focus-visible::before { transform: scaleY(1); }
.cat__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; transition: transform .5s var(--ease); }
.cat:hover .cat__name { transform: translateX(16px); }
.cat__desc { opacity: .75; }
.cat__arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease); }
.cat__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover .cat__arrow { background: var(--pink); border-color: var(--pink); color: var(--green-deep); transform: rotate(-45deg); }

/* avaliações */
.reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reviews__score b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 12vw, 160px); line-height: .9; color: var(--green-deep); }
.reviews__stars { display: block; color: #d99a12; font-size: 26px; letter-spacing: 4px; margin: 12px 0 8px; }
.reviews__score p { color: var(--muted); margin-bottom: 16px; }
.reviews__list { border-top: 1px solid var(--line); }
.quote { padding: 32px 0; border-bottom: 1px solid var(--line); }
.quote p { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.quote footer { margin-top: 16px; font-weight: 600; color: var(--muted); font-size: 15px; }
.quote footer::before { content: ""; display: inline-block; width: 24px; height: 1.5px; background: var(--pink); vertical-align: middle; margin-right: 10px; }

/* como chegar */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 500; }
.visit__info h2 { color: var(--green-deep); margin-bottom: 32px; }
.visit__list { display: grid; border-top: 1px solid var(--line); }
.visit__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { font-weight: 700; color: var(--green-dark); }
.visit__list dd { color: var(--muted); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.visit__map { border-radius: var(--radius); overflow: hidden; height: 300px; background: var(--line); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }

/* CTA final */
.final { background: var(--green); color: #fff; padding: clamp(88px, 11vw, 140px) 0; text-align: center; }
.final h2 { max-width: 16ch; margin: 0 auto 20px; font-size: clamp(40px, 5.4vw, 72px); }
.final p { max-width: 44ch; margin: 0 auto 40px; opacity: .85; }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* rodapé */
.footer { padding: 48px 0 40px; background: var(--green-deep); color: rgba(255, 255, 255, .75); font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer .brand { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a:hover { color: #fff; }
.footer small { flex-basis: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* flutuantes */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 110; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .4); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.to-top { position: fixed; right: 27px; bottom: calc(94px + env(safe-area-inset-bottom)); z-index: 110; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s, translate .45s var(--ease), background-color .3s; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--pink); border-color: var(--pink); color: var(--green-deep); }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .about, .reviews, .visit, .circular__grid { grid-template-columns: 1fr; }
  .circular__grid { gap: 32px; }
  .circular__art { max-width: 300px; order: -1; }
  .circular h2 { margin-bottom: 24px; }
  .about__media, .visit__photo { aspect-ratio: 4 / 3; }
  .facts li { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 1fr auto; }
  .cat__desc { grid-column: 1; grid-row: 2; margin-top: -16px; }
  .cat__arrow { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .menu { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 24px; background: var(--bg); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); opacity: 0; translate: 0 -10px; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); }
  .menu a { display: block; padding: 14px 0; font-size: 19px; }
  .menu-open .menu { opacity: 1; translate: 0 0; pointer-events: auto; }
  .burger { display: block; }
  .header__cta { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: calc(var(--header-h) + 32px) 16px 40px; }
  .hero__media { height: 62svh; min-height: 380px; }
  .visit__list > div { grid-template-columns: 1fr; gap: 2px; }
  /* no celular a seção fica fixa na tela: só o passo ativo mostra o texto */
  .circular__stage { padding: calc(var(--header-h) + 8px) 0 32px; }
  .circular__art { max-width: 210px; }
  .circular h2 { font-size: 30px; max-width: none; margin-bottom: 18px; }
  .step { padding: 14px 16px 14px 60px; }
  .step::before { left: 14px; top: 12px; width: 32px; height: 32px; }
  .step b { font-size: 19px; }
  .js-pin .step p { display: none; }
  .js-pin .step.is-active p { display: block; }
  .butterfly { width: 44px; margin: -22px 0 0 -22px; }
}
@media (max-width: 520px) {
  .hero__ctas .btn, .visit__ctas .btn, .final__ctas .btn { width: 100%; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .cycle__path { stroke-dashoffset: 0; }
}
