/* ========================================
   RM CELL - GESTÃO DE TRÁFEGO DIGITAL V2
   Design Moderno com Cards em Destaque
   CSS3 Puro - Sem Frameworks
   ======================================== */

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

:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --light: #f8fafc;
  --text: #475569;
  --text-dark: #1e293b;
  --border: #e2e8f0;
  --white: #ffffff;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

/* ========== TIPOGRAFIA ========== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

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

/* ========== CONTAINER ========== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: var(--transition);
}

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

.cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

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

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--accent-light);
  font-weight: 700;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.hero-image {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.info-item strong {
  color: var(--accent-light);
}

/* ========== SEÇÕES ========== */

section {
  padding: 5rem 0;
}

section.light-bg {
  background: linear-gradient(135deg, #f0f9fc 0%, #f8fafc 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
}

/* ========== SERVIÇOS COM CARDS ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: var(--accent);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* ========== FEATURES COM LAYOUT ALTERNADO ========== */

.features-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.features-section:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.features-section:nth-child(even) .feature-image {
  order: -1;
}

.feature-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== STATS SECTION ========== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ========== CTA SECTION ========== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 16px;
  margin: 4rem 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FORMULÁRIO ========== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.form-group button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

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

footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 4rem 0 1rem;
  margin-top: 5rem;
}

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

.footer-section h4 {
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

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

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

.cnpj-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
}

/* ========== RESPONSIVO ========== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-image {
    height: 250px;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-section {
    grid-template-columns: 1fr;
  }

  .features-section:nth-child(even) .feature-image {
    order: 0;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 2rem 0;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }
}
