/* ===================================================================
   Mario Martins · Arquiteto — Design System
   Paleta: preto profundo quente + dourado champanhe
   =================================================================== */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* Preto profundo quente — nunca azulado */
  --bg-deep:    #0a0908;
  --bg-mid:     #110f0c;
  --bg-surface: #161310;

  /* Dourado champanhe — extraído da logo */
  --gold:       #c4aa7c;
  --gold-light: #dfcaa4;
  --gold-warm:  #b89a6a;
  --gold-deep:  #8f7852;
  --gold-halo:  #ede5d5;

  /* Texto */
  --text-primary:   #f5f2eb;
  --text-secondary: #c8c2b8;
  --text-muted:     #968f82;

  /* Tipografia */
  --ff-display: 'Outfit', system-ui, sans-serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Espaçamentos */
  --space-xs:  clamp(0.5rem,  1vw,  0.75rem);
  --space-sm:  clamp(1rem,    2vw,  1.5rem);
  --space-md:  clamp(2rem,    4vw,  3rem);
  --space-lg:  clamp(3rem,    6vw,  5rem);
  --space-xl:  clamp(5rem,    10vw, 8rem);
  --space-2xl: clamp(7rem,    14vw, 12rem);

  /* Transições */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.5s;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(0.938rem, 1vw + 0.5rem, 1.063rem);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  /* Atmosfera contínua — gradiente sutil, sem repintura por rolagem */
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(196,170,124,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 90%, rgba(143,120,82,0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Foco visível para acessibilidade */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- SELEÇÃO ---------- */
::selection {
  background: rgba(196,170,124,0.35);
  color: var(--text-primary);
}

/* ===================================================================
   SHINY SWEEP GLOW — botões CTA
   Brilho percorre o botão em ciclo automático (mobile não tem hover)
   =================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-warm) 60%, var(--gold-deep) 100%);
  padding: 1em 2em;
  border: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  min-height: 48px;
  min-width: 48px;
  z-index: 1;
}

.btn__icon {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.btn span:not(.btn__sweep) {
  position: relative;
  z-index: 2;
}

/* Sweep glow automático */
.btn__sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(237,229,213,0.5) 45%,
    rgba(255,255,255,0.65) 50%,
    rgba(237,229,213,0.5) 55%,
    transparent 80%
  );
  transform: translateX(-110%);
  animation: sweep-auto 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep-auto {
  0%   { transform: translateX(-110%); }
  40%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

/* Hover — resposta adicional */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196,170,124,0.35), 0 0 0 1px rgba(196,170,124,0.2);
}

.btn:active {
  transform: translateY(0);
}

/* Variante nav */
.btn--nav {
  padding: 0.7em 1.4em;
  font-size: 0.813rem;
}

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(var(--space-xs) + env(safe-area-inset-top, 0px)) calc(var(--space-sm) + env(safe-area-inset-right, 0px)) var(--space-xs) calc(var(--space-sm) + env(safe-area-inset-left, 0px));
  transition: background var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(10,9,8,0.96);
  box-shadow: 0 1px 0 rgba(196,170,124,0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 56px;
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.nav__brand:hover {
  opacity: 0.85;
}

.nav__logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav__logo {
    height: 48px;
    max-width: 150px;
  }
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  z-index: 110;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform var(--dur) var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu */
.nav__menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-md);
  padding: calc(var(--space-2xl) + env(safe-area-inset-top, 0px)) calc(var(--space-md) + env(safe-area-inset-right, 0px)) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)) var(--space-md);
  background: rgba(10,9,8,0.98);
  border-left: 1px solid rgba(196,170,124,0.12);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    visibility 0s linear var(--dur);
  z-index: 105;
}

.nav__menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    visibility 0s;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav__link {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.3s;
  display: inline-block;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--gold-light);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    overflow-y: visible;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    padding: 0;
    background: none;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav__list {
    flex-direction: row;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .nav__link {
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(56px + var(--space-md)) var(--space-sm) var(--space-md);
  overflow: hidden;
}

/* Halos de atmosfera */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__halo {
  position: absolute;
  border-radius: 50%;
}

.hero__halo--1 {
  width: clamp(280px, 45vw, 600px);
  height: clamp(280px, 45vw, 600px);
  top: 0;
  right: 0;
  background: radial-gradient(circle, rgba(196,170,124,0.10) 0%, transparent 70%);
  animation: halo-breathe-1 8s ease-in-out infinite;
}

.hero__halo--2 {
  width: clamp(200px, 35vw, 450px);
  height: clamp(200px, 35vw, 450px);
  bottom: 5%;
  left: 0;
  background: radial-gradient(circle, rgba(184,154,106,0.07) 0%, transparent 70%);
  animation: halo-breathe-2 10s ease-in-out infinite 2s;
}

@keyframes halo-breathe-1 {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.95; }
}

