/* ============================================
   SUL BRASIL EXTINTORES - SITE INSTITUCIONAL
   Cores: #000000, #FFEC3D, #FFFFFF, #FF2828
   Tipografia: Inter
   ============================================ */

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

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

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAV --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 50%;
}

.nav__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.nav__logo-text span {
  color: #FF2828;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF2828;
  transition: width 0.3s;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  background: #FF2828 !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav__cta:hover {
  background: #e01f1f !important;
  transform: translateY(-2px);
}

.nav__cta::after {
  display: none !important;
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav__toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background: url('img/estrutura.webp') center center / cover no-repeat;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,40,40,0.15);
  border: 1px solid rgba(255,40,40,0.3);
  color: #FF2828;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #FF2828;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: #FF2828;
  position: relative;
}

.hero__subtitle {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn--primary {
  background: #FF2828;
  color: #fff;
}

.btn--primary:hover {
  background: #e01f1f;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,40,40,0.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: #FFEC3D;
  color: #FFEC3D;
  transform: translateY(-3px);
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 3;
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFEC3D;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SECTION COMMON --- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: #000;
  color: #fff;
}

.section--red {
  background: #FF2828;
  color: #fff;
}

.section--gray {
  background: #f8f8f8;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FF2828;
  margin-bottom: 12px;
}

.section--dark .section__label,
.section--red .section__label {
  color: #FFEC3D;
}

.section__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section--dark .section__desc {
  color: rgba(255,255,255,0.6);
}

.section--red .section__desc {
  color: rgba(255,255,255,0.85);
}

/* --- ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
}

.about__image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: #FF2828;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about__content-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FF2828;
  margin-bottom: 12px;
}

.about__content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about__content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.about__feature-icon {
  width: 40px;
  height: 40px;
  background: #FF2828;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__feature-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* --- SERVICES VIDEO BACKGROUND --- */
.section--dark {
  position: relative;
  overflow: hidden;
}

.services__video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.services__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.services__fire-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.fire-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fire-float linear infinite;
}

@keyframes fire-float {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-400px) scale(1.5);
    opacity: 0;
  }
}

/* --- SERVICES --- */
.section--dark > .container {
  position: relative;
  z-index: 3;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FF2828;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,40,40,0.3);
  transform: translateY(-8px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,40,40,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  fill: #FF2828;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.service-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* --- TREINAMENTOS --- */
.training__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.training-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.training-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.training-card__header {
  background: #FF2828;
  padding: 32px;
  position: relative;
}

.training-card__header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.training-card__header p {
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  font-size: 0.95rem;
}

.training-card__body {
  padding: 32px;
}

.training-card__body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.training-card__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.training-card__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.training-card__info-item svg {
  width: 20px;
  height: 20px;
  fill: #FF2828;
  flex-shrink: 0;
}

/* --- CLIENTES --- */
.section--white {
  background: #fff;
}

.section--white .section__label {
  color: #FF2828;
}

.section--white .section__title {
  color: #000;
}

.section--white .section__desc {
  color: #555;
}

.clients__track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scroll-clients 20s linear infinite;
  width: max-content;
}

.clients__track:hover {
  animation-play-state: paused;
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients__wrapper {
  overflow: hidden;
  padding: 40px 0;
}

.client-item {
  flex-shrink: 0;
  padding: 24px 40px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  height: 200px;
  transition: all 0.3s;
  cursor: default;
}

.client-item:hover {
  transform: translateY(-4px);
}

.client-logo {
  height: 200px;
  max-width: 300px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: all 0.4s;
  flex-shrink: 0;
}

.client-item:hover .client-logo {
  opacity: 1;
  transform: scale(1.08);
  filter: none;
}

/* --- CTA SECTION --- */
.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--white {
  background: #fff;
  color: #FF2828;
}

.btn--white:hover {
  background: #FFEC3D;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,236,61,0.3);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* --- CONTATO --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,40,40,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 22px;
  height: 22px;
  fill: #FF2828;
}

.contact__info-text h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__info-text p,
.contact__info-text a {
  color: #666;
  font-size: 0.95rem;
}

.contact__info-text a:hover {
  color: #FF2828;
}

.contact__form {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 16px;
}

.contact__form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form__group {
  margin-bottom: 16px;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #fff;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #FF2828;
}

.form__group textarea {
  height: 120px;
  resize: vertical;
}

.form__submit {
  width: 100%;
  padding: 16px;
  background: #FF2828;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.form__submit:hover {
  background: #e01f1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,40,40,0.3);
}

/* --- MAP --- */
.map__wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 64px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.map__wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- FOOTER --- */
.footer {
  background: #000;
  color: #fff;
  padding: 64px 0 0;
}

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

.footer__brand p {
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
}

.footer__brand-logo span {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #FFEC3D;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer__links a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer__social a:hover {
  background: #FF2828;
  transform: translateY(-3px);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.6); }
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* --- SCROLL TO TOP --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 96px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #FF2828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #e01f1f;
  transform: translateY(-3px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s;
    padding: 40px;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero__stat-number {
    font-size: 2rem;
  }

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

  .about__image {
    order: -1;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .contact__form {
    padding: 24px;
  }
}

/* Overlay for mobile menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Certifications badges */
.certifications {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,40,40,0.08);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FF2828;
}

.cert-badge svg {
  width: 18px;
  height: 18px;
  fill: #FF2828;
}
