/* ============================================
   RSX Logística - Site Institucional
   Cores principais: Azul (#0d47a1, #1565c0, #1976d2)
   ============================================ */

:root {
    --primary: #0d47a1;
    --primary-light: #1565c0;
    --primary-dark: #0a3d8f;
    --accent: #1976d2;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(13, 71, 161, 0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.top-bar-link:hover {
    color: var(--white);
}

.top-bar-social {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 12px;
    font-size: 0.9rem;
}

.top-bar-social:hover {
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 12px 0;
}

.logo-img {
    max-height: 55px;
    width: auto;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

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

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.nav-btn {
    background: var(--primary) !important;
    border: none;
    border-radius: 25px;
    padding: 8px 24px !important;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* Hero Slider */
#hero-slider {
    position: relative;
}

#mainCarousel {
    min-height: 500px;
}

#mainCarousel .carousel-item {
    min-height: 500px;
    padding: 60px 0;
}

#mainCarousel .carousel-item > .container {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 700px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.carousel-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.carousel-btn {
    border-radius: 30px;
    padding: 12px 36px;
    font-weight: 500;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--white);
}

/* Sections */
.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* About Image */
.about-img {
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
}

/* Products */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-light);
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-body {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Product Detail Cards */
.product-detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.product-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-detail-img {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 15px;
}

.product-detail-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-body {
    padding: 24px;
}

.product-detail-body h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Services */
.section-services {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
}

.service-feature {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.service-feature-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-feature-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h5 {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* Mission Cards */
.mission-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.mission-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mission-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

/* Differentials */
.differential-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.differential-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.differential-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Brands Carousel */
.brands-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.brand-item {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contact */
.contact-info-card {
    border: 1px solid #e9ecef;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1rem;
}

.contact-details h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    text-align: center;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.breadcrumb {
    justify-content: center;
    margin-top: 12px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f2b4a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-list li i {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

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

/* Map */
.map-container {
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Form Styles */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-light {
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 500;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {
    .carousel-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
    }

    #mainCarousel .carousel-item {
        min-height: 400px;
        padding: 40px 0;
    }

    #mainCarousel .carousel-item > .container {
        min-height: 400px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .top-bar {
        display: none;
    }

    .brands-carousel {
        gap: 15px;
    }

    .brand-item {
        width: 120px;
        height: 80px;
    }
}
