/**
 * Tradielist — landing page enhancements (index.php)
 * Extends site.css; keeps existing IDs/hooks for site.js
 */

.landing-hero {
    min-height: calc(100vh - var(--tl-header-h, 72px));
    min-height: calc(100dvh - var(--tl-header-h, 72px));
    padding: 40px 20px 48px;
    box-sizing: border-box;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 107, 0, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 90% 60%, rgba(255, 168, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, transparent 55%, rgba(10, 20, 32, 0.85) 100%);
}

.landing-hero .hero-content {
    margin-top: 0;
    max-width: 920px;
}

.landing-hero .hero-badge {
    margin-bottom: 20px;
}

.landing-hero h1 {
}

.landing-hero #heroSubtitle {
}

.landing-hero .hero-search-box {
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 8px;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-cta-secondary:hover {
    border-color: rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.1);
    color: #fff;
}

.hero-cta-link {
    color: var(--accent, #FF6B00);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-cta-link:hover {
    color: #FFA800;
}

@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live metrics strip */
.landing-stats {
    background:
        linear-gradient(180deg, rgba(18, 35, 54, 0.55) 0%, rgba(10, 20, 32, 0.35) 100%);
    backdrop-filter: blur(12px);
}

.landing-stats .stat-item h3 {
    background: linear-gradient(135deg, #fff 0%, #FFB366 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* How it works */
.how-section {
    position: relative;
    padding: 88px 24px;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 55%),
        #0A1420;
    overflow: hidden;
}

.how-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: 48px;
}

.how-eyebrow,
.featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent, #FF6B00);
    margin-bottom: 12px;
}

.how-header h2,
.featured-tradies-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.how-header p,
.featured-tradies-header p {
    color: var(--text-muted, #94A3B8);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.how-step {
    position: relative;
    padding: 28px 24px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(22, 42, 62, 0.75) 0%, rgba(12, 22, 36, 0.9) 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.how-step:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.35);
}

.how-step-num {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 107, 0, 0.55);
    letter-spacing: 0.08em;
}

.how-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent, #FF6B00);
    background: rgba(255, 107, 0, 0.12);
    margin-bottom: 18px;
}

.how-step h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.how-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #94A3B8);
}

/* Featured tradies */
.featured-tradies-section {
    padding: 88px 24px;
    background:
        radial-gradient(ellipse 50% 40% at 80% 10%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        #0A1420;
}

.featured-tradies-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-tradies-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-tradies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.featured-tradie-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 35, 54, 0.65);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.featured-tradie-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 0, 0.4);
    background: rgba(255, 107, 0, 0.08);
}

.featured-tradie-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.featured-tradie-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    background: rgba(255, 255, 255, 0.06);
}

.featured-tradie-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(255, 107, 0, 0.22) 0%, rgba(255, 107, 0, 0.08) 100%);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--accent, #FF6B00);
    font-size: 26px;
    box-sizing: border-box;
}

.featured-tradie-avatar-fallback[hidden] {
    display: none !important;
}

.featured-verified {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #0A1420;
}

.featured-tradie-body {
    min-width: 0;
    flex: 1;
}

.featured-tradie-body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-tradie-cat {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
}

.featured-tradie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #FBBF24;
    margin-bottom: 6px;
}

.featured-tradie-meta span:last-child {
    color: var(--text-muted, #94A3B8);
    font-weight: 600;
}

.featured-tradie-loc {
    margin: 0;
    font-size: 12px;
    color: #CBD5E1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-tradies-cta {
    text-align: center;
    margin-top: 32px;
}

.featured-tradies-cta .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Dual CTA */
.dual-cta-section {
    padding: 40px 24px 88px;
    background: #0A1420;
}

.dual-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dual-cta-card {
    padding: 32px 28px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(22, 42, 62, 0.9) 0%, rgba(10, 20, 32, 0.95) 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.dual-cta-homeowner {
    border-color: rgba(255, 107, 0, 0.28);
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 107, 0, 0.16) 0%, transparent 55%),
        linear-gradient(155deg, rgba(22, 42, 62, 0.92) 0%, rgba(10, 20, 32, 0.96) 100%);
}

.dual-cta-tradie {
    border-color: rgba(16, 185, 129, 0.28);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 55%),
        linear-gradient(155deg, rgba(22, 42, 62, 0.92) 0%, rgba(10, 20, 32, 0.96) 100%);
}

.dual-cta-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #FF6B00);
    margin-bottom: 12px;
}

.dual-cta-tradie .dual-cta-eyebrow {
    color: #34D399;
}

.dual-cta-card h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.dual-cta-card p {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted, #94A3B8);
}

.dual-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dual-cta-actions .btn-accent {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.dual-cta-tradie-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3) !important;
}

.dual-cta-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #E2E8F0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dual-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1024px) {
    .how-grid,
    .featured-tradies-grid,
    .dual-cta-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding-top: 28px;
        padding-bottom: 36px;
        min-height: auto;
        height: auto;
    }

    .landing-hero .hero-search-box {
        flex-wrap: nowrap;
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }

    .landing-hero .search-divider {
        display: none;
    }

    .landing-hero .search-input-group {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-hero .search-location-group {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .landing-hero .search-input-group.flex-grow {
        flex: 1 1 100%;
        min-width: 0;
    }

    .landing-hero .location-suggestions-box {
        max-width: none;
        left: 0;
        width: 100%;
    }

    .landing-hero .btn-accent {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .how-section,
    .featured-tradies-section {
        padding: 64px 16px;
    }

    .how-grid,
    .featured-tradies-grid,
    .dual-cta-inner {
        grid-template-columns: 1fr;
    }

    .dual-cta-section {
        padding: 24px 16px 64px;
    }

    .landing-stats .stats-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .landing-stats .stat-item h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .featured-tradie-card {
        padding: 14px;
    }

    .featured-tradie-avatar,
    .featured-tradie-avatar img {
        width: 56px;
        height: 56px;
    }
}
