/* ================================================================
   HSN Systems - Pequenas Empresas: Design Overrides
   Purpose: Apply primary site design with PE customizations
   Inherits all main.css styles and applies PE-specific adjustments
   ================================================================ */

/* -------- CSS VARIABLES FOR PEQUENAS EMPRESAS -------- */
:root {
  --pe-primary: #1a56db;
  --pe-accent: #0ea5e9;
  --pe-dark: #0a1628;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --primary-dark: #0a1628;
  --primary: #1a56db;
  --text-muted: #64748b;
  --gradient-primary: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  --radius-lg: 16px;
}

/* -------- MOBILE MENU -------- */
/* NÃO sobrescrever position no .navmenu globalmente - o main.css gerencia isso */
@media (max-width: 1199px) {
  .mobile-nav-active .navmenu {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(10, 22, 40, 0.97) !important;
    z-index: 9997;
    overflow-y: auto;
  }

  .mobile-nav-active .navmenu>ul {
    display: block !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  /* Links visíveis no fundo escuro do overlay mobile */
  .navmenu a,
  .navmenu a:focus {
    color: #e2e8f0 !important;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #60a5fa !important;
  }
}

/* -------- OVERRIDE GLOBAL COLORS FOR PE --------
:root {
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #0a1628;
  --accent-color: #1a56db;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #ffffff;
  --nav-hover-color: #60a5fa;
}

/* -------- HEADER & NAVIGATION -------- */
#header {
  background: linear-gradient(135deg, #0a1628 0%, #1a56db 100%);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -3px;
  text-align: center;
}

#header.header-scrolled {
  background: linear-gradient(135deg, #0a1628 0%, #1a56db 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo img {
  filter: brightness(1) contrast(1);
}

/* Logo subtitle for pequenas-empresas site */
.logo .logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
  line-height: 1;
}

@media (max-width: 575px) {
  .logo .logo-subtitle {
    font-size: 0.65rem;
  }
}

