/* ============================================================
   XCD Construtora e Incorporadora — styles.css
   Tokens: xcd-tokens.json v1.0
   ============================================================ */

/* ---- 1. DESIGN TOKENS (CSS Custom Properties) ---- */
:root {
  /* Cores */
  --xcd-red:      #FA1A14;
  --xcd-red-600:  #C81511;
  --xcd-red-700:  #8F0F0C;
  --xcd-red-050:  #FEECEB;
  --xcd-ink:      #221A19;
  --xcd-brown:    #533A3A;
  --xcd-gray-600: #6E6360;
  --xcd-line:     #E8E4E2;
  --xcd-off:      #F7F5F4;
  --xcd-white:    #FFFFFF;

  /* Tipografia */
  --font-display: 'Archivo', sans-serif;
  --font-head:    'Archivo', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Forma */
  --radius-card:  12px;
  --radius-btn:   6px;
  --radius-img:   10px;
  --shadow-card:  0 8px 28px rgba(34, 26, 25, .10);

  /* Espaçamento */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-12: 96px;

  /* Layout */
  --container: 1200px;
  --gutter:    24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--xcd-ink);
  background: var(--xcd-white);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  min-width: 360px;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- 3. LAYOUT UTILITIES ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--sp-12) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--sp-8) 0; }
}

/* ---- 4. TIPOGRAFIA ---- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0625;
  letter-spacing: -0.01em;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.136;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1875;
}

.h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 22px);
  line-height: 1.2727;
}

.body-l {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 18px);
  line-height: 1.5556;
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.625;
}

.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3846;
}

.overline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3333;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--xcd-red);
}

/* ---- 5. BOTÕES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--xcd-ink);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--xcd-red-600);
  color: var(--xcd-white);
}
.btn--primary:hover { background: var(--xcd-red-700); }
.btn--primary:active { background: var(--xcd-red-700); }

.btn--secondary {
  background: var(--xcd-white);
  color: var(--xcd-ink);
  border: 1.5px solid var(--xcd-ink);
}
.btn--secondary:hover { background: var(--xcd-off); }
.btn--secondary:active { background: var(--xcd-line); }

/* ---- 6. HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--xcd-line);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 16px rgba(34, 26, 25, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 80px para dar respiro ao logo de 54px (72px deixava só 9px por lado) */
  height: 80px;
  gap: var(--sp-3);
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 54px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--xcd-ink);
  transition: color 200ms ease;
  padding: var(--sp-1) 0;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--xcd-red);
  transition: width 200ms ease;
}

.header-nav a:hover { color: var(--xcd-red-600); }
.header-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Seletor de idioma */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--xcd-ink);
  padding: 8px 10px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--xcd-line);
  background: var(--xcd-white);
  transition: border-color 200ms ease;
  min-height: 44px;
}

.lang-btn:hover { border-color: var(--xcd-ink); }
.lang-btn:focus-visible { outline: 2px solid var(--xcd-ink); outline-offset: 2px; }

.lang-btn .flag { font-size: 16px; line-height: 1; }
.lang-btn .lang-code { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.lang-btn .chevron { font-size: 10px; transition: transform 200ms ease; }
.lang-selector.open .chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--xcd-white);
  border: 1px solid var(--xcd-line);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 100;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--xcd-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease;
  width: 100%;
  text-align: left;
}

.lang-option:hover { background: var(--xcd-off); }
.lang-option:focus-visible { outline: 2px solid var(--xcd-ink); outline-offset: -2px; }
.lang-option.active { background: var(--xcd-red-050); color: var(--xcd-red-700); font-weight: 600; }
.lang-option .flag { font-size: 18px; }

/* Menu hambúrguer (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--xcd-line);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--xcd-ink);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--xcd-white);
  z-index: 999;
  padding: var(--sp-4) var(--gutter);
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--xcd-ink);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--xcd-line);
}

.mobile-nav .btn--primary {
  margin-top: var(--sp-2);
  width: 100%;
  justify-content: center;
}

.mobile-lang {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.mobile-lang a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--xcd-line);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--xcd-ink);
  background: var(--xcd-white);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.mobile-lang a:hover,
.mobile-lang a.active { border-color: var(--xcd-red); background: var(--xcd-red-050); color: var(--xcd-red-700); }

@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-actions .btn--primary { display: none; }
  .header-actions .lang-selector { display: none; }
  .hamburger { display: flex; }
  /* Header volta a 72px no mobile (alinha com .mobile-nav { top: 72px })
     e logo reduz para 46px */
  .header-inner { height: 72px; }
  .header-logo img { height: 46px; }
}

