/* =========================================
   home.css
   Homepage only — hero section, hero search
   tabs, stats cards, premium listing/category
   grids, how-it-works steps, luxury CTA.
   Depends on: global.css, components.css
========================================= */

/* =========================================
   PREMIUM HERO SECTION
========================================= */
.hero-wrap {
    background: linear-gradient(135deg, #07132b 0%, #0d1f45 45%, #102860 100%);
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Ambient light blobs */
.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 70% 50%, rgba(27,95,224,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 15% 80%, rgba(10,191,163,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 300px 200px at 85% 15%, rgba(247,183,49,0.12) 0%, transparent 50%);
}

/* Dot grid texture */
.hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Geometric decorative circles */
.geo-circle1 { position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); top: -100px; right: -80px; }
.geo-circle2 { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); bottom: -60px; left: 200px; }
.geo-circle3 { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(10,191,163,0.12); top: 60px; left: 60px; }

/* =========================================
   HERO INNER GRID
========================================= */
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding: 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================
   HERO BADGE
========================================= */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================================
   HERO HEADLINE
========================================= */
.hero-h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-h1 .accent {
    color: #F7B731;
    position: relative;
    display: inline-block;
}

/* Hand-drawn animated underline */
.underline-svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 16px;
    color: #F7B731;
    z-index: 1;
    pointer-events: none;
}

.underline-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawLine 3s ease-in-out infinite;
}

@keyframes drawLine {
    0%      { stroke-dashoffset: 450; }
    40%, 100% { stroke-dashoffset: 0; }
}

/* =========================================
   HERO SUBHEADLINE
========================================= */
.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 520px;
    font-weight: 400;
}

