/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --bg: #11100E;
  --bg-2: #191613;
  --card: #211B16;
  --wood-dark: #38271D;
  --wood: #63432E;
  --gold: #C6A15B;
  --champagne: #D8BD83;
  --text: #F5F1E9;
  --text-2: #AAA198;
  --border: rgba(198, 161, 91, 0.22);
  --associate-bg: #FFFFFF;
  --associate-text: #211B16;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }

/* ---------- Tipografia comum ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 500; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold);
}
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05;
  letter-spacing: -.01em; margin-top: .8rem;
}
.section__sub { color: var(--text-2); margin-top: 1.2rem; max-width: 520px; }
.gold-line {
  display: block; width: 72px; height: 1px; margin: 1.6rem 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.gold-line--center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 120px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid transparent; transition: all .45s var(--ease);
  position: relative; overflow: hidden;
}
.btn--gold { background: linear-gradient(135deg, var(--champagne), var(--gold)); color: var(--bg); }
.btn--gold:hover { box-shadow: 0 14px 40px -12px rgba(198,161,91,.55); transform: translateY(-2px); }
.btn--outline { border-color: rgba(245,241,233,.35); color: var(--text); }
.btn--outline:hover { border-color: var(--gold); color: var(--champagne); }
.btn--sm { min-height: 44px; padding: 0 1.4rem; font-size: .68rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .5s var(--ease), border-color .5s, height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(17,16,14,.92); backdrop-filter: blur(14px);
  border-color: var(--border); height: 72px;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo__image { width: 116px; height: 64px; object-fit: contain; }
.footer .logo__image { width: 220px; height: 121px; }
.logo__mark { color: var(--gold); font-size: .9rem; }
.logo__text { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .18em; font-weight: 500; }
.logo__text em { font-style: normal; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav__list { display: flex; gap: 2.2rem; }
.nav__link {
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2); position: relative; padding: .4rem 0; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--gold); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17,16,14,.94) 0%, rgba(17,16,14,.7) 45%, rgba(17,16,14,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__content { position: relative; padding-top: var(--header-h); max-width: var(--container); }
.hero__title {
  font-family: var(--serif); font-weight: 400; max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; letter-spacing: -.015em;
}
.hero__title em { font-style: italic; color: var(--champagne); }
.hero__text { color: var(--text-2); max-width: 520px; margin-top: 1.8rem; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.scroll-indicator {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.scroll-indicator__label { font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-2); }
.scroll-indicator__line { width: 1px; height: 56px; background: rgba(198,161,91,.25); position: relative; overflow: hidden; }
.scroll-indicator__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--gold); animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; position: relative; z-index: 1; }
.about__frame { position: absolute; inset: 2rem -2rem -2rem 2rem; border: 1px solid var(--border); }
.about__text p { color: var(--text-2); margin-bottom: 1.1rem; }
.values { margin-top: 2.4rem; border-top: 1px solid var(--border); }
.value {
  display: flex; align-items: center; gap: 1.4rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--border); font-family: var(--serif); font-size: 1.45rem;
}
.value__num { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--gold); width: 2rem; }

/* ---------- Serviços ---------- */
.services { background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative; padding: 2.6rem 2rem 2.4rem; min-height: 380px;
  background: linear-gradient(160deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(198,161,91,.08);
  display: flex; flex-direction: column;
  transition: border-color .5s, transform .6s var(--ease), background .6s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background: radial-gradient(120% 80% at 0% 0%, rgba(99,67,46,.45), transparent 60%);
}
.card:hover { border-color: var(--border); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.card .icon { margin: 2.6rem 0 2rem; }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; line-height: 1.15; margin-bottom: 1rem; }
.card p { color: var(--text-2); font-size: .92rem; }
.icon { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Portfólio ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 1.25rem; }
.gallery__item { position: relative; overflow: hidden; cursor: pointer; background: var(--card); }
.gallery__link { display: block; width: 100%; height: 100%; }
.gallery__item::after { pointer-events: none; }
.gallery__item:focus-within { outline: 1px solid var(--gold); outline-offset: 4px; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 3; }
.gallery__item--full { grid-column: 1 / -1; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; filter: saturate(.92); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(17,16,14,.88) 0%, rgba(17,16,14,.1) 50%, transparent 100%);
  transition: opacity .6s;
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); filter: saturate(1.05); }
.gallery__item figcaption {
  position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.6rem; z-index: 1;
  display: flex; flex-direction: column; gap: .3rem; transition: transform .6s var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(-6px); }
.gallery__cat { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.gallery__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }

