body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    grid-template-areas:
        "nav"
        "main";


}

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

a:visited {
    color: inherit;
}

p {
    font-size: 20px;
    font-family: var(--alta);
}

/* nav */

nav {
    height: min-content;
    color: var(--background);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navContainer {
    display: flex;
    height: 80px;
    justify-content: space-around;
    align-items: center;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--primary);
}

.navContainer a {
    text-decoration: none;
}


.navList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
}

.navList li {
    padding: 1.5rem 0.5rem 1.5rem 0.5rem;
}

.navList a {
    border-radius: 20px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.navList a:hover {
    background-color: var(--text-light);
}

#menuIcon,
#menuCheckbox {
    display: none;
}

.logoLink {
    min-width: 350px;
}

.logoLink h1 {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: end;
}

#miniNavList {
    display: none;
    text-align: center;
    background-color: white;
    position: sticky;
    top: 80px;
    width: 100%;
    z-index: 998;
    font-size: 22px;
}

#miniNavList ul {
    margin: 0;
    padding: 0;
}

#miniNavList li {
    list-style: none;
    border-bottom: solid 1px black;
    display: flex;
}

#miniNavList li a {
    padding: 1rem 0 1rem 0;
    text-decoration: none;
    width: 100%;
}

.active-page {
    background-color: whitesmoke;
    border: 1px solid var(--primary);
}

/* end nav */


/* Hero section */

.hero {
    position: relative;
    top: 0px;
    width: 100%;
    height: calc(100vh - 80px);
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heroImg {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.heroImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(110%);
}

.heroOverlay {
    position: relative;
    inset: 0;
    width: max-content;
    height: max-content;
    z-index: 5;
    padding: 50px;
    color: var(--text-light);

}

.heroTitle {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-bottom: 0.5rem;
}

.heroTitleSub {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
}

.heroInfoBox {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(167, 157, 157, 0.397);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px 40px;
    max-width: 400px;
    margin: 0 auto;
}

.scrollDownIconContainer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);

}

.scrollDownIcon {
    width: 50px;
    height: 50px;
}

/* end Hero section */

/* main content area */
main {
    grid-area: main;
    text-align: justify;
    color: var(--text);
}

/* end main content area */

/* Intro Section */
.elegant-underline {
    width: 120px;
    height: 3px;
    margin: 0.5rem auto 3rem auto;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.introSection {
    padding: 4rem 2rem;
    max-width: auto;
    margin: 0 auto;
}

/* end Intro Section */

/* info section */

.infoSection {
    padding: 0rem;
    margin-bottom: 60px;
}

.infoCardContainer {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.infoCard {
    width: 170px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    background-color: var(--background);
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 1rem;
    text-align: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.infoCard h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 24px;
}

.infoCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.infoTextContainer {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}


.infoIconContainer {
    border-radius: 100%;
    background-color: white;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.infoCard svg {
    width: 100px;
    height: 100px;
    padding: 1.5rem;
}

.infoContainer {
    max-width: auto;
    width: auto;
    padding: 2rem;
    border-radius: 2rem;
}


[class^="infoPart"] h3 {
    margin: 10px 0px;
    color: var(--primary)
}

.infoPart1,
.infoPart2,
.infoPart3,
.infoPart4 {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 900px;
    margin-top: -50px;
}

.infoPart1 h2,
.infoPart2 h2,
.infoPart3 h2,
.infoPart4 h2 {
    margin-bottom: -10px;

}

.infoPart1 h3,
.infoPart2 h3,
.infoPart3 h3,
.infoPart4 h3 {
    margin-top: 15px;
    margin-bottom: -10px;
    margin-left: -5px;
}

.formIframe {
    display: block;
    border: 0;
    transform: scale(1.12);
    /* öka till t.ex. 1.12 eller 1.2 */
    transform-origin: 0 0;
    width: calc(100% / 1.12);
    /* kompensera så det inte blir horisontell scroll */
    height: calc(1981px / 1.12);
    /* dela originalhöjden med samma faktor */
    margin-bottom: 200px;
}

#sabygard {
    width: 100%;
}

/* end info section */

/* OSA section */
.osaSection {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

#osaBtn {
    border: none;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2rem;
    padding: 1.5rem 3rem;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

#osaBtn:hover {
    color: var(--text-primary);
    transform: translate(0, -3px);
}

/* end OSA section */

/* Footer */
footer {
    border-top: 1px solid var(--primary);
    padding: 1rem 0;
}

#navCountdownMobile {
    display: none;
}   

#miniNavList {
    position: fixed;
    top: 80px;
    /* height of your nav */
    right: 0;
    width: 70vw;
    max-width: 350px;
    height: calc(100vh - 80px);
    background-color: white;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
    z-index: 901;
    display: block;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

/* When menuCheckbox is checked, slide in the menu */
#menuCheckbox:checked~#miniNavList {
    transform: translateX(0);
}


