/* ==========================================================================
   M.T Engenharia & Arquitetura — Editorial Design System
   Paleta oficial: #262626 (Pantone Black 6 C), #D10000 (Red 185 C), #EFEFEF (White 656 C)
   Tipografia: Montserrat (Display) + Inter (Corpo)
   ========================================================================== */

:root {
  --bg-light: #EFEFEF;
  --bg-white: #FFFFFF;
  --bg-dark: #262626;
  --bg-darker: #141414;
  --accent: #D10000;
  --accent-hover: #B00000;
  --text-dark: #262626;
  --text-muted: #595959;
  --text-subtle: #737373;
  --text-light: #EFEFEF;
  --border-light: rgba(38, 38, 38, 0.14);
  --border-dark: rgba(255, 255, 255, 0.14);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: #FFFFFF;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p {
  margin: 0;
  max-width: 68ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Micro-tags estilo PRIMA PARK */
.micro-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.micro-tag--light {
  color: rgba(255, 255, 255, 0.72);
}

/* Buttons (>= 44px touch target) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--dark {
  background: var(--bg-dark);
  color: #FFFFFF;
}
.btn--dark:hover {
  background: #000000;
}
.btn--white {
  background: #FFFFFF;
  color: var(--text-dark);
}
.btn--white:hover {
  background: var(--bg-light);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}
.btn--outline:hover {
  border-color: var(--text-dark);
}
.btn--full {
  width: 100%;
  justify-content: space-between;
}

.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sq-btn:hover {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}
.sq-btn--dark {
  background: rgba(20, 20, 20, 0.76);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}
.sq-btn--dark:hover {
  background: #FFFFFF;
  color: var(--text-dark);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-block: 14px;
  color: #FFFFFF;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(239, 239, 239, 0.94);
  backdrop-filter: blur(12px);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 145px;
  height: auto;
}
.site-header.is-scrolled .brand-logo {
  content: url("./assets/mt-logo-dark.png");
}
.brand-mark {
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-mt {
  color: #FF4D4D;
}
.site-header.is-scrolled .brand-mt,
.site-header--solid .brand-mt {
  color: var(--accent);
}
.brand-lockup--light .brand-mt {
  color: #FF4D4D;
}
.brand-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.site-header.is-scrolled .main-nav {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-light);
}
.main-nav a {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active {
  background: #FFFFFF;
  color: var(--text-dark);
}
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.is-active {
  background: var(--bg-dark);
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: none;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header-phone:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-header.is-scrolled .nav-toggle {
  background: #FFFFFF;
  border-color: var(--border-light);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg-darker);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 96px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-drawer__nav a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
}

/* 1. HERO */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.56) 34%, rgba(14, 14, 14, 0) 63%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.glass-card {
  background: rgba(20, 20, 20, 0.74);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: #FFFFFF;
}
.hero__card {
  padding: 22px 24px;
  max-width: 340px;
}
.hero__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dot-red {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}
.hero__card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero__card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}
.hero__card-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
.hero__card-link:hover {
  border-color: var(--accent);
}

/* Sections */
.section {
  padding-block: clamp(64px, 8vw, 112px);
}
.section--light {
  background: var(--bg-light);
}
.section--white {
  background: var(--bg-white);
}
.section--dark {
  background: var(--bg-dark);
  color: #FFFFFF;
}
.section--darker {
  background: var(--bg-darker);
  color: #FFFFFF;
}
.section-top {
  margin-bottom: 24px;
}
.section-header-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  max-width: 24ch;
}
.section-title--light {
  color: #FFFFFF;
}
.section-lead-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.lead-direct {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.body-copy {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* 2. SOBRE & PILARES */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.sobre-media {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.sobre-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.sobre-body .section-title {
  margin-bottom: 20px;
}
.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
}

.pillars-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}
.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 200;
  color: var(--accent);
  line-height: 1;
}
.pillar-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.pillar-item p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* 3. GALERIA INTERATIVA DE ATUAÇÃO */
.showcase {
  position: relative;
  background: var(--bg-darker);
}
.showcase__stage {
  position: relative;
  min-height: 540px;
  height: clamp(540px, 72vh, 720px);
  overflow: hidden;
}
.showcase__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.showcase__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0.22) 45%, rgba(14, 14, 14, 0.78) 100%);
}
.showcase__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(24px, 4vw, 44px);
}
.glass-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
}
.tab-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab-btn.is-active {
  background: #FFFFFF;
  color: #262626;
  font-weight: 600;
}
@media (max-width: 639px) {
  .glass-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .tab-btn {
    font-size: 0.78rem;
    padding: 8px 10px;
    text-align: center;
  }
}
.showcase__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.showcase__card {
  padding: 24px 28px;
  max-width: 520px;
}
.showcase__card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin: 8px 0 10px;
}
.showcase__card p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
}
.showcase__arrows {
  display: flex;
  gap: 10px;
}

