/**
 * Karinja Home — clean light marketplace landing
 * Solid colors only. Font Awesome icons. Shared btn/input classes.
 */

.home-page {
    background: var(--bg-color);
    color: var(--text-color);
}

.home-page .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.home-page .section {
    padding: var(--space-3xl) 0;
}

.home-page .section--muted {
    background: var(--bg-light);
}

.home-page .section-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 var(--space-xl);
    text-align: center;
    letter-spacing: -0.02em;
}

.home-page .section-lead {
    text-align: center;
    color: var(--text-light);
    max-width: 36rem;
    margin: calc(var(--space-md) * -1) auto var(--space-xl);
    line-height: 1.7;
}

.home-page .link-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-lg);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.home-page .link-all:hover {
    color: var(--primary-dark);
}

/* ── Hero — full-bleed photo masthead ── */
.hero-home {
    position: relative;
    background: #e8eef5;
    color: var(--hero-text);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Photo layer — mirrored for RTL so soft field sits under copy */
.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/hero_karinja.png') center / cover no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
}

/* Soft matte so brand + copy stay crisp */
.hero-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to left,
            rgba(241, 245, 249, 0.78) 0%,
            rgba(241, 245, 249, 0.62) 42%,
            rgba(241, 245, 249, 0.38) 68%,
            rgba(241, 245, 249, 0.22) 100%
        );
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 72px) var(--space-md);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: stretch;
}

.hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-title {
    font-size: clamp(1.45rem, 3.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 var(--space-md);
    letter-spacing: -0.02em;
    color: var(--blue-950);
    max-width: 20ch;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--hero-muted);
    margin: 0 0 var(--space-xl);
    line-height: 1.8;
    max-width: 36rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.btn-hero.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

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

.btn-hero.btn-secondary {
    background: #fff;
    color: var(--blue-700);
    border: 1px solid var(--border-color);
}

.btn-hero.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
    background: #fff;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--slate-500);
    font-size: var(--font-size-sm);
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    min-height: 100%;
}

.hero-aside-head {
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border-color);
}

.hero-aside-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-aside-head strong {
    display: block;
    font-size: 1.05rem;
    color: var(--blue-950);
}

.hero-process {
    margin: 0;
    padding: 8px 0;
    list-style: none;
    flex: 1;
}

.hero-process li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 22px;
    position: relative;
}

.hero-process li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 46px;
    top: 48px;
    bottom: -4px;
    width: 2px;
    background: var(--bg-muted);
}

.hero-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-deeper);
    font-size: 0.8rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-process strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.hero-process p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.8125rem;
    line-height: 1.7;
}

.hero-aside-foot {
    margin-top: auto;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.hero-aside-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-decoration: none;
}

.hero-aside-foot a:hover {
    color: var(--primary-dark);
}

/* ── Trust bar ── */
.trust-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px var(--space-md);
    display: flex;
    align-items: stretch;
    text-align: center;
}

.trust-stat {
    flex: 1;
    min-width: 0;
}

.trust-stat + .trust-stat {
    border-right: 1px solid var(--border-color);
}

/* ── Benefits ── */
.benefits-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.benefit-tab {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-light);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.benefit-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.benefit-panel {
    display: none;
}

.benefit-panel.active {
    display: block;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.benefit-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-card h3 {
    font-size: var(--font-size-lg);
    margin: 0 0 8px;
    color: var(--text-color);
}

.benefit-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: var(--font-size-sm);
    flex: 1;
}

.benefit-card-body {
    width: 100%;
    min-width: 0;
}

