/* Joe Dirt Homepage – mockup match (Trucker Hub style) */

:root {
    --home-green: #059669;
    --home-green-dark: #047857;
    --home-green-forest: #064e3b;
    --home-green-light: #d1fae5;
    --home-green-pale: #ecfdf5;
    --home-text: #111827;
    --home-muted: #6b7280;
    --home-border: #e5e7eb;
}

body.page-home {
    background: #fff;
}

body.page-home .homepage {
    margin-top: 0;
}

body.page-home .navbar-app {
    background: #fff !important;
    box-shadow: 0 1px 0 #e5e7eb;
}

.homepage {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ══════════ HERO ══════════ */
.home-hero {
    position: relative;
    width: 100%;
    min-height: 740px;
    margin-bottom: 0;
    color: #fff;
    overflow: hidden;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #1a2e44;
}

.home-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 22% 88%;
    display: block;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.18) 38%, rgba(15, 23, 42, 0.52) 58%, rgba(15, 23, 42, 0.8) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, transparent 28%, transparent 100%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 740px;
    padding: 64px 24px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
}

.home-hero__copy {
    max-width: 540px;
    padding-top: 12px;
    margin-left: auto;
    text-align: left;
}

.home-hero__title {
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 5.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-hero__accent {
    color: #34d399;
    display: inline-block;
    margin-top: 4px;
}

.home-hero__subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.94);
    max-width: 500px;
}

.home-hero__search-panel {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 3;
    margin-bottom: -40px;
}

.home-search__form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 10px;
    align-items: stretch;
}

.home-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 16px;
    min-height: 54px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-search__field:focus-within {
    background: #fff;
    border-color: var(--home-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.home-search__field i {
    color: var(--home-green);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.home-search__field input,
.home-search__field select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    color: #374151;
    outline: none;
    min-height: 44px;
}

.home-search__field input::placeholder {
    color: #9ca3af;
}

.home-search__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.home-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 30px;
    border: none;
    border-radius: 12px;
    background: var(--home-green);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.home-search__btn:hover {
    background: var(--home-green-dark);
    transform: translateY(-1px);
}

.home-section--categories {
    padding-top: 88px;
    background: #fff;
}

/* ══════════ SECTIONS ══════════ */
.home-section {
    padding: 64px 24px;
}

.home-section--why {
    background: #f9fafb;
}

.home-section--pricing {
    background: #fff;
}

.home-section__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.home-section__head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -0.02em;
}

.home-section__head p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.95rem;
}

.home-section__cta {
    text-align: center;
    margin-top: 36px;
}

/* ══════════ CATEGORY CARDS ══════════ */
.home-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto;
}

.home-cat-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    padding: 20px 16px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.home-cat-card__visual {
    width: 100%;
    height: 100px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--home-green);
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 40%, #f8fafc 100%);
    border-radius: 10px;
}

.home-cat-card h3 {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.35;
}

.home-cat-card__count {
    margin: 0 0 10px;
    font-size: 0.75rem;
    color: var(--home-muted);
}

.home-cat-card__link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--home-green);
}

/* ══════════ BUTTONS ══════════ */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 10px;
    background: var(--home-green);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-btn:hover {
    background: var(--home-green-dark);
    color: #fff;
}

.home-btn--block {
    width: 100%;
    margin-top: auto;
}

.home-btn--cta {
    background: #fff;
    color: var(--home-green-dark);
    padding: 14px 32px;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.home-btn--cta:hover {
    background: var(--home-green-pale);
    color: var(--home-green-forest);
}

/* ══════════ STATS BAR ══════════ */
.home-stats {
    background: var(--home-green-forest);
    padding: 52px 24px;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.home-stats__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.home-stats__number {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.home-stats__label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ══════════ WHY CHOOSE US ══════════ */
.home-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.home-feature-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease;
}

.home-feature-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.home-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--home-green-pale);
    color: var(--home-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.home-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--home-text);
}

.home-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--home-muted);
    line-height: 1.6;
}

/* ══════════ PRICING ══════════ */
.home-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
    padding-top: 12px;
}

.home-price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 32px 24px 28px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.home-price-card--featured {
    border: 2px solid var(--home-green);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.14);
}

.home-price-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--home-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-price-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
}

.home-price-card__price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: 20px;
    line-height: 1;
}

.home-price-card__price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--home-muted);
}

.home-price-card ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
    flex: 1 1 auto;
}

.home-price-card li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: 0.88rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.home-price-card li:last-child {
    border-bottom: none;
}

.home-price-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--home-green);
    font-size: 0.8rem;
}

/* ══════════ BOTTOM CTA ══════════ */
.home-cta {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-color: #0f172a;
    background-image: var(--home-cta-bg);
    background-position: center;
    background-size: cover;
    padding: 64px 24px;
}

.home-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.88) 0%, rgba(6, 78, 59, 0.55) 50%, rgba(6, 78, 59, 0.2) 100%);
    pointer-events: none;
}

.home-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    color: #fff;
}

.home-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
}

.home-cta p {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
    opacity: 0.95;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
    .home-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: 640px;
    }

    .home-hero__bg-img {
        object-position: 30% 90%;
    }

    .home-hero__inner {
        min-height: auto;
        padding: 48px 20px 72px;
        gap: 28px;
        align-items: stretch;
    }

    .home-hero__search-panel {
        margin-bottom: 0;
    }

    .home-hero__copy {
        margin-left: 0;
        max-width: 100%;
    }

    .home-hero__shade {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
    }

    .home-search__form {
        grid-template-columns: 1fr 1fr;
    }

    .home-search__field--grow {
        grid-column: 1 / -1;
    }

    .home-search__btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-hero__search-panel {
        transform: none;
    }

    .home-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-pricing {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 620px;
    }

    .home-hero__bg-img {
        object-position: 35% 85%;
    }

    .home-hero__shade {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 100%);
    }

    .home-hero__inner {
        padding: 40px 16px 28px;
    }

    .home-search__form {
        grid-template-columns: 1fr;
    }

    .home-categories,
    .home-features {
        grid-template-columns: 1fr;
    }

    .home-section {
        padding: 48px 16px;
    }
}