@media (min-width: 961px) {
  .mobile-nav { display: none !important; }
}

/* ---- 7. HERO ---- */
.hero {
  position: relative;
  background: var(--xcd-ink);
  color: var(--xcd-white);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Respiro inferior após a remoção da faixa de stats — garante que os
     .hero-indicators nunca encostem na borda quando o conteúdo cresce */
  padding-bottom: var(--sp-4);
}

/* Carrossel do Hero */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 26, 25, 0.82) 0%,
    rgba(34, 26, 25, 0.55) 60%,
    rgba(34, 26, 25, 0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-12) 0 var(--sp-8);
}

.hero-content .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(250, 26, 20, 0.15);
  border: 1px solid rgba(250, 26, 20, 0.3);
  color: var(--xcd-red-050);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--xcd-white);
}

.hero-headline em {
  font-style: normal;
  color: var(--xcd-red);
}

.hero-diferencial {
  font-family: var(--font-body);
  font-size: 17px; /* mesmo tamanho do .hero-eyebrow */
  color: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--xcd-red);
  padding-left: var(--sp-2);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Carrossel indicators — em fluxo, logo após os CTAs do conteúdo
   (a antiga faixa .hero-stats foi removida do HTML) */
.hero-indicators {
  align-self: center;
  z-index: 3;
  display: flex;
  gap: 0; /* área de toque de 44px já espaça os dots */
  margin-bottom: var(--sp-2);
}

/* Área de toque ≥44px; dot visual de 8px desenhado via ::before */
.hero-indicator {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: unset;
}

.hero-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.35);
  transition: background 300ms ease, transform 300ms ease;
}

.hero-indicator.active::before {
  background: var(--xcd-red);
  transform: translate(-50%, -50%) scale(1.3);
}

.hero-indicator:focus-visible {
  outline: 2px solid var(--xcd-white);
  outline-offset: -4px;
}

/* Pausar/retomar carrossel */
.hero-pause {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(34, 26, 25, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.hero-pause:hover {
  background: rgba(34, 26, 25, 0.8);
}

.hero-pause:focus-visible {
  outline: 2px solid var(--xcd-white);
  outline-offset: 2px;
}

/* Sem a faixa de stats, o canto inferior direito fica livre em qualquer
   viewport — o botão de pausa permanece lá em todos os tamanhos
   (indicadores são centralizados e não colidem) */

@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---- 8. SELETOR DE INTENÇÃO ---- */
.intent-selector {
  background: var(--xcd-white);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--xcd-line);
}

.intent-selector .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.intent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  border: 1.5px solid var(--xcd-line);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  background: var(--xcd-white);
  text-decoration: none;
  color: var(--xcd-ink);
  min-height: 44px;
}

.intent-card:hover {
  border-color: var(--xcd-red);
  box-shadow: 0 4px 20px rgba(250, 26, 20, 0.12);
  transform: translateY(-2px);
}

.intent-card:focus-visible {
  outline: 2px solid var(--xcd-ink);
  outline-offset: 2px;
}

.intent-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--xcd-red-050);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.intent-card:hover .intent-icon {
  background: var(--xcd-red);
}

.intent-card:hover .intent-icon svg path,
.intent-card:hover .intent-icon svg rect,
.intent-card:hover .intent-icon svg circle {
  stroke: var(--xcd-white);
}

.intent-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--xcd-ink);
  line-height: 1.3;
}

.intent-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--xcd-gray-600);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .intent-selector .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .intent-selector .container { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .intent-card { padding: var(--sp-3) var(--sp-2); }
}

/* ---- 9. QUEM SOMOS ---- */
.quem-somos {
  background: var(--xcd-off);
}

