:root {
    --beige-overlay: rgba(245, 236, 215, 0.7);
    --beige2: rgba(245, 236, 215, 0.25);
    --beige3: rgba(245, 236, 215, 0.65);
    --brown: #a67c52;
    --brown-dark: #6b4f2d;
    --hero-br: 0% 100% 11% 89% / 68% 0% 100% 32% ;
    --hero2-br: 46% 54% 0% 100% / 74% 46% 54% 26%;
    --hero3-br: 50% 50% 46% 54% / 69% 75% 25% 31% ;
    --hero4-br: 18% 82% 18% 82% / 37% 85% 15% 63%  ;
    --fluid-min: 1rem;  /* min font size */
    --fluid-max: 2rem;  /* max font size */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    color: var(--brown-dark);
    font-family: 'Book Antiqua', sans-serif;
    /*font-size: clamp(var(--fluid-min), 5vw, var(--fluid-max));*/
}

a {
    color: var(--brown-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.love-light {
    font-family: "Love Light", cursive;
    font-weight: 500;
    font-style: normal;
}

/* Initial hidden state */
.slide-in {
    opacity: 0;
    transform: translateY(40px); /* slide up from below */
    transition: all 0.8s ease-out;
}

/* When visible */
.slide-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for h2 */
.slide-in.delay {
    transition-delay: 0.4s;
}

/* Rotate vertically (like flipping in 3D) */
.rotate-text {
    display: inline-block;
    animation: vertical-rotate 3s ease-in-out forwards;
}

@keyframes vertical-rotate {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    50% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

/* Flash effect */
.flash-text {
    animation: flash 2s linear 2;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/*@media (max-width: 768px) {*/
/*    .icon-text {*/
/*        flex-direction: column;*/
/*        align-items: center;*/
/*        text-align: center;*/
/*    }*/
/*}*/

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--beige-overlay) !important;
    box-shadow: none;
}

.navbar .navbar-item,
.navbar .navbar-brand {
    color: var(--brown-dark) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

/* ---- HERO ---- */
.hero-background {
    position: relative;
    background-image: url('../media/hero4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    border-radius: var(--hero-br);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--beige-overlay);
    border-radius: var(--hero-br);
    z-index: 1;
}
#hero .hero-body {
    position: relative;
    z-index: 2;
}

#hero .title{
    font-size: clamp(5rem, 8vw, 12rem);
}

#hero .subtitle{
    font-size: clamp(2rem, 3vw, 5rem);
}

#hero .subtitle2{
    font-size: clamp(1rem, 1vw, 3rem);
}

#hero .title,
#hero .subtitle,
#hero .subtitle2,
#hero .hero-body p {
    /*color: #911e1e !important;*/
    color: var(--brown-dark);
    text-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

div.with-border-right {
    border-right: 2px solid var(--brown-dark);
}

/* ---- SECTIONS ---- */
section {
    scroll-margin-top: 3rem;
}

.section {
    background: white;
    border-radius: 12px;
    margin: 100px 0;
    /*box-shadow: 0 0 16px rgba(166, 124, 82, 0.05);*/
}

.section-title{
    text-align: center;
    font-size: clamp(3rem, 5vw, 9rem);
}

