/* ===========================
   CALHAS CUMBICA — style.css
   =========================== */

:root {
  --red: #CC1B20;
  --red-dark: #9E1418;
  --red-light: #e82b31;
  --black: #111111;
  --black-soft: #1A1A1A;
  --gray-dark: #2a2a2a;
  --gray: #555555;
  --gray-light: #f0f0f0;
  --white: #ffffff;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --transition: .3s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--black); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===========================
   HEADER
   =========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #f5f5f5;
  z-index: 1000;
  border-bottom: 2px solid var(--red);
  transition: box-shadow var(--transition);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-desktop a {
  color: var(--black);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-desktop a:hover { color: var(--red); background: rgba(204,27,32,.06); }
.btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-header:hover { background: var(--red-dark); border-color: var(--red-dark); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* MOBILE NAV */
#navMenu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100%;
  background: var(--black);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 4px;
  transition: right .3s ease;
  border-left: 2px solid var(--red);
}
#navMenu.open { right: 0; }
.nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  padding: 6px;
}
.nav-link {
  color: rgba(255,255,255,.82);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-nav-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: var(--radius);
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* ===========================
   BOTÕES
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.6);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }

/* ===========================
   HERO
   =========================== */
#hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(10,10,10,.78), rgba(10,10,10,.78)),
    url('images/6625e18b-b45c-4161-b26c-4483cd1bbcb1.jpeg') center / cover no-repeat;
  background-attachment: fixed, fixed;
}
@media (max-width: 1023px) {
  #hero { background-attachment: scroll, scroll; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,27,32,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  line-height: 1.4;
}
.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero Bottom Bar */
.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  z-index: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
  flex: 1;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ===========================
   SOBRE
   =========================== */
#sobre { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sobre-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-card-main {
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  border-left: 4px solid var(--red);
}
.sobre-card-main i { font-size: 2.5rem; color: var(--red); }
.sobre-years {
  position: absolute;
  bottom: 40px; right: 0;
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48%;
}
.years-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}
.years-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
  text-align: center;
}
.sobre-card-secondary {
  position: absolute;
  bottom: 0; left: 20px;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  width: 55%;
}
.sobre-card-secondary i { color: var(--red); font-size: 1.4rem; flex-shrink: 0; }
.section-tag {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-tag.light { background: rgba(255,255,255,.2); color: var(--white); }
.sobre-text .section-tag { margin: 0 0 16px 0; }
.sobre-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.25;
}
.sobre-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}
.sobre-text .btn-primary { margin-top: 8px; }

/* ===========================
   SECTION HEADER
   =========================== */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header.light-text h2 { color: var(--black); }
.section-header p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   SERVIÇOS
   =========================== */
.bg-dark { background: var(--black-soft); padding: 100px 0; }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--gray-dark);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,.06);
  border-top: 3px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.servico-card.visible { opacity: 1; transform: translateY(0); }
.servico-card:hover { background: #2e2e2e; transform: translateY(-6px); box-shadow: 0 12px 40px rgba(204,27,32,.18); }
.servico-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.servico-icon i { color: var(--white); font-size: 1.4rem; }
.servico-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.servico-card p { color: rgba(255,255,255,.65); line-height: 1.7; font-size: .9rem; }

.servico-card--destaque { border-top: 3px solid var(--primary); }

/* Fotos dos exaustores eólicos */
.exaustor-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.exaustor-foto-item {
  border-radius: 12px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.exaustor-foto-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,.45);
}

.exaustor-foto-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.exaustor-foto-leg {
  display: block;
  padding: 12px 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  border-top: 2px solid var(--primary);
}

@media (max-width: 600px) {
  .exaustor-fotos { grid-template-columns: 1fr; }
  .exaustor-foto-item img { height: 230px; }
}

/* ===========================
   MVV
   =========================== */
