:root {
  --ink: #282522;
  --ink-soft: #5d5750;
  --cream: #f4efe7;
  --paper: #fbf8f3;
  --sand: #dfd4c6;
  --bronze: #a47d50;
  --bronze-light: #c5a57e;
  --charcoal: #171614;
  --white: #fff;
  --shadow: 0 22px 70px rgba(35, 29, 24, .14);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--bronze); color: white; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 9999;
  background: var(--charcoal);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus { top: 14px; }

.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 700;
}
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
}
.section-copy { max-width: 680px; color: var(--ink-soft); font-size: 1.04rem; }
.section-head { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 52px; }
.section-head .section-copy { margin: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
  color: white;
}
.site-header.is-scrolled {
  background: rgba(251,248,243,.94);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(30,25,20,.08);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .12em; }
.brand img { width: 146px; height: auto; filter: brightness(0) invert(1); transition: filter .3s ease; }
.site-header.is-scrolled .brand img { filter: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav a:not(.button) { position: relative; }
.nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s ease; }
.nav a:not(.button):hover::after { right: 0; }
.menu-button { display: none; border: 0; background: transparent; width: 48px; height: 48px; cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { display: block; content: ""; height: 1px; width: 25px; margin: 6px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bronze);
  color: white;
  font-weight: 650;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #8f683f; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.6); }
.button-outline:hover { background: white; color: var(--charcoal); }
.button-dark { background: var(--charcoal); }
.button-small { min-height: 42px; padding-inline: 18px; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-media, .hero-media::before, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-media::before { content: ""; z-index: 1; background: linear-gradient(90deg, rgba(18,16,14,.82) 0%, rgba(18,16,14,.48) 45%, rgba(18,16,14,.2) 78%); }
.hero-media::after { content: ""; z-index: 1; background: linear-gradient(0deg, rgba(18,16,14,.72) 0%, transparent 55%); }
.hero-content { position: relative; z-index: 2; padding: 160px 0 86px; max-width: 840px; }
.hero-kicker { margin: 0 0 22px; font-size: .78rem; text-transform: uppercase; letter-spacing: .24em; color: #ead8bf; font-weight: 700; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(3.4rem, 8.4vw, 7.8rem); line-height: .93; letter-spacing: -.05em; max-width: 900px; }
.hero p { max-width: 620px; margin: 28px 0 34px; font-size: clamp(1rem, 2vw, 1.24rem); color: rgba(255,255,255,.83); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll { position: absolute; right: max(24px, calc((100vw - 1180px)/2)); bottom: 48px; z-index: 2; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; color: rgba(255,255,255,.7); }

.trust-bar { background: var(--charcoal); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 38px 34px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 1.42rem; font-weight: 400; margin-bottom: 5px; }
.trust-item span { color: rgba(255,255,255,.62); font-size: .9rem; }

.section { padding: 120px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--charcoal); color: white; }
.section-dark .section-copy { color: rgba(255,255,255,.66); }

.environments-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.environment-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 430px; grid-column: span 4; background: #ddd; box-shadow: var(--shadow); }
.environment-card:nth-child(1), .environment-card:nth-child(4) { grid-column: span 7; }
.environment-card:nth-child(2), .environment-card:nth-child(3) { grid-column: span 5; }
.environment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.environment-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,16,14,.74), transparent 62%); }
.environment-card:hover img { transform: scale(1.035); }
.environment-card-content { position: absolute; inset: auto 30px 28px; z-index: 1; color: white; }
.environment-card h3 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.environment-card p { margin: 4px 0 0; color: rgba(255,255,255,.72); }

