@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Rouge+Script&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 20px);
}

html, body {
    width: 100%;
    overflow-x: clip;
}

#program h2,
#program h3{
    color: var(--color-navy);
}

#program h4{
    color: var(--color-secondary);
}

:root {
    --navbar-height: 20px;

    /* Wedding colour palette */
    --color-blue: #6B866F;
    --color-navy: #000;
    --color-white: #fff4ef;
    --color-dark:#4A634E;

    /* Semantic colours */
    --color-background: var(--color-white);
    --color-text: var(--color-navy);
    --color-primary: var(--color-dark);
    --color-secondary: var(--color-blue);
}


body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: "Abhaya Libre", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
}

p {
    font-size: 1.3rem;
    line-height: 1.8;
}


.font-wedding {
    font-family: "Rouge Script", cursive;
    font-weight: 400;
    font-style: normal;
}


.highlight {
    background-color: var(--color-accent);
}


.hero {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    margin-top: 0;
    padding-top: var(--navbar-height);
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;

    top: 0;
    bottom: 0;
    left: -15px;
    right: -15px;

    background-image: url("/images/homepage.jpg");
    background-size: cover;
    background-position: calc(50% + 15px) 5%;

    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 12%;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-background) 100%
    );

    z-index: 1;
    pointer-events: none;
}

/* Flyt indholdet højere op på hero-billedet */
.hero > div {
    position: relative;
    z-index: 2;
    transform: translateY(-80px);
}
       
.scroll-down {
    position: absolute;
    bottom: 30px;

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

/* --------------- NAVBAR --------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    font-size: 1.5rem;
    transition: background-color 0.4s ease;
    background-color: rgba(255, 255, 255, 0.40);
}

.navbar.scrolled {
    background-color: var(--color-background);
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}


.navbar::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;

    background: linear-gradient(
        to bottom,
        var(--color-background),
        transparent
    );

    opacity: 0.4;
    pointer-events: none;
}

.navbar.scrolled::after {
    opacity: 1;
}

/* Navigation links */
.navbar .navbar-nav .nav-link {
    color: var(--color-primary) !important;
    transition: color 0.2s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: color-mix(in srgb, var(--color-primary) 70%, white) !important;
}

.navbar .navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Hamburger menu */
.navbar-toggler {
    border: none;
    box-shadow: none !important;
    background: transparent;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background: var(--color-blue);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: background-color 0.2s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-color: color-mix(in srgb, var(--color-primary) 70%, white);
}


@media (max-width: 991.98px) {
    /* Navbar uden baggrund */
    .navbar {
        background-color: transparent !important;
        transition: none !important;
    }

    /* Fjern animationer */
    .navbar,
    .navbar .navbar-collapse,
    .navbar .navbar-collapse.collapsing {
        transition: none !important;
    }

    .navbar .navbar-collapse.collapsing {
        height: auto !important;
    }

    /* Baggrund når hamburgermenuen er åben */
    .navbar:has(.navbar-collapse.show, .navbar-collapse.collapsing) {
        background-color: rgba(255, 255, 255, 0.60) !important;
    }

    .navbar::after {
        opacity: 0;
    }

    /* Dropdown-menu */
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 24px;
        padding-left: max(24px, calc((100% - 720px) / 2 + 12px));
        background-color: rgba(255, 255, 255, 0.60);
    }

    .navbar.scrolled .navbar-collapse {
        background-color: var(--color-background);
    }

    /* Mindre logo */
    .navbar-brand img {
        width: 30px !important;
        height: auto;
    }
}

/* --------------- PROGRAM --------------- */
.wedding-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    width: 50%;
    padding: 30px 40px;
}

.timeline-item.left {
    margin-right: auto;
    text-align: center;
}

.timeline-item.right {
    margin-left: auto;
    text-align: center;
}

.timeline-item h3 {
    font-size: 2rem;
    font-weight: 400;
}

.timeline-item h4 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-peach);
}

.timeline-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.timeline-item .timeline-image {
    margin-left: auto;
    margin-right: auto;
}

.hero > .wedding-header {
    position: absolute;
    top: 3vw;
    left: 0;
    width: 100%;
    transform: none;
    margin: 0;
    z-index: 2;
}

.wedding-names {
    font-size: clamp(3.5rem, 9vw, 8rem);
    white-space: nowrap;
    line-height: 1.2;
    color: var(--color-primary);
    -webkit-text-stroke: 0.2px var(--color-primary);
    text-shadow: 0 0 45px color-mix(in srgb, var(--color-background) 40%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.wedding-date {
    font-size: 1.6rem;
    color: var(--color-primary);
    -webkit-text-stroke: 0.2px var(--color-primary);
    margin: 0;
    text-shadow: 0 0 45px color-mix(in srgb, var(--color-background) 40%, transparent);
    margin-top: -1.5vw;
    margin-left: -20px;
}

.wedding-heart {
    width: clamp(50px, 7vw, 100px);
    height: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .hero > .wedding-header {
    top: 10vw;
}
}



.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: auto;
    margin: 0 auto
}

.ring-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 110%;
    margin: 1vw 0 1vw -5%;
}

.ring-divider::before,
.ring-divider::after {
    content: "";
    flex: 1;
    height: 0.05vw;
    background-color: var(--color-secondary);
}

.divider-image {
    width: 8vw;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ------------- COUNTDOWN ------------------- */
#countdown {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
}

