/* LLTUNER - Tuning e Performance Automotiva */

:root {
    /* Paleta: manual-marca.pdf (LL TUNER) */
    --primary: #0860b0;
    --primary-dark: #284878;
    --primary-light: #1890d8;
    --dark: #284878;
    --darker: #0a1628;
    /* Bootstrap 5 */
    --bs-primary: #0860b0;
    --bs-primary-rgb: 8, 96, 176;
}

.btn-primary {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    color: #fff !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-secondary,
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
}

.btn-outline-secondary:hover,
.btn-outline-light:hover {
    background-color: rgba(8, 96, 176, 0.2) !important;
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Navbar */
.navbar {
    background: rgba(40, 72, 120, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(40, 72, 120, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-phone {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-phone i {
    margin-right: 0.5rem;
}


/* Sections */
.section-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.about-image {
    position: relative;
}

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

.about-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(8, 96, 176, 0.4);
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-features li {
    padding: 0.6rem 0;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.about-features li i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

@media (max-width: 991px) {
    .about-section .order-lg-1 {
        order: 2;
    }

    .about-section .order-lg-2 {
        order: 1;
    }

    .about-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
    }

    .badge-number {
        font-size: 1.5rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    background: #152a45;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(24, 144, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 96, 176, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.how-it-works-section .container {
    position: relative;
    z-index: 1;
}

.how-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}

.how-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.how-highlight {
    color: var(--primary);
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.how-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.how-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(8, 96, 176, 0.25);
}

.how-step-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.how-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.how-step-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.btn-how-cta {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff !important;
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-how-cta:hover {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: #fff !important;
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .how-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Cards */
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 96, 176, 0.2);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.service-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-body {
    padding: 1.5rem;
}

.product-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.product-body .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-body p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Package Cards */
.package-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.package-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(8, 96, 176, 0.2);
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(8, 96, 176, 0.25);
}

.package-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
}

.package-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.package-price {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.package-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.package-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.package-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Gallery */
.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item.hidden {
    display: none !important;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    max-width: 700px;
    padding: 3rem;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h5 {
    font-weight: 700;
    color: var(--dark);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 96, 176, 0.25);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.contact-intro {
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(8, 96, 176, 0.15);
    border-color: var(--primary);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.contact-card-whatsapp .contact-card-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.contact-card-email .contact-card-icon {
    background: rgba(8, 96, 176, 0.12);
    color: var(--primary);
}

.contact-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-card-phone,
.contact-card-email-addr {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.contact-card-whatsapp .contact-card-phone {
    color: #25d366;
}

.contact-card-email .contact-card-email-addr {
    color: var(--primary);
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-card-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-card-whatsapp .contact-card-cta {
    background: rgba(37, 211, 102, 0.15);
    color: #128c7e;
}

.contact-card-whatsapp:hover .contact-card-cta {
    background: #25d366;
    color: #fff;
}

.contact-card-email .contact-card-cta {
    background: rgba(8, 96, 176, 0.1);
    color: var(--primary);
}

.contact-card-email:hover .contact-card-cta {
    background: var(--primary);
    color: #fff;
}

.contact-hint {
    font-size: 0.9rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
}

.contact-info h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
}

.contact-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Text & link overrides */
.text-primary {
    color: var(--primary) !important;
}

a.text-primary:hover {
    color: var(--primary-light) !important;
}

/* Footer */
footer .text-primary {
    color: var(--primary-light) !important;
}

footer a.text-primary:hover {
    color: #7ec8f0 !important;
}

footer a:not(.text-success):hover {
    color: var(--primary-light) !important;
}

/* Footer - links de contato */
footer .footer-contact-whatsapp {
    color: #34d399 !important;
}

footer .footer-contact-whatsapp:hover {
    color: #6ee7b7 !important;
}

footer .footer-contact-email {
    color: var(--primary-light) !important;
}

footer .footer-contact-email:hover {
    color: #7ec8f0 !important;
}

footer .footer-contact-whatsapp i,
footer .footer-contact-email i {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-slide {
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .navbar-collapse {
        background: rgba(40, 72, 120, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .gallery-link img {
        height: 150px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}