/* =========================
   VARIABLES
   ========================= */

:root {
    --green-dark: #10261d;
    --green: #214c37;
    --green-light: #446d55;

    --sand: #e9dfc8;
    --cream: #f6f2e8;
    --orange: #e87937;
    --orange-dark: #cf6227;

    --text: #18211c;
    --white: #ffffff;
    --muted: #6d746f;

    --border: rgba(16, 38, 29, 0.10);

    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 20px;

    --max-width: 1180px;
}


/* =========================
   RESET / BASE
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--cream);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.narrow {
    max-width: 760px;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--green-dark);
    color: var(--white);
}


/* =========================
   TYPOGRAPHY
   ========================= */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.05;
}

h2 {
    margin-bottom: 24px;

    font-size: clamp(2rem, 8vw, 4rem);
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-label {
    display: block;

    margin-bottom: 10px;

    color: var(--orange);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading.center {
    text-align: center;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    position: absolute;
    z-index: 100;

    top: 0;
    left: 0;

    width: 100%;

    color: var(--white);
}

.header-inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 90px;
}


/* =========================
   BRAND
   ========================= */

.brand {
    display: flex;
    flex-direction: column;

    color: inherit;

    line-height: 1;
    text-decoration: none;
}

.brand-nalta {
    font-size: 1.5rem;
    font-weight: 900;

    letter-spacing: 0.06em;
}

.brand-backyard {
    margin-top: 5px;

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* =========================
   MOBILE NAVIGATION
   ========================= */

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 27px;
    height: 2px;

    background: var(--white);
}

.main-nav {
    position: absolute;

    top: 75px;
    left: 0;

    display: none;
    flex-direction: column;

    width: 100%;
    padding: 20px;

    background: var(--green-dark);

    border-radius: var(--radius-small);
}

.main-nav.open {
    display: flex;
}

.main-nav a {
    padding: 12px 0;

    font-weight: 700;
    text-decoration: none;
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-height: 70svh;
    padding: 120px 0 60px;

    background:
        var(--green-dark)
        url("../images/hero.jpg")
        center / cover no-repeat;

    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 28, 20, 0.25),
            rgba(10, 28, 20, 0.90)
        );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 800px;

    margin-bottom: 24px;

    font-size: clamp(3.5rem, 16vw, 8rem);
    font-weight: 900;

    letter-spacing: -0.06em;
}

.hero-lead {
    margin-bottom: 35px;

    font-size: 1.35rem;
}


.hero-content .btn-primary {
    display: block;
    width: fit-content; /* Gör att knappen behåller sin storlek och inte sträcker ut sig över hela skärmen */
    margin-top: 20px;   /* Valfritt: ger lite luft mellan texten och knappen */
}


/* =========================
   REGISTRATION
   ========================= */


.registration-flash {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 22px;
    padding: 10px 18px 10px 10px;

    border-radius: 100px;

    background: var(--green-dark);
    color: var(--white);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.registration-flash-label {
    padding: 7px 12px;

    border-radius: 100px;

    background: var(--orange);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.registration-flash strong {
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (min-width: 768px) {

    .registration-flash {
        gap: 18px;
        padding: 12px 24px 12px 12px;
    }

    .registration-flash-label {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .registration-flash strong {
        font-size: 1.1rem;
    }
}






/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 14px 26px;

    border: 2px solid transparent;
    border-radius: var(--radius-small);

    font-size: 1rem;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--orange);
    border-color: var(--orange);

    color: var(--white);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);

    color: var(--white);

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.22);
}

.btn-primary:active {
    transform: translateY(0);

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(232, 121, 55, 0.40);
    outline-offset: 3px;
}


/* =========================
   BACKYARD INFO
   ========================= */

.info-grid {
    display: grid;
    gap: 20px;
}

.info-card {
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.025);
}

.info-number {
    margin-bottom: 30px;

    color: var(--orange);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -0.05em;
}

.info-card h3 {
    font-size: 1.8rem;
}


/* =========================
   EVENT DETAILS
   ========================= */

.details-grid {
    display: grid;
    gap: 50px;
}

.event-facts {
    border-top: 1px solid #ccd0cc;
}

.fact {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #ccd0cc;
}

.fact-label {
    color: var(--muted);

    font-size: 0.85rem;

    text-transform: uppercase;
}


/* =========================
   SIGNUP
   ========================= */

.signup-section {
    background: var(--orange);
    color: var(--white);
}

.signup-content {
    max-width: 850px;
}

.signup-content h2 {
    font-size: clamp(2.7rem, 10vw, 6rem);
}

.signup-section .section-label {
    color: var(--green-dark);
}

.signup-section .btn-primary {
    background: var(--green-dark);
    border-color: var(--green-dark);

    color: var(--white);
}

.signup-section .btn-primary:hover {
    background: var(--green);
    border-color: var(--green);
}


/* =========================
   GALLERY
   ========================= */

.gallery-section {
    position: relative;
    overflow: hidden;

    background: var(--green-dark);
    color: var(--white);
}

.gallery-section .section-label {
    color: var(--orange);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;

    gap: 18px;
}

