/* Custom CSS for All2Build Landing Page */

:root {
    /* Color Palette */
    --color-navy: #001661;
    --color-navy-hover: #000d3d;
    --color-green: #014B2A;
    --color-green-hover: #00381f;
    --color-light-blue: #F2F6FF;
    --color-light-green: #F1F6F2;
    --color-light-gray: #E6E8E9;
    --color-gray-border: #EAE6E0;
    --color-gray-tint: #D4D4D4;
    
    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

/* General Reset & Layout Helpers */
body {
    font-family: var(--font-primary);
    color: #121C28;
    background-color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.font-weight-800 { font-weight: 800; }

.text-navy {
    color: var(--color-navy) !important;
}

.text-green {
    color: var(--color-green) !important;
}

.bg-navy {
    background-color: var(--color-navy) !important;
}

.bg-green {
    background-color: var(--color-green) !important;
}

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

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

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

.border-gray-tint {
    border-color: var(--color-gray-border) !important;
}

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

.max-width-700 {
    max-width: 724px;
}

/* Navbar Custom Styling */
.brand-logo {
    height: 40px;
    width: auto;
}

.btn-lang {
    background-color: transparent;
    border: 1px solid #D4D4D4 !important;
    border-radius: 8px !important;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #404040 !important;
    transition: all 0.2s ease;
}

.btn-lang:hover, .btn-lang:focus {
    background-color: #F8F9FA !important;
    border-color: #C0C0C0 !important;
}

.btn-signup {
    color: var(--color-navy);
    border: 1px solid #D4D4D4;
    background-color: transparent;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background-color: var(--color-light-blue);
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-login {
    background-color: var(--color-navy);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--color-navy);
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: var(--color-navy-hover);
    border-color: var(--color-navy-hover);
    color: #FFFFFF;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    background-color: #FAFAFC;
    min-height: 720px;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.85) 100%), 
        url('../images/landing-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(1.22) contrast(1.08);
    z-index: 1;
}

.hero-main-title {
    font-size: 30px;
    line-height: 38px;
    letter-spacing: -0.8px;
    color: #1E293B !important;
}

@media (min-width: 576px) {
    .hero-main-title {
        font-size: 38px;
        line-height: 50px;
    }
}

@media (min-width: 768px) {
    .hero-main-subtitle {
        font-size: 22px;
        line-height: 26px;
    }
    .hero-main-title {
        font-size: 46px;
        line-height: 56px;
    }
}
@media (max-width: 768px){
     .hero-banner-bg {
    background-position: 10% center;
    background-size: cover;
}
}

.hero-main-subtitle {
    font-size: 18px;
    line-height: 23px;
    color: #191C1D !important;
    max-width: 580px;
    text-align: center;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .hero-main-subtitle {
        font-size: 20px;
        line-height: 28px;
    }
}

.chooser-main-title {
    font-size: 22px;
    line-height: 30px;
    color: #0F172A !important;
}

@media (min-width: 576px) {
    .chooser-main-title {
        font-size: 26px;
        line-height: 34px;
    }
}

.chooser-main-subtitle {
    font-size: 16px;
    line-height: 22px;
    color: #121C28 !important;
}

/* Side People Images Sizing & Positioning */
.hero-interactive-area {
    width: 100%;
    min-height: 420px;
}

.hero-person-left {
    position: absolute;
    left: -40px;
    bottom: -15px;
    width: 380px;
    z-index: 1;
    pointer-events: none;
}

.hero-person-left .person-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-person-right {
    position: absolute;
    right: -40px;
    bottom: -15px;
    width: 380px;
    z-index: 1;
    pointer-events: none;
}

.hero-person-right .person-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1400px) {
    .hero-person-left {
        left: -10px;
        width: 440px;
    }
    .hero-person-right {
        right: -10px;
        width: 440px;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .hero-person-left {
        left: -70px;
        width: 320px;
    }
    .hero-person-right {
        right: -70px;
        width: 320px;
    }
}

.hero-cards-wrapper {
    gap: 20px !important;
}

.hero-option-card {
    max-width: 320px !important;
    width: 100%;
    flex: 1 1 290px;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.02) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-requester-bg {
    background-color: #F4F7FF !important;
    border: 1px solid #E0E7FF !important;
}

.card-provider-bg {
    background-color: #F1F7F3 !important;
    border: 1px solid #DCEDE1 !important;
}

.hero-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08) !important;
}

.card-icon-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.card-main-heading {
    font-size: 16px;
    line-height: 24px;
    color: #0F172A !important;
}

.card-sub-heading {
    font-size: 14px;
    line-height: 20px;
    color: #0F172A !important;
}

