/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* United Van Lines inspired palette */
    --primary-blue: #005596;
    /* Darker, corporate blue */
    --primary-blue-hover: #00447a;
    --accent-blue: #0072CE;
    /* Brighter blue for buttons/links */
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --bg-light: #f4f7fa;
    /* Very light blue/gray background */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --gray-100: #f3f4f6;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Icons */
.icon-xs {
    width: 1rem;
    height: 1rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-md {
    width: 2rem;
    height: 2rem;
}

.icon-lg {
    width: 3rem;
    height: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Top Bar */
.topbar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.topbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.topbar-text {
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

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

.social-links {
    display: none;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 3.5rem;
    height: auto;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.header-cta-text {
    font-size: 0.75rem;
    color: var(--white);
    margin-right: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
    /* Hidden by default on mobile, shown on desktop via media query if space allows, or we can show it on mobile as requested */
}

@media (min-width: 769px) {
    .header-cta-text {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-title {
        display: none;
    }

    .logo-img {
        width: 5rem;
        /* Increased from default */
    }

    /* Stack Topbar Items */
    .topbar-content {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    /* Reduce Header Padding */
    .navbar {
        padding: 0.25rem 0;
    }

    .nav-actions {
        gap: 1rem;
        align-items: center;
    }

    .header-cta-text {
        display: block;
        /* Show on mobile */
        font-size: 0.7rem;
        /* Smaller on mobile */
        margin-right: 0.5rem;
        text-align: right;
        /* Limit width to prevent layout breaking */
        line-height: 1.2;
    }

    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }


}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../img/feature-truck.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: 500;
}

.hero-cta .btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    .hero-section {
        height: 500px;
        background-position: 70% center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Services / Cards Section */
.services-section {
    padding: 2rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* United Van Lines Style Cards */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    align-items: flex-start;
}

.service-icon {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    margin-bottom: 0.75rem;
    color: var(--accent-blue);
}

.service-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}

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

.service-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 0.75rem;
}

/* Testimonials */
.testimonials-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.testimonial-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.testimonial-author h4 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-author p {
    font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.contact-icon {
    background: none;
    color: var(--primary-blue);
    box-shadow: none;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
}

.footer-social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
}

.footer-social-link:hover {
    background: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Page Specific: Particulier & Entreprises */
.page-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    /* Dark overlay effect */
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header.particulier .page-header-bg {
    background-image: url('../img/hero-particulier.png');
}

.page-header.entreprises .page-header-bg {
    background-image: url('../img/hero-entreprises.png');
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 114, 206, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-blue);
    font-weight: bold;
}

/* Quote Section Styles */
.quote-section {
    padding: 6rem 0;
    background-color: var(--primary-blue);
    /* Dark blue background */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    /* Subtle overlay */
    color: white;
}

.quote-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {

    .form-row,
    .form-row.three-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
    font-size: 1.1rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Date input specific styling to handle placeholder/icon color if needed */
input[type="date"] {
    color-scheme: dark;
}

.btn-submit {
    background-color: #FFD700;
    color: var(--text-dark);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    min-width: 300px;
}

.btn-submit:hover {
    background-color: #F4C430;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Mobile Sliders & Text Adjustments */
@media (max-width: 768px) {

    /* Global Text Reduction */
    html {
        font-size: 14px;
    }

    /* Slider Containers */
    .services-grid,
    .testimonials-grid,
    .pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 2rem;
        padding-top: 2rem;
        scroll-padding: 0 1.5rem;
        align-items: stretch;
        /* Edge to Edge */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: calc(100% + 3rem);
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .services-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Opera */
    }

    /* Slider Items */
    .service-card,
    .testimonial-card,
    .pricing-card {
        min-width: 55%;
        flex: 0 0 55%;
        scroll-snap-align: center;
        margin-bottom: 0;
        /* Override any bottom margin */
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Text Size Reductions */
    .hero-title {
        font-size: 2rem;
    }

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

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

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

    .service-title,
    .pricing-title {
        font-size: 1.1rem;
    }

    .service-description,
    .pricing-features li,
    .testimonial-quote,
    .testimonial-author p {
        font-size: 0.85rem;
    }

    /* Contact Section Mobile Override */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .contact-card {
        padding: 1rem;
        min-width: 0;
        flex: none;
    }

    .pricing-price {
        font-size: 1.5rem;
    }
}