/* ── Font auto-allotjada (sense Google) ───────────────── */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-primary: #6B1D3A;
  --color-secondary: #1B3A6B;
  --color-background: #F5F3F0;
  --color-text: #2D2D2D;
}

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

h2 {
    word-spacing: 0.08em;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* ── Navbar ───────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    background-color: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.navbar-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 24px;
    margin-left: auto;
}

.navbar-links a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Hamburger button */
.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.navbar-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.navbar-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
    .navbar {
        padding: 0 24px;
    }

    .navbar-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: rgba(245, 243, 240, 0.98);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 8px 0 16px;
    }

    .navbar-links.is-open {
        display: flex;
    }

    .navbar-links li a {
        display: block;
        padding: 12px 24px;
        font-size: 1rem;
        border-bottom: none;
    }

    .navbar-burger {
        display: flex;
    }
}

/* ── Hero ─────────────────────────────────────────────── */

#hero {
    position: relative;
    background-image: url('assets/img/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(245, 243, 240, 0.80) 0%, rgba(245, 243, 240, 0.00) 30%),
        linear-gradient(to top,    rgba(245, 243, 240, 1.00) 0%, rgba(245, 243, 240, 0.80) 35%, rgba(245, 243, 240, 0.00) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 80px 72px 140px;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #fff;
    border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
    background-color: #152e57;
    border-color: #152e57;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid rgba(45, 45, 45, 0.3);
}

.btn-ghost:hover {
    border-color: var(--color-text);
}

/* ── Hero responsive ──────────────────────────────────── */

@media (max-width: 768px) {
    #hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 0 28px 56px;
        max-width: 100%;
        gap: 16px;
    }

    .hero-title {
        white-space: normal;
    }

    .hero-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

/* ── Project section ──────────────────────────────────── */

#project {
    padding: 100px 40px;
    background-color: #EDEAE6;
}

.project-inner {
    max-width: 680px;
    margin: 0 auto;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    margin-top: 10px;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
}

.project-competition-link {
    display: inline-block;
    margin-top: 32px;
    font-size: 0.9rem;
}

.join-perk a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.join-perk a:hover {
    color: var(--color-secondary);
}

/* ── Galeria ──────────────────────────────────────────── */

#galeria {
    padding: 100px 40px;
    background-color: #EDEAE6;
}

.gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.gallery-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #E5E2DE;
}

.gallery-item a {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item a:hover img {
    transform: scale(1.04);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox:target {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox-content {
    position: relative;
    z-index: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Team section ─────────────────────────────────────── */

#team {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-intro {
    margin-bottom: 56px;
}

.team-label {
    font-size: 0.90rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.team-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
}

.team-group {
    margin-bottom: 48px;
}

.team-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 32px 24px;
}


.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #E5E2DE;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar--placeholder svg {
    width: 52px;
    height: 52px;
}

.team-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.75rem;
    color: var(--color-secondary);
}

/* ── Shared section labels ────────────────────────────── */

.section-label {
    font-size: 0.90rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-text);
    margin-top: 10px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    margin-top: 12px;
    font-size: 1rem;
    color: #666;
    line-height: 1.65;
    max-width: 580px;
}

/* ── Col·laboradors ───────────────────────────────────── */

#collaborators {
    padding: 100px 40px;
    background-color: var(--color-background);
}

.collab-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.collab-subtitle-small {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.collab-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.reason-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    border: 1.5px solid #E8E5E1;
}

.reason-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(27, 58, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.reason-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.reason-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #666;
}

.collab-ways {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.collab-item {
    background: #fff;
    border: 1.5px solid #E8E5E1;
    border-radius: 12px;
    overflow: hidden;
}

.collab-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    user-select: none;
}

.collab-item summary::-webkit-details-marker { display: none; }

.collab-item summary span {
    flex: 1;
}

.collab-chevron {
    color: #aaa;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.collab-item[open] .collab-chevron {
    transform: rotate(180deg);
}

.collab-item[open] {
    border-color: rgba(27, 58, 107, 0.3);
    background: rgba(27, 58, 107, 0.03);
}

.collab-item p {
    padding: 0 20px 20px 56px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
}

.collab-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(27, 58, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.collab-cta {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .collab-reasons {
        grid-template-columns: 1fr;
    }
}

/* ── Uneix-te ─────────────────────────────────────────── */

#join {
    padding: 100px 40px;
    background-color: #EDEAE6;
}

.join-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

.join-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-top: 16px;
    margin-bottom: 28px;
}

.join-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.join-perk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.5;
}

.join-perk svg {
    color: var(--color-secondary);
    margin-top: 2px;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .join-inner {
        grid-template-columns: 1fr;
    }
}

/* ── Contact section ──────────────────────────────────── */

#contact {
    background-color: #EDEAE6;
    padding: 100px 40px;
}

.contact-inner {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 56px;
}

.contact-subtitle {
    margin-top: 12px;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 36px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #E8E5E1;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(27, 58, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.contact-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
    background-color: var(--color-background);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 32px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #999;
    padding-left: 16px;
    border-left: 1px solid #ddd;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #E0DDD9;
    color: #888;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.footer-copy {
    font-size: 0.8rem;
    color: #bbb;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-right {
        width: 100%;
        justify-content: space-between;
    }
}
