/* =========================================================
   MONTELE REDESIGN — SHARED SYSTEM
   ========================================================= */

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6,p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* -------------------- TOKENS — BASE -------------------- */
:root {
  /* brand greens — modernizados */
  --green-900: #062b1a;
  --green-800: #0a3d25;
  --green-700: #0f5634;
  --green-600: #167a48;   /* primário novo */
  --green-500: #1ea25e;
  --green-400: #4fc184;
  --green-300: #8bd9ab;
  --green-100: #dbf2e4;
  --green-50:  #f1faf4;

  /* neutros */
  --ink-950: #0b0f0d;
  --ink-900: #111714;
  --ink-800: #1b211d;
  --ink-700: #2b332e;
  --ink-600: #49514b;
  --ink-500: #6b726d;
  --ink-400: #9aa09c;
  --ink-300: #c7ccc9;
  --ink-200: #e2e6e3;
  --ink-100: #eef1ef;
  --ink-50:  #f6f8f7;
  --white:   #ffffff;

  --accent: #d46a2c;  /* laranja Montele, usado no monitoramento */

  /* fontes */
  --font-sans: "Inter", "Söhne", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-display: "Inter", "Söhne", ui-sans-serif, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "GT Super", ui-serif, Georgia, serif;

  /* density */
  --dens: 1;
  --pad-section: calc(120px * var(--dens));
  --pad-block: calc(64px * var(--dens));

  /* shape */
  --radius: 2px;

  /* map semânticos default */
  --bg: var(--white);
  --bg-alt: var(--ink-50);
  --bg-dark: var(--ink-950);
  --fg: var(--ink-900);
  --fg-dim: var(--ink-500);
  --rule: var(--ink-200);
  --brand: var(--green-600);
  --brand-ink: var(--green-800);
  --brand-on: var(--white);

  /* easing */
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* =========================================================
   THEME — ENGENHARIA
   Grid medido, mono nas legendas, verde saturado, fundos claros
   com linhas finas, feel industrial-limpo.
   (variação única do site — promovida a :root)
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f4;
  --bg-dark: #0b0f0d;
  --footer-bg: #2e332f;
  --fg: #111714;
  --fg-dim: #6b726d;
  --rule: #d6dbd8;
  --brand: #0f5634;
  --brand-ink: #062b1a;
  --brand-on: #ffffff;
  --display-stack: "Inter", "Söhne", ui-sans-serif, sans-serif;
  --display-weight: 650;
  --display-tracking: -0.03em;
  --heading-case: none;
}


/* -------------------- TYPE SYSTEM -------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}

.display {
  font-family: var(--display-stack, var(--font-display));
  font-weight: var(--display-weight, 700);
  letter-spacing: var(--display-tracking, -0.03em);
  text-transform: var(--heading-case, none);
  line-height: 0.96;
  color: var(--fg);
}
h1.display, .display-xl { font-size: clamp(44px, 7.2vw, 124px); }
h2.display, .display-lg { font-size: clamp(36px, 4.8vw, 72px); line-height: 1; }
h3.display, .display-md { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; }

.title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.title-lg { font-size: clamp(22px, 2vw, 30px); }
.title-md { font-size: clamp(18px, 1.4vw, 22px); }

.body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
}
.body-lg { font-size: clamp(18px, 1.3vw, 22px); line-height: 1.5; }
.body-sm { font-size: 14px; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.dim { color: var(--fg-dim); }

/* -------------------- LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}
.section {
  padding: clamp(64px, 8vw, 140px) 0;
}
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.vrule {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all .25s var(--ease);
  cursor: pointer;
  text-transform: none;
}
.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width .25s var(--ease);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

.btn-primary {
  background: var(--brand);
  color: var(--brand-on);
}
.btn-primary:hover { background: var(--brand-ink); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

/* -------------------- HEADER -------------------- */
/* Reserva espaço do nav enquanto chrome.js ainda não injetou — evita layout shift vertical */
#nav-slot {
  display: block;
  min-height: 88px;
}
@media (max-width: 900px) {
  #nav-slot { min-height: 72px; }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity .2s var(--ease);
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
}
/* WhatsApp mobile: oculto no desktop */
.nav-whatsapp-mobile { display: none; }
.nav-item {
  display: inline-flex;
  align-items: center;
}
.nav-links > a,
.nav-item > a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  position: relative;
  padding: 8px 0;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav-links > a:hover,
.nav-item > a:hover { color: var(--brand); }
.nav-links > a.current::after,
.nav-item.current > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
}

