/* ============================================================
   pages.css — shared styles for standalone pages
   About (Theron), Technology, Disclosures, Privacy
   Layers on top of style.css. Uses the established Avidity token system.
   Prefix: .pg-  (page) and .lg-  (legal)
   ============================================================ */

:root {
    --navy-primary: #0D3B5E;
    --navy-dark: #071E33;
    --navy-mid: #1A527A;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --off-white: #F8F6F1;
    --light-gray: #EEF0F4;
    --body-text: #0A1628;
    --muted-text: #4A5568;
}

/* ---------- Page hero (compact, for non-article pages) ---------- */
.pg-hero {
    position: relative;
    background: var(--navy-dark);
    color: var(--off-white);
    padding: 9.5rem 0 4.5rem;
    overflow: hidden;
}
.pg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(201,168,76,0.16), transparent 55%),
        linear-gradient(180deg, rgba(7,30,51,0) 40%, rgba(7,30,51,0.55) 100%);
    pointer-events: none;
}
.pg-hero .container { position: relative; z-index: 2; }
.pg-hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1.1rem;
}
.pg-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin: 0 0 1.2rem;
    max-width: 18ch;
}
.pg-hero-title em { font-style: italic; color: var(--gold-light); }
.pg-hero-deck {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(248,246,241,0.86);
    max-width: 56ch;
    margin: 0;
}
.pg-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(248,246,241,0.6);
    margin: 0 0 1.6rem;
}
.pg-breadcrumb a { color: rgba(248,246,241,0.78); text-decoration: none; }
.pg-breadcrumb a:hover { color: var(--gold-light); }
.pg-breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Main column ---------- */
.pg-main { background: var(--off-white); padding: 4.5rem 0 5.5rem; }
.pg-narrow { max-width: 820px; margin: 0 auto; }

.pg-section + .pg-section { margin-top: 3.4rem; }
.pg-section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.7rem;
}
.pg-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 1.14;
    color: var(--navy-primary);
    margin: 0 0 1.1rem;
}
.pg-h2 em { font-style: italic; color: var(--gold); }
.pg-h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--navy-primary);
    margin: 2rem 0 0.6rem;
}
.pg-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--body-text);
    margin: 0 0 1.15rem;
}
.pg-body p.pg-lead {
    font-size: 1.22rem;
    line-height: 1.6;
    color: var(--navy-primary);
}
.pg-gold { color: var(--gold); font-style: italic; }

/* ---------- Pull quote ---------- */
.pg-pull {
    border-left: 3px solid var(--gold);
    padding: 0.4rem 0 0.4rem 1.6rem;
    margin: 2.2rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--navy-primary);
}
.pg-pull cite {
    display: block;
    margin-top: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--muted-text);
}

/* ---------- Timeline (About) ---------- */
.pg-timeline { margin: 2rem 0 0; padding: 0; list-style: none; }
.pg-timeline-item {
    position: relative;
    padding: 0 0 2rem 2.2rem;
    border-left: 2px solid var(--light-gray);
}
.pg-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.pg-timeline-item::before {
    content: "";
    position: absolute;
    left: -7px; top: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--off-white);
}
.pg-timeline-year {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.3rem;
}
.pg-timeline-h {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--navy-primary);
    margin: 0 0 0.45rem;
}
.pg-timeline-item p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--body-text);
    margin: 0;
}

/* ---------- Stat / fact row ---------- */
.pg-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin: 2.4rem 0;
}
.pg-fact { background: #fff; padding: 1.6rem 1.4rem; text-align: center; }
.pg-fact-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--navy-primary);
    line-height: 1;
    margin: 0 0 0.4rem;
}
.pg-fact-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted-text);
    margin: 0;
}

/* ---------- Pillars (Technology) ---------- */
.pg-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    margin: 2.2rem 0;
}
.pg-pillar {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.7rem 1.6rem;
}
.pg-pillar i {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 0.9rem;
    display: block;
}
.pg-pillar h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--navy-primary);
    margin: 0 0 0.5rem;
}
.pg-pillar p {
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--muted-text);
    margin: 0;
}

