/**
 * WeBid2Win Home Page Styles
 *
 * Uses the --w2w-* design-system tokens where appropriate
 * but introduces its own hero / landing-page palette.
 *
 * @package WeBid2Win_Vehicle_Bids
 */

/* ================================================================
   RESET — scope everything under .w2w-home so Kadence styles
   don't leak in and vice-versa.
   ================================================================ */
.w2w-home {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.w2w-home *, .w2w-home *::before, .w2w-home *::after {
    box-sizing: border-box;
}

.w2w-home img {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   CONTAINER
   ================================================================ */
.w2w-home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.w2w-home-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.w2w-home-btn-primary {
    background: #215387;
    color: #fff;
    border-color: #215387;
}
.w2w-home-btn-primary:hover {
    background: #1a4370;
    border-color: #1a4370;
    color: #fff;
    text-decoration: none;
}

.w2w-home-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.w2w-home-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.w2w-home-btn-secondary {
    background: #fff;
    color: #215387;
    border-color: #215387;
}
.w2w-home-btn-secondary:hover {
    background: #e8f0f7;
    color: #1a4370;
    border-color: #1a4370;
    text-decoration: none;
}

.w2w-home-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   HERO
   ================================================================ */
.w2w-home-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 24px 90px;
    text-align: center;
    color: #fff;
}

.w2w-home-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0c1e2f 0%, #183d5e 50%, #215387 100%);
    z-index: 0;
}
/* Subtle grid pattern overlay */
.w2w-home-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.w2w-home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.w2w-home-logo {
    margin-bottom: 32px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.w2w-home-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.w2w-home-hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    opacity: 0.88;
    margin: 0 0 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.w2w-home-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   SECTIONS (shared)
   ================================================================ */
.w2w-home-section {
    padding: 80px 0;
}

.w2w-home-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.w2w-home-section-subtitle {
    font-size: 17px;
    text-align: center;
    color: #64748b;
    margin: 0 0 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   VALUE PROPOSITION CARDS
   ================================================================ */
.w2w-home-values {
    background: #f8fafc;
}

.w2w-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.w2w-home-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 28px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.w2w-home-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.w2w-home-card-featured {
    border-color: #215387;
    box-shadow: 0 0 0 1px #215387;
}

.w2w-home-card-icon {
    width: 48px;
    height: 48px;
    background: #e8f0f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #215387;
}
.w2w-home-card-icon svg {
    width: 24px;
    height: 24px;
}

.w2w-home-card-featured .w2w-home-card-icon {
    background: #215387;
    color: #fff;
}

.w2w-home-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.w2w-home-card > p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 16px;
    line-height: 1.6;
}

.w2w-home-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.w2w-home-card-list li {
    font-size: 14px;
    color: #334155;
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.5;
}
.w2w-home-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #215387;
}
.w2w-home-card-featured .w2w-home-card-list li::before {
    background: #215387;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.w2w-home-how {
    background: #fff;
}

.w2w-home-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.w2w-home-step {
    text-align: center;
    max-width: 280px;
    padding: 0 20px;
}

.w2w-home-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #215387;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.w2w-home-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.w2w-home-step p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.w2w-home-step-arrow {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    color: #cbd5e1;
}
.w2w-home-step-arrow svg {
    width: 28px;
    height: 28px;
}

/* ================================================================
   TRUST / STATS
   ================================================================ */
.w2w-home-trust {
    background: #f1f5f9;
}

.w2w-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.w2w-home-trust-item {
    text-align: center;
    padding: 24px;
}

.w2w-home-trust-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #215387;
    color: #fff;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.w2w-home-trust-icon svg {
    width: 24px;
    height: 24px;
}

.w2w-home-trust-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.w2w-home-trust-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.w2w-home-cta {
    background: #fff;
    text-align: center;
    padding: 80px 0 90px;
}

.w2w-home-cta-logo {
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.w2w-home-cta h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
}

.w2w-home-cta > .w2w-home-container > p {
    font-size: 17px;
    color: #64748b;
    margin: 0 0 32px;
}

.w2w-home-cta-note {
    margin-top: 16px !important;
    font-size: 14px;
    color: #64748b;
}
.w2w-home-cta-note a {
    color: #215387;
    font-weight: 600;
    text-decoration: none;
}
.w2w-home-cta-note a:hover {
    text-decoration: underline;
}

/* ================================================================
   AUTH MODAL OVERLAY
   ================================================================ */
.w2w-auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.w2w-auth-overlay.active {
    display: flex;
}

.w2w-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.w2w-auth-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    animation: w2w-auth-slide-in 0.25s ease-out;
}

@keyframes w2w-auth-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.w2w-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
.w2w-auth-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Tabs */
.w2w-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
}

.w2w-auth-tab {
    flex: 1;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s, border-color 0.15s;
}
.w2w-auth-tab:hover {
    color: #475569;
}
.w2w-auth-tab.active {
    color: #215387;
    border-bottom-color: #215387;
}

/* Panels */
.w2w-auth-panel {
    display: none;
    padding: 28px 24px 32px;
}
.w2w-auth-panel.active {
    display: block;
}

/* Override user-system form styles inside the modal */
.w2w-auth-modal .webid2win-form-container {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
}

.w2w-auth-modal .webid2win-form-title {
    display: none; /* We use the tab titles instead */
}

.w2w-auth-modal .webid2win-form-footer {
    display: none; /* We use the tabs for switching */
}

/* Google Places autocomplete dropdown must render above the modal overlay */
.pac-container {
    z-index: 1000000 !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .w2w-home-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .w2w-home-trust-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .w2w-home-steps {
        flex-direction: column;
        align-items: center;
    }

    .w2w-home-step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .w2w-home-hero {
        padding: 64px 20px 56px;
    }

    .w2w-home-logo {
    }

    .w2w-home-hero-title {
        font-size: 28px;
    }

    .w2w-home-hero-subtitle {
        font-size: 16px;
    }

    .w2w-home-section {
        padding: 56px 0;
    }

    .w2w-home-section-title {
        font-size: 24px;
    }

    .w2w-home-section-subtitle {
        font-size: 15px;
    }

    .w2w-home-cta h2 {
        font-size: 24px;
    }

    .w2w-home-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .w2w-home-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .w2w-home-auth-modal {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        max-height: 95vh;
    }
}
