/* Sierra Brasilia - Basic Landing v1
   Static, lean comparison build for the R$1.500 offer tier. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #090806;
  --surface: #111009;
  --surface-2: #17140f;
  --text: #f4efe6;
  --muted: #9d927f;
  --gold: #c8a96e;
  --gold-dark: #9e7f4a;
  --line: rgba(200, 169, 110, .18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a, button { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; background: none; cursor: pointer; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 20; background: var(--gold); color: #15110c; padding: .75rem 1rem; }
.skip:focus { left: 1rem; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  border-bottom: 1px solid rgba(240, 235, 226, .08);
  background: rgba(9, 8, 6, .68);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: .78rem; color: var(--muted); }
.nav a:hover, .topbar__cta:hover { color: var(--gold); }
.topbar__cta { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: .2rem; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(5rem + var(--pad)) var(--pad) clamp(3rem, 12vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media, .hero__poster, .hero__video, .hero__shade { position: absolute; inset: 0; }
.hero__media { z-index: -3; background: var(--surface); }
.hero__poster, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 2; opacity: 0; transition: opacity .45s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__poster { z-index: 1; }
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9,8,6,.76), rgba(9,8,6,.24) 52%, rgba(9,8,6,.5)),
    linear-gradient(180deg, rgba(9,8,6,.28), rgba(9,8,6,.18) 42%, rgba(9,8,6,.86));
}
.hero__copy { max-width: 58ch; position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1rem; }
.eyebrow span { color: var(--gold-dark); margin-right: .65rem; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: .96; letter-spacing: 0; }
h1 { font-size: clamp(3.15rem, 9vw, 7.2rem); max-width: 10ch; margin-bottom: 1.35rem; }
h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); max-width: 11ch; margin-bottom: 1.3rem; }
.hero__copy p:not(.eyebrow), .section__head p, .split__copy > p:not(.eyebrow), .final__card > p { color: var(--muted); max-width: 56ch; }
.actions, .form-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .9rem 1.25rem;
  border: 1px solid var(--line);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(200,169,110,.52); }
.btn--solid { background: var(--gold); color: #16120d; border-color: var(--gold); font-weight: 600; }
.btn--ghost { background: rgba(9,8,6,.24); color: var(--text); }

.section { padding: clamp(4.5rem, 10vh, 8rem) var(--pad); }
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; background: var(--surface); }
.split__media { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Materiais — cubo integrado à paleta da landing principal. */
.materials { position: relative; min-height: 400svh; border-block: 1px solid var(--line); background: radial-gradient(circle at 26% 40%, rgba(200,169,110,.1), transparent 30rem), var(--bg); }
.materials__sticky { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(18rem,.82fr); align-items: center; gap: clamp(2rem,6vw,6rem); width: min(1120px,calc(100% - (var(--pad) * 2))); min-height: 100svh; margin: 0 auto; padding: 6rem 0; }
.materials__scene { display: grid; place-items: center; min-height: 32rem; perspective: 1400px; }
.materials__cube { --cube-size: min(43vw,460px); position: relative; width: var(--cube-size); height: var(--cube-size); transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transform-style: preserve-3d; transition: transform .08s linear; will-change: transform; }
.materials__face { position: absolute; inset: 0; margin: 0; overflow: hidden; border: 1px solid rgba(244,239,230,.2); background: var(--surface-2); box-shadow: 0 2rem 5rem rgba(0,0,0,.36); backface-visibility: hidden; }
.materials__face::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(200,169,110,.25); pointer-events: none; }
.materials__face img { width: 100%; height: 100%; object-fit: cover; }
.materials__face--front { transform: rotateY(0deg) translateZ(calc(var(--cube-size) / 2)); }.materials__face--right { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }.materials__face--back { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }.materials__face--left { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }.materials__face--top { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }.materials__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.materials__copy { position: relative; z-index: 1; }.materials__copy h2 { max-width: 9ch; }.materials__copy > p:not(.eyebrow) { max-width: 42ch; color: var(--muted); }.materials__copy [data-cube-caption] { min-height: 5.4rem; transition: opacity .25s var(--ease); }
.materials__steps { position: absolute; inset: 0; pointer-events: none; }.materials__step { position: absolute; right: max(var(--pad),calc((100vw - 1120px) / 2)); width: min(290px,calc(100vw - (var(--pad) * 2))); padding-top: 1.15rem; border-top: 1px solid var(--line); opacity: .16; transform: translateY(1.25rem); transition: opacity .4s var(--ease),transform .4s var(--ease); }.materials__step.is-active { opacity: 1; transform: translateY(0); }.materials__step:nth-child(1) { top: 18%; }.materials__step:nth-child(2) { top: 39%; }.materials__step:nth-child(3) { top: 60%; }.materials__step:nth-child(4) { top: 81%; }.materials__step span { color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .16em; }.materials__step h3 { margin: .55rem 0 .35rem; font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.35rem); font-weight: 500; line-height: 1; }.materials__step p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.gallery { background: var(--bg); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery__grid figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); border: 1px solid rgba(240,235,226,.07); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery__grid figure:hover img { transform: scale(1.035); }

