/* Basic wedding site styles - mobile-first */
@font-face {
    font-family: "EB Garamond";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/EBGaramond-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "EB Garamond";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/EBGaramond-Bold.woff2") format("woff2");
    font-display: swap;
}

/* Quicksand (self-hosted): same unicode ranges as Google Fonts CSS */
@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/Quicksand-v37-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/Quicksand-v37-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/Quicksand-v37-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #ffffff;
    --text: #062910;
    --muted: #6b7280;
    --brand: #ba8e58;
    --brand-dark: #916e42;
    --lightest-green: #7d9a7f;
    --light-green: #305235;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 3px 3px 5px #00000063;
    --font-family-header: "EB Garamond";
    --font-family: "Quicksand", sans-serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-color: var(--light-green);
    scrollbar-width: 30px;
}

html::-webkit-scrollbar {
    width: 30px;
}


body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    orphans: 3;
    widows: 3;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-family: var(--font-family), sans-serif;
}

img {
    max-width: 100%;
    display: block
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    backdrop-filter: blur(8px);
    width: 100%;

}


.nav__toggle {
    background: transparent;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

@media (max-width: 1023px) {
    .hamburger {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text);
        box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text)
    }

    html {
        height: -webkit-fill-available;
        height: 100svh;
    }

    .body {
        min-height: -webkit-fill-available;
        height: 100svh
    }

    h1 {
        margin: auto;
        font-size: max(2vh, 1.8rem);
    }

    .time {
        font-size: max(2vh, 1.8rem) !important;
    }

    .where !important {
        font-size: max(1.5vh, 1.5rem);
    }

    .container {
        flex-direction: column;
    }

    header.site-header {
        flex-direction: row;
        flex-basis: 80px;
        flex-shrink: 0;
        flex-grow: 0;
        width: 100vw !important;
        background: var(--bg);
        margin: 0 !important;
    }

    div#root {
        max-width: 100vw;
        overflow-x: hidden;;
        overflow-y: auto;
        font-size: max(1.6vh, 1.2rem);
    }

    .web {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }

    nav.site-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        min-width: 225px;
        width: 25vw;
        justify-content: start;
        background: var(--bg);
        color: transparent;
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        z-index: 9;
        height: 100vh !important;
        margin-top: 40px;
    }

    nav.site-nav.open {
        display: flex;
        visibility: visible;
        z-index: 1001;
    }

    .nav-item {
        margin-left: 22px;
        min-width: auto;
        padding: 0 .5rem;
        margin-top: 10px;
        margin-bottom: 10px;
        width: fit-content;
        text-decoration: none;
        max-height: 10vh;
    }

    .nav-item > img {
        max-height: 5vh;
    }

    .home-icon {
        display: none;
    }


    .main-icon {
        height: 100%;
        display: flex;
        object-fit: contain;
        flex-basis: 40vh;
        flex-grow: 1;
        flex-shrink: 1;
        flex-direction: column;
    }

    .main-container {
        height: calc(90vh - 80px - 25px);
        text-align: center;
    }

    .section-margin, .site-footer {
        margin-top: 3rem;
    }

    .text-after-icon {
        margin-bottom: 5rem;
    }

    .site-footer {
        font-size: 1.5vh;
    }

    /* Firefox + modern standard */
    * {
        scrollbar-width: none;
    }

    .coloursContainer {
        gap: max(3vh, 20px);
    }

    .coloursContainer > div {
        width: max(3vh, 20px) ;
        height: max(3vh, 20px);
    }

    * {
        scrollbar-width: none;           /* Firefox */
    }

    *::-webkit-scrollbar {
        display: none;                   /* Chromium + Safari */
    }

    .bank-value {
        text-align: left;
    }

    .no-bottom-margin {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* show nav on desktop */
@media (min-width: 1024px) {
    nav.site-nav {
        height: 100%;
    }

    .site-header {
        flex-basis: 80px;
        flex-shrink: 0;
        max-width: 850px;
    }

    .container {
        flex-direction: column;
    }

    section#home div {
        width: max(65vw, 1025px);
    }

    body {
        font-size: 1.15rem;
    }

    nav {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    .nav__toggle {
        display: none
    }

    .nav-item {
        display: flex;
        flex-grow: 0;
        flex-basis: 100px;
        height: 100%;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        font-size: 1.1rem;
    }

    .nav-item img {
        object-fit: contain;
        flex: 1;
        overflow: hidden;
        max-height: 100%;
    }

    .nav-item:hover {
        /*background-color: var(--bg);*/
        border-bottom: 2px solid var(--light-green);
        font-weight: bold;
        font-size: 1.15rem;
        color: var(--light-green);
    }

    .nav-item[aria-current="page"] {
        border-bottom: 2px solid var(--light-green);
        font-weight: bold;
    }

    .home[aria-current="page"] {
        flex-basis: 40px;
        padding: 8px;
        color: var(--light-green);
        background-image: url("/img/home-active.svg") !important;
    }

    .home:hover {
        flex-basis: 40px;
        padding: 3px;
        color: var(--light-green);
        background-image: url("/img/home-active.svg") !important;
    }

    .home {
        flex-basis: 40px;
        padding: 8px 8px 10px;
        color: var(--light-green);
    }

    .home-text {
        display: none;
    }

    .hidden {
        animation: 1.5s fadeIn;
        animation-delay: 0.9s;
        animation-fill-mode: forwards;
        visibility: hidden;
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        100% {
            visibility: visible;
            opacity: 1;
        }
    }

    .mobile {
        display: none !important;
    }

    .text {
        max-width: 850px;
        margin: auto;
    }

    .section-margin {
        margin-top: 3rem;
    }

    .text-after-icon {
        margin-bottom: 3rem;
    }

    .no-top-margin {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .main-icon {
        height: 100%;
        display: flex;
        object-fit: contain;
        flex-basis: 1024px;
        flex-direction: column;
    }

    .coloursContainer {
        gap: 40px;
    }

    .coloursContainer > div {
        width: 40px;
        height: 40px;
    }

    /* Sections */
    .section {
        padding: 3rem 0
    }

    .bank-value {
        text-align: center;
    }
}

.nav-item {
    color: var(--light-green);
}

/* Buttons */

.section-alt {
    background: var(--bg)
}

.section-title {
    margin: 0 0 1rem;
    font-size: 3rem;
    text-align: center;

}

.container {
    width: min(1024px, 87%);
    margin-inline: auto;
    display: flex;
}


/* Timeline */
.timeline {
    display: flex;

}

.timeline_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 3rem;
    align-self: center;
    width: 100%;
}

.time {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 700;
    align-self: center;
}


.where {
    color: var(--lightest-green);
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    flex-basis: 100%;
}

section {
    height: 100%;
}

/* Ensure main content expands to fill available space */
main {
    flex: 1 0 auto;
    height: auto;
}

.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.w-100 {
    width: 100%;
}

.font-header {
    font-family: var(--font-family-header), "Times New Roman", Times, serif;
}

nav, h2, h1, h3, h4, h5, h6 {
    font-family: var(--font-family-header), "Times New Roman", Times, serif;
}

.icon {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

footer {
    margin-top: auto;
    flex-basis: 25px;
    flex-shrink: 0;
    height: auto;
    flex-grow: 0;
    text-align: center;
}

.section-title {
    width: 0;
    height: 0;
    color: transparent;
}

.coloursContainer {
    align-items: center;
    align-self: center;
    padding-top: 10px;
}

.coloursContainer > div {
    border-radius: 50%;
}

.h-150px {
    height: 150px;
}

.h-100 {
    height: 100%;
}

.align-center {
    align-self: center;
}

.text {
    hyphens: auto;             /* requires lang="cs" on html */
    hyphenate-limit-chars: 6 3 3; /* min word / before / after hyphen */
    overflow-wrap: break-word;
}

.margin-inline-auto {
    margin: auto;
}

a {
    color: var(--lightest-green);
}

.nav-item[aria-current="page"] {
    border-bottom: 2px solid var(--light-green);
    font-weight: bold;
}


/* Firefox + modern standard */
* {
    scrollbar-width: 10px;
    scrollbar-color: var(--light-green); /* thumb  track */
}

/* Chromium + Safari */
*::-webkit-scrollbar {
    width: 10px;
    color: var(--light-green);
    background: transparent;
}
*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 1px;
    color: var(--light-green);
}
*::-webkit-scrollbar-thumb {
    background: var(--light-green);
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--lightest-green);
}

