/* =========================================================
   Fênix Balanceamentos Industriais — Estilos
   Tema: Fogo / Fênix (vermelho, laranja, fundo escuro)
   ========================================================= */

:root {
  /* Cores */
  --bg:            #121212;
  --bg-alt:        #1a1a1a;
  --bg-card:       #1f1f1f;
  --bg-card-hover: #262626;
  --border:        #2e2e2e;

  --text:          #f2f2f2;
  --text-muted:    #b3b3b3;
  --text-dim:      #8a8a8a;

  --fire-red:      #e63946;
  --fire-orange:   #ff7b00;
  --fire-yellow:   #ffb703;
  --fire-gradient: linear-gradient(135deg, #e63946 0%, #ff7b00 60%, #ffb703 100%);

  /* Tipografia */
  --font-title: "Oswald", system-ui, sans-serif;
  --font-body:  "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-fire: 0 8px 26px rgba(255, 123, 0, 0.28);
  --nav-h:     72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-fire {
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fire-orange);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--fire-gradient);
  color: #1a0e00;
  box-shadow: var(--shadow-fire);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255, 123, 0, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--fire-orange); color: var(--fire-orange); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.navbar.scrolled {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar__brand { display: flex; align-items: center; }
.navbar__logo {
  height: 46px; width: auto;
  background: #fff;
  padding: 5px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.navbar__brand:hover .navbar__logo { transform: scale(1.03); }

.navbar__list { display: flex; align-items: center; gap: 6px; }
.navbar__link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.navbar__link:hover { color: var(--text); }
.navbar__link--cta {
  background: var(--fire-gradient);
  color: #1a0e00 !important;
  font-weight: 600;
}
.navbar__link--cta:hover { box-shadow: var(--shadow-fire); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.navbar__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(255, 123, 0, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(230, 57, 70, 0.18), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.2), rgba(18,18,18,0.85));
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 780px; padding-top: var(--nav-h); }
.hero__eyebrow {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--fire-orange);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__subtitle { font-size: 1.12rem; color: var(--text-muted); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--text-dim); border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--fire-orange); border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--fire-orange);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__lead { color: var(--text-muted); font-size: 1.05rem; }
.section__text { color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Grid 2 colunas (Quem somos) ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.quem-somos__img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.quem-somos__img img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
  color: var(--fire-orange);
  border: 1px solid var(--fire-orange);
  border-radius: 50%;
}

/* ---------- Cards (MVV) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--fire-orange); box-shadow: var(--shadow); }
.card__icon { font-size: 2.6rem; margin-bottom: 14px; }
.card__title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; font-size: 1.3rem; margin-bottom: 12px; }
.card__text { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Serviços ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--fire-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service:hover { transform: translateY(-6px); border-color: var(--fire-orange); box-shadow: var(--shadow); background: var(--bg-card-hover); }
.service:hover::before { transform: scaleX(1); }
.service__icon { font-size: 2.2rem; margin-bottom: 16px; }
.service__title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: 0.5px; font-size: 1.18rem; margin-bottom: 10px; }
.service__text { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Placeholders de mídia ---------- */
.media-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #1d1d1d, #1d1d1d 12px, #232323 12px, #232323 24px);
  border: 1px dashed #3a3a3a;
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
}
.media-placeholder::after {
  content: attr(data-label);
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 30px;
  background: rgba(0,0,0,0.3);
}
.media-placeholder--tall { min-height: 420px; }

/* ---------- Galeria ---------- */
.gallery__subtitle {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
  color: var(--text);
  margin: 28px 0 18px;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.gallery__item.media-placeholder { border-style: dashed; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:hover { transform: scale(1.03); box-shadow: var(--shadow-fire); }
.gallery__item:hover img { transform: scale(1.05); transition: transform 0.4s ease; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.video-placeholder { aspect-ratio: 16 / 9; min-height: 0; }
.video-placeholder__play {
  position: absolute;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--fire-gradient);
  color: #1a0e00;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-fire);
}
.video-placeholder::after { transform: translateY(60px); }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.client-logo {
  aspect-ratio: 3 / 2;
  min-height: 0;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-4px); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact__item:hover { border-color: var(--fire-orange); transform: translateX(4px); }
.contact__icon { font-size: 1.5rem; flex-shrink: 0; }
.contact__item strong { font-family: var(--font-title); letter-spacing: 0.5px; }
.contact__item span { color: var(--text-muted); }
.contact__item strong { color: var(--text); }
.contact__cta { text-align: center; margin-top: 8px; }
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; display: block; filter: grayscale(20%) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: #0d0d0d; border-top: 1px solid var(--border); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__logo {
  width: 190px; max-width: 100%;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer__tagline { color: var(--text-muted); max-width: 260px; }
.footer__col h4 {
  font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px;
  font-size: 1rem; margin-bottom: 16px; color: var(--text);
}
.footer__col a, .footer__col span { display: block; color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--fire-orange); }
.footer__col em { color: var(--text-dim); font-size: 0.8rem; }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; }
.footer__bottom p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 1500;
  transition: transform 0.2s ease;
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 30px;
}
.lightbox.open { display: grid; }
.lightbox__content {
  max-width: 90vw; max-height: 85vh;
  width: 700px; aspect-ratio: 4/3;
}
.lightbox__content .media-placeholder { width: 100%; height: 100%; min-height: 0; }
.lightbox__content img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: 0; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { color: var(--fire-orange); }

/* ---------- Animação de revelação ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .cards-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .navbar__nav {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - var(--nav-h));
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 30px 20px;
  }
  .navbar__nav.open { transform: translateX(0); }
  .navbar__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .navbar__link { padding: 14px 16px; font-size: 1.05rem; }
  .navbar__toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .cards-3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 560px) {
  .cards-grid, .gallery, .videos { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .container { padding: 0 18px; }
}

/* Respeita preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
