/**
 * Webapp Section Components
 * Section headings, dividers, and layout elements
 */

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════════════════════════════ */

.section-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-primary, #dc3545);
    line-height: 1.2;
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .section-heading,
body.dark-mode .section-heading {
    color: var(--brand-primary, #ff5a6a);
}

.section-subheading {
    font-size: 1.25rem;
    color: var(--c-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Compact section header with underline */
.sec {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--brand-primary, #dc3545);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--c-border);
    position: relative;
}

.sec::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 2px;
    background: var(--brand-primary, #dc3545);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════════ */

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--brand-primary, #dc3545);
    margin: 20px auto;
    box-shadow: 0 2px 15px rgba(var(--brand-primary-rgb, 220, 53, 69), 0.6);
}

.section-divider-left {
    margin: 20px 0;
}

.section-divider-thin {
    height: 2px;
}

.section-divider-thick {
    height: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   INTRO SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.intro-section {
    padding: 5rem 1rem 3rem;
    text-align: center;
}

.intro-section .section-heading {
    margin-bottom: 1rem;
}

.intro-section .section-subheading {
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.hero-container {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 1rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-primary, #dc3545);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

[data-bs-theme="dark"] .hero-title,
body.dark-mode .hero-title {
    color: var(--brand-primary, #ff5a6a);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--c-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION CONTAINERS
   ═══════════════════════════════════════════════════════════════ */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.section-container-narrow {
    max-width: 900px;
}

.section-container-wide {
    max-width: 1400px;
}

/* Common layout patterns */
.pro {
    max-width: 1120px;
    margin: 0 auto;
    padding: 5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Grid layouts */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 720px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .grid3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid3 {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .section-heading {
        font-size: 2.25rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-subheading {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}