@keyframes halo-breathe-2 {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.8; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__pre {
  font-family: var(--ff-body);
  font-size: clamp(0.75rem, 0.5vw + 0.6rem, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw + 1rem, 9rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero__title-line {
  display: block;
  color: var(--text-primary);
}

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto var(--space-md);
}

.hero__cta-wrap {
  margin-bottom: var(--space-sm);
}

.hero__location {
  font-size: clamp(0.688rem, 0.4vw + 0.55rem, 0.813rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll hint — fio de luz animado */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 100%);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: bottom; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: bottom; }
}

/* ===================================================================
   SOBRE — Apresentação silenciosa e monumental
   =================================================================== */
.sobre {
  position: relative;
  padding: var(--space-2xl) var(--space-sm);
}

.sobre__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.sobre__media {
  position: relative;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.sobre__img {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(196, 170, 124, 0.22);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(196, 170, 124, 0.08);
}

/* Halo de luz atrás da foto */
.sobre__img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(196, 170, 124, 0.14) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.sobre__content {
  max-width: 580px;
  justify-self: center;
  width: 100%;
}

.sobre__label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.sobre__lead {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.2vw + 0.5rem, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.sobre__support {
  font-family: var(--ff-body);
  font-size: clamp(0.938rem, 0.4vw + 0.8rem, 1.063rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 520px;
}

/* Fio de luz horizontal */
.sobre__fio {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

@media (min-width: 900px) {
  .sobre__inner {
    grid-template-columns: minmax(320px, 440px) 1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .sobre__media {
    justify-self: end;
  }

  .sobre__content {
    justify-self: start;
    max-width: 580px;
  }
}

/* ===================================================================
   ATUAÇÃO — Estrutura de conteúdo das quatro frentes
   =================================================================== */
.atuacao {
  position: relative;
  padding: var(--space-2xl) var(--space-sm);
}

.atuacao__inner {
  max-width: 760px;
  margin: 0 auto;
}

.atuacao__header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.atuacao__label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.atuacao__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.2vw + 0.5rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.atuacao__list {
  display: flex;
  flex-direction: column;
}

.atuacao__item {
  display: grid;
  grid-template-columns: clamp(2.5rem, 4vw, 3.25rem) 1fr;
  align-items: baseline;
  gap: var(--space-sm);
  padding: clamp(var(--space-md), 3vw, var(--space-lg)) 0;
  position: relative;
}

.atuacao__num {
  font-family: var(--ff-body);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  flex-shrink: 0;
}

.atuacao__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.atuacao__name {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  transition: color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.atuacao__item:hover .atuacao__name {
  color: var(--gold-light);
  transform: translateX(4px);
}

.atuacao__desc {
  font-family: var(--ff-body);
  font-size: clamp(0.875rem, 0.3vw + 0.75rem, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Fio de luz entre itens */
.atuacao__fio {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196,170,124,0.20) 15%,
    rgba(196,170,124,0.20) 85%,
    transparent 100%
  );
  transition: opacity 0.3s var(--ease-smooth);
}

.atuacao__item:hover .atuacao__fio {
  opacity: 0.9;
}

/* ===================================================================
   PROJETOS (PORTFÓLIO AUTORAL)
   Uniformidade métrica rigorosa: proporção 1:1, mesmo tamanho,
   sem caixa cinza, sem letterbox, preenchimento total.
   =================================================================== */
.projetos {
  position: relative;
  padding: var(--space-2xl) var(--space-sm) var(--space-xl);
  overflow: hidden;
}

.projetos__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.projetos__halo {
  position: absolute;
  top: 15%;
  left: 5%;
  right: 5%;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(196,170,124,0.07) 0%, transparent 68%);
}

.projetos__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.projetos__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}

.projetos__label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.projetos__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.projetos__lead {
  font-size: clamp(0.938rem, 0.5vw + 0.8rem, 1.063rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grade de cards rigorosamente uniforme */
.projetos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .projetos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .projetos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* Card individual: proporção 1:1 absoluta */
.projeto-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--gold-wire);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-smooth);
}

.projeto-card:hover,
.projeto-card:focus-within {
  border-color: rgba(196, 170, 124, 0.45);
}

/* Botão que engloba a mídia para acessibilidade interativa */
.projeto-card__trigger {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.projeto-card__trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.projeto-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Imagem normalizada em 1:1, preenche 100% sem corte no CSS e sem faixa vazia */
.projeto-card__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.6s var(--ease-smooth);
}

.projeto-card:hover .projeto-card__img {
  transform: scale(1.035);
}

/* Overlay sutil que NÃO esconde a foto nem apaga o imóvel */
.projeto-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(180deg, transparent 65%, rgba(10, 9, 8, 0.35) 100%);
  opacity: 0.8;
  transition: opacity 0.4s var(--ease-smooth);
}

.projeto-card:hover .projeto-card__overlay {
  opacity: 1;
}

/* Botão discreto no canto para indicar ação de ampliação */
.projeto-card__btn-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.92);
  border: 1px solid var(--gold-wire);
  color: var(--gold-light);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.projeto-card:hover .projeto-card__btn-expand {
  background: rgba(18, 16, 14, 0.98);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.08);
}



/* ===================================================================
   MODAL / LIGHTBOX
   Zero upscale, foco acessível, Escape para fechar, trava de scroll
   =================================================================== */
.projeto-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}