#mvv { padding: 100px 0; }
#mvv .section-header h2 { color: var(--black); }
#mvv .section-header p { color: var(--gray); }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mvv-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--red);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease, box-shadow var(--transition);
}
.mvv-card.visible { opacity: 1; transform: translateY(0); }
.mvv-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.mvv-icon {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.mvv-icon i { color: var(--white); font-size: 1.5rem; }
.mvv-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}
.mvv-card p { color: var(--gray); line-height: 1.8; }
.valores-list { display: flex; flex-direction: column; gap: 10px; }
.valores-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: .92rem;
}
.valores-list i { color: var(--red); font-size: .85rem; flex-shrink: 0; }

/* ===========================
   MERCADOS
   =========================== */
.mercados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mercado-card {
  background: var(--gray-dark);
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.mercado-card.visible { opacity: 1; transform: translateY(0); }
.mercado-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.mercado-card.destaque { border: 2px solid var(--red); background: rgba(204,27,32,.08); }
.mercado-icon {
  width: 64px;
  height: 64px;
  background: rgba(204,27,32,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.mercado-card.destaque .mercado-icon { background: var(--red); }
.mercado-icon i { color: var(--red); font-size: 1.6rem; }
.mercado-card.destaque .mercado-icon i { color: var(--white); }
.mercado-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.mercado-card p { color: rgba(255,255,255,.65); line-height: 1.7; font-size: .92rem; margin-bottom: 20px; }
.mercado-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  transition: gap var(--transition);
}
.mercado-link:hover { gap: 12px; }

/* ===========================
   DIFERENCIAIS
   =========================== */
#diferenciais { padding: 100px 0; background: var(--gray-light); }
#diferenciais .section-header h2 { color: var(--black); }
#diferenciais .section-header p { color: var(--gray); }
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.diferencial-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.diferencial-item.visible { opacity: 1; transform: translateY(0); }
.diferencial-item > i {
  font-size: 2.2rem;
  color: var(--red);
}
.diferencial-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}
.diferencial-item p { color: var(--gray); line-height: 1.7; font-size: .9rem; }

/* ===========================
   CONTATO
   =========================== */
.bg-red { background: var(--red); padding: 100px 0; }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contato-info .section-tag.light { margin: 0 0 16px 0; }
.contato-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.contato-info > p {
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contato-lista { display: flex; flex-direction: column; gap: 20px; }
.contato-lista li { display: flex; align-items: flex-start; gap: 16px; }
.contato-lista > li > i {
  font-size: 1.2rem;
  color: var(--white);
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.contato-lista strong {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-head);
  margin-bottom: 2px;
}
.contato-lista a, .contato-lista span {
  color: var(--white);
  font-size: .95rem;
}
.contato-lista a:hover { text-decoration: underline; }

/* Form */
.contato-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.contato-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-form:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===========================
   FOOTER
   =========================== */
#footer { background: var(--black); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-nav h4, .footer-servicos h4, .footer-contato h4 {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.footer-nav ul, .footer-servicos ul, .footer-contato ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--red); padding-left: 4px; }
.footer-servicos li { color: rgba(255,255,255,.55); font-size: .875rem; }
.footer-contato li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: .875rem;
}
.footer-contato i { color: var(--red); font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.footer-contato a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-contato a:hover { color: var(--red); }
.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ===========================
   WHATSAPP FLUTUANTE
   =========================== */
.wpp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wpp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); }

/* ===========================
   REVEAL ANIMATION
   =========================== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 2001;
  box-shadow: 0 0 10px rgba(204,27,32,.7);
  transition: width .08s linear;
}

/* ===========================
   HERO CANVAS
   =========================== */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   HERO ENTRANCE ANIMATIONS
   =========================== */
.hero-badge {
  position: relative;
  animation: fadeInDown .7s ease both;
  animation-delay: .2s;
  opacity: 0;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: var(--red);
  opacity: .3;
  animation: badgePulse 2.8s ease-in-out infinite;
  z-index: -1;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: .3; }
  50% { transform: scale(1.2); opacity: 0; }
}
.hero-content h1 { animation: fadeInUp .8s ease both; animation-delay: .4s; opacity: 0; }
.hero-content h2 { animation: fadeInUp .8s ease both; animation-delay: .6s; opacity: 0; }
.hero-content p  { animation: fadeInUp .8s ease both; animation-delay: .75s; opacity: 0; }
.hero-btns       { animation: fadeInUp .8s ease both; animation-delay: .9s; opacity: 0; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RIPPLE EM BOTÕES
   =========================== */
.btn-primary,
.btn-outline,
.btn-form,
.btn-header,
.btn-nav-wpp { position: relative; overflow: hidden; }

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  transform: scale(0);
  animation: rippleAnim .55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4.5); opacity: 0; }
}

