/* =============================================================
   pages.css — All inner (non-homepage) page styles
   Loaded on every non-front-page via functions.php.

   Uses global classes from:
     _utilities.css  — .container-*, .section-white/light/dark, .section-head
     _cards.css      — .card, .card-light-border, .card-dark, .card-post, .cards-grid-*
     _buttons.css    — .btn, .btn-primary, .btn-secondary

   Sections in this file:
     1. Page Hero         (.page-hero)
     2. Post Hero         (.post-hero)
     3. Split Layout      (.split-layout)
     4. Intro Strip       (.intro-strip)
     5. Section Header    (.section-header)
     6. Panel Split       (.panel-split)
     7. Card Extensions   (.card-icon-box, .card--accent, .card-link)
     8. CTA Banner        (.cta-banner)
     9. Grid Modifiers    (.cards-grid--centered)
   ============================================================= */


/* =============================================================
   1. PAGE HERO — Standard inner-page hero (navy background)
   ============================================================= */
.page-hero {
    background-color: var(--color-navy);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero__inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    position: relative;
    z-index: 2;
}

.page-hero__label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-red);
    margin-bottom: 1rem;
}

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.page-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.page-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* =============================================================
   2. POST HERO — Blog / case study hero (extends .page-hero)
   ============================================================= */
.post-hero .page-hero__inner {
    max-width: 760px;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.post-hero__tag {
    background-color: rgba(220, 20, 60, 0.2);
    color: var(--color-brand-red);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.post-hero__author {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.post-hero__date {
    color: rgba(255, 255, 255, 0.55);
}


/* =============================================================
   3. SPLIT LAYOUT — Two-column image/text block
   ============================================================= */
.split-layout {
    padding: var(--section-padding-y) 0;
}

.split-layout__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .split-layout__inner {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

@media (min-width: 1024px) {
    .split-layout--reverse .split-layout__media { order: -1; }
}

.split-layout__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-red);
    margin-bottom: 0.75rem;
}

.split-layout__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.split-layout__body {
    font-size: 1.0625rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

.split-layout__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}


/* =============================================================
   4. INTRO STRIP — Centered paragraph, white bg, narrow padding
   Used as a subtitle/mission band below hero.
   ============================================================= */
.intro-strip {
    background-color: var(--bg-white);
    padding: 2.5rem 0;
}

.intro-strip__text {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-gray);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}


/* =============================================================
   5. SECTION HEADER — Centered eyebrow + title block
   Used in challenges, impact, and similar centered-title sections.
   ============================================================= */
.section-header {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 3rem;
}

.section-header__eyebrow {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-red);
    margin-bottom: 0.625rem;
}

.section-header__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.25;
    margin: 0;
}

.section-dark .section-header__title {
    color: var(--text-white);
}

.section-dark .section-header__eyebrow {
    color: rgba(255, 255, 255, 0.55);
}


/* =============================================================
   6. PANEL SPLIT — 2-col: navy aside panel + content area
   Used for services sections on industry pages.
   Left: heading panel with bg overlay.  Right: stacked cards.
   ============================================================= */
.panel-split {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .panel-split {
        grid-template-columns: 2fr 3fr;
        min-height: 540px;
    }
}

/* Left aside — navy with optional bg image overlay */
.panel-split__aside {
    background-color: var(--color-navy);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Add a modifier class to aside elements that need a background image.
   Use .panel-split__aside--bg-mfg for manufacturing, etc. */
.panel-split__aside--bg-mfg {
    background-image: url('../images/Manufacturing-2.png');
    background-size: cover;
    background-position: center;
}

.panel-split__aside--bg-services {
    background-image: url('../images/service_bg.webp');
    background-size: cover;
    background-position: center;
}

.panel-split__aside--bg-mfg::before,
.panel-split__aside--bg-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 28, 72, 0.82);
}

.panel-split__aside > * {
    position: relative;
    z-index: 1;
}

.panel-split__eyebrow {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
}

.panel-split__title {
    font-size: clamp(1.625rem, 2.5vw, 2.125rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.25;
    margin: 0;
}

/* Right main area — stacked card list */
.panel-split__main {
    background-color: var(--color-navy);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .panel-split__main {
        padding: 4rem 3rem;
    }
}


/* =============================================================
   7. CARD EXTENSIONS — Extra card variants for inner pages
   Extends the global _cards.css system.
   ============================================================= */

/* Icon box: 48px rounded square with tinted background */
.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(220, 20, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-brand-red-bright);
}

.card-icon-box svg {
    width: 24px;
    height: 24px;
}

/* On dark sections: stronger tint */
.card-dark .card-icon-box {
    background-color: rgba(220, 20, 60, 0.15);
}

.card-dark .card-icon-box svg {
    width: 22px;
    height: 22px;
}

/* Accent card: red top border — visually distinct from card-light-border */
.card--accent {
    border: 1px solid var(--color-gray-200);
    border-top: 3px solid var(--color-brand-red);
}

.card--accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 28, 72, 0.07);
}

/* Link inside dark card (green accent, used for "Learn More" links) */
.card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-brand-red-bright);
    text-decoration: none;
    margin-top: 0.25rem;
}

.card-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* =============================================================
   8. CTA BANNER — Full-width navy call-to-action band
   Centered heading + subtitle + button. No image.
   ============================================================= */
.cta-banner {
    padding: 5rem 0;
    background-color: var(--color-navy);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220, 20, 60, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-banner__inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-banner__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    margin-bottom: 2.5rem;
}


/* =============================================================
   9. GRID MODIFIERS — Extra layout helpers for cards-grid
   ============================================================= */

/* Centered grid: constrains width and centers (e.g. 2-card row under 4-card row) */
@media (min-width: 1024px) {
    .cards-grid--centered {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .page-hero { padding: 3.5rem 0 3rem; }
    .cta-banner { padding: 4rem 0; }
    .panel-split__aside { padding: 3rem 2rem; }
    .panel-split__main { padding: 2.5rem 2rem; }
}
