/* ============================================================
   Flyttfirma Template — Home page
   Industrial warmth: bold hero, dark stats bar, timeline,
   comparison table, narrow checklist, dark testimonials, RUT.
   ============================================================ */

/* ---- HERO ---- */

.hero {
    position: relative;
    background: var(--color-background);
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            color-mix(in srgb, var(--color-primary) 3%, transparent) 40px,
            color-mix(in srgb, var(--color-primary) 3%, transparent) 41px
        );
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-content {
    max-width: 640px;
}

.hero-headline {
    margin-bottom: 1rem;
    line-height: 1.08;
}

.hero-subheadline {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text_muted);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
}

.hero-trust-value {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-trust-label {
    font-size: 0.8125rem;
    color: var(--color-text_muted);
    font-weight: 500;
}

/* Hero aside card */
.hero-aside {
    display: none;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: var(--border-subtle);
    border-top: 4px solid var(--color-accent);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hero-card-header {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-card-text {
    font-size: 0.9375rem;
    color: var(--color-text_muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.hero-card-btn {
    width: 100%;
}

.hero-card-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--color-text_muted);
    text-align: center;
}

.hero-card-note a {
    font-weight: 600;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 5.5rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0 7rem;
    }

    .hero-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    .hero-content {
        flex: 1 1 60%;
        padding-top: 1rem;
    }

    .hero-aside {
        display: block;
        flex: 0 0 340px;
        position: sticky;
        top: 100px;
    }
}

/* ---- STATS BAR ---- (pattern breaker: dark full-bleed narrow band) */

.stats-bar {
    background: var(--color-header_bg, #2C1810);
    padding: 2rem 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    text-align: center;
}

.stats-value {
    display: block;
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stats-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--overlay-on-dark-60);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .stats-bar {
        padding: 2.5rem 0;
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ---- PROCESS TIMELINE ---- */

.process-section {
    padding: 4.5rem 0;
    background: var(--color-background);
}

.process-title {
    margin-bottom: 0.5rem;
}

.process-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.process-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.process-line {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
    border-radius: 2px;
}

.process-step {
    position: relative;
    padding-bottom: 2.5rem;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 38px;
    height: 38px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--color-background);
}

.process-step--first .process-step-marker {
    width: 44px;
    height: 44px;
    left: calc(-2.5rem - 3px);
}

.process-step-number {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--color-on-dark);
}

.process-step-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.process-step-desc {
    font-size: 0.9375rem;
    color: var(--color-text_muted);
    max-width: 500px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .process-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        padding-left: 0;
    }

    .process-line {
        left: 0;
        right: 0;
        top: 18px;
        bottom: auto;
        width: auto;
        height: 3px;
        background: linear-gradient(to right, var(--color-accent), var(--color-primary));
    }

    .process-step {
        padding-bottom: 0;
        padding-top: 3.5rem;
        padding-right: 1rem;
    }

    .process-step-marker {
        left: 0;
        top: 0;
    }

    .process-step--first .process-step-marker {
        left: 0;
    }
}

/* ---- SERVICE COMPARISON ---- (pattern breaker: table layout) */

.services-compare {
    padding: 4.5rem 0;
    background: var(--color-surface);
}

.services-compare-title {
    margin-bottom: 0.5rem;
    text-align: center;
}

.services-compare-subtitle {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.services-compare-grid {
    display: grid;
    gap: 1.5rem;
}

.service-column {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-column--featured {
    border-color: var(--color-accent);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-on-dark);
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.service-column-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.service-column-desc {
    font-size: 0.9375rem;
    color: var(--color-text_muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-column-price {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.service-column-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-column-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.service-column-features svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 3px;
}

.service-column-cta {
    width: 100%;
    margin-top: auto;
}

@media (min-width: 768px) {
    .services-compare {
        padding: 6rem 0;
    }

    .services-compare-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .service-column--featured {
        transform: scale(1.04);
        z-index: 1;
    }
}

/* ---- CHECKLIST ---- (narrow, focused — different rhythm) */

.checklist-section {
    padding: 4.5rem 0;
    background: var(--color-background);
}

.checklist-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
}

.checklist-title {
    margin-bottom: 0.5rem;
}

.checklist-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.checklist-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist-group-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.checklist-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
    border-radius: 4px;
    margin-top: 2px;
    position: relative;
}

.checklist-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (min-width: 768px) {
    .checklist-section {
        padding: 6rem 0;
    }

    .checklist-inner {
        padding: 0 1.25rem 0 2.5rem;
    }
}

/* ---- TESTIMONIALS ---- (dark full-bleed band) */

.testimonials-section {
    background: var(--color-header_bg, #2C1810);
    color: var(--color-on-dark);
    padding: 4.5rem 0;
}

.testimonials-section .section-label {
    text-align: center;
}

.testimonials-title {
    color: var(--color-on-dark);
    text-align: center;
    margin-bottom: 2.5rem;
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

.testimonial {
    background: var(--overlay-on-dark-05);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--overlay-on-dark-10);
    display: flex;
    flex-direction: column;
}

.testimonial--featured {
    border-color: var(--color-accent);
    background: var(--overlay-on-dark-10);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--overlay-on-dark-80);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.testimonial--featured .testimonial-quote {
    font-size: 1.0625rem;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-author {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-on-dark);
}

.testimonial-meta {
    font-size: 0.8125rem;
    color: var(--overlay-on-dark-40);
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 6rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 1.5rem;
    }
}

/* ---- RUT-AVDRAG ---- */

.rut-section {
    padding: 4.5rem 0;
    background: var(--color-background);
}

.rut-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.rut-title {
    margin-bottom: 1rem;
}

.rut-desc {
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 1rem;
}

.rut-note {
    font-size: 0.875rem;
    color: var(--color-text_muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-radius: 6px;
    max-width: 540px;
}

/* RUT price comparison card */
.rut-example-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: var(--border-subtle);
    max-width: 420px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rut-example-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.rut-example-label {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.rut-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rut-price-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text_muted);
    margin-bottom: 0.25rem;
}

.rut-price-amount {
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    display: block;
}

.rut-price-amount--striked {
    color: var(--color-text_muted);
    text-decoration: line-through;
    font-size: 1.25rem;
    font-weight: 600;
}

.rut-price-amount--final {
    color: var(--color-accent);
    font-size: 1.75rem;
}

.rut-price-arrow {
    color: var(--color-text_muted);
    flex-shrink: 0;
}

.rut-savings-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    color: var(--color-accent);
    font-family: var(--font-heading), 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .rut-section {
        padding: 6rem 0;
    }

    .rut-layout {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .rut-content {
        flex: 1 1 55%;
    }

    .rut-example {
        flex: 0 0 40%;
    }
}
