/* ============================================
   Nathan A. Betz — Academic Website
   Dark Navy + Gold | Word on Fire Inspired
   ============================================ */

:root {
    --navy: #0a1628;
    --navy-light: #121f36;
    --navy-mid: #1a2d4a;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-muted: #b89a3f;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-body: #3a3a3a;
    --text-muted: #6a6a6a;
    --text-light: #c8c8c8;
    --text-on-dark: #e0dcd4;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold-muted);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: var(--navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy) !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    background-image: url('../images/hero-civate.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--white);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 3px;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    color: var(--gold);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-light);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--navy);
    color: var(--text-on-dark);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-label-light {
    color: var(--gold);
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-heading-light {
    color: var(--white);
}

.subsection-heading {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   About
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 100px;
}

.profile-photo {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-text .lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text em {
    font-style: italic;
}

/* ============================================
   Education
   ============================================ */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.edu-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    padding: 2rem;
    transition: border-color var(--transition);
}

.edu-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
}

.edu-year {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.edu-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.edu-institution {
    font-size: 0.9rem;
    color: var(--gold-muted);
    margin-bottom: 0.75rem;
}

.edu-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Research
   ============================================ */

.research-feature {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: 0 4px 4px 0;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.research-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-muted);
    margin-bottom: 1rem;
}

.research-feature h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.research-institution {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.research-feature p:last-child {
    line-height: 1.8;
}

/* Interests */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all var(--transition);
}

.interest-tag:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1rem;
}

.lang-group h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-muted);
    margin-bottom: 0.5rem;
}

.lang-group p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ============================================
   Publications
   ============================================ */

.pub-category {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.pub-category:first-of-type {
    margin-top: 0;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pub-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-muted);
    padding-top: 0.2rem;
    letter-spacing: 0.05em;
}

.pub-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.pub-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.pub-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.pub-link:hover {
    color: var(--gold-light);
}

.pub-book .pub-content h4 {
    font-size: 1.2rem;
}

/* ============================================
   Presentations
   ============================================ */

.presentations-list {
    margin-top: 1rem;
}

.pres-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pres-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-muted);
    padding-top: 0.15rem;
}

.pres-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.pres-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pres-note {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Leadership
   ============================================ */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.leader-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 4px;
    padding: 2rem;
    transition: border-color var(--transition);
}

.leader-card:hover {
    border-color: rgba(201, 168, 76, 0.35);
}

.leader-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.leader-role {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.leader-card p:last-of-type {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

.leader-links {
    margin-top: 1rem;
}

.leader-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* ============================================
   Contact
   ============================================ */

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-muted);
    margin-bottom: 0.75rem;
}

.contact-item a {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-body);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-links a {
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--navy);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-top: 1px solid rgba(201, 168, 76, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .pres-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