.gallery-item {
    position: relative;

    margin: 0;

    overflow: hidden;

    min-height: 280px;

    border-radius: 28px;

    background: var(--green);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.18);
}

.gallery-item a {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: inherit;
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.4s ease;
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(8, 24, 17, 0.38) 100%
        );

    transition: opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) brightness(1.04);
}

.gallery-item:hover::after {
    opacity: 0.5;
}





/* =========================
   RESULTS PROMO
   ========================= */

.results-promo {
    background: var(--sand);
}

.results-promo-content {
    display: grid;
    gap: 30px;
}


/* =========================
   RESULTS PAGE
   ========================= */

.page-hero {
    padding: 130px 0 60px;
    background: var(--green-dark);
    color: var(--white);
}

.page-hero h1 {
    margin-bottom: 20px;

    font-size: clamp(2.5rem, 7vw, 5rem);
}

.result-list {
    display: grid;

    gap: 20px;
}

.result-card {
    padding: 25px;

    background: var(--white);

    border-radius: var(--radius-medium);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);
}

.result-year {
    margin-bottom: 30px;

    color: var(--orange);

    font-size: 2rem;
    font-weight: 900;
}

.result-label {
    color: var(--muted);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-runner h2 {
    margin-top: 5px;

    font-size: 2rem;
}

.result-stats {
    display: flex;

    gap: 40px;

    margin-top: 30px;
}

.result-stats div {
    display: flex;
    flex-direction: column;
}

.result-stats strong {
    font-size: 2rem;
}


/* =========================
   SPONSORS
   ========================= */

.sponsors-section {
    background: #f1ede3;
}

.sponsors-section .section-heading {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.sponsor {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 140px;
    padding: 10px;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    text-decoration: none;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.sponsor img {
    display: block;

    width: 100%;
    height: 120px;

    object-fit: contain;
    object-position: center;
}

.sponsor:hover {
    transform: translateY(-4px);

    border-color: rgba(232, 121, 55, 0.35);

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    padding: 60px 0;

    background: #091711;
    color: var(--white);
}

.footer-content {
    display: grid;

    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 2rem;
}

.footer-brand span {
    font-size: 0.75rem;

    text-transform: uppercase;
}

.footer-text {
    color: #a9b3ad;

    font-size: 0.85rem;
}


/* =========================
   TABLET
   700px AND UP
   ========================= */

@media (min-width: 700px) {

    .section {
        padding: 100px 0;
    }


    /* HEADER / NAV */

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;

        display: flex;
        flex-direction: row;

        gap: 35px;

        width: auto;
        padding: 0;

        background: transparent;

        border-radius: 0;
    }

    .main-nav a {
        padding: 8px 0;
    }

    .main-nav a.active {
        border-bottom: 2px solid var(--orange);
    }


    /* HERO */

    .hero {
        min-height: 72vh;

        padding-top: 140px;
        padding-bottom: 65px;
    }

    .hero-lead {
        font-size: 1.5rem;
    }


    /* BACKYARD INFO */

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    /* DETAILS */

    .details-grid {
        grid-template-columns: 1.2fr 1fr;

        gap: 70px;
    }


/* GALLERY */

.gallery {
    grid-template-co*umns: repeat(2, minmax(0, 1fr));
 *  grid-auto-rows: 230px;

    gap:*20px;
}

.gallery-item {
    min-h*ight: 0;
}

.gallery-item:nth-chil*(1) {
    grid-row: span 2;

    b*rder-radius:
        60px 20px 20p* 20px;
}

.gallery-item:nth-child(*) {
    border-radius:
        20p* 50px 20px 20px;
}

.gallery-item:*th-child(3) {
    border-radius:
 *      20px 20px 50px 20px;
}

.gal*ery-item:nth-child(4) {
    grid-c*lumn: span 2;

    border-radius:
*       20px 55px 20px 55px;
}

.ga*lery-item:nth-child(5) {
    grid-*olumn: span 2;

    border-radius:*        55px 20px 55px 20px;
}


    /* RESULTS */

    .results-promo-content {
        grid-template-columns: 1fr auto;

        align-items: end;
    }

    .result-card {
        display: grid;

        grid-template-columns: 120px 1fr auto;
        align-items: center;

        gap: 30px;

        padding: 35px;
    }

    .result-year {
        margin: 0;
    }

    .result-runner h2 {
        margin-bottom: 0;
    }

    .result-stats {
        margin: 0;
    }


    /* SPONSORS */

    .sponsor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 20px;
    }

.sponsor {
    min-height: 150px;
    padding: 12px;
}

.sponsor img {
    height: 125px;
}
    /* FOOTER */

    .footer-content {
        grid-template-columns: 1fr 1fr;

        align-items: end;
    }

    .footer-text {
        text-align: right;
    }
}


/* =========================
   DESKTOP
   1000px AND UP
   ========================= */

@media (min-width: 1000px) {

    .section {
        padding: 120px 0;
    }


    /* HERO */

    .hero {
        min-height: 75vh;

        padding-top: 150px;
        padding-bottom: 70px;
    }

    .hero-lead {
        font-size: 1.6rem;
    }


    /* DETAILS */

    .details-grid {
        gap: 100px;
    }


/* GALLERY */

.gallery {
    *rid-template-columns:
        1.35*r
        0.8fr
        1fr;

    *rid-template-rows:
        240px
 *      240px
        210px;

    ga*: 22px;
}

.gallery-item:nth-child*1) {
    grid-column: 1;
    grid-*ow: 1 / span 2;

    border-radius*
        70px 20px 20px 20px;
}

.*allery-item:nth-child(2) {
    gri*-column: 2;
    grid-row: 1;

    *order-radius:
        20px 55px 20*x 20px;
}

.gallery-item:nth-child*3) {
    grid-column: 3;
    grid-*ow: 1 / span 2;

    border-radius*
        20px 70px 20px 20px;
}

