/* CSS Variables & Reset */
:root {
    --primary-color: #1F3848;
    /* Chateauform Navy */
    --accent-color: #3b82f6;
    /* Bright blue for accents */
    --text-color: #374151;
    --text-light: #6b7280;
    --bg-light: #F3F4F6;
    --white: #FFFFFF;
    --border-color: #e5e7eb;
    --font-main: 'Outfit', 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;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 3rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #162a36;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

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

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 32px;
}

.logo span {
    color: var(--text-light);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

/* Navbar Actions (Language + CTA) */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.mobile-toggle.active {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Large hero */
    min-height: 600px;
    background-image: url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Offset for navbar */
    margin-bottom: 4rem;
    /* For overlapping search bar space if needed */
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 56, 72, 0.6);
    /* Navy tint */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Search Bar - The "Wow" Element */
.search-bar {
    background: var(--white);
    border-radius: 9999px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.3s;
    position: relative;
    /* Context for absolute dropdowns */
}

.search-bar:hover {
    transform: translateY(-2px);
}

.search-item {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    border-radius: 99px;
    transition: background-color 0.2s;
}

.search-item:hover {
    background-color: var(--bg-light);
}

.search-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.search-text .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-text .value {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-search:hover {
    background-color: #162a36;
}

/* Dropdown Menu Styles */
.search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    min-width: 250px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.search-item.active .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Calendly specific adjustments */
.calendly-dropdown {
    width: 360px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0;
    overflow: hidden;
}

.search-item.active .calendly-dropdown {
    transform: translateX(-50%) translateY(0);
}

.search-dropdown li {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.search-dropdown li:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Intro Section */
.badge {
    display: inline-block;
    background-color: #E0F2FE;
    /* Light Blue */
    color: #0369A1;
    /* Dark Blue */
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
    text-align: left;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-body .location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-body .desc {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    /* Added standard line-clamp property */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-box {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-action {
    flex-shrink: 0;
}

.cta-box .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-box .btn-primary:hover {
    background-color: #f0f9ff;
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 4rem 0 1rem;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li i {
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {


    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 2.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    /* Show nav-cta in mobile menu */
    .nav-cta {
        display: flex;
        flex-direction: column-reverse;
        /* Language toggle at bottom, button at top */
        gap: 1rem;
        width: calc(80% - 4rem);
        position: fixed;
        bottom: 2rem;
        right: -100%;
        padding: 0 2rem;
        background: var(--white);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 10px rgba(0, 0, 0, 0.05);
    }

    /* Language toggle in mobile */
    .nav-cta .lang-toggle {
        width: 100%;
        margin-right: 0;
        justify-content: center;
        padding: 10px;
        order: 2;
        /* Ensure it's at the bottom */
    }

    .nav-cta .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem;
        order: 1;
        /* Ensure it's at the top */
        display: none;
        /* Hide "Get a Quote" button on mobile menu */
    }


    .mobile-toggle {
        display: block;
    }



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

    .stats-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .divider {
        width: 100%;
        height: 1px;
    }

    .search-item {
        width: 100%;
        padding: 0;
    }

    /* Adjust dropdown for mobile stack */
    .search-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        transform: none !important;
    }

    .search-item.active .search-dropdown {
        display: block;
        transform: none !important;
    }

    .calendly-dropdown {
        width: 100%;
        left: auto;
    }

    .btn-search {
        width: 100%;
        border-radius: 10px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .cta-text {
        text-align: center;
    }
}

/* Language Toggle Button */
.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(31, 56, 72, 0.08);
    border: 1px solid rgba(31, 56, 72, 0.15);
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lang-toggle:hover {
    background: rgba(31, 56, 72, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 56, 72, 0.1);
}

.lang-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.lang-option .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-option .lang-text {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Active state - when English is selected */
.lang-toggle.lang-en .lang-slider {
    transform: translateX(100%);
}

/* Active language option styling */
.lang-toggle.lang-fr .lang-option[data-lang="fr"],
.lang-toggle.lang-en .lang-option[data-lang="en"] {
    color: var(--primary-color);
}

.lang-toggle.lang-fr .lang-option[data-lang="en"],
.lang-toggle.lang-en .lang-option[data-lang="fr"] {
    color: var(--text-light);
}

/* Navbar scrolled state */
.navbar.scrolled .lang-toggle {
    background: rgba(31, 56, 72, 0.06);
}