:root {
    --primary-brown: #d6b383;
    --primary-brown-dark: #ba8c4c;
    --light-gray: #f0f3f2;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Source Sans Pro",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    background: #fff;
    padding: 12px 32px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 70px;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url("img/hero-bg.jpg") center/cover no-repeat;
}

/* .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.7),
        rgba(44, 62, 80, 0.4)
    );
    z-index: 1;
} */

.hero-content {
    position: relative;
    margin-top: -4rem;
    z-index: 2;
    max-width: 700px;
    padding: 0 48px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-accent {
    font-weight: 800;
    color: var(--primary-brown);
}

.hero p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 560px;
}

/* ==================== PARTNERS ==================== */
.partners {
    background: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.partners-slider {
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(
        to right,
        #fff 0%,
        rgba(255, 255, 255, 0.8) 30%,
        transparent 100%
    );
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(
        to left,
        #fff 0%,
        rgba(255, 255, 255, 0.8) 30%,
        transparent 100%
    );
}

.partners-slider:last-child {
    margin-bottom: 0;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
}

.partners-track img {
    height: 130px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==================== ABOUT ==================== */
.about {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 48px;
    color: inherit;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-brown-dark);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.about-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-brown-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

.about-eu {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.about-eu img {
    width: 80px;
    margin-bottom: 12px;
}

.about-eu p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 8px;
}

.about-eu-disclaimer {
    font-size: 0.7rem !important;
    color: #718096 !important;
    font-style: italic;
}

/* ==================== WAVY SEPARATOR ==================== */
.wavy-separator {
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20'%3E%3Cpath d='M0 10 Q15 0 30 10 Q45 20 60 10 Q75 0 90 10 Q105 20 120 10 Q135 0 150 10 Q165 20 180 10 Q195 0 210 10 Q225 20 240 10 Q255 0 270 10 Q285 20 300 10 Q315 0 330 10 Q345 20 360 10 Q375 0 390 10 Q405 20 420 10 Q435 0 450 10 Q465 20 480 10 Q495 0 510 10 Q525 20 540 10 Q555 0 570 10 Q585 20 600 10 Q615 0 630 10 Q645 20 660 10 Q675 0 690 10 Q705 20 720 10 Q735 0 750 10 Q765 20 780 10 Q795 0 810 10 Q825 20 840 10 Q855 0 870 10 Q885 20 900 10 Q915 0 930 10 Q945 20 960 10 Q975 0 990 10 Q1005 20 1020 10 Q1035 0 1050 10 Q1065 20 1080 10 Q1095 0 1110 10 Q1125 20 1140 10 Q1155 0 1170 10 Q1185 20 1200 10' fill='none' stroke='%23ddd' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin: 0 auto;
    max-width: 600px;
}

/* ==================== IMPACTS ==================== */
.impacts {
    padding: 80px 0;
    background: #fff;
}

.impact-category {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: inherit;
    margin-bottom: 32px;
    padding-bottom: 8px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.impact-item {
    text-align: center;
}

.impact-icon {
    margin: 0 auto 16px;
    color: var(--primary-brown);
    font-size: 2rem;
}

.impact-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* ==================== MODULES (VIMEO) ==================== */
.modules {
    padding: 80px 0;
    background: #fff;
}

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

.module-card {
    text-align: center;
}

.module-video {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.module-video-placeholder {
    aspect-ratio: 16/7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.module-video--dark {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.module-video--dark .module-label,
.module-video--dark .module-video-title {
    color: var(--primary-brown);
}

.module-video--light .module-label,
.module-video--light .module-video-title {
    color: var(--primary-brown-dark);
}

.module-label {
    font-size: 0.9rem;
    font-weight: 400;
}

.module-video-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.module-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.module-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.btn-cta {
    font-family: "Montserrat", sans-serif;
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-brown-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    border: 2px solid var(--primary-brown-dark);
}

.btn-cta:hover {
    background: #fff;
    color: var(--primary-brown-dark);
    border-color: var(--primary-brown-dark);
    transform: translateY(-2px);
}

/* ==================== RESOURCES ==================== */
.resources {
    padding: 80px 0;
    background: #fff;
}

.tabs {
    display: inline-flex;
    margin: 0 auto 32px;
    background: var(--primary-brown);
    border-radius: 40px;
    padding: 4px;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    font-family: "Montserrat", sans-serif;
    padding: 14px 36px;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        background 0.3s,
        color 0.3s;
    border-radius: 36px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
    background: var(--primary-brown-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(186, 140, 76, 0.3);
}

.tab-btn:not(.active):hover {
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.publications-box {
    background: rgba(214, 179, 131, 0.1);
    border: 2px solid var(--primary-brown);
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.publications-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-brown-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.publications-list,
.highlights-list {
    list-style: disc;
    padding-left: 20px;
}

.publications-list li,
.highlights-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5568;
}

.publications-list a,
.highlights-list a {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: var(--primary-brown);
    text-underline-offset: 2px;
    transition: color 0.3s;
}

.publications-list a:hover,
.highlights-list a:hover {
    color: var(--primary-brown-dark);
}

/* ==================== GHOST BUTTON ==================== */
.btn-ghost {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary-brown-dark);
    color: var(--primary-brown-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition:
        background 0.3s,
        color 0.3s;
}

.btn-ghost:hover {
    background: var(--primary-brown-dark);
    color: #fff;
}

/* ==================== CONTACT ==================== */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--primary-brown);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    color: var(--primary-brown-dark);
    margin-bottom: 20px;
}

.contact-card h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 28px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary-brown-dark);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid var(--primary-brown-dark);
    transition:
        background 0.3s,
        color 0.3s,
        transform 0.2s;
}

.contact-btn:hover {
    background: #fff;
    color: var(--primary-brown-dark);
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-brown-dark);
    color: #fff;
    padding: 0;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.footer-bottom a:hover {
    opacity: 0.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px;
    }

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

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .publications-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .partners-track img {
        height: 40px;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