.quem-somos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.quem-somos-text .section-label {
  color: var(--xcd-red-600);
  margin-bottom: var(--sp-2);
}

.quem-somos-text .h2 { margin-bottom: var(--sp-3); }

/* Título "Quem Somos" em destaque — regra escopada à seção para não
   afetar os demais h2 do site (que seguem o .h2 padrão) */
.quem-somos .h2 {
  font-size: clamp(38px, 5vw, 58px);
}
.quem-somos-text .body { color: var(--xcd-gray-600); margin-bottom: var(--sp-3); }

.atributos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.atributo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--xcd-ink);
}

.atributo::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--xcd-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Como Trabalhamos */
.como-trabalhamos {
  background: var(--xcd-white);
}

.passos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  position: relative;
}

.passos::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--xcd-line);
  z-index: 0;
}

.passo {
  text-align: center;
  position: relative;
  z-index: 1;
}

.passo-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--xcd-red-050);
  border: 2px solid var(--xcd-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 20px;
  color: var(--xcd-red);
  background: var(--xcd-white);
}

.passo-titulo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--xcd-ink);
  margin-bottom: var(--sp-1);
}

.passo-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--xcd-gray-600);
  line-height: 1.5;
  /* Evita palavra órfã na última linha (ex.: card 04 — Entrega);
     balance é fallback para browsers sem suporte a pretty */
  text-wrap: balance;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .quem-somos-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .passos::before { display: none; }
  .atributos { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .passos { grid-template-columns: 1fr; }
}

/* ---- 10. PORTFÓLIO ---- */
.portfolio {
  background: var(--xcd-off);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xcd-red-600);
  margin-bottom: var(--sp-1);
  display: block;
}

.section-header .h2 { margin-bottom: var(--sp-2); }
.section-header .body { color: var(--xcd-gray-600); max-width: 560px; margin: 0 auto; }

/* Grid de cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* Card de projeto */
.project-card {
  background: var(--xcd-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(34, 26, 25, .06);
  transition: box-shadow 300ms ease, transform 300ms ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.project-card.hidden {
  display: none;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--xcd-off);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 300ms ease;
}

.project-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

/* Fotos retrato (prédios altos): crop 16:10 ancorado mais para o topo
   para não decapitar as torres */
.card-img-wrap img[src*="kennedy"],
.card-img-wrap img[src*="patio-paulista"],
.card-img-wrap img[src*="west-side"],
.card-img-wrap img[src*="torre-sul"],
.card-img-wrap img[src*="mondrian"],
.card-img-wrap img[src*="jaguaribe"],
.card-img-wrap img[src*="green-house"],
.card-img-wrap img[src*="advanced-way"],
.card-img-wrap img[src*="parque-augusta"],
.card-img-wrap img[src*="maison-degas"],
.card-img-wrap img[src*="alto-do-bosque"] {
  object-position: center 25%;
}

/* Galeno de Almeida (em projeto): mapa com pino levemente abaixo do centro */
.card-img-wrap img[src*="galeno-de-almeida"] {
  object-position: center 40%;
}

/* Badge "Em projeto" — sobre a imagem do card (o .card-img-wrap já é
   position: relative) */
.card-badge-projeto {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--xcd-ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 4px;
}

.card-body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  background: var(--xcd-red-050);
  color: var(--xcd-red-700);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--xcd-ink);
  line-height: 1.3;
  margin-top: 4px;
}

.card-location {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--xcd-gray-600);
}

.card-divider {
  height: 1px;
  background: var(--xcd-line);
  margin: var(--sp-1) 0;
}

.card-area {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
}

.card-area-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xcd-gray-600);
}

.card-area-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 20px;
  color: var(--xcd-ink);
}

/* Botão "Ver todas" */
.portfolio-more {
  text-align: center;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- 11. PROVA SOCIAL ---- */
.prova-social {
  background: var(--xcd-white);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-6);
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--xcd-line);
  border-radius: var(--radius-card);
  gap: var(--sp-2);
  transition: box-shadow 250ms ease;
}

.client-card:hover { box-shadow: var(--shadow-card); }

.client-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--xcd-ink);
}

.client-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--xcd-gray-600);
  line-height: 1.4;
}

