/* ===========================
   MAGRINI ASSESSORIA
   ENTERPRISE STYLESHEET
   =========================== */

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

:root {
  --primary-color: #0a2540;
  --secondary-color: #1e5a8e;
  --accent-color: #00d4ff;
  --gold-accent: #f4a300;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #0f1419;
  --gradient-primary: linear-gradient(135deg, #0a2540 0%, #1e5a8e 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0a2540 100%);
  --gradient-gold: linear-gradient(135deg, #f4a300 0%, #ff6b00 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.24);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ===========================
   HEADER ENTERPRISE
   =========================== */

header {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

nav a:hover {
  color: var(--accent-color);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-primary {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient-gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ===========================
   SECTIONS LAYOUT
   =========================== */

section {
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===========================
   CARDS ENTERPRISE
   =========================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.card-cta {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.card-cta:hover {
  color: var(--accent-color);
  gap: 1rem;
}

/* ===========================
   BACKGROUND ALTERNADO
   =========================== */

.bg-light {
  background: var(--bg-light);
}

.bg-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.bg-dark .section-title {
  color: var(--white);
}

.bg-dark .section-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ===========================
   FOOTER ENTERPRISE
   =========================== */

footer {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ===========================
   MELHORIAS RESPONSIVAS
   =========================== */

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  section {
    padding: 4rem 1.5rem;
  }
  
  /* Formulário responsivo */
  form {
    padding: 0;
  }
  
  input, textarea, select {
    font-size: 16px !important; /* Evita zoom no iOS */
  }
}

@media (max-width: 1024px) {
  /* Grid de 2 colunas em contato vira 1 coluna */
  section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================
   WHATSAPP FLUTUANTE
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
  }
}
