:root {
    --bg: #f5f2ea;
    --surface: #fffdf8;
    --ink: #111915;
    --muted: #66706a;
    --accent: #c8ff4d;
    --accent-dark: #1b3b2a;
    --line: rgba(17, 25, 21, .13);
    --radius: 24px;
    --shadow: 0 18px 55px rgba(17, 25, 21, .10);
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
section { scroll-margin-top: 90px; }

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 7.2rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.045em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #142017; box-shadow: 0 10px 28px rgba(102, 143, 30, .22); }
.btn-dark { background: var(--ink); color: white; }
.btn-outline { border-color: var(--line); background: rgba(255,255,255,.35); }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 16px 0;
    transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
    background: rgba(245, 242, 234, .86);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -.03em; }
.brand span { color: var(--accent-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 700; }
.menu-btn { display: none; border: 0; background: none; font-size: 1.7rem; cursor: pointer; }

.hero {
    min-height: 100svh;
    padding: 130px 0 56px;
    display: grid;
    align-items: end;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: end; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 span { display: block; color: var(--accent-dark); }
.hero-lead { max-width: 640px; margin-top: 26px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.stat { padding: 18px 0; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.45rem; font-family: "Space Grotesk"; }
.stat span { font-size: .84rem; color: var(--muted); }

.hero-visual {
    position: relative;
    min-height: 650px;
    border-radius: 34px;
    overflow: hidden;
    background:
            linear-gradient(180deg, rgba(12, 21, 16, .05), rgba(12, 21, 16, .52)),
            url('../imatges/mikel_training.jpeg') center center / cover no-repeat;
    box-shadow: var(--shadow);
}
.hero-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: 300px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
}
.hero-badge strong { display: block; font-size: 1.1rem; }
.hero-badge small { color: var(--muted); }

.ticker { background: var(--ink); color: white; overflow: hidden; padding: 15px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 24s linear infinite; }
.ticker-item { padding: 0 28px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.ticker-item::after { content: "✦"; margin-left: 56px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 54px; }
.section-head p { color: var(--muted); max-width: 580px; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card {
    min-height: 360px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .25s ease, box-shadow .25s ease;
}
.process-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.process-card .num { font-family: "Space Grotesk"; font-size: 3.5rem; color: var(--accent-dark); opacity: .26; }
.process-card p { color: var(--muted); margin-top: 12px; }
.process-card.accent { background: var(--accent); }
.process-card.accent p { color: rgba(17,25,21,.72); }

.about { background: var(--accent-dark); color: white; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-photo {
    min-height: 620px;
    border-radius: 30px;
    background: url('../imatges/mikel_profile.jpeg') center/cover;
}
.about-copy p { color: rgba(255,255,255,.72); margin-top: 24px; font-size: 1.05rem; }
.checks { display: grid; gap: 14px; margin: 30px 0 34px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check i { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-style: normal; font-weight: 900; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: var(--radius);
    padding: 32px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}
.service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(8,12,10,.88)); }
.service > * { position: relative; z-index: 1; }
.service:nth-child(1) { background-image: url('../imatges/mikel_black.jpeg'); }
.service:nth-child(2) { background-image: url('../imatges/mikel_nice.jpeg'); }
.service p { color: rgba(255,255,255,.74); margin-top: 12px; max-width: 500px; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-image { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d7ddd6, #9ca99e); display: grid; place-items: center; color: rgba(17,25,21,.55); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.result-copy { padding: 24px; }
.result-copy p { color: var(--muted); margin-top: 8px; }

.quote {
    padding: 44px;
    border-radius: 30px;
    background: var(--ink);
    color: white;
    text-align: center;
}
.quote blockquote { margin: 0 auto; max-width: 900px; font-family: "Space Grotesk"; font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.18; letter-spacing: -.03em; }
.quote cite { display: block; margin-top: 24px; color: var(--accent); font-style: normal; font-weight: 800; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; padding: 22px 0; border: 0; background: none; text-align: left; display: flex; justify-content: space-between; gap: 20px; font-weight: 800; cursor: pointer; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-a p { padding: 0 0 22px; }
.faq-item.open .faq-a { max-height: 220px; }

.contact { background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact-copy p { margin-top: 22px; max-width: 500px; color: rgba(17,25,21,.72); }
form { background: var(--surface); padding: 30px; border-radius: 26px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 800; }
input:not([type="checkbox"]), textarea, select {
    width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 15px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(27,59,42,.1); }
textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 13px; font-size: .76rem; color: var(--muted); }

footer { padding: 34px 0; background: #0d1511; color: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 20px; color: rgba(255,255,255,.65); font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .nav-links { position: fixed; inset: 72px 18px auto; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch; }
    .nav-links.open { display: flex; }
    .menu-btn { display: block; }
    .nav .btn { display: none; }
    .hero-grid, .section-head, .about-grid, .faq, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 520px; }
    .process-grid, .results-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .about-photo { min-height: 500px; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 24px), var(--max)); }
    .section { padding: 80px 0; }
    .hero { padding-top: 105px; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-visual { min-height: 440px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
    .footer-links { flex-wrap: wrap; }
}

/* ---------- FORMULARI ---------- */

.form-note {
    margin-top: 16px;
    min-height: 24px;
}

.form-note.is-success {
    color: #177245;
}

.form-note.is-error {
    color: #b42318;
}

#formulari-contacte button:disabled {
    opacity: .65;
    cursor: wait;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

/* =====================================================
   LEGALS
===================================================== */

.legal-page {
    min-height: 100vh;
    background: var(--bg);
    padding: 80px 20px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--accent-dark);
    transition: opacity .2s;
}

.legal-back:hover {
    opacity: .7;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.legal-card h1 {
    font-size: clamp(2.3rem,5vw,3.8rem);
    margin-bottom: 12px;
}

.legal-card .updated {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 45px;
}

.legal-card h2 {
    font-size: 1.45rem;
    margin-top: 42px;
    margin-bottom: 14px;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
    line-height: 1.8;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-card li {
    margin-bottom: 8px;
}

.legal-card strong {
    color: var(--ink);
}

.legal-card a {
    color: var(--accent-dark);
    font-weight: 700;
}

.legal-divider {
    height: 1px;
    background: var(--line);
    margin: 45px 0;
}

@media (max-width:700px){

    .legal-page{
        padding:40px 16px;
    }

    .legal-card{
        padding:30px 24px;
        border-radius:22px;
    }

}

/* ---------- CHECKBOX PRIVACITAT ---------- */

.privacy-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;

    font-size: .92rem;
    font-weight: 500;
    line-height: 1.5;
}

.privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.privacy-label a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: underline;
}

.privacy-label a:hover {
    text-decoration: none;
}
