/* ==========================================================================
   APA Presentes Corporativos - Landing Page SEO B2B
   Estilos Padronizados e Otimizados
   ========================================================================== */

:root {
  --brand-lilac: #AA96DA;
  --brand-lilac-dark: #6346A5;
  --brand-lilac-dark-hover: #52358F;
  --brand-lilac-hover: #937ed1;
  --brand-lilac-light: #f4f1fa;
  --brand-graphite: #2D3748;
  --brand-navy: #1A202C;
  --brand-navy-dark: #111827;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #128C7E;
  --surface-white: #FFFFFF;
  --surface-alt: #F8FAFC;
  --border-color: #E2E8F0;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background-color: var(--surface-alt);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  scroll-margin-top: 5.5rem;
}

#beneficios, #produtos, #cotacao, #faq {
  scroll-margin-top: 5.5rem;
}

/* Header & Navigation */
.header {
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--brand-lilac);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-lilac-dark);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(99, 70, 165, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-lilac-dark-hover);
  box-shadow: 0 4px 6px rgba(99, 70, 165, 0.4);
}

.btn-outline {
  background-color: var(--surface-white);
  color: var(--brand-graphite);
  border-color: #CBD5E1;
}

.btn-outline:hover {
  background-color: var(--surface-alt);
  border-color: #94A3B8;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--brand-navy);
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.25);
  gap: 0.5rem;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  color: #FFFFFF;
}

.btn-block {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-secondary);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--surface-white);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.mobile-nav.open {
  display: flex;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-color);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7158B0;
  background-color: var(--brand-lilac-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand-graphite);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-showcase {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 380px;
  height: 380px;
  object-fit: contain;
  margin: 0 auto;
}

.hero-badge-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
}

/* Benefícios B2B */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--brand-graphite);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.benefit-card {
  background-color: var(--surface-white);
  padding: 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background-color: var(--brand-lilac-light);
  color: #7158B0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-graphite);
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Vitrine de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  background-color: var(--surface-white);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
  background-color: #F8FAFC;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7158B0;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-graphite);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Cotação & Formulário */
.quote-box {
  background-color: var(--surface-white);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.quote-sidebar {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-sidebar h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.quote-sidebar p {
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.quote-form-container {
  padding: 2.5rem;
}

.quote-form-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-graphite);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-graphite);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-lilac);
  box-shadow: 0 0 0 3px rgba(170, 150, 218, 0.25);
}

.demo-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--brand-lilac);
}

.faq-summary {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-graphite);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-lilac);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  background-color: #DCFCE7;
  color: #16A34A;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-graphite);
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--brand-navy-dark);
  color: #F8FAFC;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #1E293B;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-desc {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cnpj-badge {
  display: inline-block;
  background-color: #1E293B;
  color: #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-icon {
  color: var(--brand-lilac);
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.footer-address {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-link {
  color: var(--brand-lilac);
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  text-align: center;
  color: #64748B;
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .header-cta {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quote-box {
    grid-template-columns: 2fr 3fr;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
