/* ==========================================================
   CONTENT SECTIONS
   Community Astra V1.0
========================================================== */


/* ==========================================================
   ABOUT / GRUNDEJERFORENING
========================================================== */

.c-about {
    background: var(--color-surface);
}


/*
 * Desktop
 *
 * Image collage on the left.
 * Content and navigation on the right.
 */

.c-about__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
    gap: 0;
}


/* ==========================================================
   ABOUT COLLAGE
========================================================== */

.c-about__collage {
    display: grid;

    grid-template-columns: 1fr 1.18fr;
    grid-template-rows: 1fr 1fr;

    gap: 6px;

    min-height: 500px;

    overflow: hidden;

    background: #fff;
}

.c-about__collage-main {
    grid-row: 1 / 3;

    overflow: hidden;
}

.c-about__collage-top,
.c-about__collage-bottom {
    overflow: hidden;
}

.c-about__collage img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.c-about__collage-main img,
.c-about__collage-top img,
.c-about__collage-bottom img {
    object-position: center center;
}

.c-about__collage-main:hover img,
.c-about__collage-top:hover img,
.c-about__collage-bottom:hover img {
    transform: scale(1.025);
}


/* ==========================================================
   ABOUT CONTENT
========================================================== */

.c-about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 56px clamp(32px, 5vw, 72px);

    background: #fff;
}

.c-about__eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #0b6fa4;

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.c-about__content h2 {
    margin: 0 0 20px;

    color: var(--color-heading);

    font-family: var(--font-display);

    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
}


/* ==========================================================
   ABOUT TEXT
========================================================== */

.c-about__text {
    max-width: 560px;

    color: var(--color-text);

    font-size: 16px;
    line-height: 1.7;
}

.c-about__text p {
    margin: 0 0 16px;
}

.c-about__text p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   ABOUT LINKS
========================================================== */

.c-about__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;

    margin-top: 24px;
}

.c-about__links .button {
    width: 340px;
    min-height: 44px;

    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: normal;
}


/*
 * The middle link is the main information entry.
 */

.c-about__links .button:nth-child(1) {
    font-weight: 700;
}


/* ==========================================================
   NATURE
========================================================== */

.c-nature {
    background: #fff;
}

.c-nature__grid {
    display: grid;

    grid-template-columns: .92fr 1.08fr;

    align-items: stretch;
}

.c-nature__image {
    position: relative;

    min-height: 360px;

    background:
        linear-gradient(
            180deg,
            #b9d4d9 0 38%,
            #d6c9a6 39% 55%,
            #7f9a60 56% 100%
        );
}

.c-nature__image::before {
    content: "Ebbeløkke Strand";

    position: absolute;

    inset: auto 24px 24px auto;

    padding: 10px 14px;

    background: rgba(255,255,255,.90);

    color: var(--color-heading);

    font-weight: 700;
}

.c-nature__content {
    padding: 56px clamp(30px, 5vw, 72px);

    background: #fff;
}

.c-nature__content h2 {
    margin: 0 0 18px;

    color: var(--color-heading);

    font-family: var(--font-display);

    font-size: 2.3rem;
}

.c-nature__content p {
    color: var(--color-text);
}

.c-nature__content .button {
    margin-top: 12px;
}


/* ==========================================================
   FOOTER
========================================================== */

.c-footer {
    background: var(--color-dark);

    color: rgba(255,255,255,.86);
}

.c-footer__grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    gap: 42px;

    padding-block: 54px 36px;
}

.c-footer h3,
.c-footer h4 {
    margin: 0 0 14px;

    color: #fff;
}

.c-footer p {
    margin: 0 0 8px;
}

.c-footer a {
    color: rgba(255,255,255,.86);

    text-decoration: none;
}

.c-footer a:hover {
    color: #fff;

    text-decoration: underline;
}

.c-footer__menu {
    margin: 0;
    padding: 0;

    list-style: none;
}

.c-footer__menu li {
    margin-bottom: 8px;
}

.c-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.14);

    padding-block: 18px;

    font-size: .82rem;

    color: rgba(255,255,255,.65);
}

.c-footer__bottom-inner {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    /*
     * Keep the collage and content compact on tablet.
     */

    .c-about__grid {
        grid-template-columns: 1fr 1fr;
    }

    .c-about__collage {
        min-height: 460px;
    }

    .c-about__content {
        padding: 44px 32px;
    }

    .c-about__content h2 {
        font-size: 2.15rem;
    }

    .c-about__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .c-about__links {
        gap: 8px;

        margin-top: 20px;
    }

    .c-about__links .button {
        width: 100%;

        font-size: 14px;
        padding: 11px 16px;
    }


    /*
     * Footer
     */

    .c-footer__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    /*
     * Image collage first.
     * Content follows underneath.
     */

    .c-about__grid {
        grid-template-columns: 1fr;
    }

    .c-about__collage {
        min-height: 360px;

        grid-template-columns: 1fr 1fr;

        gap: 4px;
    }

    .c-about__content {
        padding: 40px 24px;
    }

    .c-about__content h2 {
        font-size: 2rem;
    }

    .c-about__text {
        font-size: 16px;
        line-height: 1.7;
    }

    .c-about__links {
        align-items: stretch;

        gap: 10px;

        margin-top: 24px;
    }

    .c-about__links .button {
        width: 100%;

        justify-content: center;

        text-align: center;
    }


    /*
     * Footer
     */

    .c-footer__bottom-inner {
        flex-direction: column;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .c-about__collage {
        min-height: 320px;
    }

    .c-about__content {
        padding: 36px 20px;
    }

    .c-about__content h2 {
        font-size: 1.85rem;
    }

    .c-about__links .button {
        font-size: 14px;
    }

    .c-footer__grid {
        grid-template-columns: 1fr;
    }

}