/********** Template CSS **********/
:root {
    --primary: #F43F5E;
    --secondary: #FB923C;
    --tertiary: #BE123C;
    --dark: #3A2027;
    --muted: #765A62;
    --light: #FFF1F2;
    --white: #FFFFFF;
    --border: rgba(244, 63, 94, .14);
    --shadow: 0 24px 70px rgba(120, 38, 60, .13);
    --transition: 300ms ease;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: var(--transition);
}

.btn.btn-primary {
    color: var(--white);
}

.btn.btn-primary:hover {
    color: var(--dark);
}

.btn.btn-light {
    color: var(--dark);
}

.btn.btn-light:hover {
    color: var(--primary);
}

.btn-square {
    width: 42px;
    height: 42px;
}

.btn-sm-square {
    width: 35px;
    height: 35px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 32px;
}

.btn-gradient {
    border: 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(244, 63, 94, .25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gradient:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(244, 63, 94, .33);
}

.btn-soft {
    border: 1px solid var(--border);
    color: var(--dark);
    background: var(--light);
    transition: .3s ease;
}

.btn-soft:hover {
    color: var(--dark);
    background: var(--white);
    transform: translateY(-3px);
}

.text-gradient {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/*** Navbar ***/
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    padding: 20px 0;
    transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}

.topbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 241, 242, .88);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(80, 20, 40, .08);
}

.brand {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .02em;
}

.topbar.scrolled .brand {
    color: var(--dark);
}

.menu-toggle {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.topbar.scrolled .menu-toggle {
    color: var(--tertiary);
    border-color: var(--border);
    background: rgba(255, 255, 255, .72);
}

.menu-toggle:hover {
    transform: rotate(180deg) scale(1.05);
}

.menu-panel {
    position: fixed;
    inset: 0;
    z-index: 1029;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(244, 63, 94, .98), rgba(251, 146, 60, .98));
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.menu-panel.open {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    width: min(520px, 100%);
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li {
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: clamp(1rem, 3vw, 2rem);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-links a span {
    transition: var(--transition);
}

.menu-links a:hover span {
    transform: translateX(12px);
}

.menu-links small {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
}


/*** Hero ***/
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(125deg, rgba(104, 15, 42, .9), rgba(244, 63, 94, .5) 42%, rgba(251, 146, 60, .9)), url("../img/hero.jpg") center/cover;
}

.hero .hero-content {
    position: relative;
    width: 100%;
    padding-top: 140px;
    padding-bottom: 100px;
    z-index: 2;
}

.hero .hero-title {
    font-size: clamp(4rem, 11vw, 9rem);
    letter-spacing: -.045em;
}

.hero .hero-title span {
    display: block;
    font-style: italic;
    font-weight: 500;
}

.hero .btn-soft {
    color: white;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
}

.hero .scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero .scroll-indicator i {
    animation: bounce 1.6s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}


/*** Section Label ***/
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--tertiary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-label::before,
.section-label::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}


/*** Story ***/
.story .story-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.story .story-card * {
    position: relative;
    z-index: 2;
}

.story-card::after {
    content: "♥";
    position: absolute;
    right: 28px;
    top: 18px;
    color: var(--light);
    font-size: 15rem;
    font-family: serif;
    z-index: 1;
}

.story-meta {
    color: var(--tertiary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.story-image {
    min-height: 520px;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
}


/*** Event ***/
.event-item {
    padding: 35px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--white), var(--light));
    transition: transform var(--transition), box-shadow var(--transition);
}

.event-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.event-item .btn-square {
    width: 60px;
    height: 60px;
}


/*** Countdown ***/
#countdown {
    color: var(--white);
    background: linear-gradient(120deg, var(--dark), var(--primary), var(--secondary));
}

.countdown-item {
    height: 100%;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(10px);
}


/*** Gallery ***/
.gallery-item {
    position: relative;
    display: block;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}

.gallery-item::after {
    content: "\f002";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 1.4rem;
    background: rgba(60, 10, 25, .35);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}


/*** RSVP ***/
.rsvp {
    background: radial-gradient(circle at 100% 0%, rgba(251,146,60,.16), transparent 35%), linear-gradient(145deg, #fff8f9, #fff);
    box-shadow: var(--shadow);
}

.form-label {
    font-size: .85rem;
    font-weight: 700;
}


/*** FAQs ***/
.accordion-item {
    overflow: hidden;
    background: var(--white);
}

.accordion-button {
    padding: 22px;
    background: var(--white);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(244, 63, 94, .03);
}


/*** Footer ***/
.footer {
    color: rgba(255, 255, 255, .65);
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .list-unstyled a {
    color: rgba(255, 255, 255, .65);
    transition: color var(--transition), padding-left var(--transition);
}

.footer .list-unstyled a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer .newsletter-form {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 32px;
    background: rgba(255, 255, 255, .07);
}

.footer .newsletter-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 9px 14px;
}

.footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .65);
}

.copyright.border-top {
    border-color: rgba(255, 255, 255, .1) !important;
}

.copyright {
    color: rgba(255, 255, 255, .65);
}

.copyright a {
    color: var(--white);
}

.copyright a:hover {
    color: var(--primary);
}