/* =========================================
   HERO SEARCH TABS
========================================= */
.hero-search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.hst-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.hst-btn:hover  { background: rgba(255,255,255,0.15); color: #fff; }
.hst-btn.active { background: #ffffff; color: #0f172a; border-color: #ffffff; }

.hst-count {
    background: #0066ff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
}

.hst-btn.active .hst-count { background: #0066ff; color: #fff; }

/* =========================================
   HERO SEARCH BAR
========================================= */
.hero-search {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    padding: 8px;
    max-width: 540px;
    margin-bottom: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.5);
    transition: box-shadow 0.3s;
}

.hero-search:focus-within {
    box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 0 3px rgba(27,95,224,0.25);
}

.hero-search form { display: flex; align-items: center; width: 100%; margin: 0; gap: 6px; }

.hs-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; flex: 1; }
.hs-field i { color: #94a3b8; font-size: 1.1rem; }
.hs-field input { border: none; outline: none; font-family: inherit; font-size: 1rem; color: #0f172a; width: 100%; background: transparent; }

.hs-sep { width: 1px; height: 28px; background: #e2e8f0; }

.hs-loc { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.hs-loc i { color: #0066ff; font-size: 1rem; }
.hs-loc input { border: none; outline: none; font-family: inherit; font-size: 1rem; color: #0f172a; width: 120px; background: transparent; }

.hs-btn {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.hs-btn:hover { background: #0052cc; transform: translateY(-1px); }

/* =========================================
   TRENDING PILLS
========================================= */
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-pills-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 500; }

.hpill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
}

.hpill:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }

/* =========================================
   HERO VISUAL (single image banner)
========================================= */
.hero-visual-single {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    min-height: 600px; /* CLS fix */
}

.hero-visual-single img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.4s ease;
}

.hero-visual-single img:hover { transform: scale(1.02); }

/* =========================================
   STATS — FLOATING CARDS
========================================= */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: -70px auto 80px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.stat {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 36px 42px;
    min-width: 240px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 20px 40px rgba(15,23,42,0.05), 0 12px 24px rgba(15,23,42,0.04);
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.stat::before {
    content: '';
    position: absolute;
    top: 0; left: 20%;
    width: 60%; height: 3px;
    background: linear-gradient(90deg, transparent, #0066ff, transparent);
    border-radius: 999px;
    opacity: 0.8;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15,23,42,0.08), 0 18px 30px rgba(15,23,42,0.06);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #0066ff;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
}

/* =========================================
   PREMIUM SECTION WRAPPER
========================================= */
.premium-section { padding: 80px 5%; max-width: 1300px; margin: 0 auto; }

.premium-header            { text-align: center; margin-bottom: 50px; }
.premium-header h2         { font-size: 2.2rem; color: #0f172a; font-weight: 800; margin-bottom: 10px; }
.premium-header p          { color: #64748b; font-size: 1.1rem; }

/* =========================================
   PREMIUM GRIDS
========================================= */
.premium-grid     { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* Category grid — enforced 3 columns */
.premium-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .premium-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .premium-cat-grid { grid-template-columns: 1fr !important; }
}

/* =========================================
   HOW IT WORKS — STEP CARDS
========================================= */
.steps-container {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.step-card {
    flex: 1;
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    min-width: 280px;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.step-card:hover { transform: translateY(-5px); }

.step-number {
    font-size: 6rem;
    font-weight: 900;
    color: #f8fafc;
    position: absolute;
    top: -15px; right: 10px;
    z-index: 0;
    line-height: 1;
    user-select: none;
}

.step-icon {
    width: 65px; height: 65px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.step-card h3 { color: #0f172a; font-size: 1.35rem; margin-bottom: 12px; position: relative; z-index: 1; font-weight: 800; }
.step-card p  { color: #64748b; font-size: 1rem; line-height: 1.6; position: relative; z-index: 1; margin: 0; }

/* =========================================
   LUXURY CTA
========================================= */
.lux-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 25px 50px -12px rgba(15,23,42,0.25);
    width: 100%;
}

.lux-cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; position: relative; z-index: 2; }
.lux-cta p  { font-size: 1.1rem; color: #94a3b8; margin-bottom: 30px; max-width: 600px; margin-inline: auto; position: relative; z-index: 2; }

.lux-cta-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

/* =========================================
   CTA SECTION (blue variant)
========================================= */
.cta-section {
    margin: 40px 5% 80px;
    padding: 70px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 { font-size: 42px; margin-bottom: 18px; }
.cta-section p  { font-size: 17px; line-height: 1.7; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================
   MOBILE HERO RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .hero-wrap {
        padding-top: 80px !important;
        padding-bottom: 20px !important;
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 10px 20px 20px !important;
        position: relative;
    }

    .hero-badge, .hero-h1, .hero-sub { position: relative; z-index: 5; }

    .hero-h1  { font-size: 2.2rem !important; margin-bottom: 10px !important; }
    .hero-sub { margin: 0 auto 15px !important; max-width: 360px !important; font-size: 0.95rem !important; }

    /* Image — floats behind search */
    .hero-visual-single {
        display: flex !important;
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 320px;
        z-index: 1;
        pointer-events: none;
    }

    .hero-visual-single img {
        width: 100%;
        height: auto;
        border: none;
        box-shadow: none;
        background: transparent;
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    /* Search wrapper overlays the image */
    .hero-search-wrapper {
        margin-top: 300px !important;
        position: relative;
        z-index: 10;
        width: 100%;
    }

    .hero-search-tabs { justify-content: center; margin-bottom: 10px; }
    .hero-search      { margin: 0 auto 15px !important; }
    .hero-pills       { justify-content: center; position: relative; z-index: 10; }
}

/* Fine-tuned breakpoints */
@media (min-width: 375px) and (max-width: 429px) {
    .hero-visual-single  { top: 260px; max-width: 300px; }
    .hero-search-wrapper { margin-top: 290px !important; }
}

@media (min-width: 430px) and (max-width: 900px) {
    .hero-visual-single  { top: 280px; max-width: 340px; }
    .hero-search-wrapper { margin-top: 330px !important; }
}

@media (max-width: 374px) {
    .hero-visual-single  { top: 240px; max-width: 280px; }
    .hero-search-wrapper { margin-top: 275px !important; }
    .hero-h1             { font-size: 1.9rem !important; }
}

@media (max-width: 600px) {
    .hero-search form { flex-direction: column; padding: 5px; }
    .hs-sep           { width: 100%; height: 1px; margin: 5px 0; }
    .hs-field,
    .hs-loc           { width: 100%; padding: 12px; }
    .hs-loc input     { width: 100%; }
    .hs-btn           { width: 100%; justify-content: center; margin-top: 5px; }
}

@media (max-width: 768px) {
    /* Badge */
    .hero-badge { font-size: 12px !important; padding: 8px 16px !important; margin-bottom: 15px !important; }

    /* Stats stack */
    .stats { width: 90%; flex-direction: column; gap: 30px; padding: 35px 20px; margin-top: -50px; }

    /* Steps */
    .step-card   { padding: 30px 20px !important; min-width: 100% !important; }
    .step-number { font-size: 4.5rem !important; top: 0 !important; opacity: 0.5; }
    .step-card h3 { font-size: 1.2rem !important; }

    /* Luxury CTA */
    .lux-cta              { padding: 40px 20px !important; margin: 0 !important; border-radius: 20px !important; }
    .lux-cta h2           { font-size: 24px !important; }
    .lux-cta p            { font-size: 14px !important; margin-bottom: 25px !important; }
    .lux-cta-btns         { flex-direction: column !important; width: 100% !important; gap: 12px !important; }
    .lux-cta-btns a       { width: 100% !important; text-align: center !important; }

    /* Section headers */
    .premium-header h2, .section-title { font-size: 24px !important; margin-bottom: 5px !important; }
    .premium-header p, .section-header p { font-size: 14px !important; }
    .section-header { flex-direction: column; align-items: flex-start; }
}