/**
 * Drive - Hero Section Component Styles
 * Social-proof photo wall, floating stat badges, punchy typography, and primary CTA.
 *
 * @package Drive
 */

/* ==========================================================================
   1. Hero Wrapper & Background
   ========================================================================== */
.homepage-hero.hero-pass-wall {
    padding: 3.5rem 0 5rem;
    background: radial-gradient(circle at 50% 30%, rgba(224, 242, 254, 0.5) 0%, rgba(255, 255, 255, 0.9) 70%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1440px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    align-items: center;
    gap: 2rem;
    min-height: 560px;
}

/* ==========================================================================
   2. Center Content Area
   ========================================================================== */
.hero-center-content {
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-eyebrow {
    display: inline-block;
    color: #007AFF;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.85rem);
    font-weight: 800;
    color: #0c0d10;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 1.5rem;
}

.hero-title .text-highlight-blue {
    color: #007AFF;
    display: inline-block;
}

.hero-story-p {
    font-size: 1.0625rem;
    color: #334155;
    line-height: 1.68;
    max-width: 590px;
    margin: 0 auto 1.5rem;
}

.hero-hook-text {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #0c0d10;
    margin: 0 0 2rem;
    letter-spacing: -0.01em;
}

/* Main Hero CTA Button */
.hero-cta-box {
    margin-bottom: 1.75rem;
}

.btn-hero-primary {
    background-color: #007AFF;
    color: #ffffff !important;
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 1.1rem 2.75rem;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 220ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
    background-color: #0062cc;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 122, 255, 0.55);
}

/* Bottom Trust Indicators */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    flex-wrap: wrap;
}

.hero-trust-bar .trust-dot {
    color: #94a3b8;
    font-weight: bold;
}

/* ==========================================================================
   3. Floating Social Proof Flanks (Collage)
   ========================================================================== */
.hero-flank {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
}

.hero-cards-cluster {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Photo Cards */
.hero-photo-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
    cursor: default;
}

.hero-photo-card:hover {
    transform: scale(1.05) translateY(-4px) !important;
    box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.24);
    z-index: 30;
}

.photo-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    background: #e2e8f0;
}

.photo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback / Mock Avatar Container when images load or fallback */
.photo-placeholder-avatar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    opacity: 0;
    transition: opacity 200ms ease;
}

.photo-img-wrap.is-fallback .photo-placeholder-avatar {
    opacity: 1;
}

.photo-placeholder-avatar.avatar-1 { background: linear-gradient(135deg, #fecaca 0%, #f87171 100%); }
.photo-placeholder-avatar.avatar-2 { background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%); }
.photo-placeholder-avatar.avatar-3 { background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%); }
.photo-placeholder-avatar.avatar-4 { background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 100%); }
.photo-placeholder-avatar.avatar-5 { background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 100%); }
.photo-placeholder-avatar.avatar-6 { background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%); }
.photo-placeholder-avatar.avatar-7 { background: linear-gradient(135deg, #fef08a 0%, #facc15 100%); }
.photo-placeholder-avatar.avatar-8 { background: linear-gradient(135deg, #a7f3d0 0%, #34d399 100%); }
.photo-placeholder-avatar.avatar-9 { background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 100%); }
.photo-placeholder-avatar.avatar-10 { background: linear-gradient(135deg, #fed7aa 0%, #f97316 100%); }
.photo-placeholder-avatar.avatar-11 { background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%); }

/* Left Cluster Positions & Tilts */
.cluster-left .photo-1 {
    width: 105px;
    height: 125px;
    left: 10px;
    top: -20px;
    transform: rotate(-6deg);
    z-index: 2;
}

.cluster-left .photo-2 {
    width: 145px;
    height: 165px;
    left: 140px;
    top: 20px;
    transform: rotate(4deg);
    z-index: 5;
}

.cluster-left .photo-3 {
    width: 100px;
    height: 125px;
    left: 0px;
    top: 175px;
    transform: rotate(-4deg);
    z-index: 3;
}

.cluster-left .photo-4 {
    width: 105px;
    height: 130px;
    left: 95px;
    top: 255px;
    transform: rotate(5deg);
    z-index: 4;
}

.cluster-left .photo-5 {
    width: 120px;
    height: 145px;
    left: 175px;
    top: 360px;
    transform: rotate(-3deg);
    z-index: 6;
}

/* Right Cluster Positions & Tilts */
.cluster-right .photo-6 {
    width: 155px;
    height: 180px;
    right: 125px;
    top: 5px;
    transform: rotate(5deg);
    z-index: 5;
}

.cluster-right .photo-7 {
    width: 110px;
    height: 130px;
    right: 0px;
    top: 10px;
    transform: rotate(-6deg);
    z-index: 2;
}

.cluster-right .photo-8 {
    width: 105px;
    height: 135px;
    right: 25px;
    top: 190px;
    transform: rotate(6deg);
    z-index: 4;
}

.cluster-right .photo-9 {
    width: 140px;
    height: 165px;
    right: 135px;
    top: 275px;
    transform: rotate(-4deg);
    z-index: 6;
}

.cluster-right .photo-10 {
    width: 105px;
    height: 125px;
    right: 5px;
    top: 365px;
    transform: rotate(3deg);
    z-index: 3;
}

.cluster-right .photo-11 {
    width: 115px;
    height: 140px;
    right: 145px;
    top: 450px;
    transform: rotate(-5deg);
    z-index: 7;
}

/* ==========================================================================
   4. Floating Stat Badges
   ========================================================================== */
.hero-stat-badge {
    position: absolute;
    border-radius: 18px;
    padding: 0.85rem 1.15rem;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18);
    z-index: 20;
    transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.hero-stat-badge:hover {
    transform: scale(1.08) translateY(-2px);
}

.hero-stat-badge .stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-badge .stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Yellow Badge (97% Pass Rate) */
.badge-yellow {
    background: #fef08a; /* Soft creamy lemon yellow */
    color: #713f12;
    border: 1px solid rgba(250, 204, 21, 0.4);
    left: 155px;
    top: 155px;
}

/* Purple Badge (1,144 Tests Completed) */
.badge-purple {
    background: #e9d5ff; /* Soft pastel violet */
    color: #581c87;
    border: 1px solid rgba(192, 132, 252, 0.4);
    left: 155px;
    top: 460px;
}

/* Pink Badge (2026 Updated) */
.badge-pink {
    background: #fbcfe8; /* Soft pastel rose */
    color: #831843;
    border: 1px solid rgba(244, 114, 182, 0.4);
    right: 170px;
    top: 215px;
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
    .hero-grid-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 1.5rem;
    }

    .cluster-left .photo-2 { width: 125px; height: 145px; left: 110px; }
    .cluster-left .photo-5 { width: 105px; height: 125px; left: 135px; }
    .badge-yellow { left: 110px; }
    .badge-purple { left: 115px; }

    .cluster-right .photo-6 { width: 130px; height: 150px; right: 90px; }
    .cluster-right .photo-9 { width: 120px; height: 140px; right: 100px; }
    .badge-pink { right: 120px; }
}

@media (max-width: 1080px) {
    .hero-grid-layout {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .hero-flank {
        display: none; /* Streamline on tablets to focus on core value prop */
    }

    .hero-center-content {
        max-width: 720px;
    }
}

@media (max-width: 640px) {
    .homepage-hero.hero-pass-wall {
        padding: 2.5rem 0 3.5rem;
    }

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

    .hero-story-p {
        font-size: 0.95rem;
    }

    .btn-hero-primary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-trust-bar {
        font-size: 0.8125rem;
        gap: 0.4rem;
    }
}
