/* Old background colour: #b48a78 & #fffaf7 */
/* Other white image we used which looks nice: fffbf5 */
/* new white background to use from image: fef5e6 */

/* ===== Envelope Intro Overlay ===== */
body.no-scroll {
    overflow: hidden;
}

#envelope-overlay {
    position: fixed;
    inset: 0;
    background: #fffbf5;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.envelope-hint {
    font-size: 1.1em !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 30px !important;
    animation: hintFloat 2.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes hintFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.envelope-hint.hide {
    opacity: 0 !important;
}

.envelope-intro {
    position: relative;
    width: 80vw;
    max-width: 500px;
    aspect-ratio: 3 / 2;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.12));
}

.envelope-lining {
    position: absolute;
    inset: 0;
    background: #b8c4a8;
    border-radius: 0px 0px 8px 8px;
    overflow: hidden;
    z-index: 0;
}

.envelope-lining::before,
.envelope-lining::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
}

.envelope-lining::before {
    left: 0;
    background: linear-gradient(to bottom right, #7a8866 50%, transparent 50.5%);
}

.envelope-lining::after {
    right: 0;
    background: linear-gradient(to bottom left, #7a8866 50%, transparent 50.5%);
}

.envelope-letter {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: #fff;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.envelope-letter.slide-out {
    animation: letterSlideAndExpand 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterSlideAndExpand {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(-120%) scale(1);
    }
    100% {
        transform: translateY(-120%) scale(15);
    }
}

.envelope-front {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, #9aa584 0%, #8f9779 40%, #828a6c 100%);
    border-radius: 0 0 6px 6px;
    z-index: 2;
    clip-path: polygon(0 0%, 50% 0%, 50% 0%, 50% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(180deg, #828a6c 0%, #8f9779 100%);
    clip-path: polygon(0 0, 100% 0, 52% 98.5%, 50% 99.5%, 48% 98.5%);
    transform-origin: top center;
    transform: perspective(800px) rotateX(0deg);
    z-index: 4;
    transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-flap.open {
    transform: perspective(800px) rotateX(180deg);
}

.wax-seal {
    position: absolute;
    width: 18%;
    aspect-ratio: 1;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    z-index: 5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wax-seal.break {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4) rotate(15deg);
}

.wax-seal-circle {
    width: 100%;
    height: 100%;
    border-radius: 50% 48% 52% 47% / 48% 52% 47% 50%;
    background: radial-gradient(circle at 38% 32%, #d44050 0%, #b82838 28%, #8b1a2b 65%, #6d1420 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 5px rgba(255, 180, 180, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
}

.wax-seal-circle::after {
    content: '';
    position: absolute;
    width: 78%;
    height: 78%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: inherit;
}

.wax-seal-text {
    color: rgba(255, 210, 210, 0.65) !important;
    font-size: 12px !important;
    letter-spacing: 1px;
    font-weight: 600;
    z-index: 1;
    text-align: center !important;
}

#envelope-overlay.fade-out {
    animation: overlayFade 1s ease forwards;
    pointer-events: none;
}

@keyframes overlayFade {
    to { opacity: 0; }
}

@media (min-width: 768px) {
    .envelope-intro {
        width: 50vw;
    }
}
/* ===== Envelope Intro Overlay End ===== */


/* Other */
body {
    font-family: 'eb garamond', serif !important;
    margin: 0;
    padding: 0;
    background-color: #fffbf5 !important;
    color: #333;
}
h2 {
    margin: 0px !important;
    margin-bottom: 12px !important;
    color: #8f9779 !important;
    text-align: center !important;
}
p {
    color: #8f9779 !important;
    text-align: center !important;
}
li {
    color: #8f9779 !important;
}
li > a {
    color: #8f9779 !important;
}
section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.vertical-divide {
    background-color: #8f9779;
    margin: 5px auto;
}
@media (max-width: 768px) {
    .details-vertical-divide {
        width: 0em !important;
        margin: 0px;
    }
}
/* Other */

/* Navbar */
.custom-nav-link {
    color: #8f9779 !important;
    text-decoration: none !important;
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(143,151,121, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.custom-toggler.navbar-toggler {
    border: 0 !important;
    background-color: transparent !important;
    border-color: rgb(143,151,121);
}
header {
    text-align: center;
}
nav {
    background-color: #fffbf5 !important;
}
nav ul {
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}
/* Navbar */

/* Home */
.home-container {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    overflow: hidden;
}
.home-content > div {
    max-width: none;
    width: 720px;
    padding: 40px 20px;
}
.home-label-wrapper {
    position: relative;
    width: 700px;
    max-width: 90%;
    margin: 0 auto;
}
.home-label-bg {
    width: 100%;
    height: auto;
    display: block;
}
.home-label-content {
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
}
.home-label-content > h2 {
    color: white !important;
}
.home-label-content > p {
    color: white !important;
}
.home-label-content > h2 {
    font-size: 42px;
}
.home-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.home-content {
    position: relative;
    z-index: 1;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: normal;
    padding-top: 8%;
}
#description {
    font-size: 20px;
}
#countdown {
    font-size: 20px;
}
@media (max-width: 768px) {
    .home-content {
        min-height: 500px;
        padding-top: 14%;
    }
    .home-label-bg {
        transform: scale(1.1);
    }
    .home-label-content > h2 {
        font-size: 26px;
        margin-bottom: 6px !important;
    }
    .home-content > div {
        max-width: none;
        width: 412px;
        padding: 40px 20px;
    }
    #countdown {
        font-size: 16px;
    }
    #description {
        font-size: 16px;
    }
}
/* Home */

/* Story */
.profile-outer-container {
    margin: 2em 0em;
}
.profile-container {
    width: 150px;
    height: 150px;
    background-color: #f0e1dd;
    border-radius: 50%;
    display: inline-block;
    margin: 10px;
    position: relative;
}
.profile-container > img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    position: absolute;
    right: 0px;
    bottom: 0px;
}
/* Story */

/* Details */
.wave-container > svg {
  width: 100%;
  height: 100%;
}
.wave-container > svg path {
  fill: #fffbf5;
}
.wave-container > svg rect {
  fill: #8f9779;
}
.wave-container {
  --divider-height: 4rem;
  position: relative;
  top: calc( var(--divider-height)/2 * -1 );
  height: var(--divider-height);
  width: 100%;
  float: left; 
  z-index: 1;
}
@media (max-width: 768px) {
    .details-heading {
        margin-bottom: 50px !important;
    }
}
/* Details */

/* Agenda */
.agenda-wave-container > svg {
  width: 100%;
  height: 100%;
}
.agenda-wave-container > svg path {
  fill: #8f9779;
}
.agenda-wave-container > svg rect {
  fill: transparent;
}
.agenda-wrapper {
    position: relative;
    width: 100%;
}
.agenda-wave-container {
  --divider-height: 4rem;
  height: var(--divider-height);
  width: 100%;
  z-index: 2;
}
.agenda-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    overflow: hidden;
}
.agenda-image {
    width: 100%;
    display: block;
    object-fit: cover;
}
/* Agenda */

/* Gifts */
@media (max-width: 768px) {
    .gifts-divider-col {
        display: none;
    }
}
/* Gifts */

/* RSVP */
.rsvp-form-container {
    width: 100%;
    padding: 0px 20px;
    overflow: hidden;
}
.rsvp-iframe {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    border: none;
    background-color: transparent;
    display: block;
    margin: 0 auto;
}
/* RSVP */

/* FAQ Accordion */
.accordion-item {
    border: 1px solid #8f9779 !important;
    background-color: transparent;
}
.accordion-button {
    background-color: transparent !important;
    color: #8f9779 !important;
    font-family: 'eb garamond', serif !important;
    font-size: 1em;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: #8f9779 !important;
    color: white !important;
}
.accordion-button::after {
    filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(0.7);
}
.accordion-body,
.accordion-body p {
    color: #8f9779 !important;
    text-align: left !important;
    font-family: 'eb garamond', serif !important;
}
/* FAQ Accordion */

/* .gallery-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-grid img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(180, 138, 120, 0.2);
}
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}
input, select, textarea {
    padding: 10px;
    border: 1px solid #b48a78;
    border-radius: 5px;
    font-size: 1em;
}
button {
    background: #b48a78;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #a06c54;
} */
footer {
    background: #8f9779;
    text-align: center;
    padding: 40px 20px;
    font-size: 1em;
    margin-top: 40px;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}
.footer-names {
    font-size: 1.5em;
    margin-bottom: 0 !important;
    letter-spacing: 0.05em;
}
.footer-date {
    font-size: 1em;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}
.footer-divider {
    width: 60px;
    height: 1px;
    background-color: #8f9779;
    margin: 15px auto;
}
.footer-tagline {
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 0 !important;
}
/* @media (max-width: 600px) {
    .gallery-grid {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    section {
        padding: 20px 10px;
    }
} */