/* 4. MÉTODO + BLUEPRINT GRID BACKGROUND (ApexBuild ref) */
.blueprint-grid-bg {
  background-image:
    linear-gradient(to right, rgba(38, 38, 38, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 38, 38, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.mosaic-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
}
.mosaic-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.mosaic-caption {
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
}
.mosaic-text-block {
  padding: 12px 0;
}

/* 5. BLUEPRINTS INTERATIVOS (PRIMA PARK + GSAP + Three.js) */
.blueprint-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.blueprint-viewer-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.blueprint-toolbar-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.blueprint-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #FAFAFA;
}
.blueprint-mode-switch {
  display: inline-flex;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}
.mode-btn {
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mode-btn.is-active {
  background: var(--bg-dark);
  color: #FFFFFF;
}
.blueprint-spec-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.blueprint-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 420;
  background: #FFFFFF;
  overflow: hidden;
}
.bp-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.blueprint-viewer-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.bp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-meta strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
}
.bp-meta span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.bp-pagination {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.bp-nav-arrows {
  display: flex;
  gap: 8px;
}

/* Lista Direita estilo PRIMA PARK */
.bp-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.bp-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bp-list__item:first-child {
  border-top: 1px solid var(--border-light);
}
.bp-list__item:hover {
  color: var(--text-dark);
}
.bp-list__item.is-active {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}
.bp-list__item.is-active .bp-idx {
  color: var(--accent);
}
.bp-cat-description {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* 6. CENÁRIOS / PARA QUEM É */
.scenarios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.scenario-card {
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-light);
}
.scenario-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.scenario-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* 7. PROCESSO (3 Passos) */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}
.step-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* 8. DIFERENCIAIS */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 12px 36px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.diff-item {
  padding-top: 20px;
}
.diff-item h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #FFFFFF;
}
.diff-item p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
}
.diff-cta {
  margin-top: 32px;
}

/* 9. FAQ */
.faq-container {
  max-width: 920px;
}
.faq-list {
  border-top: 1px solid var(--border-light);
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-trigger {
  width: 100%;
  min-height: 60px;
  padding: 18px 4px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.faq-icon {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  padding: 0 4px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 10. CONTATO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info .micro-tag {
  margin-bottom: 14px;
}
.contact-info .section-title {
  margin-bottom: 16px;
}
.contact-lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
}
.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}
.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.contact-meta-grid a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 36px);
}
.contact-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.contact-card__sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 24px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.88);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #1B1B1B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #FFFFFF;
  outline: none;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.form-feedback {
  min-height: 22px;
  font-size: 0.86rem;
  margin-bottom: 12px;
  color: #FFB4B4;
}
.form-feedback.is-success {
  color: #9EE6A8;
}

