/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --red: #BA1B26;
  --red-dark: #921419;
  --black: #0D0D0D;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #555;
  --yellow: #F5C518;
  --transition: 0.25s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 8px;
}

/* ===== UTILITIES ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { padding: 88px 0; background: var(--black); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; color: var(--black); margin-bottom: 12px; }
.section-header p { color: var(--gray-text); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(186,27,38,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: #f0f0f0; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { height: 48px; width: auto; object-fit: contain; }
.logo-link { flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--gray-light); color: var(--red); }

.header-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
/* hero.jpeg é 1600×1035 — ratio 64.7%. Respeita a proporção em vez de forçar 100vh */
.hero {
  position: relative;
  min-height: clamp(560px, calc(100vw * 0.647), 100vh);
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.65) 60%, rgba(186,27,38,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-badges span {
  background: rgba(186,27,38,0.85);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 4px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== DIFERENCIAIS ===== */
.diferenciais {
  background: var(--black);
  padding: 0;
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--red);
}
.diferencial-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.diferencial-item:last-child { border-right: none; }
.diferencial-item:hover { background: rgba(255,255,255,0.04); }
.diferencial-icon {
  flex-shrink: 0;
  color: var(--red);
}
.diferencial-item strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.diferencial-item span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

/* ===== QUEM SOMOS ===== */
.quem-somos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quem-somos-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* equipe.jpeg é 702×1090 (retrato) — corta a parte de cima que é menos relevante */
.quem-somos-img img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.quem-somos-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(186,27,38,0.4);
}
.quem-somos-badge strong { display: block; font-size: 1rem; font-weight: 700; }
.quem-somos-badge span { font-size: 0.8rem; opacity: 0.9; }

.quem-somos-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.3;
}
.quem-somos-text p {
  color: var(--gray-text);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.7;
}
.check-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-text);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ===== SERVIÇOS ===== */
.servicos { background: var(--gray-light); }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.servico-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.servico-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.servico-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.servico-card:hover .servico-img img { transform: scale(1.05); }
.servico-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.5) 0%, transparent 60%);
}
.servico-body {
  padding: 22px;
}
.servico-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.servico-body p {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* last 2 cards centered when 5 total */
.servicos-grid .servico-card:nth-child(4),
.servicos-grid .servico-card:nth-child(5) {
  /* handled by grid auto-placement */
}
@media (min-width: 900px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .servico-card:nth-child(4) { grid-column: 1; }
  .servico-card:nth-child(5) { grid-column: 2; }
}

/* ===== POR QUE ===== */
.por-que .section-header { margin-bottom: 56px; }
.por-que-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.por-que-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}
.por-que-item:hover {
  background: rgba(186,27,38,0.12);
  border-color: rgba(186,27,38,0.4);
}
.pq-icon {
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.por-que-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.por-que-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ===== SLIDER ===== */
.trabalhos { background: var(--white); }
.slider-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--black);
  user-select: none;
}
.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  flex: 0 0 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.slide-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slide-tag.antes { background: rgba(30,30,30,0.88); color: #ccc; border: 1px solid rgba(255,255,255,0.15); }
.slide-tag.durante { background: var(--red); color: var(--white); }
.slide-tag.depois { background: var(--yellow); color: var(--black); }
.slide-tag.servico { background: rgba(30,30,30,0.75); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.1); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: var(--red); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.slider-dot.active { background: var(--red); transform: scale(1.3); }

.trabalhos-cta {
  text-align: center;
  margin-top: 40px;
}
.trabalhos-cta p {
  color: var(--gray-text);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ===== PROCESSO ===== */
.processo { background: var(--gray-light); }
.processo-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.passo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 240px;
  padding: 0 20px;
}
.passo-num {
  width: 64px;
  height: 64px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(186,27,38,0.35);
  flex-shrink: 0;
}
.passo-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.passo-body p { color: var(--gray-text); font-size: 0.9rem; }
.passo-sep {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--red);
  opacity: 0.3;
  margin-top: 32px;
  align-self: flex-start;
}
.processo-cta { text-align: center; margin-top: 48px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  background: var(--red);
  padding: 80px 0;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0,0,0,0.3) 0%, transparent 70%);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ===== CONTATO ===== */
.contato { background: var(--white); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contato-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 32px;
  line-height: 1.3;
}
.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contato-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contato-item strong { display: block; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.contato-item span { color: var(--gray-text); font-size: 0.95rem; }
.contato-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.contato-form-wrap {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.contato-form-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}
.contato-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--black); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--black); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-logo { height: 44px; width: auto; object-fit: contain; }
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links strong, .footer-contact strong {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-links a, .footer-contact a, .footer-contact span {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--red); }

.footer-bottom {
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}
.footer-bottom strong { color: rgba(255,255,255,0.6); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 14px 18px 14px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .por-que-grid { grid-template-columns: repeat(3, 1fr); }
  .por-que-item:nth-child(4),
  .por-que-item:nth-child(5) { grid-column: auto; }
}

@media (max-width: 900px) {
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .diferencial-item:nth-child(2) { border-right: none; }
  .diferencial-item:nth-child(1),
  .diferencial-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }

  .quem-somos-grid { grid-template-columns: 1fr; gap: 40px; }

  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .servico-card:nth-child(4),
  .servico-card:nth-child(5) { grid-column: auto; }

  .por-que-grid { grid-template-columns: repeat(2, 1fr); }

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

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .section-dark { padding: 64px 0; }

  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--gray-light); }
  .nav a:last-child { border-bottom: none; }

  .header-cta { display: none; }
  .hamburger { display: flex; }

  .hero h1 { font-size: 1.75rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .diferenciais-grid { grid-template-columns: 1fr; }
  .diferencial-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .diferencial-item:last-child { border-bottom: none; }

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

  .por-que-grid { grid-template-columns: 1fr; }

  .slide img { height: 280px; }

  .processo-steps { flex-direction: column; align-items: center; gap: 24px; }
  .passo-sep { display: none; }
  .passo { max-width: 300px; }

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

  .whatsapp-float-label { display: none; }
  .whatsapp-float { padding: 16px; border-radius: 50%; }

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