/*
  ============================================================
  AMERIPARTS TRÊS LAGOAS - STYLESHEET
  CSS Não-Crítico (carregado de forma assíncrona)
  ============================================================
*/

/* =====================================================
   MARQUEE SECTION
   ===================================================== */

.marquee-section {
    background: var(--amarelo-destaque);
    padding: 16px 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    gap: 30px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    color: var(--azul-principal);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* =====================================================
   PAIN POINTS SECTION
   ===================================================== */

.section-dores {
    padding: var(--section-padding);
    background: var(--cinza-claro);
}

.section-title {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--azul-principal);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cinza-texto);
    margin-bottom: 40px;
    opacity: 0.85;
}

.dores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-mobile);
    margin-bottom: 40px;
}

.dor-card {
    background: var(--branco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.dor-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.dor-title {
    font-family: var(--font-principal);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--azul-principal);
    margin-bottom: 12px;
}

.dor-text {
    line-height: 1.7;
    color: var(--cinza-texto);
}

.dores-cta {
    text-align: center;
    margin-top: 50px;
}

.transition-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--azul-principal);
    margin-bottom: 20px;
}

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */

.section-categorias {
    padding: var(--section-padding);
    background: var(--branco);
}

.categorias-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.categoria-card {
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-medio) 100%);
    padding: 30px;
    border-radius: 8px;
    color: var(--branco);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categoria-card:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 40px rgba(27, 46, 110, 0.3);
}

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

.categoria-card:nth-child(even) {
    background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-principal) 100%);
}

.categoria-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.categoria-title {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.categoria-items {
    list-style: none;
    margin-bottom: 25px;
    opacity: 0.9;
}

.categoria-items li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.categoria-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amarelo-destaque);
    font-weight: 700;
}

.btn-categoria {
    width: 100%;
    background: var(--amarelo-destaque);
    color: var(--azul-principal);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-categoria:hover {
    background: var(--amarelo-hover);
    transform: translateY(-2px);
}

/* =====================================================
   BRANDS SECTION
   ===================================================== */

.section-marcas {
    padding: var(--section-padding);
    background: var(--azul-principal);
    color: var(--branco);
}

.section-marcas .section-title {
    color: var(--branco);
}

.section-marcas .section-subtitle {
    color: rgba(255,255,255,0.85);
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.marca-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.marca-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.marca-logo {
    width: 100%;
    max-width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-logo svg {
    width: 100%;
    height: 100%;
    fill: var(--branco);
    transition: all 0.3s ease;
}

.marca-item:hover .marca-logo svg {
    fill: var(--amarelo-destaque);
    transform: scale(1.1);
}

.marca-name {
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
}

.marcas-cta {
    text-align: center;
    margin-top: 50px;
}

.marcas-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* =====================================================
   DIFFERENTIALS SECTION
   ===================================================== */

.section-diferenciais {
    padding: var(--section-padding);
    background: var(--cinza-claro);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.diferencial-card {
    background: var(--branco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.diferencial-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.diferencial-title {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--azul-principal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.diferencial-text {
    line-height: 1.7;
    color: var(--cinza-texto);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--branco);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-number {
    font-family: var(--font-secundaria);
    font-weight: 800;
    font-size: 3rem;
    color: var(--amarelo-destaque);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--cinza-texto);
    font-weight: 600;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.section-depoimentos {
    padding: var(--section-padding);
    background: var(--branco);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--amarelo-destaque);
    color: var(--azul-principal);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-btn:hover {
    background: var(--amarelo-hover);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.testimonial-card {
    min-width: 100%;
    background: var(--cinza-claro);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--amarelo-destaque);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cinza-texto);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--azul-principal);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 2px;
}

.author-source {
    font-size: 0.85rem;
    color: var(--cinza-texto);
    opacity: 0.7;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cinza-claro);
    border: 2px solid var(--azul-principal);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--azul-principal);
    transform: scale(1.2);
}

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

.section-cta-final {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-medio) 100%);
    color: var(--branco);
    position: relative;
    overflow: hidden;
}

.section-cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 20px,
            rgba(255,255,255,0.03) 20px,
            rgba(255,255,255,0.03) 40px
        );
    pointer-events: none;
}

