/* ==============================================
   MAI MÉS — A Manresa Mai Més
   Colors & typography from official brand kit
   Primary: #E8503A (coral red), Light: #ffffff
   Font: Avenir Next Condensed (fallback: system)
   ============================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Avenir Next', 'Avenir Next Condensed', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background .3s;
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-links a {
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(26,26,26,.6);
    transition: color .2s;
}
.nav-links a:hover { color: #E8503A; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #1a1a1a;
}

/* --- Mobile overlay --- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(255,255,255,.98);
    align-items: center;
    justify-content: center;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: #1a1a1a;
    font-size: 36px;
    cursor: pointer;
}
.mobile-nav a {
    display: block;
    text-align: center;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    transition: color .2s;
}
.mobile-nav a:hover { color: #E8503A; }

/* ================================
   HERO
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #E8503A;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 40%, rgba(0,0,0,.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 120px 24px 80px;
}

.hero-logo {
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-shoe {
    max-width: 160px;
    margin: 0 auto 24px;
    opacity: .9;
}

.hero-tagline {
    font-size: 24px;
    letter-spacing: 8px;
    color: rgba(255,255,255,.6);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-info {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}

.hero-time {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.hero-event {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.hero-cta:hover {
    background: #fff;
    color: #E8503A;
}

/* ================================
   SECTIONS COMMON
   ================================ */
.section {
    padding: 100px 0;
}

.section-dark { background: #ffffff; }
.section-muted { background: #0a0a0a; color: #f0ece6; }
.section-accent {
    background: #f5f3f0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: rgba(26,26,26,.5);
}

/* ================================
   QUI SOM
   ================================ */
.qui-som-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.qui-som-text p {
    margin-bottom: 1em;
    color: rgba(26,26,26,.7);
}
.qui-som-text strong { color: #1a1a1a; }

.qui-som-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: #fff;
    border: none;
    border-left: 4px solid #E8503A;
    padding: 28px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #E8503A;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(26,26,26,.5);
}

.accent-card {
    border-left-color: #E8503A;
    background: #E8503A;
    color: #fff;
}

.accent-card .stat-org {
    color: #fff;
}

.accent-card .stat-sublabel {
    color: rgba(255,255,255,.7);
}

.stat-org {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-sublabel {
    font-size: 12px;
    color: rgba(26,26,26,.4);
}

.section-muted .section-title {
    color: #f0ece6;
}

.section-muted .section-subtitle {
    color: rgba(240,236,230,.5);
}

.section-muted .section-subtitle a {
    color: #E8503A;
}

/* ================================
   GALERIA
   ================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.gallery-grid.expanded {
    /* show all */
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s, opacity .3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: .85;
}

/* Initially show only 8 */
.gallery-item:nth-child(n+9) {
    display: none;
}
.gallery-grid.expanded .gallery-item:nth-child(n+9) {
    display: block;
}

.gallery-toggle {
    display: block;
    margin: 32px auto 0;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid rgba(240,236,230,.3);
    color: #f0ece6;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.gallery-toggle:hover {
    border-color: #E8503A;
    color: #E8503A;
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,.95);
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    opacity: .7;
    transition: opacity .2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ================================
   ADHESIÓ
   ================================ */
.adhesio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.adhesio-text p {
    margin-bottom: 1em;
    color: rgba(26,26,26,.7);
}
.adhesio-text strong { color: #1a1a1a; }

.adhesio-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1em;
}
.adhesio-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: rgba(26,26,26,.7);
}
.adhesio-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #E8503A;
}

.adhesio-form-wrap {
    background: #fff;
    border: none;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.adhesio-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    letter-spacing: .5px;
    color: rgba(26,26,26,.6);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f5f3f0;
    border: 1px solid rgba(0,0,0,.1);
    color: #1a1a1a;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #E8503A;
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-check input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: #E8503A;
}
.form-check label {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(26,26,26,.6);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #E8503A;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
}
.btn-submit:hover {
    background: #d4432f;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 24px;
    animation: fadeUp .5s ease both;
}

.form-success.visible {
    display: block;
}

.success-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}

.success-svg {
    width: 72px;
    height: 72px;
}

.success-circle {
    fill: none;
    stroke: #E8503A;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleIn .6s .2s ease forwards;
}

.success-tick {
    fill: none;
    stroke: #E8503A;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tickIn .4s .7s ease forwards;
}

.success-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.success-text {
    font-size: 1.05rem;
    color: rgba(26,26,26,.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.success-share {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(26,26,26,.4);
}

.success-share a {
    color: #E8503A;
    font-weight: 700;
}

@keyframes circleIn {
    to { stroke-dashoffset: 0; }
}

@keyframes tickIn {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   COL·LABORADORS
   ================================ */
.collab-content {
    max-width: 900px;
    margin: 0 auto;
}

.collab-text p {
    margin-bottom: 1em;
    color: rgba(26,26,26,.7);
}
.collab-text strong { color: #1a1a1a; }

.collab-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.collab-option {
    background: #fff;
    border: none;
    border-top: 3px solid #E8503A;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}
.collab-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.collab-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #E8503A;
}

.collab-option h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collab-option p {
    font-size: 14px;
    color: rgba(26,26,26,.5);
    margin: 0;
}

.collab-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn-collab {
    display: inline-block;
    padding: 14px 28px;
    background: #E8503A;
    border: 2px solid #E8503A;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}
.btn-collab:hover {
    background: #c7362a;
    border-color: #c7362a;
    color: #fff;
}

.btn-collab-alt {
    background: transparent;
    border-color: rgba(0,0,0,.2);
    color: #1a1a1a;
}
.btn-collab-alt:hover {
    border-color: #E8503A;
    background: #E8503A;
    color: #fff;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: #050505;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-brand {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin: 0 auto;
}

.footer-org {
    font-size: 13px;
    color: rgba(240,236,230,.5);
}
.footer-org a { color: #E8503A; }
.footer-org a:hover { text-decoration: underline; }

.footer-org img {
    height: 40px;
    width: auto;
    margin: 8px auto 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}
.footer-links a {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(240,236,230,.4);
    transition: color .2s;
}
.footer-links a:hover { color: #E8503A; }

.footer-copy {
    font-size: 12px;
    color: rgba(240,236,230,.3);
    margin-top: 12px;
}
.footer-copy a { color: rgba(232,80,58,.6); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    .qui-som-grid { grid-template-columns: 1fr; gap: 40px; }
    .adhesio-content { grid-template-columns: 1fr; gap: 40px; }
    .collab-options { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-logo { max-width: 350px; }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2.5rem; }
    .hero-logo { max-width: 280px; }
    .hero-info { gap: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .adhesio-form-wrap { padding: 24px; }
    .collab-cta-group { flex-direction: column; text-align: center; }
    .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
