
/* FARVER OG GENERELT DESIGN */

:root {
    --beige: #F5EDE5;
    --groen: #4F6243;
    --moerk-groen: #354A32;
    --lys-beige: #EFE6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--beige);
    color: #111;
}

h2 {
    font-size: 42px;
}


/* HEADER */

.header {
    text-align: center;
    background-color: var(--beige);
    padding: 28px 20px;
}

.logo {
    display: block;
    width: 580px;
    max-width: 100%;
    height: auto;
    margin: auto;
}


/* VELKOMST */

.hero {
    min-height: 550px;

    background-image:
            linear-gradient(
                    to right,
                    rgba(0, 0, 0, 0.55),
                    rgba(0, 0, 0, 0.05)
            ),
            url("billeder/velkommenbaggrund.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 70px 8%;
}

.hero-tekst {
    color: white;
    max-width: 650px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 35px;
}


/* FIND OS HER-KNAP */

.find-knap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    background-color: var(--groen);
    color: white;

    border: none;
    border-radius: 40px;
    padding: 14px 28px;

    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.find-knap i {
    font-size: 24px;
    color: white;
}

.find-knap:hover {
    background-color: var(--moerk-groen);
}

.find-knap:focus-visible,
.send-knap:focus-visible,
a:focus-visible {
    outline: 3px solid #D7B978;
    outline-offset: 4px;
}


/* BLOMSTER OG BUKETTER */

.blomster {
    text-align: center;
    padding: 55px 8% 90px;
}

.blomster h2 {
    margin-bottom: 20px;
}

.beskrivelse {
    max-width: 850px;
    margin: 0 auto 75px;

    font-size: 25px;
    line-height: 1.45;
}

.blomster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    max-width: 1250px;
    margin: auto;
}

.blomster-kort {
    text-align: center;
}

.blomster-kort img {
    width: 100%;
    height: 290px;

    object-fit: cover;
    border-radius: 35px;
    display: block;
}

.blomster-kort span {
    display: inline-block;
    position: relative;

    margin-top: -20px;
    padding: 10px 40px;

    background-color: var(--lys-beige);
    color: #111;
    border-radius: 30px;

    font-size: 17px;
    font-weight: bold;
}


/* OM MEDINE'S BLOMSTER */

.om-os {
    background-color: var(--groen);
    color: white;
    padding: 110px 8%;
}

.om-indhold {
    display: flex;
    align-items: center;
    gap: 55px;

    max-width: 1250px;
    margin: auto;
}

.butik-billede {
    width: 42%;
    height: 310px;

    object-fit: cover;
    border-radius: 35px;
}

.om-tekst {
    flex: 1;
    min-width: 0;
}

.om-tekst h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 35px;
}

.om-tekst p {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 28px;
}

.om-tekst p:last-child {
    margin-bottom: 0;
}


/* KONTAKT */

.kontakt {
    background-color: var(--beige);
    text-align: center;
    padding: 80px 8% 110px;
}

.kontakt h2 {
    margin-bottom: 85px;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px;

    max-width: 1200px;
    margin: auto;
}

.kontakt-kort {
    background-color: var(--groen);
    color: white;

    min-height: 300px;
    padding: 35px 20px;
    border-radius: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* KONTAKTIKONER FRA FONT AWESOME */

.kontakt-ikon {
    display: block;

    width: auto;
    height: auto;

    font-size: 65px;
    line-height: 1;

    color: white;
    margin-bottom: 20px;
}

.kontakt-kort h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.kontakt-kort p,
.kontakt-kort a {
    font-size: 17px;
    line-height: 1.6;
}

.kontakt-kort a {
    color: white;
    text-decoration: none;
}

.kontakt-kort a:hover {
    text-decoration: underline;
}


/* KONTAKTFORMULAR */

.formular-område {
    max-width: 670px;
    margin: 110px auto 0;
}

.formular-område h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.formular-område > p {
    font-size: 18px;
    margin-bottom: 35px;
}

#kontakt-formular {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
}

#kontakt-formular label {
    font-size: 17px;
    font-weight: bold;
}

#kontakt-formular input,
#kontakt-formular textarea {
    width: 100%;
    padding: 15px;

    border: 1px solid #9A9A9A;
    border-radius: 12px;

    background-color: white;
    color: #111;
    font: inherit;

    margin-bottom: 15px;
}