.client-area {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 22px;
  color: var(--xcd-red);
}

.prova-aggregate {
  margin-top: var(--sp-8);
  background: var(--xcd-ink);
  border-radius: var(--radius-card);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.prova-aggregate .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--xcd-red);
  display: block;
}

.prova-aggregate .stat-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.prova-aggregate .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--xcd-white);
  flex-shrink: 0;
}

.prova-aggregate .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--xcd-white);
}

@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .prova-aggregate { flex-direction: column; text-align: center; }
}

/* ---- 12. FORMULÁRIO DE CONTATO ---- */
.contato {
  background: var(--xcd-off);
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.contato-info .h2 { margin-bottom: var(--sp-3); }
.contato-info .body { color: var(--xcd-gray-600); margin-bottom: var(--sp-4); }

.contato-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contato-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--xcd-ink);
}

.contato-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--xcd-red-050);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contato-detail-text strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--xcd-gray-600);
  margin-bottom: 2px;
}

/* Formulário */
.contact-form {
  background: var(--xcd-white);
  border-radius: var(--radius-card);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: var(--sp-3);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--xcd-ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-label .optional {
  color: var(--xcd-gray-600);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--xcd-ink);
  background: var(--xcd-white);
  border: 1px solid var(--xcd-gray-600); /* #6E6360 — limite visível ≥3:1 */
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6E6360;
  opacity: 1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--xcd-ink);
  box-shadow: 0 0 0 3px rgba(34, 26, 25, 0.08);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--xcd-red-600);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6360' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-error {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--xcd-red-600);
  margin-top: 4px;
}

.form-error.visible { display: block; }

/* Erro global do formulário (setado via atributo [hidden] pelo form.js) */
.form-error-global {
  color: var(--xcd-red-700);
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: var(--sp-2);
}

.form-error-global[hidden] { display: none; }

.form-success {
  display: none;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-radius: var(--radius-btn);
  padding: var(--sp-3);
  font-family: var(--font-body);
  font-size: 15px;
  color: #065F46;
  text-align: center;
  margin-top: var(--sp-3);
}

.form-success.visible { display: block; }

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 16px 28px;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .contato-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .contact-form { padding: var(--sp-4); }
}

/* ---- 13. FOOTER CAROUSEL ---- */
.footer-carousel-section {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--xcd-ink);
}

.footer-carousel-track {
  position: absolute;
  inset: 0;
}

.footer-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.footer-slide.active { opacity: 1; }

.footer-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.footer-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(34, 26, 25, 0.9) 100%);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4) var(--sp-6);
}

.footer-carousel-caption {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 13px;
  z-index: 2;
}

/* ---- 14. FOOTER ---- */
.site-footer {
  background: var(--xcd-ink);
  color: #D9D2D0;
  padding: var(--sp-8) 0 var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  height: 47px;
  width: auto;
  margin-bottom: var(--sp-3);
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(217, 210, 208, 0.75);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xcd-white);
  margin-bottom: var(--sp-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: #D9D2D0;
  transition: color 200ms ease;
  padding: 8px 0;
  display: inline-block;
}

.footer-links a:hover { color: var(--xcd-white); }
.footer-links a:focus-visible { outline: 2px solid var(--xcd-white); outline-offset: 2px; border-radius: 2px; }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--sp-2);
}

.footer-contact-item .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(217, 210, 208, 0.68);
}

.footer-contact-item .value {
  font-family: var(--font-body);
  font-size: 14px;
  color: #D9D2D0;
}

.footer-contact-item a {
  color: #D9D2D0;
  transition: color 200ms ease;
}

.footer-contact-item a:hover { color: var(--xcd-white); }

.footer-address {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(217, 210, 208, 0.75);
  line-height: 1.7;
}

