﻿/* ================================================================
   ABOUT PAGE — about.css
   File: wwwroot/css/about.css
   Author: Jessie Martin
   Last Updated: 2026-04
 
   Covers:
     1. Page Shell
     2. Hero Band
     3. Mission Statement Band
     4. Core Beliefs Section
     5. Stats Band
     6. CTA Band (reuses design-v2.css .cta-band — no new rules needed)
     7. Responsive (mobile-first, organized by breakpoint)
     8. Accessibility (reduced motion)
 
   Design System:
     - Backgrounds: var(--surface-dark), var(--surface-raised), #000
     - Accents: var(--dps-blue) ONLY — this page represents the full org,
       not a single division. No orange, no yellow, no red.
     - Headings: Oswald, uppercase (applied via design-v2.css global rule)
     - Body: Inter (applied via design-v2.css global rule)
     - Text: var(--text-white), var(--text-grey), var(--text-muted)
 
   CSS file ownership:
     - All rules scoped to .about-page
     - No changes to design-v2.css, careers.css, dps.css, or faqs.css
   ================================================================ */


/* ================================================================
   1. PAGE SHELL
   ================================================================ */

.about-page {
    background-color: #000;
    min-height: 0;
    padding-bottom: 0; /* CTA band handles its own bottom spacing */
    color: #FFF;
}

/* ================================================================
   2. HERO BAND
   ================================================================
   Same gradient + border pattern as .faqs-hero and .apply-landing__hero.
   Uses a background photo with a dark overlay so the image shows
   through without competing with readability.
   ================================================================ */

.about-hero {
    position: relative;
    padding: 9rem 0 6rem; /* top: clears fixed navbar + breathing room */
    min-height: 70vh;
    text-align: center;
    border-bottom: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background photo layer — set via inline style="background-image:url(...)"
   on the element itself so Razor can render the path correctly.
   This rule handles sizing and positioning. */
.about-hero__photo {
    background-size: cover;
    background-position: center 150%; /* favor upper portion of photos */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay — sits between photo and content */
.about-hero__overlay {
    position: absolute;
    inset: 0;
    /* gradient: near-opaque at top (nav area) to semi-dark mid to near-black bottom
       so the content below blends cleanly into the #000 page background */
    background: linear-gradient(
        160deg,
        rgba(17, 41, 75, 0.75) 0%,   /* --dps-navy tint at top */
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.75) 75%,
        rgba(0, 0, 0, 1.00) 100%
    );
    z-index: 1;
}

/* All hero content sits above the overlay */
.about-hero__content {
    position: relative;
    z-index: 2;
}

.about-hero__eyebrow {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: var(--dps-grey, #D7D5CF);
    margin-bottom: 0.85em;
}

.about-hero__title {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #FFF;
    margin-bottom: 1rem;
    line-height: 1.05;
}

/* Blue accent line under the title — org-neutral, no division color */
.about-hero__title-accent {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--dps-blue, #1F419B);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.about-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(215, 213, 207, 0.78);
    max-width: 580px;
    margin: 0 auto;
}

/* ================================================================
   3. MISSION STATEMENT BAND
   ================================================================
   Editorial, full-width, centered quote treatment.
   Dark navy-to-black gradient that visually steps down from the hero.
   ================================================================ */

.about-mission {
    background: linear-gradient(180deg, #000 0%, #000 10%, var(--surface-dark, #0F1724) 100%);
    padding: 5rem 0 4.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-mission__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Small label above the mission text */
.about-mission__label {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: 1.25rem;
    letter-spacing: 0.25em !important;
    text-transform: uppercase !important;
    color: var(--dps-blue, #1F419B);
    margin-bottom: 1.75rem;

    /* thin rules flanking the label — editorial style */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.about-mission__label::before,
.about-mission__label::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--dps-blue, #1F419B);
    opacity: 0.5;
}

/* The mission statement text itself */
.about-mission__text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.8;
    color: rgba(215, 213, 207, 0.99);
    font-weight: 400;

    /* Left-border treatment — subtle DPS blue rule */
    border-left: 3px solid var(--dps-blue, #1F419B);
    padding-left: 2rem;
    text-align: left;
    margin: 0;
}

/* Attribution line below the mission text */
.about-mission__attribution {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(215, 213, 207, 0.65);
    margin-top: 1.5rem;
    text-align: left;
    padding-left: calc(2rem + 3px);
}

/* ================================================================
   4. CORE BELIEFS SECTION
   ================================================================
   Four cards in a responsive grid.
   Each card: keyword label + one-liner + full paragraph.
   No patch/logo swap — these are org-wide values, not division-specific.
   Left-border accent uses --dps-blue (org-neutral) across all four.
   ================================================================ */

.about-beliefs {
    background: #000;
    padding-top: 3rem; /* keep header breathing room */
    padding-bottom: 0; /* grid goes edge to edge at the bottom */
    border-bottom: none;
}

.about-beliefs__header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-beliefs__eyebrow {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.85rem;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: rgba(215, 213, 207, 0.75);
    margin-bottom: 0.6rem;
}

.about-beliefs__title {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #FFF;
    margin-bottom: 0;
}

/* 2×2 grid — two landscape cards per row, 1-column mobile */
.about-beliefs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px; /* tight gap — cinematic*/
    margin-top: 0;
}

/* Individual belief card */
.about-belief-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    cursor: default;

    /* background-image set via inline style on each card in HTML
       so Razor can resolve the path correctly */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Subtle scale on hover — photo breathes */
.about-belief-card:hover .about-belief-card__photo-zoom {
    transform: scale(1.04);
}

/* Inner zoom wrapper — isolates the scale so overflow:hidden clips it */
.about-belief-card__photo-zoom {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

/* Base overlay — dark gradient heavier at bottom */
.about-belief-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,     /* near-black at bottom where text sits */
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.20) 100%    /* lighter at top — photo reads through */
    );
    transition: background 0.4s ease;
    z-index: 1;
}

/* Hover: overlay deepens so body text is readable over photo */
.about-belief-card:hover .about-belief-card__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.80) 50%,
        rgba(0, 0, 0, 0.60) 100% 
    );
}