.*allery-item:nth-child(4) {
    gri*-column: 2;
    grid-row: 2;

    *order-radius:
        20px 20px 55*x 20px;
}

.gallery-item:nth-child*5) {
    grid-column: 1 / span 3;
*   grid-row: 3;

    border-radius*
        50px 20px 50px 20px;
}

    /* SPONSORS */

.sponsor {
    min-height: 160px;
    padding: 14px;
}

.sponsor img {
    height: 130px;
}


}


.event-information-heading {
    display: grid;
    gap: 24px;
}

.event-information-heading .lead {
    max-width: 620px;
}

.event-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    margin-bottom: 50px;
}

.event-highlight-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;

    min-height: 150px;
    padding: 22px;

    background: var(--white);
    border: 1px solid #dedfd9;
}

.event-highlight-label {
    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-highlight-card strong {
    color: var(--green-dark);
    font-size: 1.25rem;
    line-height: 1.2;
}

.event-introduction {
    display: grid;
    gap: 30px;
}

.event-introduction-content h3,
.location-content h3,
.visual-information-content h3 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 6vw, 3rem);
}

.information-warning {
    margin-top: 30px;
    padding: 18px 20px;

    background: var(--sand);
    border-left: 5px solid var(--orange);

    font-weight: 800;
}

.event-quick-info {
    padding: 25px;

    background: var(--green-dark);
    color: var(--white);
}

.event-quick-info h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.quick-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-info-row:last-child {
    border-bottom: 0;
}

.quick-info-row span {
    color: rgba(255, 255, 255, 0.72);
}

.location-section {
    background: var(--sand);
}

.location-grid {
    display: grid;
    gap: 35px;
}

.map-frame {
    min-height: 420px;
    overflow: hidden;

    background: #d5d5cf;
}

.map-frame iframe {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 420px;

    border: 0;
}

.location-content .btn {
    margin-top: 15px;

    background: var(--green-dark);
    color: var(--white);
}

.location-content .btn:hover {
    background: var(--green);
}

.route-section {
    background: var(--green-dark);
    color: var(--white);
}

.visual-information-grid {
    display: grid;
    gap: 30px;
}

.visual-information-card {
    overflow: hidden;

    background: var(--white);
    color: var(--text);
}

.visual-information-image {
    overflow: hidden;
    background: #e4e4df;
}

.visual-information-image a {
    display: block;
}

.visual-information-image img {
    width: 100%;
    height: 300px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.visual-information-image:hover img {
    transform: scale(1.025);
}

.visual-information-content {
    padding: 28px;
}

.visual-image-link,
.text-link {
    display: inline-block;

    margin-top: 10px;

    color: var(--green-dark);

    font-weight: 800;
    text-underline-offset: 4px;
}

.practical-section {
    background: var(--cream);
}

.information-accordion {
    border-top: 1px solid #c9ccc7;
}

.information-details {
    border-bottom: 1px solid #c9ccc7;
}

.information-details summary {
    position: relative;

    padding: 24px 45px 24px 0;

    color: var(--green-dark);

    font-size: 1.1rem;
    font-weight: 800;

    cursor: pointer;
    list-style: none;
}

.information-details summary::-webkit-details-marker {
    display: none;
}

.information-details summary::after {
    position: absolute;
    top: 50%;
    right: 5px;

    content: "+";

    color: var(--orange);

    font-size: 2rem;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-50%);
}

.information-details[open] summary::after {
    content: "−";
}

.information-details-content {
    max-width: 850px;
    padding: 0 0 30px;
}

.information-details-content ul {
    padding-left: 22px;
}

.information-details-content li {
    margin-bottom: 10px;
}

.information-details-content a {
    color: var(--green-dark);
    font-weight: 700;
}

@media (min-width: 768px) {

    .event-information-heading {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: end;
    }

    .event-highlight-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .event-highlight-card {
        min-height: 180px;
        padding: 28px;
    }

    .event-introduction {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 70px;
        align-items: start;
    }

    .location-grid {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 60px;
        align-items: center;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 560px;
    }

    .visual-information-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visual-information-image img {
        height: 390px;
    }

    .visual-information-content {
        padding: 38px;
    }

    .information-details summary {
        padding: 28px 55px 28px 0;
        font-size: 1.3rem;
    }
}




