/*
Theme Name: Montser Industrial & Hydro
Theme URI: https://montser.com.br
Description: Tema personalizado de alta performance para a Montser Industrial.
Author: Antigravity AI
Version: 1.0.0
Text Domain: montser-industrial
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800;900&display=swap');

:root {
  --primary: #213e64; /* Azul da segunda imagem */
  --primary-dark: #162942;
  --accent: #f39c12;
  --accent-hover: #e67e22;
  --text-dark: #0f172a;
  --text-light: #475569;
  --white: #ffffff;
  --bg-light: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  --border: #cbd5e1;
  --container-max: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --industrial-grid: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

/* Typography Helpers */
.section-title {
  margin-bottom: 60px;
  position: relative;
  padding-left: 25px;
  border-left: 5px solid var(--accent);
}

.section-title span {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 12px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Enhanced Header CTA */
.btn-cta-header {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
  border: none !important;
  position: relative;
  overflow: hidden;
}

.btn-cta-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
  transition: var(--transition);
}

.btn-cta-header:hover::after {
  left: 100%;
}

/* 24h Badge */
.badge-24h {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c0392b;
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(192, 57, 43, 0.3);
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Industrial Authority Sections */
.stat-item {
  text-align: center;
  padding: 30px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 3.5rem; font-weight: 900; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; font-family: 'Outfit'; }
.stat-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.6); font-weight: 700; }

.industrial-bg {
  background-color: var(--primary-dark);
  background-image: var(--industrial-grid);
  background-size: 30px 30px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.benefit-card {
  padding: 40px;
  background: white;
  border-radius: 8px;
  border-bottom: 4px solid var(--border);
  transition: var(--transition);
}
.benefit-card:hover { border-bottom-color: var(--accent); transform: translateY(-5px); }
.benefit-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; display: block; }

.project-case {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 450px;
}
.project-case .info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, var(--primary-dark), transparent);
  color: white;
  transform: translateY(20px);
  transition: var(--transition);
}
.project-case:hover .info { transform: translateY(0); }

/* Responsive */

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Logo Slider */
.logo-slider-wrapper {
  padding: 40px 0;
  overflow: hidden;
}

.logo-slider {
  overflow: hidden;
  padding: 40px 0;
  background: var(--bg-subtle);
  position: relative;
  white-space: nowrap;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-subtle), transparent);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-subtle), transparent);
}

.logo-track {
  display: inline-flex;
  animation: scroll 40s linear infinite;
  gap: 80px;
  align-items: center;
}

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

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

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

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-180px * 10 - 80px * 10)); }
}

/* Responsive Grid Utility Classes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-container {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
  transition: var(--transition);
}

.badge-equipe {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: white;
  padding: 25px;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: var(--transition);
}

/* Mobile Navigation Drawer styles */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.drawer-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.drawer-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 50px;
}

.drawer-nav a {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
  transition: var(--transition);
}

.drawer-nav a.active, .drawer-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-contact-info span, .drawer-contact-info a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-contact-info i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-180px * 10 - 80px * 10)); }
}

@media (max-width: 991px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }

  .logo-item {
    width: 140px;
    gap: 40px;
  }

  .benefit-card {
    padding: 25px;
  }

  .card {
    padding: 30px !important;
  }

  /* Make gallery overlay title always visible on mobile/touch devices */
  .gallery-overlay {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .stats-grid .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0 !important;
  }

  .stats-grid .stat-item:last-child {
    border-bottom: none !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .form-container {
    padding: 25px 20px !important;
  }

  .badge-equipe {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    display: inline-block;
    margin-top: 15px;
    width: 100%;
    text-align: center;
    padding: 15px !important;
    font-size: 0.9rem;
  }

  /* Ocultar elementos desnecessários na barra do topo para economizar espaço vertical */
  .top-bar {
    padding: 5px 0 !important;
  }

  .top-bar .top-left span:first-child,
  .top-bar .top-left span:nth-child(2),
  .top-bar .top-right {
    display: none !important;
  }

  .top-bar .container {
    justify-content: center !important;
  }

  .top-bar .top-left {
    margin-right: 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .top-bar .badge-24h {
    margin-right: 0 !important;
  }
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.5s ease-out;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