/* 11. RODAPÉ */
.site-footer {
  background: #0E0E0E;
  color: rgba(255, 255, 255, 0.78);
  padding-block: 56px 88px;
  border-top: 1px solid var(--border-dark);
}
.site-footer--compact {
  padding-block: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-tagline {
  margin-top: 14px;
  font-size: 0.88rem;
  max-width: 42ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 24px;
}
.footer-cols h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-cols a {
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-cols a:hover {
  color: #FFFFFF;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cookie-manage-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
.footer-credit {
  font-weight: 600;
  color: #FFFFFF;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1B7F3C;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}
@media (min-width: 768px) {
  .whatsapp-float {
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
  }
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #156630;
}

.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 70px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  background: #242424;
  color: #fff;
  box-shadow: 0 8px 24px #0004;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #3b3b3b; }
@media (min-width: 768px) {
  .back-to-top { right: 20px; bottom: 84px; width: 54px; height: 54px; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 420px;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.cookie-banner p {
  font-size: 0.84rem;
  margin-bottom: 14px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

/* Legal & 404 Pages */
.legal-page {
  background: var(--bg-light);
}
.legal-main {
  padding: 120px 0 72px;
}
.legal-container {
  max-width: 760px;
}
.legal-container h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 10px 0 8px;
}
.legal-updated {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.legal-container section {
  margin-bottom: 24px;
}
.legal-container h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.legal-container p {
  color: var(--text-muted);
}
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.error-404__inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0;
}
.error-404__inner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   DO PROJETO À OBRA: rolagem fixa (ref. madegood.space, "Rear axonometric")
   ========================================================================== */
.build-seq {
  position: relative;
  background: #1E2326;
  color: #FFFFFF;
  height: 340vh;
}
.build-seq__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding-block: 88px 28px;
  overflow: hidden;
}
.build-seq__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
}
.build-seq__head .section-title {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  margin-top: 8px;
}
.build-seq__intro {
  max-width: 40ch;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.72);
}
.build-seq__stage {
  position: relative;
  width: 100%;
  max-height: 62vh;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1E2326;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@supports (max-height: 62svh) {
  .build-seq__stage { max-height: 62svh; }
}
.build-seq__stage picture { display: contents; }
.bs-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 55% 55%;
}
#bs-model { display: none; width: 100%; height: 100%; position: absolute; inset: 0; }
.build-seq.has-model #bs-model { display: block; }
.build-seq.has-model .bs-fallback { display: none; }
.build-seq:not(.has-model) { height: auto; }
.build-seq:not(.has-model) .build-seq__sticky { position: relative; }
.build-seq:not(.has-model) :is(.bs-hud, .bs-steps, .bs-progress) { display: none; }

.bs-hud {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  background: rgba(20, 22, 24, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.76rem;
}
.bs-counter { font-family: var(--font-display); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); }
.bs-counter strong { color: #FFFFFF; }
.bs-label { color: rgba(255, 255, 255, 0.86); }
.bs-steps {
  list-style: none;
  margin: 16px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bs-step {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
  transition: color 0.3s ease;
}
.bs-step span { color: inherit; margin-right: 6px; font-weight: 300; }
.bs-step.is-active { color: #FFFFFF; }
.bs-step.is-active span { color: #FF4D4D; }
.bs-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.bs-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #D10000;
  transform: scaleX(0);
  transform-origin: left center;
}
@media (max-width: 700px) {
  .build-seq { height: 300vh; }
  .build-seq__intro { display: none; }
  .bs-label { display: none; }
  .build-seq__stage { aspect-ratio: 3 / 2; max-height: none; }
  .bs-step { font-size: 0.7rem; letter-spacing: 0.03em; }
  .bs-step span { display: block; margin: 0 0 2px; }
}
/* Sem JS: mostra só a casa pronta, sem rolagem fixa */
html:not(.js-ready) .build-seq { height: auto; }
html:not(.js-ready) .build-seq__sticky { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .build-seq.has-model { height: auto; }
  .build-seq.has-model .build-seq__sticky { position: relative; }
  .build-seq__intro, .bs-progress { display: none; }
}

/* ==========================================================================
   Animações de Entrada (Regra fixa: 400-700ms, ease-out, transform + opacity)
   Sem JS ou com prefers-reduced-motion, o conteúdo permanece 100% visível.
   ========================================================================== */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 0.65s var(--ease-out) forwards;
}
html.js-ready .hero-enter:nth-child(2) { animation-delay: 0.08s; }
html.js-ready .hero-enter:nth-child(3) { animation-delay: 0.16s; }
html.js-ready .hero-enter:nth-child(4) { animation-delay: 0.24s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-ready .reveal,
  html.js-ready .hero-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .btn, .whatsapp-float, .showcase__stage img {
    transition: none;
  }
}

/* ==========================================================================
   Breakpoints Responsivos (Mobile-First)
   ========================================================================== */
@media (min-width: 768px) {
  .sobre-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .pillars-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosaic-card--wide {
    grid-column: span 2;
  }
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .main-nav {
    display: inline-flex;
  }
  .header-phone {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .hero__content {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .hero__card {
    justify-self: end;
  }
  .blueprint-split {
    grid-template-columns: 1.12fr 0.88fr;
  }
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
