/* ============================================================
   University of OMXUS — Master Stylesheet
   Veritas Libertas Ex Corde ad Mundum
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --navy:       #001C3D;
    --navy-deep:  #00122A;
    --navy-light: #002B5C;
    --gold:       #C4A35A;
    --gold-light: #D4B87A;
    --gold-pale:  #E8D5A8;
    --cream:      #FAF8F2;
    --cream-dark: #F0EDE4;
    --stone:      #E5E0D5;
    --text:       #1A1A1A;
    --text-mid:   #4A4A4A;
    --text-light: #6B6B6B;
    --white:      #FFFFFF;
    --border:     #D5D0C5;
    --max-width:  1200px;
    --font-serif: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Top Bar (gold accent line) --- */
.top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* --- Header / Navigation --- */
.site-header {
    background: var(--navy);
    border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.header-crest {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.header-title {
    display: flex;
    flex-direction: column;
}
.header-title-main {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.header-title-sub {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}
.primary-nav li {
    position: relative;
}
.primary-nav a {
    display: block;
    padding: 24px 18px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.02em;
    transition: color 200ms;
    text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a.active {
    color: var(--white);
}
.primary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 200ms;
}

/* --- Hero --- */
.hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(196,163,90,0.08) 0%, transparent 70%);
}
.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px 96px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}
.hero-content {
    flex: 1;
}
.hero-crest {
    width: 280px;
    height: 280px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}
.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}
.hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin-bottom: 36px;
}
.hero-motto {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 0.03em;
    padding-top: 24px;
    border-top: 1px solid rgba(196,163,90,0.25);
    display: inline-block;
}

/* --- Section Foundations --- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
}
.section-narrow {
    max-width: 800px;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 600;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--navy-deep);
    border-top: 1px solid rgba(196,163,90,0.15);
}
.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Faculty Cards --- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.faculty-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 36px 32px;
    transition: border-color 250ms, box-shadow 250ms;
    text-decoration: none;
    display: block;
}
.faculty-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0,28,61,0.06);
}
.faculty-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: block;
}
.faculty-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--navy);
}
.faculty-card p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 16px;
}
.faculty-meta {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* --- Alternating Sections --- */
.section-alt {
    background: var(--white);
    border-top: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.two-col h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--navy);
}
.two-col p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* --- Blockquotes --- */
blockquote {
    border-left: 3px solid var(--gold);
    padding: 20px 28px;
    margin: 32px 0;
    background: var(--white);
    font-family: var(--font-serif);
    font-size: 19px;
    font-style: italic;
    color: var(--navy);
    line-height: 1.7;
}
blockquote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    color: var(--text-light);
    margin-top: 12px;
    font-family: var(--font-sans);
}

/* --- Values / Principles Grid --- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.principle {
    background: var(--navy);
    padding: 32px 28px;
    color: var(--white);
}
.principle-number {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 12px;
    line-height: 1;
}
.principle h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--gold-light);
}
.principle p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
}

/* --- Research Cards --- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.research-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px;
    display: block;
    text-decoration: none;
    transition: border-color 250ms, box-shadow 250ms;
}
.research-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0,28,61,0.06);
}
.research-card h4 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
}
.research-card p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--navy);
    text-align: center;
    padding: 72px 32px;
}
.cta-banner h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 200ms;
}
.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-light);
}
.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    margin-left: 16px;
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(196,163,90,0.15);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 32px 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-brand img {
    width: 36px;
    height: 36px;
}
.footer-brand span {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--white);
}
.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}
.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    padding: 4px 0;
    transition: color 200ms;
    text-decoration: none;
}
.footer-col a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-left: 24px;
}
.footer-bottom a:hover { color: var(--gold); }

/* --- Prose Content --- */
.prose h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--navy);
    margin: 40px 0 16px;
}
.prose h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    margin: 32px 0 12px;
}
.prose p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}
.prose ul, .prose ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.prose li {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    background: var(--navy);
    padding: 56px 32px 64px;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--cream);
}
.timeline-year {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
}
.timeline-item h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}
.timeline-item p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* --- Governance Table --- */
.governance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.governance-table th {
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
}
.governance-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--stone);
    font-size: 15px;
    color: var(--text-mid);
}
.governance-table tr:nth-child(even) td {
    background: var(--white);
}

/* --- Degree Pathway Cards --- */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pathway-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
}
.pathway-header {
    background: var(--navy);
    padding: 28px 24px;
}
.pathway-header h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 4px;
}
.pathway-header span {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pathway-body {
    padding: 24px;
}
.pathway-body p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}
.pathway-body ul {
    list-style: none;
    padding: 0;
}
.pathway-body li {
    font-size: 14px;
    color: var(--text-mid);
    padding: 6px 0;
    border-bottom: 1px solid var(--cream-dark);
}
.pathway-body li::before {
    content: '\2014\00a0';
    color: var(--gold);
}

/* --- Image Feature Band --- */
.image-feature {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.image-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,28,61,0.5) 0%, rgba(0,28,61,0.75) 100%);
    z-index: 1;
}
.image-feature-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 80px 32px;
    text-align: center;
    color: var(--white);
}
.image-feature-content h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}
.image-feature-content p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}
.image-feature-content blockquote {
    background: transparent;
    border-left-color: var(--gold);
    color: var(--gold-light);
    font-size: 22px;
    margin-top: 24px;
}

/* --- Faculty Card with Image --- */
.faculty-card-img {
    position: relative;
    overflow: hidden;
}
.faculty-card-img .faculty-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 40px; padding: 48px 24px 64px; }
    .hero-crest { width: 180px; height: 180px; }
    .hero h1 { font-size: 36px; }
    .hero-text { margin: 0 auto 32px; }
    .hero-motto { display: block; text-align: center; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .faculty-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .principles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .pathway-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-inner { height: 60px; }
    .header-crest { width: 32px; height: 32px; }
    .header-title-main { font-size: 16px; }
    .primary-nav { display: none; }
    .primary-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid rgba(196,163,90,0.15);
        z-index: 100;
    }
    .primary-nav.open a { padding: 16px 32px; }
    .nav-toggle { display: block; }
    .hero-inner { padding: 32px 20px 48px; }
    .hero h1 { font-size: 28px; }
    .hero-crest { width: 140px; height: 140px; }
    .section { padding: 48px 20px; }
    .faculty-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .page-hero { padding: 36px 20px 44px; }
    .page-hero h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
