/*
   FILE: static/css/hero-new.css
   PREFIX: w360- (Wealthium360)
*/

/* --- Layout & Background --- */
.w360-hero-section {
    background-color: #F4F7FB;
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    /* Default desktop alignment */
    display: flex;
    align-items: center;
}

.w360-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* --- Left Column: Content --- */
.w360-content-col {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

/* Trust Badge */
.w360-trust-badge {
    display: inline-block;
    background-color: #E6EEF8;
    color: #2F578F;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

/* Main Heading */
.w360-title {
    color: #0B1C3E;
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.w360-desc {
    color: #5A6B80;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 480px;
}

/* Buttons Area */
.w360-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.w360-btn-primary {
    background-color: #061C47;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.w360-btn-primary:hover {
    background-color: #0d2a63;
    transform: translateY(-2px);
}

.w360-btn-secondary {
    background-color: #fff;
    color: #061C47;
    border: 1px solid #D1D9E6;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.w360-btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #061C47;
}

/* Trust Icons Footer */
.w360-trust-row {
    display: flex;
    gap: 25px;
    border-top: 0px solid #eee;
    padding-top: 10px;
}

.w360-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5A6B80;
    font-size: 0.85rem;
    font-weight: 500;
}

.w360-trust-icon {
    color: #007bff;
    font-size: 1rem;
}

/* --- Right Column: Visuals/Card --- */
.w360-visual-col {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* The Main Chart Card */
.w360-card-main {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.w360-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.w360-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.w360-badge-success {
    background: #E8F7F0;
    color: #28C76F;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Simulation of the Chart Image area */
.w360-chart-placeholder {
    width: 100%;
    height: 200px; /* Desktop Height */
    background-color: #F8FAFC;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.w360-chart-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card Footer Stats */
.w360-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.w360-stat-label {
    font-size: 0.8rem;
    color: #8898aa;
    margin-bottom: 4px;
}

.w360-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0B1C3E;
}

/* Floating AI Recommendation Card */
.w360-float-card {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background-color: #0A1B3F;
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(11, 28, 62, 0.3);
    max-width: 240px;
    animation: floatAnim 4s ease-in-out infinite;
    z-index: 10;
}

.w360-ai-icon-box {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.w360-ai-text small {
    display: block;
    color: #AAB6C8;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w360-ai-text span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    display: block;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   MOBILE LAYOUT FINAL FIX
   (Unified single media query for < 992px)
========================================= */
/* =========================================
   MOBILE LAYOUT FINAL FIX (No Wasted Space)
   (Max-width 991px Only)
========================================= */
@media (max-width: 991px) {

    /* 1. CONTAINER: REMOVE 100vh (Fixes bottom empty space) */
    .w360-hero-section {
        display: block;
        height: auto;        /* Height fits content exactly */
        min-height: auto;    /* Disable full screen forcing */
        padding-top: 85px;   /* Space for Navbar */
        padding-bottom: 30px;
    }

    .w360-container {
        display: flex;
        flex-direction: column; /* Standard stacking */
        gap: 15px;
    }

    /* 2. ORDER #1: THE CARD (Visual) */
    /* Force the card to be the very first item */
    .w360-visual-col {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Tighten the card internals */
    .w360-card-main {
        padding: 15px;
        margin-top: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .w360-chart-placeholder {
        height: 120px; /* Keep it short and compact */
        margin-bottom: 10px;
    }

    /* 3. ORDER #2: THE TEXT (Content) */
    /* Force text to be in the middle */
    .w360-content-col {
        order: 2;
        text-align: center;
        padding: 0 5px;
    }

    .w360-trust-badge {
        margin: 5px 0 8px 0;
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .w360-title {
        font-size: 1.6rem; /* Slightly smaller to save space */
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .w360-desc {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    /* 4. ORDER #3: THE BUTTON (Actions) */
    /* Force button to be at the very bottom */
    .w360-mobile-actions {
        order: 3;
        width: 100%;
        margin-top: 5px;
    }

    .w360-mobile-actions .w360-btn-primary {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 14px;
    }

    /* Hide Desktop elements explicitly to be safe */
    .w360-actions, .w360-trust-row, .w360-float-card {
        display: none !important;
    }
}