/* Home page extracted inline styles */
.flex-spacer-9 {
    flex: 0 0 9%;
}

.flex-spacer-15 {
    flex: 0 0 15%;
}

.home-hero-image {
    background-image: url(/img/intro-highres.png);
    flex: 0 0 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.home-title {
    color: #B55617;
    flex: 0 0 20%;
    font-size: 8vh;
}

.home-subtitle {
    color: #435303;
    font-size: 4vh;
    flex: 0 0 3%;
}

.home-main-icon {
    background-image: url(/img/intro-logo_trans_nove.png);
}


/* Gifts page */
.gifts-icon {
    background-image: url(/img/icons/gifts.svg);
}

.qr-image {
    max-height: 450px;
    object-fit: contain;
}

/* Gifts: bank/payment section layout */
.bank-section {
    width: 100%;
}

.bank-label {
    flex: 0 0 40%;
}

.bank-value {
    flex: 0 0 60%;
}

/* Gifts responsive layout for QR + bank info */
.gifts-flex {
    display: flex;
    flex-direction: column; /* mobile: stack */
    gap: 1.5rem;
    align-items: center;
}

.gifts-qr {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Ensure desired text alignment regardless of other media rules */
.bank-section { text-align: left; }
.bank-section { text-align: left; }

@media (min-width: 1024px) {
    .gifts-flex { flex-direction: row; align-items: flex-start; }
    .gifts-qr { flex: 0 0 40%; max-width: 420px; }
    .bank-section { flex: 1 1 60%; }
    .qr-image { width: 100%; height: auto; }
}
