/* BOLDO ARQUITETURA — paleta do material da marca: creme, vinho, terracota e verde (sobrepõe a base) */
:root {
  --paper: #f5e8d4;
  --paper-2: #ecdcc3;
  --ink: #2a1712;
  --muted: #8a634c;
  --body: #6b4f40;
  --line: rgba(42, 23, 18, .16);
  --dark-1: #2a1712;
  --dark-2: #55171a;
  --dark-3: #55171a;
  --dark-4: #2a1712;
  --light: #fbf3e6;
  --light-dim: rgba(251, 243, 230, .74);
  --light-faint: rgba(251, 243, 230, .5);
  --line-dark: rgba(251, 243, 230, .16);
  --sand: #f2e0c4;
  --bronze: #b0622a;
  --gold: #f0c06b;
  --gold-deep: #b0622a;

  --terra: #b36428;
  --terra-dark: #8a3f15;
  --terra-text: #a3541d;
  --terra-light: #e8915a;
  --wine: #55171a;
  --wine-logo: #6a2024;
  --green: #2c5a31;
  --forest: #214b25;
  --leaf-green: #2f6b36;
  --sage: #e3e7d0;
  --peach: #f4dcbd;
  --mustard: #f0c06b;
  --cream: #f2e0c4;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .27 0 0 0 0 .14 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background-image: var(--noise); }
::selection { background: var(--terra); color: #fff; }

/* Destaques coloridos */
.h2 em, .band__title em, .hero__title em { color: var(--terra-text); font-weight: 300; }
.hero__title em, .band__title em { color: var(--mustard); }
.h2--light em { color: var(--mustard); }

/* ---------- Logo boldo (traçado do material da marca) com brilho + folha balançando ---------- */
.brand {
  flex-direction: column; align-items: center; gap: 0; line-height: 1;
  --ww: 112px; --b1: #fbf1e1; --b2: #ffd9a8; --leaf: #a9d08f; --sub: rgba(251, 241, 225, .88);
}
.logo-word { position: relative; display: block; flex: none; width: var(--ww); aspect-ratio: 904 / 196; }
.logo-word::before, .logo-word::after { content: ""; position: absolute; inset: 0; }
.logo-word::before {
  -webkit-mask: url(/assets/boldo-word.svg) center / contain no-repeat;
  mask: url(/assets/boldo-word.svg) center / contain no-repeat;
  background: linear-gradient(105deg, var(--b1) 0%, var(--b1) 38%, var(--b2) 46%, #fff8ec 50%, var(--b2) 54%, var(--b1) 62%, var(--b1) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  animation: shine 5.5s cubic-bezier(.45, 0, .2, 1) 1.2s infinite;
}
.logo-word::after {
  -webkit-mask: url(/assets/boldo-wleaf.svg) center / contain no-repeat;
  mask: url(/assets/boldo-wleaf.svg) center / contain no-repeat;
  background: var(--leaf);
  transform-origin: 94.7% 86.7%;
  animation: sway 6s ease-in-out infinite;
  transition: background-color .5s;
}
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(7deg); } }
.brand .brand__sub {
  font-family: var(--font); font-weight: 400; text-transform: lowercase; white-space: nowrap;
  font-size: calc(var(--ww) * .085); letter-spacing: .52em; padding-left: .52em; margin-top: calc(var(--ww) * .055);
  color: var(--sub); opacity: 1; transition: color .5s;
}
.header .brand { --ww: 116px; }
.header.is-solid { background-color: rgba(245, 232, 212, .96); background-image: var(--noise); }
.header.is-solid .brand { --b1: var(--wine-logo); --b2: #c0703a; --leaf: var(--leaf-green); --sub: var(--terra); }
.menu-open .header .brand { --b1: #fbf1e1; --b2: #ffd9a8; --leaf: #a9d08f; --sub: rgba(251, 241, 225, .88); }
.menu { background: var(--wine); }
.menu .btn--light { background: var(--terra); color: #fff; }

/* Intro: a capa do material da Boldo — creme, logo vinho, folha verde, sol terracota */
.intro { background-color: #f1dfc5; background-image: var(--noise); overflow: hidden; }
.intro::before, .intro::after { content: ""; position: absolute; pointer-events: none; }
.intro::before {
  right: -9vmin; top: -9vmin; width: 38vmin; aspect-ratio: 1; background: var(--terra);
  -webkit-mask: url(/assets/burst.svg) center / contain no-repeat; mask: url(/assets/burst.svg) center / contain no-repeat;
  animation: burstIn 1.4s var(--ease) .1s both, spin 40s linear 1.5s infinite;
}
.intro::after {
  left: -11vmin; bottom: -11vmin; width: 34vmin; aspect-ratio: 1; border-radius: 50%; background: var(--forest);
  animation: burstIn 1.4s var(--ease) .25s both;
}
@keyframes burstIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.brand--intro { --ww: min(72vw, 500px); --b1: var(--wine-logo); --b2: #c0703a; --leaf: var(--leaf-green); --sub: var(--terra); }
.brand--intro .logo-word::before { animation: shine 1.8s cubic-bezier(.45, 0, .2, 1) .55s 1 forwards; }
.brand--intro .logo-word::after { animation: leafDrop 1.5s cubic-bezier(.3, .9, .3, 1.05) .3s both, sway 6s ease-in-out 1.8s infinite; }
@keyframes leafDrop {
  0% { opacity: 0; transform: translate(-40%, -160%) rotate(-60deg); }
  35% { opacity: 1; }
  62% { transform: translate(6%, -10%) rotate(16deg); }
  100% { opacity: 1; transform: rotate(-6deg); }
}
.brand--intro .brand__sub { font-size: calc(var(--ww) * .072); align-self: center; margin-top: calc(var(--ww) * .06); }

/* ---------- Hero ---------- */
.hero__img { object-position: 50% 50%; }
.hero__shade {
  background:
    radial-gradient(at 8% 0%, rgba(42, 23, 18, .66), transparent 42%),
    linear-gradient(90deg, rgba(42, 23, 18, .78), rgba(42, 23, 18, .12) 74%),
    linear-gradient(0deg, rgba(42, 23, 18, .55), transparent 50%);
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 2.2vw, 28px);
  padding: 9px 15px 9px 12px; border-radius: 40px; background: rgba(179, 100, 40, .92); color: #fff;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__tag i { width: 13px; height: 18px; background: var(--mustard); -webkit-mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; }

/* ---------- Faixa corrida ---------- */
.marquee { background: var(--forest); color: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: .06em; padding: 0 clamp(18px, 2.2vw, 34px); white-space: nowrap; line-height: 1; }
.marquee__group span:nth-child(4n+3) { color: var(--mustard); }
.marquee__group i { flex: none; width: 15px; height: 21px; background: var(--terra-light); -webkit-mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; }
.marquee__group i:nth-of-type(3n+2) { background: var(--mustard); }
.marquee__group i:nth-of-type(3n) { background: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto com folha flutuante ---------- */
.manifesto { position: relative; overflow: hidden; }
.manifesto__grid { position: relative; z-index: 1; }
.deco-leaf {
  position: absolute; pointer-events: none; z-index: 0;
  width: clamp(160px, 22vw, 330px); aspect-ratio: 99 / 139;
  -webkit-mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; mask: url(/assets/boldo-leaf.svg) center / contain no-repeat;
  background: linear-gradient(160deg, #cfdcb9, #a9be93);
  opacity: .5; animation: float 9s ease-in-out infinite;
}
.manifesto .deco-leaf { right: -9vw; top: 30%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

/* ---------- Pilares coloridos ---------- */
.pillars__head { margin-bottom: clamp(40px, 5vw, 70px); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pillar {
  position: relative; overflow: hidden; border-radius: 22px; min-height: clamp(320px, 30vw, 420px);
  padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; color: var(--light);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.js .pillar[data-anim].is-in:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(42, 23, 18, .6); }
.pillar--raiz { background: var(--terra); }
.pillar--respiro { background: var(--green); }
.pillar--cura { background: var(--wine); }
.pillar__num { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .78; }
.pillar__leaf {
  position: absolute; right: -6%; top: -8%; width: 46%; aspect-ratio: 99 / 139; opacity: .2; background: #fff;
  -webkit-mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; mask: url(/assets/boldo-leaf.svg) center / contain no-repeat;
  transform: rotate(18deg); transition: transform 1.2s var(--ease), opacity .8s;
}
.pillar:hover .pillar__leaf { transform: rotate(4deg) scale(1.06); opacity: .3; }
.pillar h3 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 5vw, 4.8rem); line-height: 1; letter-spacing: .01em; margin-top: auto; }
.pillar p { font-size: 14px; line-height: 1.6; max-width: 19rem; margin-top: 14px; color: rgba(255, 246, 234, .86); }
.pillar--respiro h3 { color: #f7e5b8; }
.pillar--cura h3 { color: #f6c9a2; }

/* ---------- Quem somos ---------- */
.about__left { background: radial-gradient(120% 90% at 28% 18%, #c47237, #9c5120 72%); position: relative; overflow: hidden; }
.about__left::before, .about__left::after {
  content: ""; position: absolute; left: -7%; bottom: -5%; width: 62%; aspect-ratio: 478 / 360; pointer-events: none;
}
.about__left::before { background: rgba(85, 23, 26, .3); -webkit-mask: url(/assets/boldo-b.svg) center / contain no-repeat; mask: url(/assets/boldo-b.svg) center / contain no-repeat; }
.about__left::after { background: rgba(33, 75, 37, .8); -webkit-mask: url(/assets/boldo-leafl.svg) center / contain no-repeat; mask: url(/assets/boldo-leafl.svg) center / contain no-repeat; transform-origin: 81% 89%; animation: sway 7s ease-in-out infinite; }
.about__card { z-index: 1; border-radius: 18px; box-shadow: 0 40px 80px -36px rgba(42, 12, 6, .7); }
.about__card img { object-position: 58% 40%; }
.about__card figcaption { background: rgba(85, 23, 26, .74); border-radius: 30px; padding: 8px 12px; }
.about__right { background: var(--wine); }
.about__name { font-family: var(--font); font-weight: 500; letter-spacing: -.055em; font-size: clamp(2.8rem, 5.6vw, 5.4rem); color: var(--cream); }
.about__name em { font-family: var(--display); font-weight: 400; letter-spacing: .01em; color: var(--mustard); }
.about__text { color: rgba(251, 236, 220, .82); }
.about__text + .about__text { margin-top: -14px; }
.about__facts b { color: var(--cream); font-size: clamp(1.25rem, 1.9vw, 1.7rem); }
.about .btn--light { background: var(--terra-light); color: var(--wine); }
.about .btn--light::before { background: var(--cream); }
.btn--outline-dark { border-color: rgba(242, 224, 196, .5); color: var(--cream); }
.btn--outline-dark:hover { color: var(--wine); }

/* ---------- Serviços em verde-sálvia ---------- */
.discovery { background: var(--sage); }
.discovery .eyebrow { color: var(--green); }
.rows small { color: var(--green); font-weight: 500; }
.rows a::after { background: var(--green); height: 2px; }
.rows a:hover b { color: var(--forest); }
.rows svg { color: var(--terra); }
.discovery [data-rule]::before { background: rgba(33, 75, 37, .2); }

/* ---------- Faixa foto ---------- */
.band::after { background: linear-gradient(0deg, rgba(42, 23, 18, .66), rgba(42, 23, 18, .38)); }
.band img { object-position: 50% 45%; }

/* ---------- Projetos (cada card abre a galeria do projeto) ---------- */
.card__media { border-radius: 16px; }
.pill { border-radius: 30px; background: rgba(247, 238, 223, .95); }
.card__media:hover .pill { background: var(--terra); color: #fff; }
.card__meta small { color: var(--terra-text); font-weight: 500; }
.card__meta p { color: var(--green); letter-spacing: .01em; }
.card__meta p span { color: var(--muted); }
.card:nth-child(3n+1) .card__meta::after { color: var(--terra); }
.card:nth-child(3n+2) .card__meta::after { color: var(--green); }
.card:nth-child(3n) .card__meta::after { color: var(--wine); }

/* ---------- Cozinhas em terracota ---------- */
.statement { background: var(--terra-dark); }
.statement__media { background: #6d3112; }
.statement__text { color: rgba(255, 238, 220, .84); }
.thumb { border-radius: 10px; }
.thumb.is-active { outline-color: var(--mustard); }

/* ---------- Processo em pêssego ---------- */
.process { background: var(--peach); }
.process .eyebrow, .steps small { color: var(--terra-text); }
.steps small {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .04em;
}
.steps li:nth-child(2) small { background: var(--green); }
.steps li:nth-child(3) small { background: var(--wine); }
.steps li:nth-child(4) small { background: var(--mustard); color: var(--wine); }
.steps h3 { margin-top: clamp(26px, 3.4vw, 52px); }
.steps li + li { border-left-color: rgba(42, 23, 18, .14); }
.steps p { color: #6a4b3a; }
.process [data-rule]::before { background: rgba(42, 23, 18, .18); }

/* ---------- Vídeo: a história do nome ---------- */
.material__media { border-radius: 0 28px 28px 0; background: var(--green); }
.material__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.material__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(247, 238, 223, .94); color: var(--wine); border-radius: 30px; padding: 9px 14px 9px 11px;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
}
.material__tag i { width: 11px; height: 15px; background: var(--green); -webkit-mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; mask: url(/assets/boldo-leaf.svg) center / contain no-repeat; }
.material__quote { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; color: var(--terra-text); max-width: 25rem; margin: -8px 0 30px; }
.store-card { background: var(--terra); color: #fff; border-radius: 18px; box-shadow: 0 24px 44px -24px rgba(122, 56, 18, .7); }
.store-card small { color: rgba(255, 240, 222, .82); }
.store-card i { background: var(--cream); color: var(--wine); }

/* ---------- Chamada final em terracota ---------- */
.architects { background: var(--terra); position: relative; overflow: hidden; }
.architects > *:not(.deco-leaf) { position: relative; z-index: 1; }
.architects .deco-leaf { position: absolute; z-index: 0; left: 4vw; bottom: -12%; top: auto; background: rgba(255, 233, 204, .14); opacity: 1; width: clamp(140px, 18vw, 260px); }
.architects .deco-leaf--2 { left: auto; right: 5vw; top: -10%; bottom: auto; width: clamp(100px, 12vw, 180px); background: rgba(85, 23, 26, .28); animation-delay: -4s; }
.architects .h2--light em { color: #ffe1b0; }
.architects__text { color: rgba(255, 241, 224, .9); }
.architects .btn--outline-dark { background: var(--cream); color: var(--wine); border-color: var(--cream); }
.architects .btn--outline-dark::before { background: var(--wine); }
.architects .btn--outline-dark:hover { color: var(--cream); border-color: var(--wine); }
.architects .eyebrow--light { color: rgba(255, 241, 224, .92); }

/* ---------- Rodapé verde, como a página de contato do material ---------- */
.footer { background: var(--forest); color: #f3e6d4; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; right: -150px; top: -175px; width: 300px; aspect-ratio: 1; pointer-events: none;
  background: var(--terra); opacity: .9;
  -webkit-mask: url(/assets/burst.svg) center / contain no-repeat; mask: url(/assets/burst.svg) center / contain no-repeat;
  animation: spin 60s linear infinite;
}
.footer__inner { position: relative; z-index: 1; }
.footer__col a, .footer__col p { color: #f3e6d4; }
.footer__cta-title svg { color: var(--terra-light); }
.footer__grid-img a { background: #173a1b; border-radius: 12px; }
.brand--footer { --ww: 190px; --b1: var(--cream); --b2: #fff1dc; --leaf: var(--terra-light); --sub: var(--terra-light); align-items: center; }
.footer__team { margin-top: 26px; display: grid; gap: 12px; font-size: 12.5px; line-height: 1.5; color: #f3e6d4; }
.footer__team span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-faint); }
.footer__palette { display: flex; gap: 8px; margin-top: 24px; }
.footer__palette span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* ---------- Galeria do projeto ---------- */
.gallery {
  position: fixed; inset: 0; z-index: 260; background: #24140f; color: var(--light);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px var(--px) 16px;
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery.is-open { opacity: 1; }
.gallery[hidden] { display: none; }
.gallery__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px 0 14px; }
.gallery__title { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.gallery__meta { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--light-dim); margin-top: 6px; }
.gallery__right { display: flex; align-items: center; gap: 22px; flex: none; }
.gallery__count { font-size: 11px; letter-spacing: .16em; color: var(--light-dim); }
.gallery__close { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 30px; transition: background-color .3s, color .3s; }
.gallery__close:hover { background: var(--cream); color: var(--wine); }
.gallery__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.gallery__img { max-width: 100%; max-height: calc(100svh - 230px); width: auto; height: auto; border-radius: 12px; transition: opacity .35s var(--ease), transform .6s var(--ease); }
.gallery__img.is-swap { opacity: .2; transform: scale(.985); }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(247, 238, 223, .92); color: var(--wine); font-size: 18px; display: grid; place-items: center; transition: background-color .3s, color .3s;
}
.gallery__prev { left: 0; }
.gallery__next { right: 0; }
.gallery__nav:hover { background: var(--terra); color: #fff; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 4px 4px; scrollbar-width: none; justify-content: safe center; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { flex: none; width: 76px; aspect-ratio: 8 / 7; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.gallery__thumbs button:hover { opacity: .8; }
.gallery__thumbs button.is-active { opacity: 1; outline-color: var(--mustard); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Detalhes ---------- */
.whatsapp { background: var(--green); color: var(--cream); }
.whatsapp:hover { background: var(--terra); color: #fff; }
.lightbox { background: rgba(42, 23, 18, .96); }
.lightbox__nav:hover { color: var(--wine); }

@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 250px; }
  .pillar__leaf { width: 30%; right: -4%; top: -10%; }
  .material__media { border-radius: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(42, 23, 18, .62) 0%, rgba(42, 23, 18, .1) 30%, rgba(42, 23, 18, .45) 58%, rgba(42, 23, 18, .94) 100%); }
  .manifesto .deco-leaf { right: -16vw; top: auto; bottom: -4%; opacity: .4; }
  .header .brand { --ww: 100px; }
  .gallery { padding: 10px 14px 12px; }
  .gallery__nav { width: 42px; height: 42px; font-size: 15px; top: auto; bottom: -58px; translate: none; }
  .gallery__prev { left: calc(50% - 50px); }
  .gallery__next { right: calc(50% - 50px); }
  .gallery__stage { margin-bottom: 64px; }
  .gallery__img { max-height: calc(100svh - 290px); border-radius: 10px; }
  .gallery__thumbs button { width: 60px; }
  .gallery__count { display: none; }
  .gallery__title { font-size: 1rem; }
}
@media (max-width: 560px) {
  .marquee { padding: 16px 0; }
  .hero__tag { font-size: 9px; letter-spacing: .16em; }
  .hide-sm { display: none; }
  .brand--footer { --ww: 160px; }
  .steps li + li { border-left-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-word::before { animation-duration: 7s; }
  .logo-word::after, .deco-leaf, .about__left::after, .intro::before, .footer::before { animation: none; }
  .marquee__track { animation-duration: 120s; }
}
