/* ============================================================
   CMD CONSTRUÇÃO E REFORMA — style.css v2 (Corporativo Premium)
   Design: Gold + Navy | Estilo: Engenharia de grande porte
   Digital Bloom
   ============================================================ */

/* ----------------------------------------
   VARIÁVEIS
---------------------------------------- */
:root {
  --navy:        #162752;
  --navy-dark:   #0d1828;
  --navy-mid:    #1e3270;
  --gold:        #c49a3c;
  --gold-light:  rgba(196,154,60,.1);
  --gold-border: rgba(196,154,60,.28);
  --accent:      #a4d7e7;        /* brand light blue, uso secundário */
  --white:       #ffffff;
  --warm-white:  #f8f7f4;
  --light:       #f0eff0;
  --border:      #e0ddd8;
  --charcoal:    #1a1a2a;
  --text:        #1a1a2a;
  --text-mid:    #58596e;
  --text-light:  #9090a8;
  --shadow-xs:   0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 16px rgba(0,0,0,.08);
  --shadow-md:   0 8px 36px rgba(0,0,0,.10);
  --radius-sm:   5px;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all .3s ease;
  --max-w:       1200px;
  --header-h:    72px;
}

/* ----------------------------------------
   RESET & BASE
---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ----------------------------------------
   TIPOGRAFIA
---------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.14;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.15rem); }
p  { color: var(--text-mid); line-height: 1.72; }

/* ----------------------------------------
   LAYOUT
---------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section  { padding: 6rem 0; }
.bg-light { background: var(--warm-white); }

/* Eyebrow — estilo corporativo com linha horizontal */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
  display: block;
}
.eyebrow.light { color: var(--gold); }
.eyebrow.light::before { background: var(--gold); }

/* Section header centralizado */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.8rem;
}
.section-header .eyebrow {
  justify-content: center;
}
.section-header .eyebrow::after {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
  display: block;
}
.section-title { margin-bottom: .8rem; }
.section-desc  { font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ----------------------------------------
   BOTÕES
---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  padding: .85rem 1.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: .03em;
  white-space: nowrap;
}
.btn i { font-size: .9rem; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(23,37,81,.28);
}

/* btn-accent = dourado no v2 */
.btn-accent {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
  font-weight: 800;
}
.btn-accent:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(23,37,81,.32);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.38);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.75);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.38);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
}

.btn-lg    { padding: 1rem 2.2rem; font-size: .93rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-arr   { margin-left: auto; }

/* ----------------------------------------
   WHATSAPP FLUTUANTE
---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 58px; height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.09); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + .8rem);
  background: var(--charcoal);
  color: var(--white);
  font-size: .78rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--header-h);
  transition: background .35s ease, box-shadow .35s ease;
}
.header.transparent { background: transparent; }
.header.scrolled    {
  background: var(--navy-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}

/* Nav */
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  padding: .5rem .9rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: .05rem; left: .9rem; right: .9rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta { padding: .6rem 1.3rem; font-size: .78rem; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  flex-shrink: 0;
}
.bar { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — Corporativo Premium
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
  background: url('../images/header.jpg') center / cover no-repeat;
}

/* Overlay escuro sobre a foto */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(6,16,31,.92) 0%, rgba(14,30,60,.88) 35%, rgba(22,39,82,.82) 65%, rgba(27,50,114,.78) 100%);
  pointer-events: none;
}

/* Formas decorativas */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.shape { position: absolute; }

/* Painel geométrico direito — panel dourado sutil */
.shape-a {
  top: 0; right: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(165deg, transparent 30%, rgba(196,154,60,.04) 60%, rgba(196,154,60,.02) 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Linha vertical dourada */
.shape-b {
  top: 10%; bottom: 10%;
  right: 40%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(196,154,60,.3) 30%, rgba(196,154,60,.3) 70%, transparent);
}

/* Linha horizontal sutil */
.shape-c {
  left: 0; right: 0;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(196,154,60,.08) 30%, rgba(196,154,60,.08) 70%, transparent 95%);
}

