/* ==========================================================================
   Endless Crowds - Comprehensive Responsive & Visual Fixes
   ========================================================================== */

/* 1. Legacy Notice Banner */
#legacy-notice {
    background-color: #0A3161 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#legacy-notice a {
    color: #FFD700 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    display: inline-block !important;
    margin-left: 4px !important;
}

/* 2. Top Navigation Bar */
nav.navbar {
    background: #ffffff !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 12px 0 !important;
}

/* Desktop Navbar */
@media (min-width: 768px) {
    nav.navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    nav.navbar .navbar-header {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin: 0 !important;
    }

    nav.navbar .navbar-brand {
        padding: 0 !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    nav.navbar .navbar-brand .img_logo {
        height: 48px !important;
        width: auto !important;
        max-width: 220px !important;
        margin: 0 !important;
    }

    nav.navbar .navbar-toggle {
        display: none !important;
    }

    nav.navbar .navbar-collapse {
        display: none !important;
    }

    .nav-header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 24px !important;
        width: auto !important;
        float: none !important;
    }

    .nav-header-right .main-nav {
        float: none !important;
        width: auto !important;
    }

    .nav-header-right .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 22px !important;
        float: none !important;
    }

    .nav-header-right .main-nav ul li {
        display: inline-block !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .nav-header-right .main-nav ul li a {
        color: #333333 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        padding: 6px 0 !important;
        letter-spacing: 0.5px !important;
        transition: color 0.2s ease !important;
        text-decoration: none !important;
    }

    .nav-header-right .main-nav ul li a:hover {
        color: #be9b72 !important;
        background: none !important;
    }

    .nav-header-right .header-right {
        float: none !important;
        width: auto !important;
    }

    .nav-header-right .header-right .box_account ul {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .nav-header-right .header-right .box_account ul li a {
        color: #333333 !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }

    .nav-header-right .header-right .box_account ul li a:hover {
        color: #be9b72 !important;
    }

    .nav-header-right .header-right .box_account ul li a.btn.purple {
        background-color: #595d76 !important;
        color: #ffffff !important;
        padding: 7px 20px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        transition: background 0.2s ease !important;
    }

    .nav-header-right .header-right .box_account ul li a.btn.purple:hover {
        background-color: #464a60 !important;
    }
}

/* Mobile Navbar */
@media (max-width: 767px) {
    #legacy-notice {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    nav.navbar {
        padding: 10px 0 !important;
    }

    nav.navbar .container {
        display: block !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    nav.navbar .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    nav.navbar .navbar-brand {
        padding: 0 !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    nav.navbar .navbar-brand .img_logo {
        height: 38px !important;
        width: auto !important;
        max-width: 180px !important;
        margin: 0 !important;
    }

    nav.navbar .navbar-toggle {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 7px 9px !important;
        border: 1px solid #d1d5db !important;
        background: #ffffff !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        width: 38px !important;
        height: 34px !important;
        float: none !important;
    }

    nav.navbar .navbar-toggle .icon-bar {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        background-color: #333333 !important;
        border-radius: 1px !important;
        margin: 0 !important;
    }

    /* Completely hide desktop nav on mobile */
    .nav-header-right {
        display: none !important;
    }

    /* Mobile collapse menu */
    nav.navbar .navbar-collapse.collapse {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    nav.navbar .navbar-collapse.collapse.in {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        margin-top: 10px !important;
        border-top: 1px solid #eeeeee !important;
        padding: 10px 0 15px 0 !important;
        background: #ffffff !important;
    }

    nav.navbar .navbar-collapse ul.navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    nav.navbar .navbar-collapse ul.navbar-nav li {
        width: 100% !important;
        border-bottom: 1px solid #f2f2f2 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    nav.navbar .navbar-collapse ul.navbar-nav li a {
        display: block !important;
        padding: 11px 15px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        color: #333333 !important;
        text-decoration: none !important;
        letter-spacing: 0.5px !important;
        transition: background 0.15s ease !important;
    }

    nav.navbar .navbar-collapse ul.navbar-nav li a:hover {
        background-color: #f8f9fa !important;
        color: #be9b72 !important;
    }

    nav.navbar .navbar-collapse ul.navbar-nav li a.btn {
        margin: 10px auto !important;
        display: inline-block !important;
        width: 85% !important;
        max-width: 260px !important;
        background-color: #595d76 !important;
        color: #ffffff !important;
        padding: 10px 0 !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
}

/* 3. Hero Section */
.hero-container {
    padding: 95px 20px 85px !important;
    text-align: center !important;
    position: relative !important;
}

.hero-strong-p {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 44px !important;
    line-height: 1.25 !important;
    max-width: 900px !important;
    margin: 0 auto 18px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.hero-last-p {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
    max-width: 680px !important;
    margin: 0 auto 28px !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin-top: 10px !important;
}

.btn-hero-outline {
    background-color: #be9b72 !important;
    color: #ffffff !important;
    border: 1px solid #be9b72 !important;
    padding: 11px 26px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    min-width: 140px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.btn-hero-outline:hover {
    background-color: #aa8860 !important;
    border-color: #aa8860 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-hero-solid {
    background-color: #ffffff !important;
    color: #be9b72 !important;
    border: 1px solid #ffffff !important;
    padding: 11px 26px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    min-width: 140px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.btn-hero-solid:hover {
    background-color: #f2f2f2 !important;
    color: #aa8860 !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .hero-container {
        padding: 42px 15px 44px !important;
    }

    .hero-strong-p {
        font-size: clamp(21px, 5.5vw, 29px) !important;
        line-height: 1.3 !important;
        margin: 0 auto 14px !important;
    }

    .hero-last-p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin: 0 auto 22px !important;
        padding: 0 !important;
    }

    .hero-buttons {
        gap: 10px !important;
    }

    .btn-hero-outline,
    .btn-hero-solid {
        min-width: 130px !important;
        padding: 10px 18px !important;
        font-size: 12px !important;
    }
}

/* 4. Three Service Boxes Section */
.three-boxes-section {
    height: auto !important;
    min-height: 120px !important;
    padding: 0 !important;
    background-color: #be9b72 !important;
    clear: both !important;
}

.three-boxes-section .row {
    margin: 0 !important;
}

.home-box {
    min-height: 120px !important;
    height: auto !important;
    padding: 22px 20px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.home-box:nth-child(1) {
    background-color: #be9b72 !important;
}

.home-box:nth-child(2) {
    background-color: #857058 !important;
}

.home-box:nth-child(3) {
    background-color: #595d76 !important;
}

.home-box .box-right-separator {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    float: none !important;
    width: 40% !important;
    text-transform: uppercase !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.home-box .icon-image {
    float: none !important;
    width: 38px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.home-box .line-separator {
    height: 60px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    float: none !important;
    margin: 0 15px !important;
    padding: 0 !important;
}

.home-box .box-text {
    float: none !important;
    flex: 1 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #ffffff !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
    .three-boxes-section {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
    }

    .home-box {
        height: auto !important;
        min-height: auto !important;
        padding: 20px 20px !important;
        float: none !important;
        width: 100% !important;
        display: block !important;
        clear: both !important;
    }

    .home-box .box-right-separator {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        float: none !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #ffffff !important;
    }

    .home-box .icon-image {
        width: 32px !important;
        height: auto !important;
    }

    .home-box .line-separator {
        display: none !important;
    }

    .home-box .box-text {
        float: none !important;
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }
}

/* 5. Project Types Section */
section.white {
    padding: 48px 0 !important;
    background: #ffffff !important;
    clear: both !important;
}

#intor-section {
    padding: 0 15px !important;
}

.home-custom-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.home-custom-wrapper .home-custom-item {
    flex: 1 !important;
    max-width: 260px !important;
    text-align: center !important;
    padding: 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.home-custom-item .image-wrapper img {
    max-height: 110px !important;
    width: auto !important;
    margin: 0 auto 14px auto !important;
    display: block !important;
}

.home-custom-item .text-wrapper h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #857058 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.home-custom-item .text-wrapper span {
    margin: 6px auto !important;
    display: block !important;
    border-bottom: 2px solid #857058 !important;
    width: 40px !important;
    height: 0 !important;
}

.home-custom-item .text-wrapper p {
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.5 !important;
    margin: 8px 0 0 0 !important;
}

.home-custom-wrapper .home-custom-item.plus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    flex: 0 0 auto !important;
}

.home-custom-item.plus .image-wrapper img {
    max-height: 26px !important;
    width: auto !important;
    opacity: 0.75 !important;
    display: block !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    section.white {
        padding: 35px 0 !important;
    }

    .home-custom-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .home-custom-wrapper .home-custom-item {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        margin: 0 0 8px 0 !important;
        padding: 12px 10px !important;
    }

    .home-custom-wrapper .home-custom-item.plus {
        padding: 6px 0 !important;
        width: 100% !important;
    }

    .home-custom-item.plus .image-wrapper img {
        max-height: 22px !important;
    }
}

/* 6. Free Simple Setup Section */
.free-simple-setup {
    padding: 70px 0 80px !important;
    text-align: center !important;
    position: relative !important;
}

.setup-heading {
    color: #ffffff !important;
    font-size: clamp(24px, 5vw, 36px) !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.setup-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(14px, 3.5vw, 17px) !important;
    margin-bottom: 35px !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.setup-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin: 0 -15px !important;
}

.setup-card {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
    padding: 30px 22px !important;
    margin: 0 auto 25px auto !important;
    max-width: 360px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 280px !important;
    box-sizing: border-box !important;
}

.setup-card h4 {
    color: #222222 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
}

.setup-card h4 span {
    margin: 8px auto 0 !important;
    display: block !important;
    border-bottom: 2px solid #be9b72 !important;
    width: 38px !important;
    height: 0 !important;
}

.setup-card p {
    color: #555555 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}

.setup-card-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.btn-card-outline {
    background: transparent !important;
    color: #857058 !important;
    border: 1px solid #857058 !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-card-outline:hover {
    background: #857058 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-card-solid {
    background: #be9b72 !important;
    color: #ffffff !important;
    border: 1px solid #be9b72 !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-card-solid:hover {
    background: #aa8860 !important;
    border-color: #aa8860 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .free-simple-setup {
        padding: 45px 0 50px !important;
    }

    .setup-card {
        min-height: auto !important;
        padding: 24px 18px !important;
    }
}

/* 7. Call to Action Section */
section.send-us {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    background-color: #be9b72 !important;
    background-image: url('images/footer-img2.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    padding: 45px 0 !important;
    color: #ffffff !important;
    clear: both !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.cta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

.cta-left {
    display: flex !important;
    align-items: center !important;
    float: none !important;
}

.cta-bulb-img {
    width: 36px !important;
    height: auto !important;
    margin: 0 15px 0 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.funding-section-message {
    color: #ffffff !important;
    font-size: clamp(20px, 4.5vw, 26px) !important;
    font-weight: 600 !important;
    position: static !important;
    top: auto !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.cta-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    float: none !important;
}

.btn-cta-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: normal !important;
    white-space: nowrap !important;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-cta-solid {
    background: #ffffff !important;
    color: #be9b72 !important;
    border: 1px solid #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: normal !important;
    white-space: nowrap !important;
}

.btn-cta-solid:hover {
    background: #f2f2f2 !important;
    color: #aa8860 !important;
    text-decoration: none !important;
}

@media (max-width: 991px) {
    section.send-us {
        height: auto !important;
        min-height: auto !important;
        padding: 45px 15px 50px !important;
    }

    .cta-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        margin: 0 !important;
    }

    .cta-left {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cta-bulb-img {
        margin: 0 auto 12px auto !important;
    }

    .cta-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .btn-cta-outline,
    .btn-cta-solid {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
}

/* 8. Footer Section */
footer {
    padding: 48px 0 25px !important;
    background: #222222 !important;
    color: #aaaaaa !important;
}

footer .footer-about p {
    color: #999999 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
}

footer h5 {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.5px !important;
}

footer ul li {
    margin-bottom: 8px !important;
}

footer ul li a {
    color: #bbbbbb !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

footer ul li a:hover {
    color: #be9b72 !important;
}

.footer-socials a img {
    height: 32px !important;
    width: auto !important;
    transition: opacity 0.2s ease !important;
}

.footer-socials a:hover img {
    opacity: 0.8 !important;
}

@media (max-width: 767px) {
    footer {
        padding: 40px 0 20px !important;
        text-align: center !important;
    }

    footer .footer-about {
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    footer .footer-about img {
        margin: 0 auto 15px auto !important;
        display: block !important;
    }

    footer .footer-col {
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .footer-bottom {
        text-align: center !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .footer-socials {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .footer-copyright {
        text-align: center !important;
    }
}