#kontakt-formular textarea {
    resize: vertical;
}

.send-knap {
    align-self: flex-start;

    background-color: var(--groen);
    color: white;

    padding: 15px 35px;
    border: none;
    border-radius: 30px;

    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.send-knap:hover {
    background-color: var(--moerk-groen);
}

.send-knap:disabled {
    opacity: 0.6;
    cursor: wait;
}

#formular-status {
    min-height: 24px;
    font-size: 16px;
}

.skjult-felt {
    position: absolute;
    left: -9999px;
}


/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    background-color: var(--groen);
    color: white;

    padding: 25px 8%;
}

.footer-logo {
    width: 430px;
    max-width: 45%;
    height: auto;
}

.sociale-medier {
    display: flex;
    align-items: center;
    gap: 25px;
}

.sociale-medier p {
    font-size: 17px;
    font-weight: bold;
}

.sociale-ikoner {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* INSTAGRAM OG FACEBOOK */

.sociale-ikoner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    background-color: #111;
    color: white;

    border-radius: 50%;
    text-decoration: none;
}

.sociale-ikoner i {
    font-size: 30px;
}

.sociale-ikoner a:hover {
    background-color: #263723;
}


/* RESPONSIVT DESIGN TIL TABLET */

@media (max-width: 950px) {

    h2 {
        font-size: 35px;
    }

    .logo {
        width: 450px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 24px;
    }

    .beskrivelse {
        font-size: 20px;
    }

    .blomster-grid {
        gap: 15px;
    }

    .blomster-kort img {
        height: 220px;
    }

    .om-indhold {
        gap: 30px;
    }

    .om-tekst h2 {
        font-size: 35px;
    }

    .om-tekst p {
        font-size: 17px;
    }

    .kontakt-grid {
        gap: 20px;
    }

    .kontakt-kort {
        padding: 30px 12px;
    }

    .kontakt-ikon {
        font-size: 55px;
    }

    .kontakt-kort p,
    .kontakt-kort a {
        font-size: 14px;
    }

    .footer-logo {
        width: 300px;
    }

    .sociale-medier {
        gap: 15px;
    }
}


/* RESPONSIVT DESIGN TIL MOBIL */

@media (max-width: 650px) {

    h2 {
        font-size: 29px;
    }


    /* HEADER */

    .header {
        padding: 20px 15px;
    }

    .logo {
        width: 300px;
    }


    /* VELKOMST */

    .hero {
        min-height: 440px;
        padding: 50px 6%;

        background-position: center;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 20px;
    }

    .find-knap {
        font-size: 16px;
        padding: 12px 20px;
    }

    .find-knap i {
        font-size: 22px;
    }


    /* BLOMSTER */

    .blomster {
        padding: 55px 6% 65px;
    }

    .beskrivelse {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .blomster-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .blomster-kort img {
        height: 260px;
    }


    /* OM OS */

    .om-os {
        padding: 60px 6%;
    }

    .om-indhold {
        flex-direction: column;
        gap: 30px;
    }

    .butik-billede {
        width: 100%;
        height: 270px;
    }

    .om-tekst h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .om-tekst p {
        font-size: 17px;
    }


    /* KONTAKT */

    .kontakt {
        padding: 60px 6% 80px;
    }

    .kontakt h2 {
        margin-bottom: 45px;
    }

    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .kontakt-kort {
        min-height: 230px;
        padding: 30px 15px;
    }

    .kontakt-ikon {
        font-size: 60px;
    }

    .kontakt-kort p,
    .kontakt-kort a {
        font-size: 17px;
    }


    /* FORMULAR */

    .formular-område {
        margin-top: 75px;
    }

    .formular-område h3 {
        font-size: 27px;
    }

    .formular-område > p {
        font-size: 16px;
    }

    .send-knap {
        width: 100%;
        align-self: stretch;
    }


    /* FOOTER */

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 6%;
    }

    .footer-logo {
        width: 300px;
        max-width: 90%;
    }

    .sociale-medier {
        flex-direction: column;
        gap: 20px;
    }

    .sociale-ikoner a {
        width: 48px;
        height: 48px;
    }

    .sociale-ikoner i {
        font-size: 27px;
    }
}


/* MINDRE ANIMATION HVIS BRUGEREN ØNSKER DET */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