/* ===========================
   CARD SHINE SWEEP
   =========================== */
.servico-card,
.mercado-card,
.mvv-card { position: relative; overflow: hidden; }

.servico-card::after,
.mercado-card::after,
.mvv-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.servico-card:hover::after,
.mercado-card:hover::after,
.mvv-card:hover::after { left: 130%; }

/* ===========================
   ÍCONES — GLOW HOVER
   =========================== */
.servico-icon,
.mvv-icon,
.mercado-icon {
  transition: transform var(--transition), box-shadow var(--transition);
}
.servico-card:hover .servico-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 0 22px rgba(204,27,32,.55);
}
.mvv-card:hover .mvv-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(204,27,32,.45);
}
.mercado-card:hover .mercado-icon {
  transform: scale(1.1) rotate(6deg);
}

/* ===========================
   NAV ACTIVE
   =========================== */
.nav-desktop a.active {
  color: var(--white) !important;
  background: var(--red) !important;
}
#header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

/* ===========================
   MENU TOGGLE → X
   =========================== */
.menu-toggle span { transition: transform .3s ease, opacity .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   DIFERENCIAL HOVER
   =========================== */
.diferencial-item {
  padding: 24px;
  border-radius: 12px;
  transition: opacity .5s ease, transform .5s ease, background var(--transition);
}
.diferencial-item:hover { background: rgba(204,27,32,.06); }
.diferencial-item > i { transition: transform var(--transition); }
.diferencial-item:hover > i { transform: scale(1.15) rotate(-5deg); }

/* ===========================
   MERCADO DESTAQUE GLOW LOOP
   =========================== */
.mercado-card.destaque.visible {
  animation: mercadoGlow 3.5s ease-in-out infinite;
}
@keyframes mercadoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,27,32,0); }
  50%       { box-shadow: 0 0 0 5px rgba(204,27,32,.18), 0 12px 40px rgba(204,27,32,.2); }
}

/* ===========================
   FORM FOCUS GLOW
   =========================== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(204,27,32,.18);
}

/* ===========================
   STAT COUNTER POP
   =========================== */
.stat-num.popped { animation: statPop .25s ease; }
@keyframes statPop {
  0%   { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ===========================
   MARQUEE
   =========================== */
.marquee-wrap {
  background: var(--black);
  padding: 14px 0;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 0 20px;
}
.marquee-track .msep {
  color: var(--red);
  padding: 0 4px;
  font-size: 1rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ===========================
   DEPOIMENTOS
   =========================== */
#depoimentos { padding: 100px 0; background: var(--gray-light); }
#depoimentos .section-header h2 { color: var(--black); }
#depoimentos .section-header p  { color: var(--gray); }
.depo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.depo-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 3px solid var(--red);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease, box-shadow var(--transition);
}
.depo-card.visible { opacity: 1; transform: translateY(0); }
.depo-card:hover   { box-shadow: 0 14px 44px rgba(0,0,0,.13); }
.depo-card::before {
  content: '\201C';
  position: absolute;
  top: 12px; right: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(204,27,32,.08);
  line-height: 1;
  pointer-events: none;
}
.depo-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  font-size: .9rem;
}
.depo-card > p {
  color: var(--gray);
  line-height: 1.75;
  font-size: .92rem;
  font-style: italic;
  flex: 1;
}
.depo-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}
.depo-avatar {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.depo-avatar i { color: var(--white); font-size: 1rem; }
.depo-author strong {
  display: block;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--black);
}
.depo-author span { font-size: .78rem; color: var(--gray); }

/* ===========================
   FAQ
   =========================== */