.projeto-modal[hidden] {
  display: none;
}

.projeto-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.96);
}

.projeto-modal__container {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 860px);
  max-height: min(90dvh, 860px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--gold-wire);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(196, 170, 124, 0.12);
}

.projeto-modal__close {
  all: unset;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.95);
  border: 1px solid var(--gold-wire);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.projeto-modal__close:hover,
.projeto-modal__close:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.08);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.projeto-modal__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projeto-modal__img {
  width: 100%;
  height: 100%;
  max-width: 959px;
  max-height: 959px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .projeto-card__img,
  .projeto-card__btn-expand,
  .projeto-modal__close {
    transition: none !important;
    transform: none !important;
  }
}

/* ===================================================================
   CONTATO
   =================================================================== */
.contato {
  position: relative;
  padding: var(--space-2xl) var(--space-sm) var(--space-xl);
  text-align: center;
}

.contato__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.contato__lead {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.8vw + 0.5rem, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 660px;
}

.btn--contato {
  font-size: clamp(0.938rem, 0.4vw + 0.8rem, 1.063rem);
  padding: 1.15em 2.2em;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  border-radius: 2px;
}

.btn--contato span:not(.btn__sweep) {
  text-align: center;
  line-height: 1.35;
}

/* Social links */
.social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.813rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6em 0;
  min-height: 48px;
  transition: color 0.3s;
}

.social__link:hover,
.social__link:focus-visible {
  color: var(--gold-light);
}

.social__link svg {
  flex-shrink: 0;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  position: relative;
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(196,170,124,0.10);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  text-align: center;
}

.footer__brand {
  font-family: var(--ff-display);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer__sep {
  color: var(--gold-deep);
}

.footer__location {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===================================================================
   PREFERS-REDUCED-MOTION — acabamento permanece, movimento para
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn__sweep {
    animation: none;
    opacity: 0.15;
    transform: translateX(0);
    background: linear-gradient(135deg, rgba(237,229,213,0.2) 0%, transparent 100%);
  }

  .hero__scroll-line {
    animation: none;
    opacity: 0.5;
    transform: scaleY(1);
  }

  .hero__halo {
    animation: none;
  }
}

/* ===================================================================
   BODY OVERLAY — menu mobile aberto
   =================================================================== */
body.menu-open {
  overflow: hidden;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,9,8,0.6);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}

/* ===================================================================
   RESPONSIVE — mobile-first breakpoints
   =================================================================== */

/* 320–430px : small phones */
@media (max-width: 430px) {
  .hero__title {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .atuacao__name {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .contato__lead {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .btn--hero,
  .btn--contato {
    width: 100%;
    justify-content: center;
    padding: 1em 1.25em;
  }

  .social {
    flex-direction: column;
    align-items: center;
  }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 1023px) {
  .hero__title {
    font-size: clamp(4rem, 10vw, 6rem);
  }
}

/* Desktop large */
@media (min-width: 1024px) {
  .site-header {
    padding: var(--space-xs) var(--space-md);
  }

  .hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .sobre {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .atuacao {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .contato {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* Ultrawide */
@media (min-width: 1920px) {
  body {
    font-size: 1.125rem;
  }
}
