/**
 * Sitewide section symmetry — consistent spacing, headers, grids.
 */
:root {
    --section-py: 72px;
    --section-py-lg: 88px;
    --section-py-sm: 56px;
    --section-head-gap: 48px;
    --section-head-max: 720px;
    --section-grid-gap: 24px;
    --section-radius: 20px;
}

/* ── Standard section block ── */
.section-block {
    padding: var(--section-py) 0;
    position: relative;
}

.section-block--sm { padding: var(--section-py-sm) 0; }
.section-block--lg { padding: var(--section-py-lg) 0; }
.section-block--alt { background: var(--bg-page); }
.section-block--white { background: var(--white); }
.section-block--tint { background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%); }

.section-block .container {
    position: relative;
    z-index: 1;
}

/* ── Unified section headers ── */
.section-head {
    text-align: center;
    max-width: var(--section-head-max);
    margin: 0 auto var(--section-head-gap);
}

.section-head .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-700);
    margin-bottom: 12px;
}

.section-head .section-label i {
    color: var(--primary-600);
    font-size: 11px;
}

.section-head h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--heading);
    margin: 0 0 14px;
    font-family: var(--font-heading);
}

.section-head p,
.section-head .section-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Split header: title left, action right */
.section-head--split {
    text-align: left;
    max-width: none;
    margin-bottom: var(--section-head-gap);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head--split .section-head-text {
    flex: 1;
    min-width: 260px;
}

.section-head--split h2 { margin-bottom: 8px; }
.section-head--split p { margin-left: 0; text-align: left; }

.section-head--light h2,
.section-head--light p { color: #fff; }
.section-head--light .section-label { color: var(--primary-200); }

/* ── Symmetric content grids ── */
.section-grid {
    display: grid;
    gap: var(--section-grid-gap);
}

.section-grid--2 { grid-template-columns: repeat(2, 1fr); }
.section-grid--3 { grid-template-columns: repeat(3, 1fr); }
.section-grid--4 { grid-template-columns: repeat(4, 1fr); }

.section-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--section-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

/* ── Homepage symmetry overrides ── */
.page-home .section-header {
    text-align: center;
    max-width: var(--section-head-max);
    margin: 0 auto var(--section-head-gap);
}

.page-home .section-header h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-home .home-stats-header {
    text-align: center;
    max-width: var(--section-head-max);
    margin: 0 auto var(--section-head-gap);
}

.page-home .home-stats-header h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    margin-top: 10px;
}

.page-home .home-stats-sub {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto;
}

.page-home .home-services-head {
    margin-bottom: var(--section-head-gap);
    align-items: flex-end;
}

.page-home .home-services-head h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    margin-top: 10px;
}

.page-home .stats-section,
.page-home .home-services-strip,
.page-home .home-service-showcase,
.page-home .home-icons-section,
.page-home .home-pillars-section,
.page-home .home-cases-section,
.page-home .home-blog-section,
.page-home .home-faq-section,
.page-home .compare-section,
.page-home .funnel-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.page-home .home-stats-premium {
    padding-top: var(--section-py-lg);
    padding-bottom: var(--section-py-lg);
}

.page-home .home-institute-promo {
    padding-top: var(--section-py-lg);
    padding-bottom: var(--section-py-lg);
}

.page-home .features-overlap {
    padding-top: var(--section-py-sm);
    padding-bottom: var(--section-py);
}

.page-home .home-intro-zone {
    padding-bottom: var(--section-py-sm);
}

.page-home .home-power-strip {
    padding-bottom: var(--section-py-sm);
}

.page-home .home-mid-cta {
    margin: var(--section-py) 0;
}

.page-home .features-overlap .features-grid {
    margin-top: 0;
    border-radius: var(--section-radius);
}

.page-home .home-services-grid,
.page-home .home-stats-grid,
.page-home .home-power-grid {
    gap: var(--section-grid-gap);
}

@media (max-width: 992px) {
    :root {
        --section-py: 56px;
        --section-py-lg: 64px;
        --section-head-gap: 36px;
    }
    .section-grid--3,
    .section-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
    :root {
        --section-py: 48px;
        --section-py-sm: 40px;
        --section-grid-gap: 16px;
    }
    .section-grid--2,
    .section-grid--3,
    .section-grid--4 { grid-template-columns: 1fr; }
}