/* ---- BUTTON ---- */
.btn-brown {
    background: var(--brown);
    color: #fff;
    border: none;
    border-radius: 2em;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75em 2em;
    box-shadow: 0 6px 18px -4px rgba(166, 124, 82, 0.18);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-brown:hover, .btn-brown:focus {
    background: var(--brown-dark);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 28px -8px rgba(107, 79, 45, 0.22);
    text-decoration: none;
}
.hero-cta {
    margin-top: 2.5rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
}
.btn-brown .icon {
    transition: color 0.2s, transform 0.2s;
}
.btn-brown:hover .icon, .btn-brown:focus .icon {
    color: #ffd5b6;
    transform: scale(1.18) rotate(-8deg);
}

/* Initial hidden state */
.story-img {
    opacity: 0;
    transform: translateX(-100px) rotate(-180deg);
    transition: all 1s ease-out;
}

/* Animate into view */
.story-img.show {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

#countdown-to-wedding {
    background: var(--beige-overlay);
    border-radius: var(--hero2-br);
}

.countdown-timer {
    font-family: 'Playfair Display', serif;
    margin-top: 1.5rem;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-dark, #6b4f2d);
    background: var(--beige-overlay, #f5ecd7);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    min-width: 70px;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(166, 124, 82, 0.09);
}

.countdown-label {
    color: var(--brown, #a67c52);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#activites{
    table {
        color: var(--brown-dark);
        font-size: larger;

        tr > td {
            padding: 20px 40px;

            span{
                padding-right: 60px;
            }
        }
    }
}

#details{
    table {
        color: var(--brown-dark);
        font-size: larger;

        tr > td {
            padding: 20px 40px;

            span{
                padding-right: 60px;
            }
        }
    }
}



#hero_filler1{
    position: relative;
    background-image: url('../media/hero5.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*min-height: 60vh;*/
    /*border-radius: var(--hero3-br);*/

    /*.hero-overlay {*/
    /*    position: absolute;*/
    /*    top: 0; left: 0; right: 0; bottom: 0;*/
    /*    background: var(--beige2);*/
    /*    border-radius: var(--hero3-br);*/
    /*    z-index: 1;*/
    /*}*/

    .container{
        padding: 20px;
        background: var(--beige3);
        text-shadow: 0 20px 120px rgba(0, 0, 0, 0.98), 0 1px 2px rgba(0,0,0,0.95);

        h1{
            margin-top: 20px;
        }
    }
}

#hero_filler2{
    position: relative;
    background-image: url('../media/hero6.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    .container{
        padding: 20px;
        background: var(--beige3);
        text-shadow: 0 20px 120px rgba(0, 0, 0, 0.98), 0 1px 2px rgba(0,0,0,0.95);

        h1{
            margin-top: 20px;
        }
    }
}

#entourage{
    background-image: url('../media/jm-logo1.png'); /* Replace with your image path */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#faq article.message {
    div.message-header{
        background: var(--brown);
    }
    div.message-body{
        background: var(--beige3);
    }
}

#gifts {
    background: var(--beige-overlay);

    div.columns{
        div.column:first-child{
            img{
                width: 50%;
            }
        }
    }

    #banks img{
        width: 250px;
    }

    .story-title{
        text-align: center;
        font-size: clamp(1.1rem, 1vw, 1.5rem);
    }
}

#dress_code {
    background: var(--beige-overlay);

    div.dress-models img{
        width: 45%;
    }

    div.container h2{
        font-size: clamp(var(--fluid-min), 5vw, var(--fluid-max));
    }

    div.container > h2:last-child{
        padding:70px;
        font-size: clamp(var(--fluid-min), 5vw, var(--fluid-max));
        font-style: italic;
    }
}

/*#gifts {*/
/*    background: var(--beige-overlay);*/

/*    .love-light {*/
/*        font-family: "Love Light", cursive;*/
/*        font-weight: 500;*/
/*        font-style: normal;*/
/*    }*/
/*}*/

#gallery {
    background: var(--beige-overlay);
}


.gallery-item img {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(166, 124, 82, 0.17);
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item img:hover {
    /*transform: scale(1.04) rotate(-1deg);*/
    /*box-shadow: 0 8px 24px rgba(107, 79, 45, 0.25);*/
}

.story-title{
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.highlighted-text{
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-decoration: #6b4f2d underline;
}



.scroll-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1000;
}
.scroll-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}
.scroll-up {
    bottom: 90px;
}
.scroll-down {
    bottom: 20px;
}
.scroll-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
}









.footer {
    background: var(--beige-overlay);
    color: var(--brown-dark);
    padding: 2rem 1.5rem;
    border-radius: 50% 50% 0% 100% / 100% 50% 50% 0% ;

    a{
        color: darkgoldenrod;
        text-decoration: none;
    }
}