#menuOverlay {
    position: fixed;
    margin-top: 80px;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 900;
    pointer-events: none;
}

/* visa overlay och gör den klickbar (stänger menyn via label) */
#menuCheckbox:checked~#menuOverlay {
    opacity: 1;
    pointer-events: auto;
}


.backgroundImg {
    position: relative;
    margin-bottom: -300px;
    top: -350px;
    left: 370px;
    rotate: 10deg;
    z-index: 1;
    opacity: 0.5;
    object-fit: cover;
    pointer-events: none;
}

.text-vasteras {
    font-size: large;
}

.heroTitleMobile {
    display: none;
}

/* Hide #miniNavList by default on desktop */
@media screen and (min-width: 801px) {
    #miniNavList {
        display: none !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 1136px) {
    .heroTitle {
        font-size: 100px;
    }
}
@media screen and (max-width: 800px) {
    body {
        overflow-x: hidden;
    }

    .scrollDownIconContainer {
        display: none;
    }

    .infoPart1 h2,
.infoPart2 h2,
.infoPart3 h2,
.infoPart4 h2 {
    font-size: 50px !important;
    margin: 50px 0 -10px 0;
}


.infoPart1 p,
.infoPart2 p,
.infoPart3 p,
.infoPart4 p {
    font-size: 18px !important;
    margin: 0 10px 20px 10px;
}

.infoContainer h3 {
    font-size: 26px !important;
    margin-left: 5px;
    margin-bottom: 15px;
}

    #menuIcon {
        display: block;
        background-image: url(../icons/menuicon.png);
        background-size: contain;
        background-position: center;
        width: 50px;
        height: 50px;
    }

    .infoTextContainer h2{
        font-size: 22px;

    }


    .navList {
        display: none;
    }

    .navContainer {
        justify-content: end;
    }

    .logoLink h1 {
        justify-content: start;
    }

    .hero {
        height: 60vh;
    }

    .heroOverlay {
        padding: 0px;
    }

    .heroTitle {
        display: none;
    }

    .heroTitleMobile {
        display: flex;
        font-size: 80px;
        text-align: center;
        line-height: 1;
    }

    .heroOverlay {
        padding: 20px;
    }

    .heroImg {
        width: 100%;
        height: 60vh;
    }

    .introSection {
        padding: 0rem;
        max-width: 100%;
        margin: 0 auto;
        margin-bottom: 100px;
    }

    .infoContainer {

        padding: 1rem;
    }

    .infoSection {
        width: 100%;
        padding: 0rem;
        margin-bottom: 60px;
    }

    .infoCardContainer {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 1px;
    }

    .infoCardContainer a {
        width: 32%;
        height: auto;
        display: flex;
        justify-content: center;
    }

    .infoCard {
        width: 80%;
        height: 160px;
        font-size: 11px !important;
        padding: .5rem;
        margin: 0px;
    }

    .infoIconContainer {
        width: 60px;
        height: 60px;
    }

    .infoCard svg {
        width: 30px;
        height: 30px;
        padding: 1rem;
    }


    .osaSection {
        padding: 2rem 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .osaSection h2 {
        font-size: 40px;
    }


    .mapSection iframe {
        width: 100%;
        height: 300px;
    }

    #brollopsdageTitle {
        font-size: 32px;
    }

    .title-startsida {
        font-size: 50px;
    }

    .text-startsida {
        font-size: 28px;
    }

    #navCountdownMobile {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-size: 1.3rem;
        background: #738474;
        color: white;
        border-radius: 15px;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    #navCountdown {
        display: none;
    }

    .formIframe {
        transform: scale(1);
        width: 100%;
        height: 2010px;
        margin-bottom: 100px;
    }

}

/* END MOBILE MEDIA QUERY*/



/* countdown style */
.navCountdown {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 2.5rem;
    background: #738474;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 15px;
    white-space: nowrap;
}




/* Carousel */
.carouselSection {
    padding: 3rem 1rem;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
}

.carousel__viewport {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.22, .9, .32, 1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel__slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel__slide img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* buttons */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.carousel__btn--prev {
    left: 12px;
}

.carousel__btn--next {
    right: 12px;
}

/* dots */
.carousel__dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: .8rem;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 30px;
    cursor: pointer;
    opacity: .8;
}

.carousel__dot.is-active {
    background: var(--primary, #c49);
}

/* responsive */
@media (max-width: 640px) {
    .carousel__slide img {
        height: 220px;
    }

    .carousel__btn {
        width: 38px;
        height: 38px;
    }
}