/* Ponto difuso inferior direito */
.shape-d {
  width: 350px; height: 350px;
  bottom: -80px; right: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164,215,231,.04), transparent 70%);
}

/* Conteúdo */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Eyebrow do hero — linha em ambos os lados */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* Título grande */
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255,255,255,.62);
  max-width: 600px;
  line-height: 1.78;
  margin-bottom: 2.8rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

/* Pillars separados por linha fina */
.hero-pillars {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.pillar {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  font-weight: 500;
}
.pillar i { color: var(--gold); font-size: .85rem; }
.pillar-div { width: 1px; height: 22px; background: rgba(255,255,255,.14); }

/* Seta de scroll */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border: 1px solid rgba(196,154,60,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .72rem;
  animation: bounce 2.2s ease-in-out infinite;
  transition: var(--transition);
}
.hero-scroll:hover { border-color: var(--gold); background: rgba(196,154,60,.1); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SOBRE
============================================================ */
.sobre { background: var(--white); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5.5rem;
  align-items: center;
}

/* Imagem lateral sobre */
.sobre-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

/* Visual (legacy — mantido para compatibilidade) */
.sv-main-card {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
/* Marca d'água CMD */
.sv-main-card::after {
  content: 'CMD';
  position: absolute;
  right: -.1em; bottom: -.15em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 5.5rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}
/* Barra dourada superior */
.sv-main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sv-icon {
  width: 50px; height: 50px;
  background: rgba(196,154,60,.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sv-main-card h3 { color: var(--white); margin-bottom: .5rem; }
.sv-main-card p  { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0; }

.sv-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.sv-mini {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem .75rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.sv-mini:hover { border-color: var(--gold-border); background: var(--gold-light); }
.sv-mini i     { display: block; font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.sv-mini span  {
  font-size: .73rem; font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-mid); line-height: 1.3;
}

.sv-badge {
  display: flex; align-items: center; gap: 1rem;
  background: var(--warm-white); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem;
}
.sv-badge > i  { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.sv-badge strong { display: block; font-size: .88rem; color: var(--navy); margin-bottom: .1rem; }
.sv-badge span   { font-size: .78rem; color: var(--text-light); }

/* Texto */
.sobre-content .eyebrow { margin-bottom: 1rem; }
.sobre-p { margin-bottom: 1rem; font-size: .97rem; }

.sobre-checks {
  margin: 1.5rem 0 2rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.sobre-checks li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .92rem; color: var(--text-mid); font-weight: 500;
}
.sobre-checks li i { color: var(--gold); font-size: .85rem; flex-shrink: 0; }

/* ============================================================
   SERVIÇOS
============================================================ */
.servicos { background: var(--warm-white); }

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center;
  margin-bottom: 2.8rem;
}
.tab {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem 1.25rem;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  transition: var(--transition);
}
.tab:hover  { border-color: var(--gold); color: var(--navy); }
.tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.svc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: .6rem;
}
/* Barra lateral dourada no hover */
.svc-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s ease;
}
.svc-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.svc-card:hover::before { transform: scaleY(1); }

.svc-icon {
  width: 46px; height: 46px;
  background: rgba(23,37,81,.06);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  transition: var(--transition);
}
.svc-card:hover .svc-icon { background: var(--gold-light); color: var(--gold); }
.svc-card h3 { font-size: .97rem; line-height: 1.3; }
.svc-card p  { font-size: .86rem; flex: 1; }
.svc-tag {
  display: inline-block; margin-top: auto;
  font-size: .68rem; font-family: 'Montserrat', sans-serif;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: .22rem .7rem; border-radius: 3px; width: fit-content;
}
.svc-card.hidden { display: none; }

/* Collapse — esconde cards além da 9ª posição na aba "Todos" */
.services-grid.collapsed .svc-card:nth-child(n+10) { display: none; }

/* Botão "Ver mais" */
.services-show-more {
  text-align: center;
  margin-top: 2rem;
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,39,82,.22);
}

.services-footer {
  text-align: center; margin-top: 3rem;
  padding: 2rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.services-footer p { margin-bottom: 1.2rem; }

/* ============================================================
   DIFERENCIAIS — dark premium, 4 colunas
============================================================ */
.diferenciais {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1b3272 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
/* Malha dourada sutil */
.diferenciais::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(196,154,60,.045) 1px, transparent 0);
  background-size: 46px 46px;
  pointer-events: none;
}
/* Linha dourada no topo */
.diferenciais::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,60,.45) 30%, rgba(196,154,60,.45) 70%, transparent);
}

