/* ============================================================
   Home page — Light hero with dot-grid background, geometric
   image frame, dark stats strip with cyan numbers, numbered
   service rows, connected process steps, testimonial cards.
   ============================================================ */

/* --- Hero: light background, bold typography, geometric frame on image --- */

.hero {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15,23,42,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.hero-content {
    padding: 3.5rem 0 2rem;
    min-width: 0;
}

.hero-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.hero h1 {
    font-size: 2.25rem;
    line-height: 1.08;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 540px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text_muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 460px;
}

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

.hero-image {
    display: none;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Geometric frame accent: offset border around the image */
.hero-image-frame {
    position: absolute;
    top: 12px;
    right: -12px;
    bottom: -12px;
    left: 12px;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 4.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        display: block;
        min-height: 360px;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 55% 45%;
        min-height: 520px;
        align-items: center;
    }

    .hero-content {
        padding: 5rem 3rem 5rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image {
        min-height: 100%;
        padding: 2.5rem 0;
    }

    .hero-image img {
        height: 100%;
    }
}

@media (min-width: 1280px) {
    .hero h1 {
        font-size: 3.25rem;
    }
}

/* --- Stats: dark strip with cyan accent numbers --- */

.stats {
    background: var(--color-primary);
    padding: 2rem 0;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 1.25rem;
}

.stat-value {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

    .stats-row {
        gap: 0;
    }

    .stat-item {
        padding: 0.5rem 3rem;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .stat-item:last-child {
        border-right: none;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

/* --- Services: numbered rows with images, staggered --- */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--color-background);
    transition: box-shadow 0.25s, border-color 0.25s;
}

.service-row:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
    color: inherit;
}

.service-row-image {
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
}

.service-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-row:hover .service-row-image img {
    transform: scale(1.03);
}

.service-row-body {
    position: relative;
    padding-left: 0;
}

.service-row-number {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: -0.25rem;
    right: 0;
}

.service-row-body h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-row-body p {
    color: var(--color-text_muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.service-row-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
}

.service-row-link::after {
    content: '\2192';
    transition: transform 0.2s;
}

.service-row:hover .service-row-link::after {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 280px 1fr;
        padding: 2rem;
        gap: 2rem;
        align-items: center;
    }

    .service-row-reversed {
        grid-template-columns: 1fr 280px;
    }

    .service-row-reversed .service-row-image {
        order: 2;
    }

    .service-row-reversed .service-row-body {
        order: 1;
    }

    .service-row-image {
        height: 220px;
    }

    .service-row-number {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .service-row {
        grid-template-columns: 340px 1fr;
    }

    .service-row-reversed {
        grid-template-columns: 1fr 340px;
    }
}

/* --- Process: connected steps with markers --- */

.process-header {
    margin-bottom: 3rem;
}

.process-subtitle {
    color: var(--color-text_muted);
    font-size: 1.0625rem;
    max-width: 560px;
    margin-top: -1.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

/* Vertical connecting line on mobile */
.process-line {
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), color-mix(in srgb, var(--color-accent) 30%, transparent));
}

.process-step {
    padding-left: 3.5rem;
    position: relative;
}

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

.process-step-marker span {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    font-weight: 700;
}

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

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Horizontal line on tablet+ */
    .process-line {
        left: 20px;
        right: 20px;
        top: 18px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(to right, var(--color-accent), color-mix(in srgb, var(--color-accent) 30%, transparent));
    }

    .process-step {
        padding-left: 0;
        padding-top: 3.5rem;
    }

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

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Testimonials with star ratings --- */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    background: var(--color-surface);
    border-radius: 6px;
    padding: 2rem 1.75rem 1.75rem;
    border-left: 3px solid var(--color-accent);
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

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

.testimonial-author strong {
    font-size: 0.9375rem;
}

.testimonial-author span {
    color: var(--color-text_muted);
    font-size: 0.8125rem;
}

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

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-row:hover .service-row-image img {
        transform: none;
    }
    .service-row:hover .service-row-link::after {
        transform: none;
    }
}