/* Submenus */
.nav-item.has-sub { position: relative; }
.nav-item.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.5;
  transition: transform .2s;
  vertical-align: middle;
}
.nav-item.has-sub:hover > a::after {
  transform: rotate(225deg) translateY(-2px);
}
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-sub a {
  display: block !important;
  font-size: 13px;
  padding: 10px 14px !important;
  color: var(--fg);
  border-radius: 3px;
  white-space: nowrap;
  transition: background .15s, color .15s;
  width: 100%;
}
.nav-sub a::after { display: none !important; }
.nav-sub a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}
.nav-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  line-height: 1.2;
}
.nav-phone-row { display: flex; gap: 6px; align-items: baseline; }
.nav-phone strong { color: var(--fg); font-weight: 500; letter-spacing: 0.02em; }
.nav-whatsapp-desktop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0e5634;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s var(--ease);
}
.nav-whatsapp-desktop:hover { opacity: 0.75; }
.nav-whatsapp-desktop svg { flex-shrink: 0; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--fg);
  position: relative;
  z-index: 60;
  cursor: pointer;
}
.nav-mobile-toggle .icon-close { display: none; }
body.menu-open .nav-mobile-toggle .icon-menu { display: none; }
body.menu-open .nav-mobile-toggle .icon-close { display: inline-block; }