.editorial { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.editorial-media { position: relative; }
.editorial-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.editorial-badge { position: absolute; right: -32px; bottom: 34px; width: 160px; height: 160px; border-radius: 50%; background: var(--bronze); color: white; display: grid; place-items: center; text-align: center; padding: 22px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--shadow); }
.editorial-copy .section-title { margin-bottom: 26px; }
.editorial-copy > p { color: var(--ink-soft); font-size: 1.04rem; }
.check-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; width: 8px; height: 8px; margin-top: .62em; border-radius: 50%; background: var(--bronze); flex: 0 0 auto; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.process-card { padding: 34px 28px; border: 1px solid rgba(40,37,34,.13); border-radius: 18px; background: rgba(255,255,255,.4); }
.process-number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bronze); color: var(--bronze); font-weight: 700; margin-bottom: 38px; }
.process-card h3 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; margin: 0 0 10px; }
.process-card p { color: var(--ink-soft); margin: 0; font-size: .93rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { border: 0; padding: 0; overflow: hidden; border-radius: 18px; background: #ddd; cursor: zoom-in; position: relative; grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(1) { grid-column: span 7; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(5), .gallery-item:nth-child(6) { grid-column: span 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.gallery-item::after { content: "Ver projeto"; position: absolute; inset: auto 18px 18px auto; background: rgba(255,255,255,.94); color: var(--ink); padding: 9px 14px; border-radius: 999px; font-size: .78rem; opacity: 0; transform: translateY(7px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover img { transform: scale(1.035); filter: brightness(.88); }
.gallery-item:hover::after { opacity: 1; transform: none; }

.corporate { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.corporate-media img { width: 100%; height: 100%; object-fit: cover; }
.corporate-copy { display: grid; align-content: center; padding: clamp(48px, 8vw, 120px); background: var(--charcoal); color: white; }
.corporate-copy p { color: rgba(255,255,255,.68); max-width: 600px; }
.corporate-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin: 28px 0 38px; color: rgba(255,255,255,.84); }
.corporate-list span::before { content: "—"; color: var(--bronze-light); margin-right: 9px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 84px; align-items: start; }
.contact-details { display: grid; gap: 18px; margin-top: 34px; }
.contact-details a, .contact-details div { display: block; padding-bottom: 18px; border-bottom: 1px solid rgba(40,37,34,.12); }
.contact-details small { display: block; color: var(--bronze); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.form-card { background: white; border-radius: var(--radius); padding: 42px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #ded6cc; background: #fcfaf7; border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(164,125,80,.12); }
.form-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .78rem; }

.site-footer { padding: 72px 0 28px; background: #11100f; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding-bottom: 46px; }
.footer-logo { width: 260px; filter: brightness(0) invert(1); opacity: .92; }
.footer-copy { color: rgba(255,255,255,.56); max-width: 440px; }
.footer-title { color: var(--bronze-light); font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: grid; gap: 8px; color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.42); font-size: .8rem; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: white; box-shadow: 0 14px 34px rgba(0,0,0,.25); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

.lightbox { border: 0; padding: 0; width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 32px); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(12,11,10,.88); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; background: var(--charcoal); border-radius: 18px; overflow: hidden; color: white; }
.lightbox img { width: 100%; max-height: 82svh; object-fit: contain; background: #0d0c0b; }
.lightbox figcaption { padding: 16px 20px; color: rgba(255,255,255,.72); }
.lightbox-close { position: absolute; right: 12px; top: 12px; z-index: 2; border: 0; background: rgba(0,0,0,.55); color: white; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.35rem; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .menu-button { display: block; }
  .nav {
    position: fixed;
    inset: 86px 16px auto;
    display: grid;
    gap: 4px;
    padding: 20px;
    border-radius: 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 11px 8px; }
  .nav .button { margin-top: 8px; }
  .section-head { display: grid; gap: 20px; }
  .environment-card, .environment-card:nth-child(n) { grid-column: span 6; min-height: 400px; }
  .editorial { grid-template-columns: 1fr; gap: 56px; }
  .editorial-media { max-width: 720px; }
  .editorial-badge { right: 18px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 18px; }
  .header-inner { min-height: 74px; }
  .brand img { width: 128px; }
  .nav { inset-block-start: 74px; }
  .hero { min-height: 92svh; }
  .hero-content { padding: 134px 0 72px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.2rem); }
  .hero-media::before { background: linear-gradient(90deg, rgba(18,16,14,.82), rgba(18,16,14,.42)); }
  .hero-scroll { display: none; }
  .hero-actions .button { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 26px 4px; }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 84px 0; }
  .environments-grid { display: grid; grid-template-columns: 1fr; }
  .environment-card, .environment-card:nth-child(n) { grid-column: auto; min-height: 430px; }
  .editorial-badge { width: 124px; height: 124px; font-size: .65rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-number { margin-bottom: 22px; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4/5; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { aspect-ratio: 16/10; }
  .corporate { grid-template-columns: 1fr; min-height: 0; }
  .corporate-media { height: 470px; }
  .corporate-copy { padding: 68px 24px; }
  .corporate-list { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
}


/* Ajustes da versão de identidade 3 */
.brand-variant-3 .brand img { width: 176px; }
.brand-variant-3 .footer-logo { width: 300px; }
@media (max-width: 720px) { .brand-variant-3 .brand img { width: 152px; } }