/* ---------- Inline CTA band ---------- */
.pg-cta {
    margin-top: 3.6rem;
    background: var(--navy-primary);
    border-radius: 14px;
    padding: 2.8rem 2.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pg-cta::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.18), transparent 60%);
    pointer-events: none;
}
.pg-cta-inner { position: relative; z-index: 2; }
.pg-cta-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 0 0.8rem;
}
.pg-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    color: var(--off-white);
    margin: 0 0 0.9rem;
    line-height: 1.15;
}
.pg-cta h2 em { font-style: italic; color: var(--gold-light); }
.pg-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(248,246,241,0.85);
    max-width: 52ch;
    margin: 0 auto 1.7rem;
}
.pg-cta-buttons { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* btn-outline on dark CTA background — override navy to white */
.pg-cta .btn-outline {
    color: var(--off-white);
    border-color: rgba(248,246,241,0.6);
}
.pg-cta .btn-outline:hover {
    background: rgba(248,246,241,0.12);
    border-color: var(--off-white);
    color: var(--off-white);
}

/* ---------- Note / disclaimer callout ---------- */
.pg-note {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    margin: 2rem 0;
}
.pg-note p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted-text);
    margin: 0;
}
.pg-note strong { color: var(--navy-primary); }

/* ============================================================
   Legal pages (Disclosures, Privacy)
   ============================================================ */
.lg-main { background: var(--off-white); padding: 3.8rem 0 5rem; }
.lg-wrap { max-width: 760px; margin: 0 auto; }
.lg-updated {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted-text);
    margin: 0 0 2.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--light-gray);
}
.lg-block { margin: 0 0 2rem; }
.lg-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--navy-primary);
    margin: 0 0 0.7rem;
}
.lg-block h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-primary);
    margin: 1.4rem 0 0.5rem;
}
.lg-block p, .lg-block li {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.72;
    color: var(--body-text);
    margin: 0 0 1rem;
}
.lg-block ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.lg-block li { margin-bottom: 0.5rem; }
.lg-block strong { color: var(--navy-primary); }
.lg-block a { color: var(--navy-mid); text-decoration: underline; text-underline-offset: 2px; }
.lg-block a:hover { color: var(--gold); }
.lg-contact {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--body-text);
}
.lg-toc {
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin: 0 0 2.6rem;
}
.lg-toc h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.8rem;
}
.lg-toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.lg-toc li { margin: 0 0 0.5rem; }
.lg-toc a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--navy-mid);
    text-decoration: none;
}
.lg-toc a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .pg-facts { grid-template-columns: 1fr; }
    .pg-pillars { grid-template-columns: 1fr; }
    .pg-hero { padding: 8rem 0 3.5rem; }
    .lg-toc ul { columns: 1; }
    .pg-pull { font-size: 1.35rem; }
}

/* ============================================================
   About page — photo treatments (added)
   ============================================================ */
/* Two-column hero with image on the right */
.pg-hero--split .pg-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}
.pg-hero--split .pg-hero-copy { min-width: 0; }
.pg-hero-figure {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7,30,51,0.45);
    border: 1px solid rgba(201,168,76,0.25);
}
.pg-hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.pg-hero-figure::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,30,51,0) 70%, rgba(7,30,51,0.25) 100%);
    pointer-events: none;
}

/* Portrait beside intro narrative */
.pg-portrait-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
.pg-portrait {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: 0 12px 30px rgba(7,30,51,0.12);
}
.pg-portrait img { display: block; width: 100%; height: auto; }
.pg-portrait-cap {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted-text);
    margin: 0.7rem 0 0;
    text-align: center;
}

@media (max-width: 820px) {
    .pg-hero--split .pg-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .pg-hero-figure { order: -1; }
    .pg-hero-figure img { aspect-ratio: 16 / 10; }
    .pg-portrait-row { grid-template-columns: 1fr; gap: 1.2rem; }
    .pg-portrait { max-width: 260px; margin: 0 auto; }
}
