/* Homepage */

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.home-hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--gray-50) 100%);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 1024px) {
    .home-hero {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .home-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xl);
    }
}

.home-hero-badge {
    display: inline-block;
    max-width: 100%;
    margin-bottom: var(--space-md);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.home-hero-title {
    margin-bottom: var(--space-md);
    font-size: 2.25rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .home-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .home-hero-title {
        font-size: 3.5rem;
    }
}

.home-hero-lead {
    max-width: 36rem;
    margin-bottom: var(--space-lg);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

@media (max-width: 479px) {
    .home-hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.home-hero-stats .stat-item {
    text-align: left;
}

.home-hero-stats .stat-number {
    font-size: 2rem;
}

.home-hero-stats .stat-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .home-hero-stats {
        display: flex;
        gap: 3rem;
    }

    .home-hero-stats .stat-number {
        font-size: 2.5rem;
    }

    .home-hero-stats .stat-label {
        font-size: 0.95rem;
    }
}

.home-hero-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(0 0 0 / 0.15);
}

.home-hero-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .home-hero-image {
        height: 420px;
    }
}

@media (min-width: 1024px) {
    .home-hero-image {
        height: 500px;
    }
}

.home-hero-trust {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--background);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .home-hero-trust {
        top: 2rem;
        right: 2rem;
        padding: 1.5rem;
    }
}

.home-hero-trust-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.home-hero-trust-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.home-hero-trust-caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
}

/* -------------------------------------------------------------------------
 * Shared section helpers
 * ---------------------------------------------------------------------- */
.home-section-foot {
    margin-top: var(--space-xl);
    text-align: center;
}

.home-empty {
    text-align: center;
    color: var(--muted-foreground);
}

.home-link-strong {
    color: var(--primary);
    font-weight: 600;
}

.home-btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* -------------------------------------------------------------------------
 * Problem / solution
 * ---------------------------------------------------------------------- */
.home-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .home-compare {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

.home-compare-card--problem {
    --home-compare-accent: hsl(0, 72%, 51%);
    --home-compare-soft: hsl(0, 93%, 94%);
    background: hsl(0, 100%, 98%);
}

.home-compare-card--solution {
    --home-compare-accent: hsl(142, 72%, 32%);
    --home-compare-soft: hsl(149, 80%, 90%);
    background: hsl(138, 100%, 97%);
}

.home-compare-card {
    border-left-color: var(--home-compare-accent);
}

.home-compare-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--home-compare-accent);
}

.home-compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.home-compare-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
    color: var(--foreground);
}

.home-compare-list span:not(.home-compare-icon) {
    color: var(--muted-foreground);
}

.home-compare-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--home-compare-soft);
    color: var(--home-compare-accent);
    font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Value propositions
 * ---------------------------------------------------------------------- */
.home-pillars {
    gap: 2rem;
}

.home-pillar-text {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.home-pillar-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* -------------------------------------------------------------------------
 * Categories
 * ---------------------------------------------------------------------- */
@media (max-width: 559px) {
    .home-category-grid > :nth-child(n + 5) {
        display: none;
    }
}

/* -------------------------------------------------------------------------
 * Locations
 * ---------------------------------------------------------------------- */
.home-locations {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-locations .location-actions .btn {
    flex: 1;
}

/* -------------------------------------------------------------------------
 * Final CTA
 * ---------------------------------------------------------------------- */
.home-cta-section .cta-card p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.home-trust-list {
    list-style: none;
    margin: 0;
    padding: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.5rem;
    border-top: 1px solid var(--border);
}

.home-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.home-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 479px) {
    .home-cta-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .home-trust-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: start;
    }
}