/* All text content sits above overlay */
.about-belief-card__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 2rem 2rem;
}

/* Thin blue accent line above keyword */
.about-belief-card__accent {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--dps-blue, #1F419B);
    margin-bottom: 0.75rem;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.about-belief-card:hover .about-belief-card__accent {
    width: 78px; /* accent line grows slightly on hover */
}

/* Large keyword label — always visible — e.g. "TRUST" */
.about-belief-card__keyword {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #FFF;
    margin-bottom: 0.25rem;
    line-height: 1;
    transition: transform 0.35s ease;
}

/* Keyword slides up slightly on hover to make room for body */
.about-belief-card:hover .about-belief-card__keyword {
    transform: translateY(-4px);
}

/* One-liner tagline — always visible — e.g. "We are trustworthy." */
.about-belief-card__tagline {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #D7D5CF;
    margin-bottom: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.about-belief-card:hover .about-belief-card__tagline {
    transform: translateY(-4px);
}

/* Body text — hidden at rest, fades up on hover */
.about-belief-card__body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #FFF;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden; /* ← ADD THIS */
    clip-path: inset(0);
    transition: max-height 0.4s ease, opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s, visibility 0s linear 0.4s; /* ← delays visibility change until transition ends */
}

.about-belief-card:hover .about-belief-card__body {
    max-height: 200px;
    opacity: 1;
    visibility: visible; /* ← ADD THIS */
    transform: translateY(0);
    margin-top: 0.85rem;
    transition: max-height 0.4s ease, opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s, visibility 0s linear 0s; /* ← immediate on reveal */
}

/* ── Tap hint indicator — mobile only ── */
.about-belief-card__tap-hint {
    display: none; /* hidden on desktop — hover handles it */
}

/* Add this — the CTA section fades in from black */
.cta-band {
    padding-top: 5rem !important;
}

/* ================================================================
   5. RESPONSIVE — MOBILE FIRST
   Organized by breakpoint, small to large.
   Only .about-page classes live here.
 
   Breakpoints:
   xs  < 480px   (small phones)
   sm  < 576px   (standard phones)
   md  < 768px   (large phones / small tablets)
   lg  < 992px   (tablets)
   xl  < 1200px  (small laptops)
   ================================================================ */
/* ── xs: max-width 479px ── */
@media (max-width: 479px) {
    .about-hero__photo {
        background-attachment: scroll; /* disable fixed on mobile — not supported */
        background-position: center 60%; /* shows building + flags */
    }  

    .about-hero {
        padding: 7.5rem 0 3.5rem;
    }
 
    .about-hero__title {
        font-size: clamp(1.9rem, 11vw, 2.5rem);
    }
 
    .about-hero__subtitle {
        font-size: 0.95rem;
    }
 
    .about-mission {
        padding: 3.5rem 0 3rem;
    }
 
    .about-mission__text {
        font-size: 0.98rem;
        padding-left: 1.25rem;
    }
 
    .about-mission__attribution {
        padding-left: calc(1.25rem + 3px);
    }
 
    .about-beliefs {
        padding: 3.5rem 0;
    }
 
    .about-beliefs__grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .about-belief-card {
        min-height: 380px; /* taller on single column so text has room */
    }
}
 
/* ── sm: max-width 575px ── */
@media (max-width: 575.98px) {
 
    .about-hero {
        padding: 8rem 0 3.5rem;
    }

    .about-hero__photo {
        background-attachment: scroll; /* disable fixed on mobile — not supported */
        background-position: center 60%; /* shows building + flags */
    }  
 
    .about-hero__title {
        font-size: clamp(2rem, 12vw, 2.75rem);
    }
 
    .about-beliefs__grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .about-belief-card {
        min-height: 380px;
    }
}
 
/* ── md: max-width 767px ── */
@media (max-width: 767.98px) {

    .about-hero__photo {
        background-attachment: scroll; /* disable fixed on mobile — not supported */
        background-position: center 60%; /* shows building + flags */
    }  

    .about-mission__inner {
        text-align: left;
    }
 
    .about-mission__label {
        justify-content: flex-start;
    }
 
    .about-mission__label::before {
        display: none; /* only show trailing rule on mobile */
    }
 
    .about-beliefs__grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .about-belief-card {
        min-height: 360px;
    }
}
 
/* ── lg: max-width 991px (tablets) ── */
@media (min-width: 768px) and (max-width: 991.98px) {

    .about-beliefs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-belief-card {
        min-height: 360px;
    }
}

/* ── Tablet and down: focus-within reveals content on tap ── */
@media (max-width: 1024px) {

    .about-hero__photo {
        background-attachment: scroll; /* disable fixed on mobile — not supported */
        background-position: center 60%; /* shows building + flags */
    }
}

/* Only apply fixed/parallax on devices that support hover (true desktops/laptops) */
@media (hover: hover) and (pointer: fine) and (max-width: 1280px) {
    .about-hero__photo {
        background-attachment: fixed;
        background-position: center 100%;
    }
}

/* Tablets in landscape — touch devices, no parallax */
@media (hover: none) and (max-width: 1366px) {
    .about-hero__photo {
        background-attachment: scroll;
        background-position: center 100%;
    }

    .about-belief-card__tap-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(0, 0, 0, 0.60);
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.8rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        animation: tap-pulse 2.2s ease-in-out infinite;
        pointer-events: none;
        z-index: 3;
        transition: opacity 0.3s ease;
    }

    @keyframes tap-pulse {
        0%, 100% {
            border-color: rgba(255, 255, 255, 0.35);
            box-shadow: none;
        }

        50% {
            border-color: rgba(31, 65, 155, 0.9);
            box-shadow: 0 0 0 4px rgba(31, 65, 155, 0.15);
        }
    }

    /* Hide the hint once the card is in its active/expanded state.
       CSS :focus-within fires when any child receives focus —
       on mobile a tap focuses the element, triggering the hover state */
    .about-belief-card:focus-within .about-belief-card__tap-hint,
    .about-belief-card:hover .about-belief-card__tap-hint {
        opacity: 0;
    }

    .about-belief-card:focus-within .about-belief-card__body,
    .about-belief-card:hover .about-belief-card__body {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0.85rem;
    }

    .about-belief-card:focus-within .about-belief-card__keyword,
    .about-belief-card:hover .about-belief-card__keyword {
        transform: translateY(-4px);
    }

    .about-belief-card:focus-within .about-belief-card__tagline,
    .about-belief-card:hover .about-belief-card__tagline {
        transform: translateY(-4px);
    }

    .about-belief-card:focus-within .about-belief-card__overlay,
    .about-belief-card:hover .about-belief-card__overlay {
        background: linear-gradient( to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.60) 100% );
    }

    .about-belief-card:focus-within .about-belief-card__tap-hint,
    .about-belief-card:hover .about-belief-card__tap-hint {
        opacity: 0;
    }
}

/* ================================================================
   8. ACCESSIBILITY — WCAG 2.2 AA / REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .about-belief-card {
        transition: background 0.2s ease, border-left-color 0.2s ease !important;
    }

    .about-belief-card:hover {
        transform: none !important;
    }
}