/* ============================================================
   STYLE - Zinco Rio (Versao Agency Modern)
   ============================================================ */

/* ===== 1. VARIAVEIS (Facil Manutencao) ===== */
:root {
  /* Cores da Marca */
  --brand-primary: #c9151b;
  --brand-hover: #a20f14;
  --brand-light: rgba(201, 21, 27, 0.08);
  
  /* Cores Neutras */
  --text-main: #212529;
  --text-secondary: #6c757d;
  --bg-body: #f8f9fa;
  --bg-surface: #ffffff;
  --border-light: rgba(0,0,0,0.08);

  /* Sombras e Efeitos */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
  --radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== 2. BASE ===== */
* { box-sizing: border-box; }
body {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-hover); }

/* Utilitarios */
.object-cover { object-fit: cover; }
.fw-medium { font-weight: 500; }
.ls-1 { letter-spacing: 1px; }

/* ===== 3. COMPONENTES DE UI ===== */

/* Botoes */
.btn-cta {
  background-color: var(--brand-primary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 4px 15px rgba(201, 21, 27, 0.3);
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-cta:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 21, 27, 0.4);
}

/* Cards (Servicos e Info) */
.hover-card {
  transition: var(--transition);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

/* ===== 4. HERO SECTION (Carrossel) ===== */
.hero-viewport {
  position: relative;
  width: 100%;
  height: clamp(400px, 65vh, 700px); 
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-viewport .carousel-item {
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media > img,
.hero-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  z-index: 0;
}

.js-hero-video {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.js-hero-video.is-ready {
  opacity: 1;
}

.hero-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 5%;
  max-width: 600px;
  text-align: left;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-viewport img, 
.hero-viewport video {
  width: 100%; height: 100%; 
  object-fit: cover; 
}

/* ===== 5. LOGOS DE CLIENTES ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 1rem 0;
}

.client-item {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.6;
}

.client-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ===== 6. ANTES E DEPOIS (Slider) ===== */
.ba-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: ew-resize;
  background-color: #f1f1f1;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y; 
}

.ba-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  z-index: 2;
}

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3), 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.ba-grip::before, .ba-grip::after {
  content: ''; display: block; 
  border-left: 2px solid #fff; height: 12px; margin: 0 2px;
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 4;
  pointer-events: none;
}
.ba-label-left { left: 1rem; }
.ba-label-right { right: 1rem; }

/* ===== 7. FAQ (Accordion) ===== */
.accordion-item {
  border: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem !important;
  overflow: hidden;
}
.accordion-button:not(.collapsed) {
  background-color: var(--brand-primary);
  color: white;
  box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.1);
}

/* ===== 8. WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  z-index: 1050;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: pulse-green 2s infinite;
}
.whatsapp-float img, .whatsapp-float i {
  width: 32px; height: 32px; fill: white; color: white; font-size: 32px;
}
.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== 9. FOOTER & CORRECOES GERAIS ===== */

.footer-logo-lg {
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff !important;
  font-weight: 500;
  transition: var(--transition);
}
.btn-brand:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.footer-head {
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem !important;
}

.site-footer ul li {
  margin-bottom: 0.6rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

@media (min-width: 992px) {
  .footer-col-offset {
    padding-top: 35px; 
  }
}

/* ===== RESPONSIVO GERAL ===== */
@media (max-width: 768px) {
  .hero-viewport { height: 450px; }
  .hero-content { width: 90%; left: 5%; bottom: 2rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 991px), (prefers-reduced-motion: reduce) {
  .js-hero-video {
    display: none;
  }
}