#faq { padding: 100px 0; }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--gray-dark);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.faq-item.visible { opacity: 1; transform: translateY(0); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--white); }
.faq-question[aria-expanded="true"] { color: var(--red); }
.faq-question i {
  flex-shrink: 0;
  color: var(--red);
  font-size: .8rem;
  transition: transform .3s ease;
}
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer.open { max-height: 260px; }
.faq-answer p {
  padding: 0 24px 20px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
}

/* ===========================
   BACKGROUNDS — IMAGENS REAIS
   =========================== */

/* Serviços — dutos industriais dark */
#servicos {
  background:
    linear-gradient(rgba(17,17,17,.90), rgba(17,17,17,.90)),
    url('images/96c55b8b-1a3b-4a53-a175-d49d75e86eca.jpeg') center / cover no-repeat;
  background-attachment: fixed, fixed;
}

/* Mercados — instalação de calha */
#mercados {
  background:
    linear-gradient(rgba(17,17,17,.87), rgba(17,17,17,.87)),
    url('images/c501b8a4-8724-4edb-8833-551677f6b989.jpeg') center / cover no-repeat;
  background-attachment: fixed, fixed;
}

/* Diferenciais — calha residencial close-up */
#diferenciais {
  background:
    linear-gradient(rgba(240,240,240,.88), rgba(240,240,240,.88)),
    url('images/12739ce8-2ea8-4b69-a502-52a13b265570.jpeg') center / cover no-repeat;
  background-attachment: fixed, fixed;
}

@media (max-width: 1023px) {
  #servicos,
  #mercados,
  #diferenciais { background-attachment: scroll, scroll; }
}

/* ===========================
   RESPONSIVE — 4K → 320px
   =========================== */

/* 4K / Widescreen */
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
  .hero-content h1 { font-size: 5.5rem; }
}

/* Full HD / Laptop grande */
@media (max-width: 1440px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr; }
}

/* Laptop médio — nav com 6 links fica apertada */
@media (max-width: 1200px) {
  .nav-desktop { gap: 2px; }
  .nav-desktop a { padding: 7px 10px; font-size: .82rem; }
  .btn-header    { padding: 9px 14px; font-size: .82rem; }
}

/* Laptop / Desktop médio */
@media (max-width: 1280px) {
  .servicos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet landscape — ≤ 1024px */
@media (max-width: 1024px) {
  .nav-desktop, .btn-header { display: none; }
  .menu-toggle { display: flex; }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-visual { display: none; }

  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr 1fr; }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .mercados-grid { grid-template-columns: repeat(2, 1fr); }
  .depo-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .faq-list { max-width: 100%; }
  .faq-question { font-size: .9rem; padding: 18px 20px; }
  .faq-answer p  { padding: 0 20px 18px; padding-top: 14px; }

  .marquee-track span { font-size: .73rem; padding: 0 14px; }

  .contato-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablet portrait — ≤ 768px */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  #sobre, .bg-dark, #servicos, #mercados,
  #mvv, #diferenciais, #depoimentos, #faq, .bg-red { padding: 72px 0; }

  .stat-item { padding: 16px 20px; }
  .stat-num  { font-size: 1.5rem; }
  .stat-label { font-size: .65rem; }

  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card { padding: 32px 24px; }

  .mercados-grid { grid-template-columns: 1fr; }

  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .diferencial-item { padding: 20px; }

  /* Depoimentos — 1 coluna a partir de 768px */
  .depo-grid { grid-template-columns: 1fr; }
  .depo-card { padding: 28px 22px; }

  /* FAQ */
  .faq-answer { max-height: 0; }
  .faq-answer.open { max-height: 320px; }

  /* Marquee */
  .marquee-track span { font-size: .7rem; padding: 0 12px; }

  .contato-grid { gap: 28px; }
  .contato-form-wrap { padding: 28px 20px; }
  .contato-lista a, .contato-lista span { word-break: break-word; font-size: .9rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav ul, .footer-servicos ul, .footer-contato ul { gap: 8px; }
}

/* Mobile grande — ≤ 600px */
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }

  #sobre, .bg-dark, #servicos, #mercados,
  #mvv, #diferenciais, #depoimentos, #faq, .bg-red { padding: 64px 0; }

  .hero-content { padding: 60px 16px 148px; }
  .hero-content h2 { font-size: 1.1rem; }
  .hero-content p  { font-size: .92rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-outline { width: 100%; justify-content: center; }

  .servicos-grid { grid-template-columns: 1fr; gap: 16px; }
  .servico-card  { padding: 28px 22px; }

  .mvv-card { padding: 28px 20px; }

  .mercados-grid { grid-template-columns: 1fr; }
  .mercado-card  { padding: 32px 24px; }

  .diferenciais-grid { grid-template-columns: 1fr; gap: 12px; }
  .diferencial-item  { padding: 16px; }

  /* Depoimentos */
  .depo-card   { padding: 24px 18px; }
  .depo-card::before { font-size: 3.5rem; top: 8px; right: 14px; }

  /* FAQ */
  .faq-question { font-size: .88rem; padding: 16px 18px; }
  .faq-answer p { padding: 0 18px 16px; padding-top: 12px; }
  .faq-answer.open { max-height: 350px; }

  /* Marquee */
  .marquee-track span { font-size: .68rem; padding: 0 10px; }
  .marquee-wrap { padding: 12px 0; }

  .contato-form-wrap { padding: 24px 16px; }
  .contato-form { gap: 16px; }

  .section-header { margin-bottom: 40px; }

  .footer-grid { gap: 24px; }
  .footer-bottom p { font-size: .75rem; }
}