.diferenciais .section-header { position: relative; z-index: 2; }
.diferenciais .section-title  { color: var(--white); }
.diferenciais .section-desc   { color: rgba(255,255,255,.55); }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}
.dif-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2.4rem 2rem;
  border-right: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s;
  text-align: left;
}
.dif-card:nth-child(4n) { border-right: none; }
.dif-card:nth-child(n+5) { border-bottom: none; }
.dif-card:hover { background: rgba(196,154,60,.07); }

.dif-icon {
  width: 52px; height: 52px;
  border: 1.5px solid rgba(196,154,60,.35);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 1.3rem;
  transition: var(--transition);
}
.dif-card:hover .dif-icon { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.dif-card h3 { color: var(--white); font-size: .97rem; margin-bottom: .5rem; }
.dif-card p  { color: rgba(255,255,255,.48); font-size: .85rem; }

/* ============================================================
   GALERIA
============================================================ */
.obras { background: var(--white); }

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}
.gal-item {
  flex: 0 0 calc(25% - 0.6rem);
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gal-wide { flex: 0 0 calc(50% - 0.4rem); }

.gal-ph {
  width: 100%; height: 100%;
  position: relative; cursor: pointer; overflow: hidden;
  transition: transform .4s ease;
}
.gal-item:hover .gal-ph { transform: scale(1.03); }

/* Fotos reais — <img> dentro de .gal-ph */
.gal-ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* Overlay hover */
.gp-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(5,12,26,.92) 0%, transparent 100%);
  transform: translateY(6px);
  opacity: 0;
  transition: all .3s ease;
  z-index: 2;
}
.gal-item:hover .gp-overlay { opacity: 1; transform: translateY(0); }
.gp-cat {
  display: block; font-size: .66rem;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .3rem;
}
.gp-overlay h4 { color: var(--white); font-size: .88rem; }

.gallery-footer { text-align: center; margin-top: 2.5rem; }
.gallery-footer p { margin-bottom: 1.2rem; }

/* ============================================================
   PROCESSO — off-white, números ouro
============================================================ */
.processo { background: var(--warm-white); }
/* Override se tiver herança escura do v1 */
.processo .section-title { color: var(--navy); }
.processo .section-desc  { color: var(--text-mid); }

.steps {
  display: flex; align-items: flex-start; gap: 0;
}
.step { flex: 1; text-align: center; padding: 0 1.5rem; position: relative; }

.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.8rem; font-weight: 900;
  color: rgba(196,154,60,.16);
  line-height: 1; margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.step-icon {
  width: 62px; height: 62px;
  background: var(--gold-light);
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--gold);
  margin: 0 auto .9rem;
  transition: var(--transition);
}
.step:hover .step-icon { background: var(--gold); color: var(--white); border-color: var(--gold); }
.step h3 { color: var(--navy); font-size: .97rem; margin-bottom: .5rem; }
.step p  { color: var(--text-mid); font-size: .84rem; line-height: 1.6; }

.step-line {
  flex-shrink: 0; width: 40px; height: 1px;
  background: var(--gold-border); align-self: center;
  position: relative; top: -44px;
}

/* ============================================================
   CTA BAND
============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1b3272 100%);
  position: relative; overflow: hidden; padding: 5.5rem 0;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(196,154,60,.05) 1px, transparent 0);
  background-size: 46px 46px;
}
/* Linha ouro no topo */
.cta-band::after {
  content: ''; position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}