.cta-headline {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-text {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.step-number {
    font-size: 2.5rem;
    line-height: 1;
}

.step-item p {
    font-weight: 600;
    font-size: 1rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--amarelo-destaque);
    display: none;
}

.btn-cta-giant {
    width: 100%;
    max-width: 500px;
    background: var(--amarelo-destaque);
    color: var(--azul-principal);
    border: none;
    padding: 20px 40px;
    border-radius: 8px;
    font-family: var(--font-principal);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 6px 25px rgba(245, 194, 0, 0.4);
}

.btn-cta-giant:hover {
    background: var(--amarelo-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 194, 0, 0.5);
}

.cta-subtext {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.section-faq {
    padding: var(--section-padding);
    background: var(--cinza-claro);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--branco);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--azul-principal);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--cinza-claro);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amarelo-destaque);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--cinza-texto);
    line-height: 1.7;
}

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

.footer {
    padding: 60px 0 30px;
    background: var(--azul-principal);
    color: var(--branco);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amarelo-destaque);
}

.logo-footer {
    margin-bottom: 15px;
}

.footer-text {
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 15px;
}

.footer-cnpj {
    font-weight: 700;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--branco);
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-principal);
    font-size: 1rem;
}

.footer-link:hover {
    opacity: 1;
    color: var(--amarelo-destaque);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--amarelo-destaque);
    color: var(--azul-principal);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 30px 0;
    background: var(--azul-escuro);
    color: var(--branco);
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 15px;
    opacity: 0.85;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: var(--branco);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-principal);
    font-size: 0.9rem;
}

.footer-legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-dev {
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--verde-whatsapp);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--azul-principal);
    color: var(--branco);
    padding: 8px 15px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--azul-principal);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* =====================================================
   COOKIE BANNER
   ===================================================== */

.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--azul-principal);
    color: var(--branco);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-link {
    color: var(--amarelo-destaque);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-principal);
    font-size: 1rem;
    padding: 0;
}

.cookie-link:hover {
    opacity: 0.8;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-accept {
    background: var(--amarelo-destaque);
    color: var(--azul-principal);
}

.btn-accept:hover {
    background: var(--amarelo-hover);
}

.btn-essential {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
}

.btn-essential:hover {
    background: var(--branco);
    color: var(--azul-principal);
}

/* =====================================================
   MODALS
   ===================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--branco);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cinza-texto);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--cinza-claro);
    color: var(--azul-principal);
}

.modal-title {
    font-family: var(--font-secundaria);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--azul-principal);
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--cinza-claro);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    font-weight: 700;
    color: var(--azul-principal);
    margin: 25px 0 12px;
    font-size: 1.2rem;
}

.modal-body h4 {
    font-weight: 600;
    color: var(--azul-medio);
    margin: 20px 0 10px;
    font-size: 1.05rem;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 10px 0 20px 25px;
    line-height: 1.8;
}

.modal-footer-text {
    font-style: italic;
    opacity: 0.7;
    margin-top: 30px;
}

/* =====================================================
   TABLET & DESKTOP RESPONSIVE
   ===================================================== */

@media (min-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
    
    .dores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap-desktop);
    }
    
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .marcas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cta-steps {
        flex-direction: row;
        justify-content: center;
    }
    
    .step-arrow {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-banner {
        padding: 25px 40px;
    }
}

@media (min-width: 1024px) {
    .categorias-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .diferenciais-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .marcas-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .whatsapp-float {
        width: 64px;
        height: 64px;
    }
    
    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .whatsapp-float,
    .cookie-banner,
    header,
    .slider-btn,
    .btn,
    .btn-categoria,
    .modal {
        display: none !important;
    }
}