/* RISKFOREST – Scientific Project Webpage Styles */
:root {
    --color-forest-dark: #1a3329;
    --color-forest: #2d5a47;
    --color-forest-light: #3d7a5f;
    --color-moss: #5c8a6e;
    --color-sage: #8ba888;
    --color-cream: #f5f3ee;
    --color-warm-white: #faf8f5;
    --color-charcoal: #2c2c2c;
    --color-text: #333;
    --color-text-muted: #555;
    --shadow-soft: 0 4px 20px rgba(26, 51, 41, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 51, 41, 0.12);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-warm-white);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 51, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    color: rgba(245, 243, 238, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-cream);
}

/* Hero */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 51, 41, 0.85) 0%, rgba(45, 90, 71, 0.6) 50%, rgba(26, 51, 41, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-cream);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-cream);
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: rgba(245, 243, 238, 0.98);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-subtitle em {
    font-style: italic;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--color-forest-light);
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background var(--transition), transform var(--transition);
}

.cta-button:hover {
    background: var(--color-moss);
    transform: translateY(-2px);
}

.hero-funding {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-cream);
    font-size: 1.05rem;
    text-decoration: none;
    opacity: 0.95;
}

.hero-funding strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-funding:hover {
    opacity: 1;
}

.hero-funding:hover strong {
    color: var(--color-sage);
}

/* Sections */
.section {
    padding: 5rem 0;
}

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

.section-dark {
    background: var(--color-forest-dark);
    color: var(--color-cream);
}

.section-dark h2 {
    color: var(--color-cream);
}

.section-accent {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 100%);
    color: var(--color-cream);
}

.section-accent h2 {
    color: var(--color-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-forest-dark);
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-forest-dark);
    margin-bottom: 1.5rem;
}

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

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* Innovation Cards */
.innovation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.innovation-card {
    background: rgba(245, 243, 238, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(245, 243, 238, 0.2);
    transition: transform var(--transition);
}

.innovation-card:hover {
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.innovation-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-cream);
}

.innovation-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Work Packages */
.wp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.wp-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition), transform var(--transition);
}

.wp-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.wp-image {
    height: 200px;
    overflow: hidden;
}

.wp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wp-card:hover .wp-image img {
    transform: scale(1.05);
}

.wp-content {
    padding: 1.75rem;
}

.wp-badge {
    display: inline-block;
    background: var(--color-forest);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.wp-content h3 {
    font-size: 1.35rem;
    color: var(--color-forest-dark);
    margin-bottom: 0.75rem;
}

.wp-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.wp-content ul {
    list-style: none;
}

.wp-content li {
    font-size: 0.9rem;
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--color-text);
}

.wp-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-forest-light);
    font-weight: 600;
}

/* Aims & Goals */
.aims-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.aims-block {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 243, 238, 0.2);
}

.aims-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-cream);
}

.aims-block ul {
    list-style: none;
}

.aims-block li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.95;
}

.aims-block li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--color-sage);
}

/* Theory & Methods */
.theory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.theory-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-sage);
}

.theory-block h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-cream);
}

.theory-block p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Outcomes */
.outcomes-content {
    max-width: 800px;
    margin: 0 auto;
}

.outcomes-content p {
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.sdg-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.sdg-block h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-cream);
}

/* Knowledge Gaps */
.gaps-list {
    max-width: 800px;
    margin: 0 auto;
}

.gap-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(45, 90, 71, 0.2);
}

.gap-item:last-child {
    border-bottom: none;
}

.gap-item h4 {
    font-size: 1.1rem;
    color: var(--color-forest-dark);
    margin-bottom: 0.5rem;
}

.gap-item p {
    color: var(--color-text);
    font-size: 0.98rem;
}

/* Contact / Partners */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-block {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-block h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-cream);
}

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

.institution-block {
    padding-right: 1rem;
    border-right: 1px solid rgba(245, 243, 238, 0.15);
}

.institution-block:last-child {
    border-right: none;
    padding-right: 0;
}

.institution-block h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.institution-block h5 a {
    color: var(--color-cream);
    text-decoration: none;
}

.institution-block h5 a:hover {
    color: var(--color-sage);
    text-decoration: underline;
}

.contact-persons {
    list-style: none;
}

.contact-persons li {
    padding: 0.25rem 0;
    font-size: 0.88rem;
    opacity: 0.95;
}

.contact-persons a {
    color: var(--color-sage);
    text-decoration: none;
}

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

.contact-persons a[href^="mailto"] {
    color: rgba(245, 243, 238, 0.9);
    font-size: 0.85rem;
}

.contact-related {
    margin: 0;
    font-size: 0.95rem;
}

.contact-related a {
    color: var(--color-sage);
    text-decoration: none;
}

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

.contact-block p,
.contact-block ul {
    font-size: 0.95rem;
    opacity: 0.95;
}

.contact-block a {
    color: var(--color-sage);
    text-decoration: none;
}

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

.stakeholder-list {
    list-style: none;
}

.stakeholder-list li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.stakeholder-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-sage);
}

/* Objectives */
.objectives-list {
    max-width: 800px;
    margin: 0 auto;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(45, 90, 71, 0.2);
}

.objective-item:last-child {
    border-bottom: none;
}

.objective-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-forest);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}

.objective-item p {
    font-size: 1.05rem;
    color: var(--color-text);
}

/* Parallax Section */
.section-image {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.parallax-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 51, 41, 0.8);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.parallax-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-cream);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.partners {
    font-weight: 600;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-funding {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-funding a {
    color: var(--color-sage);
}

.footer-note {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

.footer a {
    color: var(--color-sage);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .innovation-cards {
        grid-template-columns: 1fr;
    }

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

    .aims-grid,
    .theory-grid {
        grid-template-columns: 1fr;
    }

    .contact-institutions {
        grid-template-columns: 1fr;
    }

    .institution-block {
        border-right: none;
        padding-right: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(245, 243, 238, 0.15);
    }

    .institution-block:last-child {
        border-bottom: none;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-forest-dark);
        padding: 1rem;
        gap: 1rem;
    }

    .hero {
        height: 70vh;
    }

    .section {
        padding: 3rem 0;
    }

    .parallax-content blockquote {
        font-size: 1.35rem;
    }
}