.cta-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 680px; margin: 0 auto;
}
.cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin-bottom: 1rem;
}
.cta-inner p  { color: rgba(255,255,255,.62); font-size: 1.05rem; margin-bottom: 2.2rem; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.cta-note {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  color: rgba(255,255,255,.38) !important;
  font-size: .8rem !important; margin: 0 !important;
}
.cta-note i { color: var(--gold); }

/* ============================================================
   FORMULÁRIO DE CONTATO
============================================================ */
.contato { background: var(--warm-white); }

.contato-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}

.contato-p { font-size: .97rem; margin-bottom: 2rem; }

.cinfo-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.cinfo-item { display: flex; align-items: center; gap: 1rem; }
.cinfo-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
}
.cinfo-label {
  display: block; font-size: .66rem;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: .2rem;
}
.cinfo-value { font-size: .93rem; font-weight: 600; color: var(--navy); transition: color .2s; }
.cinfo-value:hover { color: var(--gold); }

.cinfo-note {
  display: flex; align-items: flex-start; gap: .65rem;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  font-size: .82rem; color: var(--text-mid);
}
.cinfo-note i { color: var(--gold); flex-shrink: 0; margin-top: .12rem; }

/* Formulário */
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.fg { display: flex; flex-direction: column; gap: .35rem; }
.flabel {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
}
.req { color: var(--gold); }
.finput {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: .93rem;
  color: var(--text); background: var(--warm-white);
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.finput:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--gold-light);
}
.finput.error { border-color: #d03030; }
.ftextarea    { resize: vertical; min-height: 120px; }
.ferr         { font-size: .78rem; color: #d03030; display: none; }
.ferr.visible { display: block; }
.form-note    {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem !important; color: var(--text-light) !important; margin: 0 !important;
}
.form-note i { color: var(--text-light); }

/* ============================================================
   FOOTER
============================================================ */
.footer-top { background: var(--navy-dark); padding: 5rem 0 4rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo { display: flex; align-items: center; margin-bottom: 1.2rem; }
.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand > p {
  font-size: .87rem; color: rgba(255,255,255,.42);
  line-height: 1.72; margin-bottom: 1.5rem;
}

.fsocial { display: flex; gap: .7rem; }
.fsocial a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 1rem;
  transition: var(--transition);
}
.fsocial a:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,154,60,.1); }

.fnav h4, .fcontact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(196,154,60,.2);
}
.fnav ul { display: flex; flex-direction: column; gap: .65rem; }
.fnav ul li a { font-size: .86rem; color: rgba(255,255,255,.5); transition: color .2s; }
.fnav ul li a:hover { color: var(--gold); }

.fcontact-list { display: flex; flex-direction: column; gap: .8rem; }
.fc-item {
  display: flex; align-items: center; gap: .7rem;
  font-size: .86rem; color: rgba(255,255,255,.5); transition: color .2s;
}
.fc-item:hover { color: var(--gold); }
.fc-item i { color: var(--gold); width: 16px; flex-shrink: 0; }

.footer-bottom { background: #060c18; padding: 1.4rem 0; }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.28); margin: 0; }
.footer-bottom a { color: var(--gold); font-weight: 600; transition: opacity .2s; }
.footer-bottom a:hover { opacity: .75; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Delays escalonados */
.svc-card:nth-child(2)  { transition-delay: .07s; }
.svc-card:nth-child(3)  { transition-delay: .14s; }
.svc-card:nth-child(4)  { transition-delay: .21s; }
.svc-card:nth-child(5)  { transition-delay: .28s; }
.svc-card:nth-child(6)  { transition-delay: .35s; }
.dif-card:nth-child(2)  { transition-delay: .08s; }
.dif-card:nth-child(3)  { transition-delay: .16s; }
.dif-card:nth-child(4)  { transition-delay: .24s; }
.step:nth-child(3)       { transition-delay: .1s; }
.step:nth-child(5)       { transition-delay: .2s; }
.step:nth-child(7)       { transition-delay: .3s; }
.step:nth-child(9)       { transition-delay: .4s; }

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, .96);
  cursor: zoom-out;
}