.card-bullet-list {
    font-size: 12px;
    line-height: 24px;
    color: #334155;
}

/* Action Buttons */
.btn-action-navy {
    background-color: #071C4B !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px !important;
    height: 40px;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-action-navy:hover {
    background-color: #03102F !important;
    color: #FFFFFF !important;
}

.btn-action-green {
    background-color: #0A5832 !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px !important;
    height: 40px;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-action-green:hover {
    background-color: #053D21 !important;
    color: #FFFFFF !important;
}

/* --- COLLAPSIBLE BUTTON & SECTION --- */
.btn-how-it-works {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    height: 42px;
    padding: 0 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease;
}

.btn-how-it-works:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 576px) {
    .btn-how-it-works {
        height: 46px;
    }
}

.transition-transform {
    transition: transform 0.3s ease;
}

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

/* CSS Grid Transition for dynamic height */
.collapsible-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    transition: grid-template-rows 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.collapsible-content.show {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
}

.collapsible-inner {
    overflow: hidden;
}


.padding_40 {
    padding: 40px;
}

/* How It Works Elements */
.section-title {
    font-size: 32px;
    line-height: 48px;
    letter-spacing: -2.4px;
}
@media (max-width: 991px) {
    .padding_40 {
    padding: 30px;
}
}

@media (max-width: 576px) {
    .brand-logo {
    height: 30px;
}
    .padding_40 {
    padding: 16px;
}
.hero-option-card {
    margin: 0 auto;
}
   .hero-banner-bg {
    background-position: 15% center;
    background-size: cover;
}
}

@media (min-width: 576px) {
    .section-title {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 48px;
    }
}

.section-desc {
    font-size: 16px;
    line-height: 24px;
}

@media (min-width: 576px) {
    .section-desc {
        font-size: 18px;
        line-height: 29px;
    }
}

/* Work Step Elements */
.work-step .step-label {
    font-size: 16px;
    letter-spacing: 1.2px;
}

@media (min-width: 576px) {
    .work-step .step-label {
        font-size: 18px;
    }
}

.work-step .step-title {
    font-size: 18px;
    line-height: 28px;
}

@media (min-width: 576px) {
    .work-step .step-title {
        font-size: 20px;
    }
}

.work-step .step-desc {
    font-size: 15px;
    line-height: 23px;
}

@media (min-width: 576px) {
    .work-step .step-desc {
        font-size: 16px;
    }
}

/* Universal Banner New */
.universal-banner-new {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 576px) {
    .universal-banner-new {
        height: 90px;
    }
}

.universal-banner-icon-box {
    width: 55px;
    height: 56px;
    padding: 12px;
    box-shadow: 0px 1.17px 2.33px rgba(0, 0, 0, 0.05);
}

.universal-banner-title {
    font-size: 16px;
}

.universal-banner-desc {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

/* --- SIGNUP MODAL --- */
.modal-backdrop.show {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.modal-dialog-bottom-mobile .modal-content {
    border-radius: 14px;
    background-color: #FFFFFF;
}

@media (max-width: 575.98px) {
    .modal-dialog-bottom-mobile {
        display: flex !important;
        align-items: flex-end !important;
        min-height: calc(100% - var(--bs-modal-margin) * 0) !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .modal-dialog-bottom-mobile .modal-content {
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        max-height: 90vh;
        overflow-y: auto;
        margin-top: auto;
    }
    .mobile-drawer-handle {
        width: 80px;
        height: 6px;
        background-color: rgba(25, 28, 29, 0.2);
        border-radius: 3px;
        margin: 10px auto 0 auto;
    }
   
}

.btn-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #191C1D;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.btn-modal-close:hover {
    background-color: #F3F4F6;
}

.btn-country {
    background-color: transparent;
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    height: 40px;
    width: 115px;
    font-weight: 500;
    color: #191C1D;
    transition: border-color 0.2s ease;
}

.btn-country:hover, .btn-country:focus, .btn-country:active {
    border-color: #C0C0C0;
    background-color: transparent !important;
    color: #191C1D !important;
}

.btn-country.dropdown-toggle::after {
    display: none; /* Hide standard bootstrap chevron since we use our own spacing */
}

.modal-input {
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-border);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 1px rgba(0, 22, 97, 0.1);
}

.btn-modal-submit {
    background-color: var(--color-navy);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 14px;
    height: 40px;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 22, 97, 0.1);
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    background-color: var(--color-navy-hover);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 22, 97, 0.15);
}

.btn-modal-submit:active {
    transform: scale(0.98);
}