.final { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.final__card {
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(17, 16, 9, .84);
}
.contact-info { margin-top: 1.35rem; display: grid; gap: .25rem; color: var(--muted); font-size: .92rem; }
.contact-info strong { color: var(--text); font-weight: 500; }
.contact-info a { color: var(--gold); }
.map-link { width: fit-content; margin-top: .55rem; border-bottom: 1px solid var(--line); padding-bottom: .15rem; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.map-link:hover { border-color: var(--gold); }
.simple-form { margin-top: 2rem; display: grid; gap: 1.2rem; }
.simple-form label { display: grid; gap: .45rem; }
.simple-form span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input, select {
  width: 100%;
  min-height: 3rem;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .65rem 0;
}
select option { background: var(--surface); color: var(--text); }
input:focus, select:focus { outline: none; border-bottom-color: var(--gold); }
.link-btn { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .18rem; }
.link-btn:hover { color: var(--gold); }
.form-error { color: #d18064; font-size: .9rem; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.footer a:hover, .footer button:hover { color: var(--gold); }

.floating-wa {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85rem 1.1rem;
  border: 1px solid rgba(244, 239, 230, .22);
  background: rgba(200, 169, 110, .94);
  color: #16120d;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32), 0 0 24px rgba(200, 169, 110, .18);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease), visibility 0s linear .25s;
}
.floating-wa.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.floating-wa:hover, .floating-wa:focus-visible {
  background: #d7bd82;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .42), 0 0 30px rgba(200, 169, 110, .28);
  transform: translateY(-2px);
}
.floating-wa:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar__cta { display: none; }
  .hero { min-height: 92svh; padding-bottom: 3rem; }
  h1 { font-size: clamp(3rem, 17vw, 4.7rem); max-width: 9ch; }
  .split { grid-template-columns: 1fr; }
  .materials { min-height: auto; padding: 4.5rem var(--pad); }
  .materials__sticky { position: relative; display: block; width: 100%; min-height: auto; padding: 0; }
  .materials__scene { min-height: auto; margin-bottom: 3rem; perspective: 1000px; }
  .materials__cube { --cube-size: min(68vw,320px); }
  .materials__copy h2 { max-width: 10ch; }.materials__copy [data-cube-caption] { min-height: auto; }
  .materials__steps { position: relative; display: grid; gap: 1.4rem; margin-top: 2.5rem; pointer-events: auto; }
  .materials__step, .materials__step:nth-child(n) { position: relative; inset: auto; width: 100%; opacity: 1; transform: none; }  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .gallery__grid figure { aspect-ratio: 1; }
  .actions .btn, .form-actions .btn { width: 100%; }
  body { padding-bottom: 4.75rem; }
  .floating-wa {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: auto;
    min-height: 3.15rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__video { display: none; }
}