/* ── Category grid ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-page .category-card:hover,
.category-card:hover {
    border-color: #b6d4f5;
    box-shadow: var(--shadow-md);
    background: var(--primary-light);
    color: var(--text-color);
    transform: none;
}

.home-page .category-card:hover .category-title,
.home-page .category-card:hover .category-count,
.home-page .category-card:hover i,
.home-page .category-card:hover .category-icon {
    color: inherit;
}

.home-page .category-card:hover .category-icon,
.home-page .category-card:hover i {
    color: var(--primary-dark);
}

.home-page .category-card:hover .category-title {
    color: var(--text-color);
}

.home-page .category-card:hover .category-count {
    color: var(--text-muted);
}

.category-icon {
    font-size: 1.35rem;
    color: var(--primary-color);
}

.category-title {
    font-weight: 700;
    color: var(--text-color);
}

.category-count {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ── Service cats horizontal ── */
.service-cats-slider {
    overflow: visible;
}

.service-cats-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 4px;
}

.service-cat-card {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-color);
    white-space: nowrap;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.service-cat-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.service-cat-card i {
    color: var(--primary-color);
}

/* ── Job types ── */
.job-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: var(--space-md);
}

.job-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
}

.job-type-card:hover {
    border-color: var(--primary-color);
}

.job-type-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ── Stepper ── */
.stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.step-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.step-num {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
}

.step-item h3 {
    margin: 0 0 8px;
    font-size: var(--font-size-base);
}

.step-item p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ── Project / content cards on home ── */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.home-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.home-card-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.home-card h3 {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-color);
}

.home-card p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    flex: 1;
}

.home-card-meta {
    display: flex;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.home-card-meta i {
    margin-left: 4px;
}

/* ── CTA band ── */
.home-cta-band {
    background: var(--band-bg);
    color: #fff;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.home-cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.home-cta-band p {
    margin: 0 0 24px;
    color: var(--hero-muted);
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-home::after {
        background: rgba(241, 245, 249, 0.72);
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-aside {
        max-width: 480px;
        width: 100%;
    }

    .hero-title {
        max-width: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefit-card {
        padding: 20px 16px;
        flex-direction: row;
        text-align: right;
        align-items: flex-start;
        gap: 14px;
    }

    .benefit-icon {
        margin: 0;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .benefit-card h3 {
        font-size: var(--font-size-base);
        text-align: right;
        width: 100%;
    }

    .benefit-card p {
        text-align: right;
        width: 100%;
    }

    .category-grid,
    .job-type-cards,
    .home-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .home-page .section {
        padding: var(--space-2xl) 0;
    }

    .category-grid,
    .job-type-cards,
    .home-cards-grid,
    .stepper {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 16px;
    }

    .benefits-tabs {
        width: 100%;
    }

    .benefit-tab {
        flex: 1;
        min-width: 0;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .hero-points {
        flex-direction: column;
        gap: 10px;
    }
}

/* Featured grids reused from blade */
.projects-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card,
.service-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover,
.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.project-card-header h3,
.service-card-body h3 {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

.badge-new {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
}

.project-price,
.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

.project-meta,
.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.project-cta {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.service-card-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.service-card-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-muted);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 28px; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-light);
}

.empty-state i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.empty-state.small {
    padding: 24px;
}

/* Live + testimonials */
.live-activity {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
}

.live-item i { color: var(--primary-color); }

.testimonials-slider {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
}

.testimonial-card {
    flex: 0 0 280px;
    padding: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.testimonial-card h4 { margin: 0 0 4px; }
.testimonial-role { color: var(--text-muted); font-size: var(--font-size-sm); }
.testimonial-rating { margin: 10px 0; color: #f59e0b; }
.testimonial-text { margin: 0; color: var(--text-light); font-size: var(--font-size-sm); line-height: 1.7; }

.section-featured.section--muted .section-title {
    color: var(--text-color);
}

.section-cta {
    background: var(--band-bg) !important;
    color: #fff;
    text-align: center;
}

.section-cta .section-title,
.section-cta h2 {
    color: #fff;
    margin: 0 0 24px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

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

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
}

.btn-cta.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-cta.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

@media (max-width: 960px) {
    .stepper { grid-template-columns: repeat(3, 1fr); }
    .projects-grid,
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stepper,
    .projects-grid,
    .services-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .btn-cta { width: 100%; justify-content: center; }
}
