/*
 * _utilities.css
 * TRUE utility classes only � no component or page-specific styles.
 *
 * Contents:
 *   1. Named Containers     (.container-xl, .container-lg, .container-md, .container-sm)
 *   2. Section Backgrounds  (.section-white, .section-light, .section-dark)
 *   3. Section Typography   (.section-title, .section-subtitle, .section-footer-text)
 *   4. Icon Sizes           (.icon-sm, .icon-md, .icon-lg)
 *   5. Responsive
 *
 * NOTE: Card styles   ? global/_cards.css
 *       Button styles ? global/_buttons.css
 *       Form styles   ? global/_forms.css
 *       Grid/layout   ? global/_grid.css
 *       Typography    ? global/_typography.css
 *       Link arrow    ? global/_typography.css
 *       Connect widget? global/_footer.css
 *       Hero (inner)  ? pages/pages.css
 *       Feature list  ? pages/home.css
 *       Case studies  ? pages/pages.css
 *       CTA sections  ? pages/pages.css
 */


/* ===========================================================
   1. NAMED CONTAINERS
   Fixed max-width wrappers. Use .container (grid.css) for
   responsive breakpoint sizing; use these for semantic widths.
   =========================================================== */
.container-xl   { max-width: var(--max-width-xl); margin: 0 auto; padding: 0 32px; }
.container-lg   { max-width: var(--max-width-lg); margin: 0 auto; padding: 0 32px; }
.container-md   { max-width: var(--max-width-md); margin: 0 auto; padding: 0 32px; }
.container-sm   { max-width: var(--max-width-sm); margin: 0 auto; padding: 0 32px; }


/* ===========================================================
   2. SECTION BACKGROUNDS
   Full-width section wrappers with brand color backgrounds.
   =========================================================== */
.section-white {
    background-color: var(--bg-white);
    padding: var(--section-padding-y) 0;
}

.section-light {
    background-color: var(--bg-light);
    padding: var(--section-padding-y) 0;
}

.section-dark {
    background-color: var(--bg-dark);
    padding: var(--section-padding-y) 0;
}


/* ===========================================================
   3. SECTION TYPOGRAPHY
   Heading and subtitle classes shared across all sections.
   =========================================================== */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-dark .section-title {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.section-footer-text {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 3rem;
}


/* ===========================================================
   4. ICON SIZES
   Inline SVG sizing helpers.
   =========================================================== */
.icon-sm { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-md { width: 1.5rem;  height: 1.5rem;  flex-shrink: 0; }
.icon-lg { width: 3.75rem; height: 3.75rem; flex-shrink: 0; }


/* ===========================================================
   5. TEXT UTILITIES
   =========================================================== */
.text-brand  { color: var(--color-brand-red); }
.text-center { text-align: center; }

/* ===========================================================
   6. SECTION VARIANTS
   =========================================================== */
/* Light section with top/bottom border � used on alternating rows */
.section-light--bordered {
    background-color: var(--bg-light);
    padding: var(--section-padding-y) 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

/* ===========================================================
   7. RESPONSIVE ADJUSTMENTS
   =========================================================== */
@media (max-width: 1024px) {
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm {
        padding: 0 24px;
    }

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

@media (max-width: 768px) {
    .section-white,
    .section-light,
    .section-dark {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ===========================================================
   8. SECTION HEAD — Eyebrow + Heading + View All pattern
   Flex row: heading left, optional link right.
   Moved here from home.css — reused on industry pages.
   =========================================================== */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-head__left { flex: 1; }

.section-eyebrow {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-brand-red);
    margin: 0 0 0.625rem;
    line-height: 1.5;
}

.section-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.text-accent { color: var(--color-brand-red); }

.section-head__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-brand-red);
    text-decoration: none;
    transition: gap var(--transition-fast);
    white-space: nowrap;
    padding-bottom: 0.375rem;
}

.section-head__link:hover { gap: 0.75rem; }

.section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-head--center {
        align-items: center;
    }
    .section-heading {
        font-size: 1.75rem;
    }
}


/* -- Website-wide scrollbar -- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--color-brand-red); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b01030; }
html { scrollbar-color: var(--color-brand-red) #1a1a1a; scrollbar-width: thin; }