/* 
  Casa dos Roteadores - Global Styles 
  Color Palette:
  Primary Blue: #1e73be
  White: #ffffff
*/

:root {
    --primary-blue: #1e73be;
    --primary-dark: #15558f;
    --primary-light: #3a8fe0;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --danger: #ef4444;
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px; /* Increased from 24px to perfectly center without touching edges */
}

.container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid {
    display: grid;
    gap: 40px; /* Aumentado de 32px para 40px (espaçamento entre colunas e linhas) */
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.items-center { align-items: center; }
.text-center { text-align: center; }
.mt-5 { margin-top: 64px; } /* Aumentado de 48px para 64px */
.mb-5 { margin-bottom: 64px; } /* Aumentado de 48px para 64px */

.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary-blue); }
.text-white { color: var(--white); }
.text-danger { color: var(--danger); }

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px; /* Aumentado de 16px para 20px */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
    margin-bottom: 32px;
}

/* Base Section */
.section {
    padding: 112px 0; /* Aumentado de 96px para 112px para respirar mais no desktop */
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(30, 115, 190, 0.39);
}
.bg-primary .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 115, 190, 0.23);
}

.bg-primary .btn-primary:hover {
    background-color: var(--gray-100);
}

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

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    text-decoration: none;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;         /* Height in the navbar */
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.logo-text {
    font-size: 1.25rem;
    line-height: 1.1;
    font-weight: 400;
    display: block;
}

.logo-text strong {
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

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

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

/* Problems Section */
.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list li i {
    font-size: 1.25rem;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.image-glow-container::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: var(--primary-blue);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.3;
}

.rounded-img { border-radius: 16px; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Solutions Section */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 24px;
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.glass-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.wide-img {
    width: 100%;
    max-width: 1000px;
    height: 400px;
}
.wide-img img {
    object-fit: cover;
    height: 100%;
}


/* =============================================
   PREMIUM ANIMATION SYSTEM
   ============================================= */

/* --- Hero Entrance Animation --- */
.fade-in-up {
    animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* --- Scroll-triggered animations (via IntersectionObserver in JS) --- */
.opacity-0 { opacity: 0; }

/* Slide Up (default) */
.shift-up {
    transform: translateY(48px);
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.shift-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Left */
.shift-left {
    transform: translateX(-48px);
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.shift-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Right */
.shift-right {
    transform: translateX(48px);
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.shift-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Scale */
.scale-in {
    transform: scale(0.9);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation delays */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.delay-5 { transition-delay: 0.60s; }

/* --- Glow Pulse on Hero Badge --- */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.15), 0 0 20px rgba(30,115,190,0.2); }
    50%       { box-shadow: 0 0 20px rgba(255,255,255,0.3),  0 0 40px rgba(30,115,190,0.5); }
}
.hero-badge { animation: glowPulse 3s ease-in-out infinite; }

/* --- Floating animation for hero image --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* --- Shimmer sweep on primary buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    transition: left 0.55s ease;
}
.btn-primary:hover::after {
    left: 150%;
}

/* --- Enhanced Card Hover Effects --- */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem !important; /* Consistent generous padding */
}
.glass-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 30px rgba(30,115,190,0.15);
    background: rgba(255, 255, 255, 1);
}
.bg-primary .glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.glass-card h3, .glass-card .h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.glass-card p {
    line-height: 1.65;
    margin-bottom: 0;
}

/* --- Image hover zoom with glow --- */
.image-wrapper {
    overflow: hidden;
    border-radius: 16px;
}
.image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-wrapper:hover img {
    transform: scale(1.04);
}

/* --- Blue glow halo on image wrappers --- */
.image-glow-container {
    position: relative;
}
.image-glow-container::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: radial-gradient(ellipse at center, rgba(30, 115, 190, 0.35) 0%, transparent 70%);
    border-radius: 24px;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

/* --- Glowing icon circles --- */
.icon-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover .icon-circle,
.feature-box:hover .icon-circle {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* --- Section title underline slide-in --- */
.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 4px;
    margin: 16px auto 0;
    transition: width 0.6s ease;
}
.bg-primary .section-title::after {
    background: rgba(255, 255, 255, 0.6);
}
.section-title:hover::after {
    width: 120px;
}

/* --- Brand item hover glow --- */
.brand-item {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-item:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 0 20px rgba(30,115,190,0.25);
}

/* --- Feature list item hover --- */
.feature-list li {
    transition: transform 0.25s ease, color 0.25s ease;
}
.feature-list li:hover {
    transform: translateX(6px);
    color: var(--primary-blue);
}
.bg-primary .feature-list li:hover {
    color: var(--white);
}

/* --- Animated background gradient on blue sections --- */
.bg-primary {
    background: linear-gradient(135deg, #1e73be 0%, #15558f 60%, #1e73be 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- CTA button group animated hover shadow --- */
.cta-buttons .btn:hover {
    box-shadow: 0 12px 32px rgba(30,115,190,0.4);
}


/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .container { padding: 0 20px; } /* Reduced from 40px for mobile */
    
    .hero-title { font-size: 2.25rem; margin-bottom: 16px; }
    .hero-subtitle { font-size: 1.125rem; margin-bottom: 32px; }
    .hero-buttons { flex-direction: column; gap: 16px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    
    .section { padding: 80px 0; } /* Aumentado de 64px para 80px no mobile para manter ótimo respiro */
    .section-title { font-size: 2rem; margin-bottom: 24px; }
    
    .mt-5 { margin-top: 40px; }
    .mb-5 { margin-bottom: 40px; }
    .grid { gap: 32px; }
}

/* Remaining styles for the new sections */

.text-lg { font-size: 1.125rem; }
.text-primary { color: var(--primary-blue); }
.text-warning { color: #fbbf24; }
.mb-4 { margin-bottom: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 16px; margin-right: 16px; }
.max-w-2xl { max-width: 42rem; }

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Feature Boxes (Benefits Section) */
.feature-box {
    text-align: center;
    padding: 24px;
}
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    color: var(--white);
}

.icon-circle.outline {
    background-color: transparent;
    border: 2px solid var(--primary-light);
}

.icon-circle.white-circle {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Brands Grid */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.brand-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.brand-item:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Footer */
.footer-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,0.5);
}

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

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 0.8;
}

.footer-links li i {
    margin-top: 4px;
}

.footer-links.no-icon li {
    display: block;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid segments */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; gap: 32px; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cta-buttons { display: flex; flex-direction: column; gap: 16px; }
    .cta-buttons .mx-2 { margin-left: 0; margin-right: 0; }
    
    .container { padding: 0 24px; } /* Return to 24px on very small screens so content isn't squeezed */
}
/* FAQ Styling */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-800);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease;
    background: var(--gray-50);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
    transition: max-height 0.6s ease-in-out, padding 0.4s ease;
}

.faq-answer p {
    color: var(--gray-600);
    margin: 0;
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}
/* Marquee Carousel Styling */
.marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 24px;
    animation: scroll 30s linear infinite;
    min-width: 200%;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brands-section .brand-item {
    font-size: 1.5rem;
    padding: 24px 48px;
    min-width: max-content;
}
