/* =============================================
   Jonathan Shipe — Homepage Styles
   Loaded after base.css on the homepage only
   ============================================= */

/* Homepage navbar starts transparent, becomes solid on scroll */
#navbar {
    background: transparent;
    box-shadow: none;
}

#navbar.scrolled {
    background: rgba(26, 39, 64, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Hero ---- */
#hero {
    background: var(--color-primary);
    color: #fff;
    padding: 8rem 2rem 5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-photo {
    flex: 0 0 280px;
}

.hero-photo img {
    width: 280px;
    height: 340px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}

/* Hero-specific outline button (white border for dark background) */
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ---- About ---- */
.about-content {
    max-width: 750px;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* ---- Research Focus Areas heading (within About section) ---- */
.research-focus-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

/* ---- Research Cards ---- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.research-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.research-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.research-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ---- Publications ---- */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pub-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pub-card-type {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
}

.pub-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.pub-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Courses list on homepage ---- */
.course-column-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    columns: 2;
    column-gap: 2rem;
}

.course-column-list li {
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

.course-column-list li a {
    color: inherit;
    text-decoration: none;
}

.course-column-list li a:hover {
    color: var(--color-accent);
}

.course-buttons {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- CV ---- */
.cv-content {
    max-width: 700px;
}

.cv-content > p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.cv-content .btn {
    margin-bottom: 3rem;
}

.cv-highlights {
    margin-top: 2rem;
}

.cv-highlights h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.cv-highlights h3.cv-service-heading {
    margin-top: 2rem;
}

.cv-entry {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cv-year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent);
    flex: 0 0 60px;
}

.cv-detail {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.cv-detail strong {
    color: var(--color-primary);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- Teaching Subpage (course index uses evolution-style, but shared page-header also in style.css) ---- */
.page-header {
    background: var(--color-primary);
    color: #fff;
    padding: 8rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
}

.btn-small {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-accent);
    color: #fff;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--color-accent-hover);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-cta { justify-content: center; }

    #hero h1 { font-size: 2.5rem; }

    .hero-photo { flex: none; }

    .hero-photo img {
        width: 200px;
        height: 240px;
    }

    .research-grid,
    .contact-grid,
    .pub-grid {
        grid-template-columns: 1fr;
    }

    .cv-entry {
        flex-direction: column;
        gap: 0.25rem;
    }

    .course-column-list {
        columns: 1;
    }
}