@media (max-width: 900px) {
  .nav-inner { height: 72px; gap: 12px; }
  .nav-logo-img { height: 42px; }
  .nav-links, .nav-phone, .nav-residencial { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  /* WhatsApp mobile: visível apenas no mobile, entre o logo e o hamburger */
  .nav-whatsapp-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0e5634;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background .2s var(--ease), transform .12s var(--ease);
    white-space: nowrap;
    /* Centralização absoluta entre logo e hamburger */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-whatsapp-mobile:hover { background: rgba(14,86,52,0.08); }
  .nav-whatsapp-mobile:active { transform: translate(-50%, -50%) scale(0.97); }
  .nav-whatsapp-mobile svg { flex-shrink: 0; }
  /* nav-inner precisa ser relative para o absolute funcionar */
  .nav-inner { position: relative; justify-content: space-between; }
  /* Trava scroll do body quando menu aberto */
  body.menu-open { overflow: hidden; }
  /* CRITICAL: backdrop-filter cria containing block para position:fixed descendentes.
     Remover quando o menu está aberto para que os overlays fixem no viewport. */
  body.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body.menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    padding: 96px clamp(20px, 5vw, 32px) 40px;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 50;
    animation: nav-slide-in .22s var(--ease);
  }
  body.menu-open .nav-links > a,
  body.menu-open .nav-item > a {
    font-size: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--rule);
    width: 100%;
    display: block;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  body.menu-open .nav-links > a.current {
    color: var(--brand);
  }
  body.menu-open .nav-links > a.current::after { display: none; }
  body.menu-open .nav-item { width: 100%; }
  body.menu-open .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 16px;
    background: transparent;
    min-width: 0;
  }
  body.menu-open .nav-sub a { font-size: 15px; padding: 8px 0; }
}
@keyframes nav-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------- FOOTER -------------------- */
.footer {
  background: var(--footer-bg, var(--ink-700));
  color: var(--ink-200);
  padding: clamp(40px, 5vw, 72px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 20px;
  margin-top: 0;
}
.footer-logo-img { height: 56px; width: auto; display: block; }
.footer-logo { height: 36px; width: auto; margin-bottom: 24px; }

/* Footer hero band — logo imponente */
.footer-hero {
  padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-hero-logo {
  height: clamp(48px, 6vw, 80px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 24px rgba(0,0,0,0.25));
}
.footer-hero-tagline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 26px);
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}
.footer-hero-rule {
  width: 56px;
  height: 2px;
  background: var(--green-400);
  margin-top: 6px;
}
.footer .big-phone {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
  display: block;
  text-decoration: none;
  transition: text-decoration-color .2s;
  white-space: nowrap;
}
.footer a.big-phone:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 4px;
}
@media (max-width: 640px) {
  .footer .big-phone { font-size: 26px; }
}
.footer ul li { padding: 6px 0; }
.footer ul a {
  font-size: 14px;
  color: var(--ink-300);
  transition: color .2s;
}
.footer ul a:hover { color: rgb(14, 86, 52); }
/* Item Residencial no footer — toque camelo/home só no hover */
.footer ul a.footer-nav-residencial:hover { color: #c5a47f; }
.footer-privacy-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.25);
  transition: color .2s, text-decoration-color .2s;
}
.footer-privacy-link:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.7);
}
.footer-rule { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-400);
  font-family: var(--font-mono);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* -------------------- TWEAKS PANEL -------------------- */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: #0b0f0d;
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  width: 280px;
  font-family: var(--font-sans);
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08) inset;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa09c;
  margin: 0 0 14px 0;
  font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks h5 button {
  background: transparent;
  border: 0;
  color: #9aa09c;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
.tweaks .group + .group { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.tweaks label {
  display: block;
  font-size: 11px;
  color: #c7ccc9;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tweaks .seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  background: #1b211d;
  padding: 3px;
  border-radius: 6px;
}
.tweaks .seg button {
  background: transparent;
  border: 0;
  padding: 8px;
  color: #c7ccc9;
  border-radius: 4px;
  font-size: 12px;
  transition: all .2s;
}
.tweaks .seg button.active {
  background: var(--green-600);
  color: #fff;
}
.tweaks .color-row {
  display: flex;
  gap: 6px;
}
.tweaks .color-row button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  transition: all .2s;
}
.tweaks .color-row button.active {
  border-color: #fff;
  transform: scale(1.1);
}
.tweaks input[type=range] {
  width: 100%;
  accent-color: var(--green-500);
}
.tweaks-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #0b0f0d;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.tweaks-toggle:hover { transform: scale(1.05); }

/* -------------------- UTILS -------------------- */
.shift-up { transform: translateY(-1em); }
.num-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.divider-num {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.divider-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider-num.light { color: rgba(255,255,255,0.6); }
.divider-num.light::after { background: rgba(255,255,255,0.2); }

/* image treatments per theme */
.photo { position: relative; overflow: hidden; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.02); }
a.photo { display: block; text-decoration: none; color: inherit; cursor: pointer; }

.photo.bw img {
  filter: grayscale(1) contrast(1.05);
}

.dark-block { background: var(--bg-dark); color: #f0f0ed; }
.dark-block .dim { color: rgba(255,255,255,0.55); }
.dark-block .rule { background: rgba(255,255,255,0.12); }

/* Skip-to-content link — aparece só quando focado via teclado (acessibilidade) */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  z-index: 1000;
  transition: top .18s var(--ease);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* -------------------- NAV RESIDENCIAL (item isolado) -------------------- */
.nav-residencial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  flex-shrink: 0;
}
.nav-residencial .nav-residencial-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5a47f;
  flex-shrink: 0;
}
.nav-residencial:hover { color: #c5a47f; }
.nav-residencial.current .nav-residencial-label { color: #c5a47f; }

/* Variant A — Serif italic (default, elegante) */
.nav-residencial[data-residencial-style="serif-italic"] .nav-residencial-label {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* Variant B — Small caps label (técnico, industrial) */
.nav-residencial[data-residencial-style="small-caps"] .nav-residencial-label {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Variant C — Outlined pill (destaque leve, "outro produto") */
.nav-residencial[data-residencial-style="pill"] {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
}
.nav-residencial[data-residencial-style="pill"]:hover {
  border-color: var(--brand);
}
.nav-residencial[data-residencial-style="pill"] .nav-residencial-label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Mobile — no hambúrguer vira item separado com divisor */
@media (max-width: 900px) {
  .nav-residencial {
    display: none;
  }
  /* Quando o menu está aberto, o botão Residencial fica fixado no rodapé do overlay */
  body.menu-open .nav-residencial {
    display: inline-flex !important;
    position: fixed;
    left: clamp(20px, 5vw, 32px);
    right: clamp(20px, 5vw, 32px);
    bottom: 24px;
    z-index: 51;
    justify-content: center;
    padding: 18px 24px;
    background: var(--ink-900, #0f1311);
    color: #fff;
    border-radius: 4px;
    border: 0;
  }
  body.menu-open .nav-residencial .nav-residencial-label {
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.16em;
  }
  body.menu-open .nav-residencial[data-residencial-style="small-caps"] .nav-residencial-label,
  body.menu-open .nav-residencial[data-residencial-style="mono-caps"] .nav-residencial-label {
    font-size: 13px;
    color: #fff;
  }
  body.menu-open .nav-residencial .nav-residencial-mark {
    background: var(--brand, #b8935f);
  }
  /* Deixa espaço para o botão residencial no fim do overlay */
  body.menu-open .nav-links { padding-bottom: 120px; }
}

/* -------------------- MOBILE HERO IMAGE POSITIONING --------------------
   Cada hero pode definir `style="--m-pos: X% Y%"` no <img> para reenquadrar
   no mobile sem precisar de arquivo separado. Ex: --m-pos: 65% center
   Usar !important para vencer object-position inline declarado pra desktop.
*/
@media (max-width: 720px) {
  .hero-media img[style*="--m-pos"],
  .p-hero-media img[style*="--m-pos"] {
    object-position: var(--m-pos) !important;
    /* Remove transform de scale desktop que costuma atrapalhar no mobile */
    transform: none !important;
  }
}
