/* ============================================
   PAGE ACADEMY — SHARED BRAND SYSTEM
   UNC-inspired editorial typography & color
   ============================================ */

:root {
    --ink: #13294B;
    --ink-deep: #0a1d3a;
    --ink-soft: #1f3868;
    --carolina: #4B9CD3;
    --carolina-soft: #7BAFD4;
    --carolina-light: #c5dbed;
    --carolina-pale: #eaf2f9;
    --bone: #f5f7fa;
    --bone-warm: #ebf0f5;
    --paper: #ffffff;
    --paper-warm: #fcfaf6;
    --rule: #d6dde6;
    --body: #2a2d34;
    --muted: #5b6470;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: var(--paper-warm); color: var(--body); overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- TYPOGRAPHY ---------- */
.serif { font-family: 'PT Serif', serif; }

.kicker {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-weight: 700;
    color: var(--carolina);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.kicker::before { content: ""; display: inline-block; width: 36px; height: 1.5px; background: currentColor; }

.dark .kicker, .deep .kicker { color: var(--carolina-soft); }

em.accent { font-style: italic; color: var(--carolina); font-weight: 700; }
.dark em.accent, .deep em.accent { color: var(--carolina-soft); }

.h-display { font-family: 'PT Serif', serif; font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.h-section { font-family: 'PT Serif', serif; font-weight: 700; line-height: 1.06; letter-spacing: -0.014em; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.h-section em { font-style: italic; color: var(--carolina); }

.body-text { font-size: 1.08rem; line-height: 1.65; color: var(--body); }
.dark .body-text, .deep .body-text { color: var(--carolina-light); }

.diamond { display: inline-block; width: 7px; height: 7px; background: var(--carolina); transform: rotate(45deg); }
.dark .diamond, .deep .diamond { background: var(--carolina-soft); }

/* ---------- LAYOUT PRIMITIVES ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 64px; }
.wide { max-width: 1480px; margin: 0 auto; padding: 0 64px; }

section { padding: 140px 0; position: relative; }

.section-cream { background: var(--paper-warm); }
.section-paper { background: var(--paper); }
.section-bone { background: var(--bone); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-deep { background: var(--ink-deep); color: var(--paper); }

.plate-mark {
    position: absolute;
    top: 48px;
    right: 64px;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    color: var(--carolina);
    display: flex;
    align-items: center;
    gap: 12px;
}
.plate-mark .plate-num { font-weight: 700; }
.plate-mark::before { content: ""; display: inline-block; width: 20px; height: 1px; background: currentColor; }
.dark .plate-mark, .deep .plate-mark, .section-dark .plate-mark, .section-deep .plate-mark { color: var(--carolina-soft); }

/* ---------- NAV ---------- */
nav.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 22px 0; transition: all 0.3s ease; background: transparent; }
nav.top.scrolled { background: rgba(13, 29, 75, 0.97); backdrop-filter: blur(8px); padding: 16px 0; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
nav.top.solid { background: rgba(13, 29, 75, 0.97); backdrop-filter: blur(8px); }
nav.top .row { display: flex; justify-content: space-between; align-items: center; max-width: 1480px; margin: 0 auto; padding: 0 64px; }
nav.top .brand { display: flex; align-items: center; gap: 14px; color: var(--paper); }
nav.top .brand .seal { width: 38px; height: 38px; border-radius: 50%; background: var(--carolina); color: var(--ink-deep); display: flex; align-items: center; justify-content: center; font-family: 'PT Serif', serif; font-weight: 700; font-size: 1.25rem; }
nav.top .brand .name { font-family: 'PT Serif', serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.005em; }
nav.top .brand .sub { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.28em; font-weight: 700; opacity: 0.7; margin-top: 2px; }
nav.top .links { display: flex; align-items: center; gap: 36px; }
nav.top .links a { color: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; opacity: 0.85; transition: opacity 0.2s; position: relative; }
nav.top .links a:hover { opacity: 1; }
nav.top .links a.active { opacity: 1; color: var(--carolina-soft); }
nav.top .cta { background: var(--carolina); color: var(--ink-deep) !important; padding: 12px 26px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 700; transition: background 0.2s; opacity: 1 !important; }
nav.top .cta:hover { background: var(--carolina-light); }
nav.top .has-dropdown { position: relative; }
nav.top .has-dropdown > a { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
nav.top .has-dropdown > a::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; transition: transform 0.2s; }
nav.top .has-dropdown:hover > a::after { transform: rotate(45deg) translateY(0px); }
nav.top .dropdown { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 240px; background: rgba(13, 29, 75, 0.98); backdrop-filter: blur(8px); padding: 14px 0; border-top: 2px solid var(--carolina); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); }
nav.top .has-dropdown:hover .dropdown,
nav.top .has-dropdown:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
nav.top .dropdown::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
nav.top .dropdown a { display: block; padding: 12px 26px; color: var(--paper); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600; opacity: 0.82; transition: opacity 0.2s, background 0.2s, color 0.2s; }
nav.top .dropdown a:hover { opacity: 1; background: rgba(75, 156, 211, 0.12); color: var(--carolina-soft); }

/* ---------- BUTTONS ---------- */
.btn-primary {
    background: var(--carolina);
    color: var(--ink-deep);
    padding: 18px 36px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--carolina-light); transform: translateY(-1px); }
.btn-primary .arrow { display: inline-block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.btn-primary .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }

.btn-secondary {
    color: var(--paper);
    padding: 18px 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 700;
    border-bottom: 1.5px solid var(--carolina-soft);
}

.btn-text {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 700;
    color: var(--carolina);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.btn-text .arrow { display: inline-block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: width 0.2s; }
.btn-text .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.btn-text:hover .arrow { width: 36px; }

/* ---------- PAGE HEADER (reused across inner pages) ---------- */
.page-header {
    background: var(--ink-deep);
    color: var(--paper);
    padding: 220px 0 130px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(75, 156, 211, 0.18) 0%, transparent 60%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header .kicker { color: var(--carolina-soft); margin-bottom: 28px; }
.page-header .kicker::before { background: var(--carolina-soft); }
.page-header h1 {
    font-family: 'PT Serif', serif;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.018em;
    font-size: clamp(3rem, 6vw, 5.6rem);
    margin-bottom: 28px;
    max-width: 1080px;
}
.page-header h1 em { font-style: italic; color: var(--carolina-soft); font-weight: 700; }
.page-header .lede {
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    color: var(--carolina-light);
    line-height: 1.5;
    max-width: 780px;
}

/* ---------- BREADCRUMB ---------- */
.crumb {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--carolina-soft);
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.crumb .sep { width: 18px; height: 1px; background: currentColor; opacity: 0.5; }
.crumb a { opacity: 0.7; transition: opacity 0.2s; }
.crumb a:hover { opacity: 1; }
.crumb .current { color: var(--carolina-light); }

/* ---------- PHOTO PLACEHOLDERS ---------- */
.photo {
    position: relative;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 60%, #061027 100%);
    overflow: hidden;
}
.photo.light { background: linear-gradient(135deg, var(--carolina-pale), #d4e4f0, var(--carolina-light)); }
.photo.warm { background: linear-gradient(135deg, #efeae0 0%, #e2dccc 100%); }
.photo.archive { background: linear-gradient(135deg, #d4cfc1 0%, #b6ad97 100%); }

.photo .corner { position: absolute; width: 32px; height: 32px; border: 2px solid var(--carolina); }
.photo.light .corner, .photo.warm .corner, .photo.archive .corner { border-color: var(--ink); }
.photo .corner.tl { top: 22px; left: 22px; border-right: none; border-bottom: none; }
.photo .corner.tr { top: 22px; right: 22px; border-left: none; border-bottom: none; }
.photo .corner.bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.photo .corner.br { bottom: 22px; right: 22px; border-left: none; border-top: none; }

.photo .photo-tag { position: absolute; bottom: 28px; left: 36px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--carolina); font-weight: 700; }
.photo.light .photo-tag, .photo.warm .photo-tag, .photo.archive .photo-tag { color: var(--ink); }

.photo .photo-plate { position: absolute; top: 28px; right: 36px; font-family: 'PT Serif', serif; font-style: italic; font-size: 0.78rem; color: var(--carolina-soft); letter-spacing: 0.04em; }
.photo.light .photo-plate, .photo.warm .photo-plate, .photo.archive .photo-plate { color: var(--ink); }

/* ---------- PULL QUOTE BLOCK ---------- */
.pullquote {
    background: var(--ink-deep);
    color: var(--paper);
    padding: 200px 0;
    position: relative;
    overflow: hidden;
}
.pullquote::before { content: ""; position: absolute; top: -10%; left: -5%; width: 60%; height: 80%; background: radial-gradient(ellipse, rgba(75, 156, 211, 0.12) 0%, transparent 60%); }
.pullquote .layout { max-width: 1080px; margin: 0 auto; padding: 0 64px; position: relative; }
.pullquote .quote-mark { font-family: 'PT Serif', serif; font-size: 14rem; color: var(--carolina-soft); line-height: 0.6; opacity: 0.32; margin-bottom: -75px; display: block; }
.pullquote .quote-text { font-family: 'PT Serif', serif; font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.3; margin-bottom: 48px; color: var(--paper); letter-spacing: -0.005em; }
.pullquote .quote-text em { font-style: italic; color: var(--carolina-soft); font-weight: 700; }
.pullquote .attribution { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.32em; font-weight: 700; color: var(--carolina-soft); display: flex; align-items: center; gap: 14px; }
.pullquote .attribution .diamond { background: var(--carolina-soft); }

/* ---------- CTA STRIP (bottom of inner pages) ---------- */
.cta-strip {
    background: var(--ink);
    color: var(--paper);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::before { content: ""; position: absolute; top: 0; right: -10%; width: 60%; height: 100%; background: radial-gradient(ellipse, rgba(75, 156, 211, 0.12) 0%, transparent 60%); }
.cta-strip .container { position: relative; }
.cta-strip .layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.cta-strip .kicker { color: var(--carolina-soft); margin-bottom: 24px; }
.cta-strip .kicker::before { background: var(--carolina-soft); }
.cta-strip h2 { font-family: 'PT Serif', serif; font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.014em; margin-bottom: 24px; }
.cta-strip h2 em { font-style: italic; color: var(--carolina-soft); }
.cta-strip p { font-family: 'PT Serif', serif; font-style: italic; font-size: 1.2rem; color: var(--carolina-light); line-height: 1.5; max-width: 560px; }
.cta-strip .btn-row { display: flex; flex-direction: column; gap: 18px; }
.cta-strip .btn-row .meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--carolina-light); opacity: 0.7; font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
    background: #050d1f;
    color: var(--paper);
    padding: 100px 0 48px;
}
footer .wide { max-width: 1480px; padding: 0 64px; }
footer .grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(123, 175, 212, 0.18);
    margin-bottom: 36px;
}
footer .brand-block { max-width: 360px; }
footer .brand-block .seal {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--carolina); color: var(--ink-deep);
    display: flex; align-items: center; justify-content: center;
    font-family: 'PT Serif', serif; font-weight: 700; font-size: 1.6rem;
    margin-bottom: 24px;
}
footer .brand-block h4 { font-family: 'PT Serif', serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; letter-spacing: -0.005em; }
footer .brand-block p { font-size: 0.92rem; line-height: 1.6; color: var(--carolina-light); opacity: 0.8; }
footer .col h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--carolina-soft); font-weight: 700; margin-bottom: 22px; }
footer .col ul { list-style: none; }
footer .col ul li { margin-bottom: 12px; }
footer .col ul li a, footer .col ul li {
    color: var(--carolina-light);
    font-size: 0.92rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}
footer .col ul li a:hover { opacity: 1; color: var(--paper); }
footer .legal {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--carolina-light);
    opacity: 0.6;
}
footer .legal .right { display: flex; gap: 28px; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .container, .wide { padding: 0 32px; }
    nav.top .row { padding: 0 32px; }
    nav.top .links { gap: 24px; }
    .cta-strip .layout { grid-template-columns: 1fr; gap: 40px; }
    footer .grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 720px) {
    section { padding: 100px 0; }
    nav.top .links a:not(.cta) { display: none; }
    .container, .wide { padding: 0 24px; }
    nav.top .row { padding: 0 24px; }
    .page-header { padding: 160px 0 100px; }
    footer .grid { grid-template-columns: 1fr; }
    footer .legal { flex-direction: column; gap: 12px; }
}
