:root {
    /* Paleta Clàssica & Bambú */
    --black: #1b261b;         /* Verd molt fosc / gairebé negre per als textos i fons foscos */
    --dark: #243324;          /* Verd bosc fosc per a seccions d'obertura/destacades */
    --dark-soft: #2d3e2d;     /* Verd fosc suau */
    --white: #ffffff;
    --off-white: #f7f6f2;     /* Fons crema clàssic i acollidor */
    --grey: #5c665c;          /* Text secundari en estil verdós neutre */
    --line: #dcdad0;          /* Línies de divisió suaus */
    
    /* Verd Bambú com a color d'accent principal */
    --accent: #3b7a57;        /* Verd bambú / de la naturalesa */
    --accent-dark: #2a573e;   /* Verd bambú fosc per a estats hover */
    
    --max-width: 1180px;
    --header-height: 82px;
}
/* Tipografia clàssica i familiar per als títols */
h1, h2, h3, .section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--black);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

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

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

.eyebrow {
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading h2,
.split-title h2,
.competition-content h2,
.contact-section h2 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 900;
}

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

/* Header */

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96); /* Fons blanc amb lleugera transparència */
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);   /* Línia de separació suau */
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    width: 100px;
    height: 66px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--black);                    /* Text fosc sobre fons blanc */
    font-size: .86rem;
    font-weight: 700;
}

.main-nav a {
    opacity: .82;
    transition: opacity .2s ease, color .2s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--accent);                   /* Accent verd bambú en fer hover */
}

.main-nav .nav-cta {
    opacity: 1;
    background: var(--accent);
    color: var(--white);                    /* Botó de contacte amb text blanc */
    padding: 10px 18px;
    border-radius: 4px;
}

.main-nav .nav-cta:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* Menú hamburguesa per a dispositius mòbils */
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--black);               /* Línies del menú en fosc */
}

/* Hero */

.hero {
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
    padding: 150px 0 100px;
}

/* Ajust del degradat del Hero per encaixar amb el nou verd bambú */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 42%, rgba(59, 122, 87, 0.25), transparent 35%),
        linear-gradient(105deg, rgba(27, 38, 27, 1) 0%, rgba(36, 51, 36, 0.96) 50%, rgba(27, 38, 27, 0.8) 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    right: -15vw;
    top: -25%;
    width: 65vw;
    height: 140%;
    border: 1px solid rgba(255,255,255,.07);
    transform: rotate(13deg);
}

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

.hero .eyebrow {
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(3.4rem, 8vw, 7.6rem);
    line-height: .9;
    letter-spacing: -.065em;
    font-weight: 950;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 620px;
    margin-top: 32px;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: .86rem;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: var(--white);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-light {
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
}

/* Club */

.intro-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 90px;
    align-items: start;
}

.large-text {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.3;
    letter-spacing: -.02em;
}

.intro-copy {
    color: var(--grey);
    font-size: 1.04rem;
}

.intro-copy p + p {
    margin-top: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 80px;
    border: 1px solid var(--line);
}

.value-card {
    background: var(--off-white);
    padding: 30px 25px 35px;
    min-height: 210px;
}

.value-number {
    display: block;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: 45px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.value-card p {
    color: var(--grey);
    font-size: .92rem;
}

/* Activities */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.activity-card {
    padding: 48px;
    min-height: 440px;
    background: var(--dark-soft);
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
}

.activity-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    bottom: -100px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.activity-card-accent {
    background: var(--accent);
}

.activity-card-accent .card-label,
.activity-card-accent .text-link {
    color: var(--white);
}

.activity-icon {
    font-size: 2.5rem;
    margin-bottom: 45px;
}

.card-label,
.schedule-type {
    color: #999;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .17em;
}

.activity-card h3 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.04em;
    margin: 12px 0 20px;
}

.activity-card p:not(.card-label) {
    max-width: 490px;
    color: rgba(255,255,255,.68);
}

