/* ============================================================
   Home page — Split hero, stats bar, service cards, projects,
   testimonials with stars, angled CTA block.
   ============================================================ */

/* --- Hero: Split layout --- */

.hero-split {
    display: flex;
    flex-direction: column-reverse; /* mobile: image on top visually */
}

.hero-split-content {
    background-color: var(--color-primary);
    color: #fff;
    padding: 2.5rem 1.25rem 3rem;
}

.hero-split-inner {
    max-width: 560px;
}

.hero-split h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

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

.hero-area {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
}

.hero-split-image {
    height: 280px;
    overflow: hidden;
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-split {
        flex-direction: row;
        min-height: 520px;
    }

    .hero-split-content {
        width: 55%;
        display: flex;
        align-items: center;
        padding: 4rem 3rem 4rem 2rem;
        clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
        margin-right: -50px;
        position: relative;
        z-index: 1;
    }

    .hero-split-image {
        width: 50%;
        height: auto;
    }

    .hero-split h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-split {
        min-height: 560px;
    }

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

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

    .hero-subtitle {
        font-size: 1.1875rem;
    }
}

/* --- Stats / trust bar --- */

.stats-bar {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1.75rem 0;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

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

.stat-label {
    font-size: 0.8125rem;
    opacity: 0.9;
    font-weight: 500;
}

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

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

    .stat-label {
        font-size: 0.875rem;
    }
}

/* --- Service cards with images --- */

.services-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card-v2 {
    display: block;
    position: relative;
    background: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.service-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    color: inherit;
}

.service-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.service-card-icon-badge {
    position: absolute;
    top: calc(200px - 1.375rem);
    left: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.service-card-icon-badge svg {
    width: 1.375rem;
    height: 1.375rem;
}

/* Fallback when no image: icon-only card */
.service-card-icon-only {
    padding: 1.75rem 1.25rem 0;
    color: var(--color-accent);
}

.service-card-icon-only svg {
    width: 2.5rem;
    height: 2.5rem;
}

.service-card-body {
    padding: 1.5rem 1.25rem;
}

.service-card-image + .service-card-body {
    padding-top: 1.75rem;
}

.service-card-body h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

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

/* --- Projects grid --- */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    background: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--color-text_muted);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .project-card {
        display: grid;
        grid-template-columns: 2fr 3fr;
    }

    .project-image img {
        height: 100%;
        min-height: 200px;
    }

    .project-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }
}

/* --- Testimonials: featured spotlight + asymmetric --- */

.testimonials-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Featured (first) testimonial — full width, big quote */
.testimonial-featured {
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-background));
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
}

.testimonial-featured-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.35;
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
}

.testimonial-featured-quote {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.testimonial-featured-divider {
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 1.25rem 0 1rem;
}

.testimonial-featured-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

/* Secondary testimonials — compact with initial avatar */
.testimonials-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.testimonial-compact {
    background: var(--color-background);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.testimonial-compact-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.testimonial-initial {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading), system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    flex-shrink: 0;
}

.testimonial-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

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

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

.testimonial-compact-quote {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text_muted);
}

@media (min-width: 768px) {
    .testimonial-featured {
        padding: 3rem 3rem 2.5rem;
    }

    .testimonial-featured-mark {
        font-size: 6rem;
        top: 0.5rem;
        left: 2rem;
    }

    .testimonial-featured-quote {
        font-size: 1.375rem;
        padding-left: 1rem;
    }

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