.navmenu>ul>li>a {
  color: var(--nav-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navmenu>ul>li>a:hover,
.navmenu>ul>li>a.active {
  color: #60a5fa;
}

.highlight-menu {
  background: rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  padding: 8px 16px !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

/* -------- HERO SECTION -------- */
.hero-pe {
  background: linear-gradient(135deg, #0a1628 0%, #1a56db 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-pe h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-pe h1 span {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-pe p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* -------- BUTTONS -------- */
.btn-hero {
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-hero-primary:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* -------- SECTIONS -------- */
.section-pe {
  padding: 80px 0;
  overflow: visible;
  scroll-margin-top: 0;
  color: var(--text-muted);
  background-color: transparent;
}

.section-header-pe {
  text-align: center;
  margin-bottom: 50px;
}

.section-header-pe h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a1628;
  margin-bottom: 16px;
}

.section-header-pe .subtitle {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section-header-pe .accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  margin: 20px auto 24px;
  border-radius: 2px;
}

/* -------- CARDS (GENERIC) -------- */
.service-card,
.client-logo-pe,
.pricing-card-pe,
.segment-card-pe {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover,
.client-logo-pe:hover,
.pricing-card-pe:hover,
.segment-card-pe:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #1a56db;
}

/* -------- CARD-PE (Main card component for PE site) -------- */
.card-pe {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-pe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a56db, #0ea5e9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-pe:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #1a56db;
}

.card-pe:hover::before {
  opacity: 1;
}

.card-pe h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
  margin-top: 16px;
}

.card-pe p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* -------- ICON-PE -------- */
.icon-pe {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.1), rgba(14, 165, 233, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1a56db;
  transition: all 0.3s ease;
}

.card-pe:hover .icon-pe {
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  color: #ffffff;
  transform: scale(1.05);
}

/* -------- CLIENT LOGO -------- */
.client-logo-pe {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.client-logo-pe span {
  font-weight: 700;
  font-size: 1rem;
  color: #475569;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.client-logo-pe:hover span {
  color: #1a56db;
}

/* -------- PAIN POINT -------- */
.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.pain-point .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pain-point h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pain-point p {
  font-size: 0.82rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* -------- BENEFIT ITEM -------- */
.benefit-item {
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #1a56db !important;
}

.benefit-item h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

/* -------- STEP / HOW IT WORKS -------- */
.step-pe {
  text-align: center;
  padding: 36px 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  height: 100%;
}

.step-pe:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: #1a56db;
}

.step-number-pe {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step-pe:hover .step-number-pe {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(26, 86, 219, 0.3);
}

.step-pe h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
}

.step-pe p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.6;
}

/* -------- TESTIMONIAL -------- */
.testimonial-pe {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-pe::before {
  content: '\201c';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(26, 86, 219, 0.08);
  font-family: Georgia, serif;
}

.testimonial-pe:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #1a56db;
}

.testimonial-pe .stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-pe blockquote {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  border: none;
  padding: 0;
}

.testimonial-pe .author {
  font-weight: 600;
  color: #0a1628;
  font-size: 0.9rem;
}

.testimonial-pe .author span {
  display: block;
  font-weight: 400;
  color: #64748b;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* -------- CTA BANNER -------- */
.cta-banner-pe {
  background: linear-gradient(135deg, #1a56db, #0ea5e9);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
}

.cta-banner-pe h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner-pe p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 24px;
}

.cta-banner-pe .hero-cta-group {
  justify-content: center;
}

/* -------- FAQ (PE site) -------- */
.faq-item-pe {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item-pe:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-btn-pe {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a1628;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
  font-family: var(--heading-font);
}

.faq-btn-pe:hover {
  color: #1a56db;
}

.faq-btn-pe .icon-pe {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-btn-pe.collapsed .icon-pe {
  transform: rotate(180deg);
}

.faq-body-pe {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-body-pe.show {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-body-pe p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* -------- BREADCRUMB -------- */
.breadcrumb-pe {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.breadcrumb-pe a {
  color: #1a56db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-pe a:hover {
  color: #0ea5e9;
}

.breadcrumb-pe .separator {
  color: #94a3b8;
  margin: 0 8px;
}

.breadcrumb-pe .text-muted {
  color: #64748b;
}

/* -------- FOOTER -------- */
#footer {
  background: #0a1628;
  color: #ffffff;
  padding: 60px 0 20px;
}

#footer .footer-newsletter {
  background: linear-gradient(135deg, #1a56db, #0a1628);
  padding: 40px 0;
  margin-bottom: 40px;
}

#footer .sitename {
  color: #60a5fa;
  font-weight: 700;
}

#footer .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

#footer .footer-links a:hover {
  color: #60a5fa;
}

/* -------- UTILITIES -------- */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1024px) {
  .hero-pe h1 {
    font-size: 2.5rem;
  }

  .section-header-pe h2 {
    font-size: 2rem;
  }

  .cta-banner-pe h3 {
    font-size: 1.6rem;
  }

  .cta-banner-pe {
    padding: 40px 28px;
  }
}

@media (max-width: 768px) {
  .hero-pe {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .hero-pe h1 {
    font-size: 1.8rem;
  }

  .hero-pe p.lead {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .section-header-pe h2 {
    font-size: 1.6rem;
  }

  .section-pe {
    padding: 60px 0;
  }

  .cta-banner-pe {
    padding: 32px 20px;
  }

  .cta-banner-pe h3 {
    font-size: 1.3rem;
  }

  .card-pe {
    padding: 28px 20px;
  }

  .step-pe {
    padding: 28px 20px;
  }

  .testimonial-pe {
    padding: 28px 20px;
  }

  .section-header-pe .subtitle {
    font-size: 0.95rem;
    padding: 0 16px;
  }
}

/* ================================================================
   END OF PEQUENAS EMPRESAS DESIGN OVERRIDES
   ================================================================ */