/* Mobile médio — ≤ 480px */
@media (max-width: 480px) {
  /* Stats bar: 2 colunas */
  .hero-bottom-bar { flex-wrap: wrap; }
  .stat-item       { width: 50%; flex: none; padding: 14px 12px; }
  .stat-divider    { display: none; }          /* oculta todos os separadores */

  /* Hero: padding-bottom maior p/ compensar stats em 2 linhas */
  .hero-content { padding-bottom: 160px; }

  #sobre, .bg-dark, #servicos, #mercados,
  #mvv, #diferenciais, #depoimentos, #faq, .bg-red { padding: 56px 0; }
  .depo-grid { grid-template-columns: 1fr; }
  .faq-question { font-size: .88rem; padding: 16px 18px; }
  .faq-answer p { padding: 0 18px 16px; padding-top: 14px; }

  .section-header { margin-bottom: 32px; }

  /* Nav menu: usa 90% da largura em telas estreitas */
  #navMenu { width: min(300px, 90vw); right: calc(min(300px, 90vw) * -1); }
  #navMenu.open { right: 0; }
}

/* Mobile pequeno — ≤ 390px */
@media (max-width: 390px) {
  .logo-img { height: 36px; }
  .hero-content h1  { font-size: 1.9rem; }
  .stat-num         { font-size: 1.25rem; }
  .stat-label       { font-size: .6rem; }
  .stat-item        { padding: 12px 8px; }

  .mvv-card         { padding: 24px 16px; }
  .servico-card     { padding: 24px 18px; }
  .diferencial-item { padding: 14px 12px; }

  .depo-card   { padding: 20px 14px; gap: 12px; }
  .depo-stars  { font-size: .8rem; }
  .depo-card > p { font-size: .87rem; }
  .depo-author strong { font-size: .85rem; }

  .faq-question { font-size: .84rem; padding: 14px 16px; gap: 12px; }
  .faq-answer p { padding: 0 16px 14px; padding-top: 10px; font-size: .84rem; }

  .contato-form-wrap { padding: 20px 14px; }
}

/* ── GALERIA ─────────────────────────────────────────── */
#galeria { padding: var(--sec-pad) 0; background: var(--white); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}

.galeria-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
}

.galeria-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.galeria-caption {
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border-top: 2px solid var(--primary);
}

@media (max-width: 600px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item img { height: 240px; }
}

/* Mobile XS — ≤ 320px */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .hero-content h1  { font-size: 1.65rem; }
  .hero-content h2  { font-size: .95rem; }
  .hero-content p   { font-size: .85rem; }
  .hero-content     { padding-bottom: 170px; }

  .stat-num         { font-size: 1.1rem; }
  .stat-item        { padding: 10px 6px; }

  #navMenu { width: 92vw; right: -92vw; }
  #navMenu.open { right: 0; }
}