.lb-img-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 86vh;
}
.lb-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 32px 96px rgba(0,0,0,.75);
  display: block;
  transform: scale(.94);
  opacity: 0;
  transition: transform .35s ease, opacity .3s ease;
}
.lightbox.open .lb-img {
  transform: scale(1);
  opacity: 1;
}

.lb-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  z-index: 3;
  width: 46px; height: 46px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 50px; height: 50px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: var(--white);
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-prev:hover, .lb-next:hover {
  background: rgba(196,154,60,.22);
  border-color: rgba(196,154,60,.45);
  color: var(--gold);
}
.lb-prev { left: 1.6rem; }
.lb-next { right: 1.6rem; }

.lb-counter {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
}

/* Cursor zoom nas fotos da galeria */
.gal-ph { cursor: zoom-in; }

@media (max-width: 640px) {
  .lb-prev { left: .6rem; }
  .lb-next { right: .6rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: .82rem; }
  .lb-img-wrap { max-width: 96vw; max-height: 80vh; }
  .lb-img      { max-width: 96vw; max-height: 80vh; }
}

/* ============================================================
   RESPONSIVO — 1024px
============================================================ */
@media (max-width: 1024px) {
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .dif-card:nth-child(2n)  { border-right: none; }
  .dif-card:nth-child(n+7) { border-bottom: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .gallery-grid { gap: .6rem; }
  .gal-item { flex: 0 0 calc(33.333% - 0.4rem); height: 200px; }
  .gal-wide { flex: 0 0 calc(66.666% - 0.27rem); }
}

/* ============================================================
   RESPONSIVO — 900px
============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  /* Mobile nav */
  .menu-toggle { display: flex; margin-left: auto; }
  .header-cta  { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 1.5rem 2rem;
    transform: translateY(-110%); opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    z-index: 700; margin: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-list { flex-direction: column; gap: .2rem; }
  .nav-link { font-size: .88rem; padding: .8rem 1rem; display: block; border-radius: 5px; }
  .nav-link::after { display: none; }
  .nav-link:hover { background: rgba(255,255,255,.06); }

  /* Sobre */
  .sobre-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-visual { order: 1; }
  .sobre-content{ order: 2; }

  /* Diferenciais */
  .dif-grid { grid-template-columns: 1fr 1fr; }
  .dif-card:nth-child(2n)  { border-right: none; }
  .dif-card:nth-child(n+7) { border-bottom: none; }

  /* Steps vertical */
  .steps { flex-direction: column; align-items: stretch; }
  .step  { text-align: left; display: flex; gap: 1.2rem; padding: 1.2rem 0; }
  .step-num  { display: none; }
  .step-body { display: flex; flex-direction: column; gap: .4rem; }
  .step-icon { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; flex-shrink: 0; }
  .step-line { width: 2px; height: 30px; margin: 0 0 0 24px; align-self: auto; top: 0; }

  /* Serviços — 2 colunas em telas médias */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gal-item { flex: 0 0 calc(50% - 0.4rem); height: 200px; }
  .gal-wide { flex: 0 0 calc(100% - 0rem); }
}

/* ============================================================
   RESPONSIVO — 640px
============================================================ */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }

  .hero { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 3.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-pillars { gap: 1.2rem; padding-top: 2rem; }

  .sv-mini-cards { grid-template-columns: repeat(3, 1fr); }
  .services-grid  { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .dif-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .dif-card:last-child { border-bottom: none; }

  .gal-item { flex: 0 0 calc(50% - 0.4rem); height: 160px; }
  .gal-wide { flex: 0 0 100%; }

  .contato-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form  { padding: 1.8rem 1.2rem; }

  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .whatsapp-float { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; font-size: 1.4rem; }
  .whatsapp-tooltip { display: none; }
}