.activity-card-accent p:not(.card-label) {
    color: rgba(255,255,255,.86);
}

.text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 34px;
    color: var(--accent);
    font-weight: 800;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

/* How we work */

.split-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.split-content {
    max-width: 680px;
}

.split-content p + p {
    margin-top: 28px;
    color: var(--grey);
}

/* Competitions */

.competition-section {
    background: var(--accent);
    color: var(--white);
    padding: 120px 0;
}

.competition-section .eyebrow {
    color: rgba(255,255,255,.72);
}

.competition-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 100px;
    align-items: center;
}

.competition-content h2 {
    margin-bottom: 32px;
}

.competition-content p {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255,255,255,.84);
}

.competition-content .large-text {
    color: var(--white);
}

.competition-highlight {
    padding: 55px 45px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.08);
}

.quote-mark {
    display: block;
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: .5;
    margin-bottom: 35px;
}

.competition-highlight p {
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

/* Schedule */

.schedule-list {
    display: grid;
    gap: 16px;
}

.schedule-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
}

.schedule-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: var(--black);
    border-radius: 50%;
    font-size: 1.5rem;
}

.schedule-main h3 {
    margin: 6px 0 2px;
    font-size: 1.4rem;
}

.schedule-main p {
    color: var(--grey);
}

.schedule-time {
    text-align: right;
    white-space: nowrap;
}

.schedule-time span {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.schedule-time small {
    color: var(--grey);
    font-size: .85rem;
}

/* Contact */

.contact-section {
    background: var(--black);
    color: var(--white);
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 100px;
    align-items: center;
}

.contact-section h2 {
    max-width: 650px;
}

.contact-intro {
    max-width: 580px;
    margin-top: 28px;
    color: rgba(255,255,255,.6);
    font-size: 1.05rem;
}

.contact-details {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.13);
    transition: border-color .2s ease, background .2s ease;
}

.contact-item:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,.04);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--accent);
    border-radius: 50%;
    font-size: 1.25rem;
}

.contact-item small {
    display: block;
    color: #888;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.contact-item strong {
    display: block;
    margin-top: 2px;
    font-size: 1.05rem;
}

/* Footer */

.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--grey);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    font-size: .8rem;
}

.footer-inner a:hover {
    color: var(--white);
}

/* Responsive */

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .section {
        padding: 80px 0;
    }

	.main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        padding: 15px 20px 25px;
        background: rgba(255, 255, 255, 0.98); /* Fons blanc per al menú desplegable mòbil */
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--line);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 5px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav .nav-cta {
        margin-top: 12px;
        text-align: center;
        border: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 680px;
    }

    .intro-grid,
    .split-section,
    .competition-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .competition-highlight {
        max-width: 600px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .section {
        padding: 68px 0;
    }

    .brand {
        width: 82px;
    }

    .hero {
        min-height: 620px;
        padding: 120px 0 70px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

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

    .button {
        width: 100%;
    }

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

    .value-card {
        min-height: auto;
    }

    .activity-card {
        padding: 32px 26px;
        min-height: 390px;
    }

    .schedule-card {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 22px;
    }

    .schedule-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .schedule-time {
        grid-column: 2;
        text-align: left;
        margin-top: -8px;
    }

    .schedule-time span {
        font-size: 1.35rem;
    }

    .contact-grid {
        gap: 40px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

/* Modal desplegable per a la informació legal */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* S'activa quan l'enllaç porta el hash #privacitat-modal */
.legal-modal:target {
    display: flex;
}

.legal-modal-content {
    background: var(--white);
    color: var(--black);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.legal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--grey);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.legal-close:hover {
    color: var(--accent);
}

.legal-scroll-body {
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 10px;
}

.legal-scroll-body h4 {
    margin: 20px 0 8px 0;
    color: var(--accent);
}

.legal-scroll-body p, .legal-scroll-body ul {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-divider {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 25px 0;
}