#countdown > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: clamp(50px, 15vw, 75px);
    padding: 0px 0px;
    background: color-mix(in srgb, var(--color-background) 60%, transparent);
    border-radius: 10px;
}

#countdown span {
    font-size: 2.3rem;
    font-weight: 700;
    color: black;
}

#countdown small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
}

/* ------------- Section ------------------- */

section.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Alle overskrifter til sektioner */
.section-title {
    display: inline-block;
    font-size: 3rem;
    border-bottom: 2px solid #6B866F;
    padding-bottom: 0;
}

section[id] {
    scroll-margin-top: calc(var(--navbar-height) + 20px);
}

/* Mobil */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.1rem;
    }
}


/* ------------- Ønskeliste ------------------- */
.onskeliste-qr {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .onskeliste-box {
        padding: 30px 20px;
    }
}

.onskeliste-link {
    color: #6B866F;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.onskeliste-link:hover {
    color: #405E45;
}

.onskeliste-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 50px;
    margin: 10px;
}

/* Billede */
.praktisk-image {
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 0.80;
    transform: translateY(10%);
}

/* Accordion */
#praktisk-info .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: #6B866F;
}

#praktisk-info .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #6B866F;
    border-radius: 0;
}

/* Spørgsmål */
#praktisk-info .accordion-button {
    background-color: transparent;
    color: inherit;
    font-size: 1.7rem;
    padding: 24px 0;
    box-shadow: none;
}

/* Åbent spørgsmål */
#praktisk-info .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #6B866F;
    box-shadow: none;
}

/* Fjern fokusramme */
#praktisk-info .accordion-button:focus {
    box-shadow: none;
}

/* Svar */
#praktisk-info .accordion-body {
    padding: 0 0 24px 0;
    background-color: transparent;
}

/* Mobil */
@media (max-width: 768px) {
    .praktisk-image {
        max-width: 220px;
    }

    #praktisk-info .accordion-button {
        font-size: 1.2rem;
    }
}

/* Hvide lokationsbokse */
.location-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;

    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Tekst øverst */
.location-content {
    padding: 2vw;
    padding-bottom: 0;
    text-align: left;
}

/* Overskrift */
.location-content h3 {
    font-size: 2rem;
    color: #6B866F;
}

.location-content p {
    position: relative;
    z-index: 2;
}

/* Adresse og ikon */
.location-details {
    display: grid;
    grid-template-columns: 6fr 6fr;
    align-items: center;
    margin: 0px;
    margin-top: -40px;
}

/* Adresse */
.location-address {
    margin: 0;
}

/* Akvarelikon */
.location-icon {
    width: 100%;
    height: 15vw;
    object-fit: contain;
    opacity: 0.80;
    z-index: 1;
}

/* Google Maps nederst */
.location-map {
    width: 100%;
    padding: 15px;
    padding-top: 0px;
}

.location-map iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* Mobil */
/* Mobil */
@media (max-width: 768px) {
    .location-content {
        padding: 25px;
        padding-bottom: 0;
    }

    .location-content h3 {
        font-size: 1.7rem;
    }

    /* Afstand mellem beskrivelse og adresse */
    .location-details {
        margin-top: -15px;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Adresse */
    .location-address {
        margin: 0;
    }

    /* Akvarelbillede */
    .location-icon {
        width: 100%;
        height: 130px;
        object-fit: contain;
    }

    /* Google Maps */
    .location-map iframe {
        height: 220px;
        margin-top: 15px;
    }
}

/* PROGRAM SEKTION */

.wedding-program {
    position: relative;
    display: grid;
    grid-template-rows: repeat(6, auto);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Lodret linje gennem hjerterne */
.wedding-program::before {
    content: "";
    position: absolute;
    top: 50px;
    bottom: 50px;
    left: 50%;
    width: 2px;
    background-color: #6B866F;
    transform: translateX(-50%);
}

/* Hver række */
.program-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    align-items: center;
    min-height: 130px;
    gap: 20px;
}

/* Ikoner */
.program-icon {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.program-icon img {
    width: 110px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hjerter */
.program-heart {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 32px;
    line-height: 1;
    color: #6B866F;
}

/* Beskrivelse */
.program-description {
    grid-column: 3;
    grid-row: 1;
    text-align: center;
}

.program-description h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.7rem;
    margin-bottom: 5px;
}

.program-time {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #6B866F;
    margin-bottom: 0;
}

/* Skift side på hver anden række */
.program-item.reverse .program-icon {
    grid-column: 3;
}

.program-item.reverse .program-description {
    grid-column: 1;
}

.wedding-program::before {
    content: "";
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: auto;
    background-color: #6B866F;
    transform: translateX(-50%);
    z-index: 0;
}

/* MOBIL */
@media (max-width: 768px) {

    .wedding-program {
        gap: 15px;
    }

    .program-item {
        grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
        gap: 8px;
        min-height: 90px;
    }

    .program-icon img {
        width: 75px;
    }

    .program-heart {
        font-size: 25px;
    }

    .program-description h3 {
        font-size: 1.2rem;
    }

    .program-time {
        font-size: 1rem;
    }

    .wedding-program::before {
        top: -20px;
        bottom: -20px;
        height: auto;
    }
}

/* --------------------- FORM ------------------------ */
.overnatning-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.overnatning-form iframe {
    width: 100%;
    border: none;
    display: block;
}

