/* ----------------------------------------------------
   SafeLayer Design System - Campos Verdes Transportes
   ---------------------------------------------------- */

:root {
  /* Colors */
  --primary-dark: #0A2F1D;
  --primary: #174E33;
  --primary-light: #D4EDDA;
  --accent: #E5A93B;
  --accent-hover: #C58F2C;
  --accent-light: #FDF5E6;
  --bg-light: #F6FAF7;
  --bg-white: #FFFFFF;
  --bg-dark: #07160F;
  --text-dark: #1E2E25;
  --text-muted: #5D7065;
  --text-light: #F0F5F2;
  --border-color: #E2EAE5;
  
  /* Fonts */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 47, 29, 0.04);
  --shadow-md: 0 8px 16px rgba(10, 47, 29, 0.08);
  --shadow-lg: 0 16px 32px rgba(10, 47, 29, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Utilities / Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-width-md {
  max-width: 800px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2-cols {
  grid-template-columns: 1fr 1fr;
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.gap-sm { gap: 16px; }
.gap-md { gap: 32px; }
.gap-lg { gap: 48px; }

.section-header {
  margin-bottom: 56px;
}

.section-title {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.accent-text {
  color: var(--accent);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(229, 169, 59, 0.15);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge.accent {
  background-color: rgba(229, 169, 59, 0.2);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(229, 169, 59, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 169, 59, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(240, 245, 242, 0.3);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(240, 245, 242, 0.08);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Header & Navigation */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-normal);
  padding: 20px 0;
}

#main-header.scrolled {
  background-color: rgba(10, 47, 29, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(240, 245, 242, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-light);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

#main-header.scrolled .logo-text {
  color: var(--text-light);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(240, 245, 242, 0.85);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  background-image: url('assets/images/hero_truck.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 47, 29, 0.95) 0%, rgba(7, 22, 15, 0.65) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.25rem;
  color: rgba(240, 245, 242, 0.9);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sinergia Agro Section */
.sinergia-section {
  padding: 100px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.sinergia-visual {
  background-image: linear-gradient(rgba(10, 47, 29, 0.05), rgba(10, 47, 29, 0.05)), url('assets/images/hero_truck.png');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sinergia-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 47, 29, 0.9) 0%, rgba(10, 47, 29, 0.2) 100%);
  z-index: 1;
}

.badge-agro {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  background-color: var(--bg-white);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.icon-leaf {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.agro-card {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 12px;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent);
}

.agro-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.agro-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-weight: 500;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Serviços Section */
.servicos-section {
  padding: 100px 0;
}

.service-card {
  text-align: left;
}

.service-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: rgba(23, 78, 51, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-container {
  background-color: var(--primary);
  color: var(--bg-white);
}

.service-icon {
  width: 32px;
  height: 32px;
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.features-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 80px 0;
}

.subsection-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.subsection-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.feature-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(229, 169, 59, 0.15);
  color: var(--accent-hover);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Stats Visual */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Motoristas Section (Dark Mode Premium) */
.motoristas-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  background-image: linear-gradient(rgba(7, 22, 15, 0.85), rgba(7, 22, 15, 0.85)), url('assets/images/driver_partnership.png');
  background-size: cover;
  background-position: center;
}

.benefit-card {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.benefit-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(229, 169, 59, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon {
  width: 24px;
  height: 24px;
}

.benefit-title {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.benefit-desc {
  font-size: 0.9rem;
  color: rgba(240, 245, 242, 0.7);
  margin-bottom: 0;
}

/* Form Container */
.form-container {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--bg-light);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(23, 78, 51, 0.08);
}

.alert {
  padding: 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 20px;
}

.success-alert {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.hidden {
  display: none;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item[open] {
  background-color: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon-arrow {
  width: 10px;
  height: 10px;
  border-bottom: 2.5px solid var(--primary);
  border-right: 2.5px solid var(--primary);
  transform: rotate(45deg);
  transition: transform var(--transition-normal);
  margin-right: 4px;
}

.faq-item[open] .faq-icon-arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--border-color);
}

/* Footer */
.main-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer-top {
  border-bottom: 1px solid rgba(240, 245, 242, 0.08);
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(240, 245, 242, 0.7);
  max-width: 320px;
}

.footer-title {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(240, 245, 242, 0.7);
}

.footer-menu a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: rgba(240, 245, 242, 0.7);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 30px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(240, 245, 242, 0.5);
  font-size: 0.8rem;
}

.agency-credit {
  font-size: 0.85rem;
}

.agency-name {
  font-weight: 700;
  color: var(--accent);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 22, 15, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-card {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.icon-close {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  
  .grid-3-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .grid-2-cols {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 140px 0 80px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-lead {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 32px;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(240, 245, 242, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
  }
  
  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .btn-quote-trigger {
    width: 100%;
  }
  
  .sinergia-section,
  .servicos-section,
  .motoristas-section,
  .faq-section {
    padding: 64px 0;
  }
  
  .form-container {
    padding: 24px;
  }
  
  .modal-card {
    margin: 20px;
    padding: 24px;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}
