/*
Theme Name: EPRG
Author: Executive Policy Research Group
Description: Custom theme for the Executive Policy Research Group at Rice University.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eprg
*/

:root {
    --navy: #00205B;
    --gold: #C1A875;
    --gold-light: #F0E8D5;
    --warm-bg: #F7F5F1;
    --white: #FFFFFF;
    --slate: #4A5568;
    --border: #DDD9CF;
    --text: #1A1A2E;
    --muted: #6B7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--warm-bg); color: var(--text); }

/* NAV */
.nav { background: var(--navy); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 60px; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-family: 'Playfair Display', serif; color: white; font-size: 16px; font-weight: 500; text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* HERO */
.hero {
    background-size: cover;
    background-position: center;
    padding: 88px 48px 80px;
    position: relative;
    overflow: hidden;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 48px; right: 48px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 8px, transparent 8px, transparent 16px); }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; position: relative; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 500; color: white; line-height: 1.18; max-width: 600px; margin-bottom: 24px; position: relative; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.68); max-width: 520px; line-height: 1.85; font-weight: 300; position: relative; }

/* SECTIONS */
.section { padding: 64px 48px; }
.section-alt { background: var(--white); }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); background: var(--navy); display: inline-block; padding: 4px 10px; margin-bottom: 16px; border-radius: 1px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1.2; margin-bottom: 36px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: start; }
.about-body { font-size: 15px; line-height: 1.85; color: var(--slate); }
.about-body p + p { margin-top: 14px; }
.focus-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.focus-card { background: var(--warm-bg); border: 0.5px solid var(--border); border-radius: 4px; padding: 16px 18px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.focus-num { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); font-weight: 500; }
.focus-title { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.focus-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value-card { background: var(--warm-bg); border: 0.5px solid var(--border); border-radius: 4px; padding: 16px 18px; }
.value-title { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.value-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }
.sidebar-block { margin-bottom: 26px; }
.sidebar-label { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sidebar-value { font-size: 14px; color: var(--text); line-height: 1.7; }
.sidebar-value a { color: var(--navy); }

/* FUNDERS */
.funders-section { padding: 44px 48px; background: var(--warm-bg); border-top: 0.5px solid var(--border); }
.funders-label { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.funders-row { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.funder-item { opacity: 0.55; transition: opacity 0.2s; text-decoration: none; display: flex; align-items: center; }
.funder-item:hover { opacity: 1; }
.funder-item img { height: 40px; width: auto; max-width: 200px; object-fit: contain; display: block; border-radius: 2px; }
.funder-name { font-size: 12px; font-weight: 500; color: var(--slate); }

/* PEOPLE */
.people-section { display: flex; flex-direction: column; gap: 44px; }
.people-group-label { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); }
.people-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; }
.person-card { background: var(--warm-bg); border: 0.5px solid var(--border); border-radius: 4px; padding: 22px 20px; transition: border-color 0.2s; }
.person-card:hover { border-color: var(--navy); }
.person-card.pi { background: var(--white); border-color: var(--gold); max-width: 320px; }
.person-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 14px; color: var(--gold); margin-bottom: 12px; font-weight: 500; }
.person-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 3px; }
.person-name a { color: inherit; text-decoration: none; }
.person-name a:hover { text-decoration: underline; }
.person-role-badge { font-size: 10px; color: var(--gold); background: var(--navy); display: inline-block; padding: 2px 7px; border-radius: 2px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 9px; }
.person-bio { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* PROJECTS */
.projects-intro { font-size: 15px; line-height: 1.85; color: var(--slate); max-width: 720px; margin-bottom: 40px; }
.projects-intro p + p { margin-top: 14px; }
.projects-list { display: flex; flex-direction: column; }
.project-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 0.5px solid var(--border); align-items: start; }
.project-row:first-child { border-top: 0.5px solid var(--border); }
.project-tag { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; padding-top: 3px; }
.project-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); font-weight: 500; margin-bottom: 6px; line-height: 1.3; }
.project-desc { font-size: 13px; color: var(--slate); line-height: 1.65; max-width: 460px; }
.project-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.topic-tag { font-size: 11px; color: var(--navy); background: var(--gold-light); padding: 2px 8px; border-radius: 2px; font-weight: 500; }
.proj-status { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; white-space: nowrap; text-align: center; }
.status-active { background: var(--navy); color: var(--gold); }
.status-rr { background: #E8F4F0; color: #0F6E56; }
.status-data { background: var(--gold-light); color: var(--navy); }
.status-pub { background: #EFEAE0; color: var(--navy); }

/* FOOTER */
.footer { background: var(--navy); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Playfair Display', serif; color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-logo span { color: var(--gold); }
.footer-right { font-size: 11px; color: rgba(255,255,255,0.28); line-height: 1.7; text-align: right; }

@media (max-width: 900px) {
    .about-grid, .people-grid-2, .values-grid { grid-template-columns: 1fr; }
    .project-row { grid-template-columns: 1fr; }
    .nav-links { gap: 18px; }
    .hero h1 { font-size: 32px; }
}