/* ---------- Diferenciais ---------- */
.diff {
  background:
    repeating-linear-gradient(90deg, rgba(99,67,46,.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood-dark) 0%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}
.diff__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.diff__item { padding: 3rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.diff__item:last-child { border-right: 0; }
.diff__item .icon { margin: 0 auto 1.6rem; transition: transform .8s var(--ease); }
.diff__item:hover .icon { transform: translateY(-6px) rotate(-4deg); }
.diff__item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }

/* ---------- Associado ---------- */
.associate { background: var(--associate-bg); color: var(--associate-text); }
.associate__content { text-align: center; }
.associate .section__title { font-size: 3rem; letter-spacing: 0; }
.associate .eyebrow { letter-spacing: 0; }
.associate__logo { width: min(100%, 680px); height: auto; margin: 2.5rem auto; }
.associate__description { max-width: 680px; margin-inline: auto; font-size: .95rem; letter-spacing: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(7rem, 15vw, 12rem) 0; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: -5%; background-size: cover; background-position: center; }
.cta__overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(17,16,14,.6), rgba(17,16,14,.95) 75%); }
.cta__content { position: relative; max-width: 760px; }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; margin-bottom: 1.4rem; }
.cta__content p { color: var(--text-2); margin-bottom: 2.6rem; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 7vw, 7rem); }
.contact__list li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); display: grid; gap: .2rem; }
.contact__list span { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.contact__list a, .contact__list p { font-family: var(--serif); font-size: 1.4rem; transition: color .3s; word-break: break-word; }
.contact__list a:hover { color: var(--champagne); }
.form { background: var(--card); border: 1px solid var(--border); padding: clamp(1.8rem, 4vw, 3rem); display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--text); font: inherit;
  border: 0; border-bottom: 1px solid rgba(245,241,233,.18); padding: .7rem 0; border-radius: 0;
  transition: border-color .3s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field__error { color: #e08a6d; font-size: .75rem; min-height: 1em; }
.field.has-error input, .field.has-error textarea { border-color: #e08a6d; }
.form__note { font-size: .75rem; color: var(--text-2); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; }
.footer__desc { color: var(--text-2); max-width: 360px; margin-top: 1.2rem; font-size: .92rem; }
.footer h4 { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.2rem; }
.footer li { margin-bottom: .55rem; }
.footer li a { color: var(--text-2); font-size: .92rem; transition: color .3s; overflow-wrap: anywhere; }
.footer li a:hover { color: var(--champagne); }
.footer__bottom { border-top: 1px solid var(--border); padding: 1.6rem 0; font-size: .78rem; color: var(--text-2); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,9,8,.96);
  display: flex; align-items: center; justify-content: center; padding: 4rem 5rem;
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: 1200px; width: 100%; }
.lightbox__img { max-height: 72vh; width: 100%; object-fit: contain; }
.lightbox__caption { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; }
.lightbox__title { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; grid-column: 1; }
.lightbox__desc { color: var(--text-2); font-size: .9rem; grid-column: 1; }
.lightbox__count { grid-column: 2; grid-row: 1 / span 3; align-self: end; font-size: .75rem; letter-spacing: .2em; color: var(--gold); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.6rem; font-size: 2.4rem; line-height: 1; color: var(--text-2); width: 48px; height: 48px; }
.lightbox__close:hover { color: var(--gold); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: 1px solid var(--border); font-size: 1.8rem; color: var(--champagne);
  transition: background .3s, border-color .3s;
}
.lightbox__nav:hover { background: rgba(198,161,91,.12); border-color: var(--gold); }
.lightbox__nav--prev { left: 1.2rem; } .lightbox__nav--next { right: 1.2rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  box-shadow: 0 10px 30px -8px rgba(198,161,91,.55);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: var(--bg); }
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 40px -10px rgba(198,161,91,.7); }

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed; right: 1.5rem; bottom: 6.5rem; z-index: 40;
  width: 50px; height: 50px; border: 1px solid var(--border); background: rgba(17,16,14,.85);
  color: var(--gold); opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all .45s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); color: var(--bg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .diff__grid { grid-template-columns: repeat(2, 1fr); }
  .diff__item:nth-child(2) { border-right: 0; }
  .diff__item { border-bottom: 1px solid var(--border); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    gap: 2.6rem; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.4rem; }
  .nav__link { font-family: var(--serif); font-size: 2rem; letter-spacing: .04em; text-transform: none; color: var(--text); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__frame { inset: 1rem -1rem -1rem 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery__item--wide, .gallery__item--full { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 2.5rem, var(--container)); }
  .hero__actions .btn { width: 100%; }
  .services__grid, .diff__grid, .form__row { grid-template-columns: 1fr; }
  .diff__item { border-right: 0; }
  .card { min-height: auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery__item--wide, .gallery__item--tall, .gallery__item--full { grid-column: auto; grid-row: span 1; }
  .lightbox { padding: 4rem 1rem 6rem; }
  .lightbox__nav { top: auto; bottom: 1.2rem; transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .gallery__item--tall { grid-row: span 2; } }