.footer-reg {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-reg span {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(217, 210, 208, 0.68);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(217, 210, 208, 0.68);
}

.footer-credits {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(217, 210, 208, 0.68);
}

.footer-credits a {
  color: rgba(217, 210, 208, 0.8);
  text-decoration: underline;
  transition: color 200ms ease;
}

.footer-credits a:hover { color: var(--xcd-white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- 15. WHATSAPP FLUTUANTE ---- */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.whatsapp-tooltip {
  background: var(--xcd-ink);
  color: var(--xcd-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
  flex-shrink: 0;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:focus-visible {
  outline: 3px solid var(--xcd-ink);
  outline-offset: 3px;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--xcd-white);
}

/* ---- 16. UTILITÁRIOS ---- */

/* Lazy load blur-up (usado por main.js — img[data-src] + classe .loaded) */
img[data-src] {
  filter: blur(8px);
  transition: filter 400ms ease;
}

img.loaded {
  filter: none;
}

/* Skip link acessibilidade */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-3);
  background: var(--xcd-ink);
  color: var(--xcd-white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 200ms ease;
}

.skip-link:focus { top: 0; }

/* Animação de fade na entrada dos cards do portfólio
   (usada pelo toggle "Ver todas", que alterna .project-card.hidden) */
.project-card {
  animation: fadeIn 250ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Quem somos image side */
.quem-somos-visual {
  position: relative;
}

.quem-somos-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.quem-somos-img-badge {
  position: absolute;
  bottom: calc(-1 * var(--sp-3));
  left: calc(-1 * var(--sp-3));
  background: var(--xcd-white);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.quem-somos-img-badge .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: expanded;
  font-size: 32px;
  color: var(--xcd-red);
  line-height: 1;
}

.quem-somos-img-badge .stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--xcd-gray-600);
  font-weight: 500;
}

/* Seção Quem Somos - layout visual */
@media (max-width: 768px) {
  .quem-somos-visual { display: none; }
}

/* ============================================================
   MAPA — seção contato
   ============================================================ */
.contato-map {
  margin-top: var(--sp-4);
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  /* Janela de 280px que recorta um iframe mais alto (ver regra abaixo):
     o embed do Google Maps desenha o pino ~15-20px abaixo do centro
     visível em 280px; renderizamos o mapa com 420px e deslocamos
     -100px para cima para o pino ficar visualmente centralizado */
  height: 280px;
  position: relative;
}

.contato-map iframe {
  height: 420px;
  margin-top: -45px;
}

/* ============================================================
   LIGHTBOX — foto ampliada do empreendimento
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(20, 14, 13, 0.88);
  opacity: 0;
  visibility: hidden;
  /* visibility atrasada só no fechamento — ao abrir o flip é imediato
     (permite focar o botão fechar no frame seguinte) */
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(88vh - 64px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: var(--sp-2);
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.lightbox-caption .lightbox-location {
  display: block;
  font-family: var(--font-body, inherit);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--xcd-red);
}

/* Navegação prev/next da galeria do lightbox */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2; /* acima da figura quando a foto ocupa a largura toda */
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--xcd-red-600);
}

/* Contador "N / M" — filho direto do .lightbox (flex-row), por isso
   posicionado absoluto na base, abaixo da legenda centralizada */
.lightbox-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-2);
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

/* [hidden] setado pelo main.js (foto única) — display garantido mesmo
   com display:flex/absolute nas regras acima */
.lightbox-nav[hidden],
.lightbox-counter[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.project-card .card-img-wrap {
  cursor: zoom-in;
}

.project-card .card-img-wrap:focus-visible {
  outline: 2px solid var(--xcd-red-600);
  outline-offset: -2px;
}


/* ============================================================
   AJUSTES RODADA 3
   ============================================================ */

/* Hero: frase-diferencial em UMA linha no desktop
   (fonte fluida garante caber em qualquer largura >=1025px) */
@media (min-width: 1025px) {
  .hero-diferencial {
    white-space: nowrap;
    width: max-content;
    max-width: none;
    font-size: clamp(13px, 1.32vw, 17px);
  }
}

/* Como Trabalhamos: subtítulo em UMA linha no desktop */
@media (min-width: 1025px) {
  .como-trabalhamos .section-header .body {
    max-width: none;
    white-space: nowrap;
  }
}

/* Telefone com seletor de país (bandeira + DDI) */
.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row .form-select--ddi {
  flex: 0 0 108px;
  padding-left: 10px;
  padding-right: 26px;
}

.phone-row .form-input {
  flex: 1;
  min-width: 0;
}
