/* Design system */
:root {
  --navy: #111b41;
  --navy-deep: #0d1532;
  --gold: #c8a86c;
  --gold-light: #d8c39a;
  --ink: #172044;
  --body: #4d5264;
  --mist: #eef3f6;
  --white: #fff;
  --error: #b42318;
  --heading: "Space Grotesk", Arial, sans-serif;
  --subtitle: "Inter", Arial, sans-serif;
  --body-font: "Manrope", Arial, sans-serif;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --content-width: 1160px;
  --radius: 9px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--body-font); font-size: 15px; line-height: 1.6; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8c6a2d; outline-offset: 3px; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding-block: var(--space-section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Placeholders mantêm a proporção dos espaços de imagem do PDF até a troca dos assets. */
.media-placeholder { display: grid; place-items: center; overflow: hidden; color: #67718d; background: linear-gradient(135deg, #e7ebef, #d8dee5 48%, #edf1f4); border: 1px dashed #9aa4b5; }
.media-placeholder span { padding: .35rem .6rem; color: #47516a; background: rgb(255 255 255 / 82%); border-radius: 4px; font: 600 .65rem/1.4 var(--heading); text-align: center; letter-spacing: .03em; }

/* Cabeçalho e navegação */
.site-header { position: sticky; z-index: 20; top: 0; background: var(--white); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 5px 22px rgb(13 21 50 / 12%); }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 182px; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.2rem); font-size: .8rem; }
.main-nav > a:not(.button) { position: relative; padding-block: .5rem; }
.main-nav > a:not(.button)::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav > a:not(.button):hover::after { transform: scaleX(1); transform-origin: left; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; padding: .7rem 1.1rem; border: 0; border-radius: var(--radius); font: 700 .69rem/1.2 var(--heading); text-transform: uppercase; letter-spacing: .015em; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgb(13 21 50 / 15%); }
.button-gold { color: var(--navy-deep); background: var(--gold); }
.button-gold:hover { background: var(--gold-light); }
.button-navy { color: var(--white); background: var(--navy); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(435px, 30.2vw, 595px); display: flex; align-items: center; color: var(--white); background: var(--navy); }
.hero-inner { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; min-height: inherit; }
.hero-copy { position: relative; z-index: 1; max-width: 500px; padding-block: 4rem; }
.eyebrow { margin: 0 0 .7rem; color: var(--gold); font: 700 .68rem/1.4 var(--heading); letter-spacing: .15em; }
.hero h1 { max-width: 550px; margin: 0 0 1rem; font: 700 clamp(2.4rem, 3.6vw, 3.8rem)/1.05 var(--heading); letter-spacing: .01em; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 390px; margin: 0; color: rgb(255 255 255 / 86%); font: 300 1.1rem/1.55 var(--subtitle); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.7rem; }
.hero-actions .button { min-height: 43px; }
.text-link { color: var(--gold-light); font-size: .78rem; font-weight: 600; }
.text-link:hover { color: var(--white); }
.hero-art { position: absolute; bottom: -2px; left: 43.5%; width: 55.5%; max-width: none; height: auto; pointer-events: none; }

/* Sobre */
.about { position: relative; overflow: hidden; background: var(--white); }
.about-grid {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: min(34vw, 540px);
  max-width: none;
  height: calc(100% + 2rem);
  object-fit: cover;
  object-position: left center;
  opacity: .48;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to right, #000 80%, transparent);
}
.about-inner { position: relative; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(370px, 1fr); align-items: center; column-gap: clamp(2rem, 6vw, 6rem); min-height: 435px; }
.founders-media { grid-column: 1; grid-row: 1; width: 100%; max-width: 320px; margin: 0; justify-self: center; }
/* Enquadra a nova foto sem cortar os sócios; as sombras ficam atrás do retrato. */
.founders-portrait { position: relative; isolation: isolate; aspect-ratio: 670 / 1190; overflow: hidden; }
.founders-portrait::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 23% 2.5% at 24% 96.5%, rgb(17 27 65 / 8%), transparent 78%),
    radial-gradient(ellipse 15% 2% at 60% 96.5%, rgb(17 27 65 / 9%), transparent 78%),
    radial-gradient(ellipse 15% 1.8% at 83% 87%, rgb(17 27 65 / 8%), transparent 78%);
  pointer-events: none;
}
.founders-photo {
  position: absolute;
  z-index: 1;
  top: -31.092437%;
  left: -29.850746%;
  display: block;
  width: 161.19403%;
  max-width: none;
  height: auto;
}
.founders-caption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: .9rem .5rem 0; color: var(--ink); text-align: center; }
.founders-caption strong { display: block; font: 700 .75rem/1.4 var(--subtitle); }
.founders-caption span { display: block; margin-top: .2rem; color: var(--body); font-size: .65rem; }
.about-copy { max-width: 510px; padding-block: 2rem; }
.section-title { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.6rem; color: var(--navy); font: 700 clamp(1.45rem, 2.15vw, 1.85rem)/1.15 var(--heading); letter-spacing: .01em; text-transform: uppercase; }
.title-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--white); background: var(--navy); clip-path: polygon(38% 0,62% 0,67% 10%,79% 7%,90% 18%,86% 31%,100% 38%,100% 62%,88% 68%,91% 81%,81% 91%,68% 87%,62% 100%,38% 100%,32% 88%,19% 91%,9% 81%,13% 68%,0 62%,0 38%,13% 31%,9% 18%,20% 8%,33% 12%); font: 800 1.18rem/.9 var(--heading); }
.about-text-frame { position: relative; padding: 1.05rem 0 0 1.2rem; border-top: 1px solid #8593ad; border-left: 1px solid #8593ad; border-radius: 18px 0 0 18px; }
.about-copy p { margin: 0 0 .9rem; color: var(--body); font-size: .8rem; line-height: 1.7; }
.about-copy p strong { color: #343b50; font-weight: 700; }
.about-copy .button { margin-top: .6rem; }

/* Números */
.numbers { position: relative; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.numbers-decoration {
  position: absolute;
  inset: 0 -2% 0 auto;
  width: min(48%, 760px);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 60%, transparent), linear-gradient(to right, transparent, #000 24%, #000 74%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 60%, transparent), linear-gradient(to right, transparent, #000 24%, #000 74%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.numbers-structure { position: absolute; top: -12%; right: 0; width: 100%; max-width: none; height: 135%; object-fit: cover; object-position: center top; opacity: .24; filter: grayscale(1) sepia(1) saturate(.7); }
.numbers-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.area-stat { display: flex; justify-content: center; align-items: center; gap: 1.2rem; }
.area-stat > div { text-align: left; }
.area-stat strong { display: block; font: 700 clamp(4.4rem, 7.2vw, 7.5rem)/.95 var(--heading); letter-spacing: 0; }
.area-stat p { margin: .25rem 0 0; color: var(--gold); font: 600 clamp(.95rem, 1.7vw, 1.35rem)/1.25 var(--subtitle); }
.building-icon { width: clamp(5.2rem, 9vw, 8.4rem); height: clamp(5.2rem, 9vw, 8.4rem); flex: 0 0 auto; color: var(--white); }
.stat-cards { width: min(800px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stat-card { min-height: 76px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: .55rem; padding: .65rem 1rem; border: 1px solid var(--gold); border-radius: 11px; }
.stat-icon { grid-row: span 2; align-self: center; width: 34px; height: 34px; color: var(--white); }
.stat-card strong { font: 700 1.4rem/1.15 var(--heading); }
.stat-card small { color: var(--gold-light); font-size: .62rem; }
.numbers .button { min-height: 37px; font-size: .58rem; }
.numbers-note { margin-top: -.9rem; color: var(--gold-light); font-size: .58rem; text-align: center; }

/* Serviços */
.services { background: var(--white); }
.services .section-title { margin-bottom: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card { overflow: hidden; border-radius: 0; background: transparent; }
.service-preview { position: relative; width: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: #d5dce4; text-align: left; cursor: pointer; }
.service-image { width: 100%; display: block; aspect-ratio: 1.85 / 1; object-fit: cover; transition: transform .45s ease; }
.service-preview::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgb(7 18 48 / 72%)); }
.service-preview > span { position: absolute; z-index: 1; right: .8rem; bottom: .75rem; left: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--white); font: 600 .68rem/1.2 var(--subtitle); }
.service-preview > span b { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; font-size: .9rem; font-weight: 400; }
.service-preview:hover .service-image, .service-preview:focus-visible .service-image { transform: scale(1.04); }
.service-preview:focus-visible, .service-explore:focus-visible, .immersive-close:focus-visible, .immersive-project button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.service-content { padding: .75rem 0 1rem; }
.service-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: .5rem; color: var(--navy); vertical-align: middle; }
.service-icon svg { width: 100%; height: 100%; }
.service-content h3 { display: inline; color: var(--navy); font: 700 .77rem/1.3 var(--subtitle); }
.service-content p { margin: .65rem 0 0; color: var(--body); font-size: .65rem; line-height: 1.55; }
.service-explore { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: 0; color: var(--navy); border: 0; border-bottom: 1px solid var(--gold); background: transparent; font: 700 .62rem/1.6 var(--subtitle); cursor: pointer; }
.service-explore span { color: #a77d37; font-size: .85rem; transition: transform .2s ease; }
.service-explore:hover span { transform: translateX(3px); }

/* Modal de imersão Sketchfab */
.immersive-modal { width: min(1040px, calc(100vw - 2rem)); max-width: none; max-height: min(90vh, 900px); padding: 0; overflow: hidden; color: var(--navy); border: 0; border-radius: 10px; background: var(--white); box-shadow: 0 24px 80px rgb(0 0 0 / 38%); }
.immersive-modal::backdrop { background: rgb(7 14 37 / 78%); backdrop-filter: blur(3px); }
.immersive-panel { max-height: min(90vh, 900px); overflow-y: auto; padding: clamp(1rem, 3vw, 2rem); }
.immersive-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.immersive-eyebrow { margin: 0 0 .35rem; color: #937039; font: 700 .58rem/1.3 var(--subtitle); letter-spacing: .12em; }
.immersive-header h2 { margin: 0; color: var(--navy); font: 700 clamp(1.25rem, 2.4vw, 1.8rem)/1.2 var(--heading); }
.immersive-close { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--navy); border: 1px solid #d9dce2; border-radius: 50%; background: var(--white); font: 300 1.7rem/1 var(--body-font); cursor: pointer; }
.immersive-description { margin: .5rem 0 1.1rem; color: var(--body); font-size: .72rem; }
.immersive-projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.immersive-project { min-width: 0; overflow: hidden; border: 1px solid #e2e5e9; border-radius: 5px; background: #f8f9fb; }
.immersive-project img { width: 100%; aspect-ratio: 1.6 / 1; display: block; object-fit: cover; background: #d6dee7; }
.immersive-project > div { padding: .6rem; }
.immersive-project h3 { min-height: 2.4em; margin: 0 0 .5rem; color: var(--navy); font: 700 .68rem/1.25 var(--subtitle); }
.immersive-project button { width: 100%; min-height: 32px; color: var(--white); border: 0; border-radius: 3px; background: var(--navy); font: 600 .58rem/1.2 var(--subtitle); cursor: pointer; }
.immersive-project button:hover { background: #263568; }
.immersive-back { margin-top: .25rem; padding: .45rem .7rem; color: var(--navy); border: 1px solid #d9dce2; border-radius: 3px; background: var(--white); font: 600 .62rem/1.2 var(--subtitle); cursor: pointer; }
.immersive-viewer { margin-top: 1rem; aspect-ratio: 16 / 9; background: #090e1d; }
.immersive-viewer iframe { width: 100%; height: 100%; display: block; border: 0; }
.immersive-viewer[hidden] { display: none; }
.immersive-profile { display: inline-block; margin-top: 1rem; color: var(--navy); font: 700 .65rem/1.5 var(--subtitle); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.immersive-profile span { color: #937039; }

/* Newsletter */
.newsletter { padding-block: 1.2rem; color: var(--white); background: var(--white); }
.newsletter-inner { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 990px; padding: 2.25rem 2.7rem; overflow: hidden; border-radius: 12px; background: var(--navy); }
.newsletter-inner::before { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 48%; content: ""; background: url("../assets/newsletter-benisa-tracado.webp") right center / 110% auto no-repeat; opacity: .16; pointer-events: none; }
.newsletter-inner > * { position: relative; z-index: 1; }
.newsletter h2 { margin: 0; font: 700 clamp(1.8rem, 3vw, 2.65rem)/1.1 var(--heading); letter-spacing: .01em; }
.newsletter p { margin: .35rem 0 0; color: var(--gold-light); font: 400 .65rem/1.5 var(--subtitle); }
.newsletter-form { position: relative; width: min(390px, 48%); display: flex; }
.newsletter-form input { width: 100%; min-height: 44px; padding: .75rem 3.2rem .75rem 1rem; border: 0; border-radius: 5px; color: var(--ink); background: var(--white); font-size: .7rem; }
.newsletter-submit { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; color: var(--white); border: 0; border-radius: 4px; background: var(--gold); font-size: 1.25rem; cursor: pointer; }
.newsletter-form .form-feedback { position: absolute; top: 100%; left: 0; margin-top: .15rem; color: var(--gold-light); font-size: .65rem; }

/* Acervo */
.archive { background: var(--mist); }
.archive-inner { display: block; }
.archive-heading { display: grid; grid-template-columns: 1fr minmax(260px, 390px); align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.archive-list-wrap .section-title { margin: 0; }
.archive-disclaimer { margin: 0 0 .15rem; padding: .55rem .75rem; color: var(--navy); border-left: 3px solid var(--gold); background: rgb(255 255 255 / 63%); font: 600 .64rem/1.55 var(--body-font); letter-spacing: .01em; }
.archive-marquee { display: grid; gap: .85rem; width: min(100%, 980px); margin-inline: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.archive-row { overflow-x: auto; scrollbar-width: none; border-radius: 6px; }
.archive-row::-webkit-scrollbar { display: none; }
.archive-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.archive-track { display: flex; width: max-content; animation: archive-scroll var(--archive-duration, 800s) linear infinite reverse; }

.archive-list { flex: 0 0 auto; display: flex; gap: .85rem; padding: .25rem .85rem .25rem 0; margin: 0; list-style: none; }
.archive-list li { flex: 0 0 auto; width: 250px; min-height: 86px; display: flex; align-items: center; padding: 1rem 1.2rem; color: var(--navy); border: 1px solid rgb(17 27 65 / 7%); border-left: 2px solid var(--gold); border-radius: 4px; background: linear-gradient(120deg, #fff, rgb(255 255 255 / 65%)); box-shadow: 0 3px 10px rgb(17 27 65 / 3%); font: 600 .82rem/1.5 var(--body-font); letter-spacing: -.015em; }
@keyframes archive-scroll { to { transform: translateX(-50%); } }

/* Portfólio */
.portfolio { background: var(--white); }
.portfolio-heading { display: flex; align-items: center; justify-content: space-between; }
.carousel-controls { display: none; gap: .5rem; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); border: 1px solid rgb(17 27 65 / 15%); border-radius: 4px; background: var(--white); font-size: 1.2rem; cursor: pointer; transition: color .2s ease, background .2s ease; }
.icon-button:hover { color: var(--white); background: var(--navy); }
.portfolio-track { display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: 220px 190px; gap: 1rem; }
.portfolio-item { min-width: 0; overflow: hidden; background: #d5dce3; }
.portfolio-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.portfolio-item:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.portfolio-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.portfolio-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.portfolio-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.portfolio-item .media-placeholder { width: 100%; height: 100%; border: 0; background: linear-gradient(140deg, #c4ccd4, #e3e7ea); }
.portfolio-item:nth-child(even) .media-placeholder { background: linear-gradient(140deg, #aebdca, #d6dfe5); }
.carousel-dots { min-height: 24px; display: flex; justify-content: center; align-items: end; gap: .55rem; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d8dde3; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--navy); }

/* Clientes parceiros */
.partners { overflow: hidden; padding-block: 1.6rem 1.9rem; background: var(--mist); }
.partners-window { width: min(100%, 980px); margin-inline: auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.partners-window::-webkit-scrollbar { display: none; }
.partners-window:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.partners-track { display: flex; width: max-content; animation: archive-scroll 75s linear infinite reverse; }
.partners-list { display: flex; flex: 0 0 auto; align-items: center; gap: 1rem; padding: 0 1rem 0 0; margin: 0; list-style: none; }
.partners-list li { flex: 0 0 160px; width: 160px; }
.partners-list img { width: 160px; height: auto; }
.partners-architects { width: min(100%, 980px); margin: 1.5rem auto 0; text-align: center; }
.partners-architects h3 { display: inline-block; margin: 0 0 .8rem; padding-bottom: .4rem; color: var(--navy); border-bottom: 2px solid var(--gold); font: 700 .67rem/1.4 var(--heading); letter-spacing: .1em; text-transform: uppercase; }
.partners-architects ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; padding: 0; margin: 0; list-style: none; }
.partners-architects li { color: var(--body); font: 500 .7rem/1.5 var(--body-font); }

/* Depoimentos */
.testimonials { color: var(--navy); background: var(--gold); }
.testimonials .section-title { justify-content: center; margin-bottom: 2rem; }
.testimonial-carousel { display: grid; grid-template-columns: 44px minmax(0, 700px) 44px; justify-content: center; align-items: center; gap: 1.2rem; }
.testimonial-carousel > .icon-button { border: 0; }
.testimonial-carousel > .testimonial-prev { color: var(--gold); background: var(--white); }
.testimonial-carousel > .testimonial-next { color: var(--white); background: var(--navy); }
.testimonial-window { overflow: hidden; }
.testimonial-track { display: grid; grid-auto-columns: calc((100% - 1rem) / 2); grid-auto-flow: column; gap: 1rem; transition: transform .35s ease; }
.testimonial-card { position: relative; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border-radius: 5px; background: var(--white); }
.testimonial-card::after { position: absolute; right: .4rem; bottom: -.65rem; content: "”"; color: #dbe4f4; font: 700 5.1rem/1 var(--heading); pointer-events: none; }
.testimonial-card blockquote { margin: 0; color: #606676; font-size: .69rem; line-height: 1.65; }
.testimonial-by { display: flex; align-items: center; gap: .7rem; }
.testimonial-logo { min-width: 64px; padding: .4rem; color: var(--navy); border: 1px solid #dfe3e8; font: 800 .65rem/1 var(--heading); text-align: center; }
.testimonial-by strong { display: block; color: var(--navy); font: 700 .8rem/1.3 var(--subtitle); }
.testimonial-by small { display: block; color: var(--body); font-size: .6rem; }

/* Contato */
.contact { overflow: hidden; padding-bottom: 0; background: var(--white); }
.contact-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.contact-visual { position: relative; isolation: isolate; width: 100%; max-width: 450px; align-self: end; justify-self: center; }
.contact-facade {
  position: absolute;
  z-index: 0;
  bottom: -1rem;
  left: -32%;
  width: 145%;
  max-width: none;
  height: 118%;
  object-fit: contain;
  object-position: left bottom;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%), linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%), linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.contact-person { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.contact-content { position: relative; z-index: 1; width: 100%; max-width: 600px; padding-bottom: 3.5rem; justify-self: center; }
.contact-content h2 { margin: 0; color: var(--navy); font: 700 clamp(1.6rem, 2.5vw, 2.4rem)/1.12 var(--heading); letter-spacing: .01em; text-transform: uppercase; }
.contact-intro { margin: .5rem 0 1.4rem; color: var(--body); font: 400 .78rem/1.5 var(--subtitle); }
#contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem .65rem; }
.field { min-width: 0; display: flex; flex-direction: column; gap: .24rem; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font: 600 .66rem/1.3 var(--heading); }
.field input, .field select { width: 100%; min-height: 42px; padding: .55rem .75rem; color: var(--navy); border: 1px solid #d6c6a8; border-radius: 6px; background: #e7dece; font-size: .72rem; }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-right: 5.6rem; }
.required-badge { position: absolute; top: 50%; right: .7rem; color: var(--error); font: 600 .54rem/1 var(--body-font); transform: translateY(-50%); pointer-events: none; }
.field input::placeholder { color: #8d8f95; }
.field select { appearance: auto; }
.field-error { min-height: .1rem; color: var(--error); font-size: .63rem; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.form-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .1rem; }
.consent { max-width: 300px; display: flex; align-items: flex-start; gap: .4rem; color: var(--body); font-size: .58rem; line-height: 1.4; }
.consent input { flex: 0 0 auto; margin: .1rem 0 0; accent-color: var(--navy); }
.form-bottom .button { min-height: 37px; padding-inline: .8rem; white-space: nowrap; }
.contact-feedback { grid-column: 1 / -1; min-height: 1rem; margin: 0; color: var(--navy); font-size: .68rem; }

/* Rodapé */
.site-footer { color: var(--white); background: var(--navy-deep); }
.footer-inner { display: grid; grid-template-columns: 1.1fr .9fr 1.8fr auto; align-items: center; gap: 1.2rem 2rem; padding-block: 2.5rem 1.2rem; }
.brand-light { position: relative; width: max-content; justify-self: start; }
.brand-light .brand-logo { filter: brightness(0) invert(1); }
.brand-light::after { position: absolute; inset: 0; content: ""; background: url("../assets/benisa-logo.png") center / contain no-repeat; clip-path: inset(28% 0 22% 34%); pointer-events: none; }
.footer-slogan { margin: 0; font: 600 .62rem/1.5 var(--heading); letter-spacing: .08em; text-transform: uppercase; }
.site-footer address { display: flex; flex-direction: column; gap: .45rem; color: rgb(255 255 255 / 82%); font-size: .65rem; font-style: normal; }
.address-line { display: flex; align-items: flex-start; gap: .55rem; }
.footer-icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gold-light); }
.site-footer address a:hover { color: var(--gold-light); }
.social-links { display: flex; gap: .55rem; }
.social-links a { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); border: 1px solid rgb(255 255 255 / 66%); border-radius: 50%; }
.social-links svg { width: 17px; height: 17px; }
.social-links a:first-child { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.copyright { grid-column: 1 / -1; padding-top: .9rem; color: rgb(255 255 255 / 72%); border-top: 1px dotted rgb(255 255 255 / 36%); font-size: .58rem; }

/* Animações de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Tablet */
@media (max-width: 980px) {
  :root { --content-width: 780px; }
  .header-inner { min-height: 82px; }
  .main-nav { gap: .9rem; }
  .main-nav .button { padding-inline: .75rem; font-size: .6rem; }
  .hero { min-height: 430px; }
  .about-inner { grid-template-columns: .85fr 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-heading { grid-template-columns: 1fr minmax(230px, 330px); gap: 1.25rem; }
  .portfolio-track { grid-template-rows: 180px 160px; }
  .contact-inner { gap: 2rem; }
}

/* Mobile: segue a ordem vertical das pranchas mobile do Figma. */
@media (max-width: 768px) {
  :root { --space-section: 2.8rem; }
  html { scroll-padding-top: 68px; }
  body { font-size: 14px; }
  .container { width: min(100% - 32px, 520px); }
  .header-inner { min-height: 66px; }
  .brand-logo { width: 145px; }
  .menu-toggle { position: relative; z-index: 2; width: 34px; height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; max-height: 0; padding-inline: 24px; color: var(--white); background: var(--navy); transition: max-height .35s ease, padding-block .35s ease; }
  .main-nav.is-open { max-height: 470px; padding-block: .65rem 1.2rem; box-shadow: 0 15px 25px rgb(9 15 36 / 20%); }
  .main-nav > a:not(.button) { padding: .55rem 0; font: 600 1rem/1.2 var(--heading); }
  .main-nav > a:not(.button)::after { display: none; }
  .main-nav .nav-quote { margin-top: .5rem; color: var(--navy); }
  .hero { min-height: 553px; }
  .hero-inner { display: block; width: min(100% - 48px, 520px); min-height: 553px; }
  .hero-copy { max-width: 390px; min-height: 553px; padding-block: 1.7rem 0; }
  .hero-eyebrow { display: none; }
  .hero h1 { max-width: 350px; margin-bottom: .7rem; font-size: 2.25rem; line-height: 1.07; letter-spacing: .01em; text-transform: none; }
  .hero-copy > p:not(.eyebrow) { max-width: 350px; font-size: 1rem; line-height: 1.5; }
  .hero-actions { position: absolute; right: 0; bottom: 20px; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0; }
  .hero-actions .button { min-height: 54px; font-size: .61rem; }
  .hero-actions .text-link { align-self: flex-start; font-size: .68rem; }
  .hero-art { top: 247px; bottom: auto; left: 14%; width: 100%; }
  .about { padding-block: 2rem; }
  .about::after { position: absolute; top: .8rem; left: max(16px, calc((100% - 520px) / 2)); content: "SOBRE"; color: var(--gold); font: 600 .62rem/1.2 var(--heading); letter-spacing: .02em; }
  .about-grid { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: .5rem; min-height: auto; }
  .founders-media { max-width: 300px; margin: .6rem 0 1.2rem; }
  .founders-caption { gap: .5rem; padding: .65rem 0 0; }
  .founders-caption strong { font-size: .7rem; }
  .founders-caption span { font-size: .6rem; }
  .about-copy { padding-block: .2rem 0; }
  .about-copy .section-title { display: none; }
  .about-text-frame { padding: 0; border: 0; border-radius: 0; }
  .about-copy p { margin-bottom: .8rem; font-size: .74rem; line-height: 1.6; }
  .about-copy .button { width: 100%; margin-top: .2rem; text-transform: none; }
  .numbers { padding-block: 1.15rem 1rem; }
  .numbers-decoration { display: none; }
  .numbers-inner { align-items: stretch; gap: .6rem; }
  .area-stat { justify-content: flex-start; gap: .35rem; }
  .area-stat .building-icon { display: none; }
  .area-stat strong { font-size: 2.7rem; }
  .area-stat p { font-size: .72rem; }
  .stat-cards { grid-template-columns: 1fr; gap: .45rem; }
  .stat-card { min-height: 56px; padding: .42rem .65rem; }
  .stat-card strong { font-size: .95rem; }
  .stat-card small { font-size: .54rem; }
  .numbers .button { align-self: center; min-height: 30px; font-size: .52rem; }
  .numbers-note { margin: 0; font-size: .49rem; }
  .services { padding-block: 1.6rem 2rem; }
  .services .section-title { margin-bottom: .9rem; color: var(--gold); font: 600 .62rem/1.2 var(--heading); }
  .services .title-mark { display: none; }
  .services-grid { grid-template-columns: 1fr; gap: .8rem; }
  .service-card { border-radius: 0; }
  .service-image { aspect-ratio: 1.8 / 1; }
  .service-content { padding: .62rem 0 .75rem; }
  .service-icon { width: 26px; height: 26px; }
  .service-content h3 { font-size: .76rem; }
  .service-content p { margin-top: .4rem; font-size: .62rem; line-height: 1.45; }
  .immersive-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .immersive-project h3 { font-size: .63rem; }
  .immersive-project > div { padding: .5rem; }
  .immersive-viewer { aspect-ratio: 4 / 3; }
  .newsletter { padding-block: .9rem; }
  .newsletter-inner { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; padding: 1.15rem 1rem 2.4rem; }
  .newsletter-inner::before { display: none; }
  .newsletter h2 { font-size: 1.55rem; }
  .newsletter p { max-width: 280px; font-size: .57rem; line-height: 1.35; }
  .newsletter-form { width: 100%; flex-direction: column; gap: .45rem; }
  .newsletter-form input { min-height: 42px; padding-right: .8rem; border-radius: 6px; }
  .newsletter-submit { position: static; width: 100%; height: 40px; color: var(--navy); background: var(--gold); font: 700 .65rem var(--heading); }
  .newsletter-submit::after { content: " Assinar"; }
  .newsletter-form .form-feedback { top: calc(100% + 1px); }
  .archive { padding-block: 1.7rem; }
  .archive-inner { display: block; }
  .archive-heading { grid-template-columns: 1fr; gap: .8rem; margin-bottom: 1rem; }
  .archive-list-wrap .section-title { display: flex; margin-bottom: 0; }
  .archive-disclaimer { margin: 0; font-size: .59rem; line-height: 1.5; }
  .archive-marquee { gap: .6rem; }
  .archive-list { gap: .6rem; padding-right: .6rem; }
  .archive-list li { width: 215px; min-height: 82px; padding: .8rem 1rem; font-size: .75rem; }
  .portfolio { padding-block: 1.8rem 1.4rem; }
  .portfolio-heading { display: block; }
  .portfolio .section-title { display: flex; margin-bottom: .65rem; color: var(--gold); font: 600 .62rem/1.2 var(--heading); letter-spacing: .02em; }
  .portfolio .title-mark { display: none; }
  .carousel-controls { display: none; }
  .portfolio-track { display: flex; overflow-x: auto; gap: .7rem; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .portfolio-track::-webkit-scrollbar { display: none; }
  .portfolio-item { flex: 0 0 88%; height: 260px; scroll-snap-align: center; }
  .portfolio-item:nth-child(n) { display: block; }
  .carousel-dots { align-items: center; min-height: 28px; }
  .partners { padding-block: 1.1rem; }
  .partners-architects { margin-top: 1.1rem; }
  .partners-architects ul { gap: .4rem .85rem; }
  .partners-architects li { font-size: .65rem; }
  .testimonials { padding-block: 1.3rem; }
  .testimonials .section-title { justify-content: flex-start; margin-bottom: .8rem; font-size: .62rem; color: var(--gold-light); }
  .testimonials .title-mark { display: none; }
  .testimonial-carousel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .testimonial-carousel > .icon-button { display: none; }
  .testimonial-track { grid-auto-columns: 100%; gap: .6rem; }
  .testimonial-card { min-height: 135px; padding: .85rem; }
  .testimonial-card blockquote { font-size: .62rem; }
  .contact { padding-block: 2rem 0; }
  .contact-inner { grid-template-columns: 1fr; gap: .5rem; }
  .contact-content { order: 1; padding-bottom: 0; }
  .contact-content h2 { font-size: 1.42rem; line-height: 1.16; text-transform: none; }
  .contact-intro { margin: .35rem 0 .9rem; font-size: .68rem; }
  .contact-visual { order: 2; max-width: 340px; margin-top: 1.5rem; }
  .contact-facade { opacity: .4; }
  #contact-form { grid-template-columns: 1fr; gap: .35rem; }
  .field-full { grid-column: auto; }
  .field label { font-size: .6rem; }
  .field input, .field select { min-height: 38px; border: 0; background: var(--mist); font-size: .68rem; }
  .field-error { min-height: .3rem; }
  .form-bottom { grid-column: auto; flex-direction: column; align-items: stretch; gap: .6rem; }
  .consent { max-width: none; font-size: .55rem; }
  .form-bottom .button { min-height: 42px; justify-content: flex-start; font-size: .65rem; text-transform: none; }
  .contact-feedback { grid-column: auto; }
  .site-footer { padding-block: .2rem; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; gap: .65rem; padding-block: 1rem; }
  .footer-inner .brand-logo { width: 148px; }
  .footer-slogan { margin-top: -.4rem; font-size: .56rem; }
  .site-footer address { gap: .3rem; font-size: .6rem; }
  .copyright { padding-top: .6rem; font-size: .49rem; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.archive-track):not(.partners-track), *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

