/* =========================================================
   GIULIA OU GIUSEPPE
   CHÁ REVELAÇÃO
   STYLE.CSS — BLOCO 3
   ========================================================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(218, 190, 151, 0.22), transparent 28%),
        radial-gradient(circle at 80% 75%, rgba(218, 190, 151, 0.18), transparent 30%),
        #f7f1e9;

    color: #6e5947;

    font-family: 'Poppins', sans-serif;

    overflow-x: hidden;
}



.hidden {
    display: none !important;
}

#opening {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    text-align: center;

    overflow: hidden;
}

#opening::before,
#opening::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(205, 169, 111, 0.12);

    filter: blur(35px);

    pointer-events: none;
}

#opening::before {
    top: -70px;
    left: -70px;
}

#opening::after {
    right: -80px;
    bottom: -80px;
}

.stars {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.stars::before,
.stars::after {
    content: "✦   ✧       ✦        ✧   ✦       ✧";

    position: absolute;

    width: 100%;

    color: rgba(184, 143, 82, 0.48);

    font-size: 15px;

    letter-spacing: 13px;

    line-height: 70px;

    animation: starsFloat 7s ease-in-out infinite;
}

.stars::before {
    top: 8%;
    left: 0;
}

.stars::after {
    bottom: 9%;
    right: 0;

    transform: rotate(180deg);

    animation-delay: 2s;
}

@keyframes starsFloat {

    0%,
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }

    50% {
        opacity: 0.85;
        transform: translateY(-8px);
    }
}

.opening-card {
    position: relative;

    z-index: 2;

    width: min(100%, 420px);

    padding: 45px 28px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.72),
            rgba(245, 235, 222, 0.54)
        );

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 25px 70px rgba(104, 78, 52, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    animation: openingAppear 1.2s ease both;
}

@keyframes openingAppear {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.baby {

    display: block;

    width: 120px;
    height: 120px;

    margin: 0 auto 24px;

    font-size: 72px;

    line-height: 120px;

    filter:
        drop-shadow(
            0 12px 14px rgba(93, 69, 47, 0.14)
        );

    animation:
        bearFloat 4s ease-in-out infinite;

    user-select: none;
}

@keyframes bearFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-1deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotate(1deg);
    }
}

@keyframes bearFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.opening-card h1 {

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(36px, 10vw, 54px);

    line-height: 0.98;

    font-weight: 700;

    color: #9d7748;

    margin-bottom: 18px;
}

.opening-card p {

    max-width: 290px;

    margin: 0 auto 32px;

    font-size: 14px;

    line-height: 1.8;

    color: #806a56;
}

#openInvitation {

    border: none;

    min-width: 190px;

    padding: 16px 30px;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #d7b477,
            #b58a51
        );

    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 500;

    letter-spacing: 0.4px;

    box-shadow:
        0 12px 28px rgba(153, 111, 61, 0.25);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#openInvitation:active {

    transform: scale(0.96);

    box-shadow:
        0 6px 16px rgba(153, 111, 61, 0.2);
}

#envelope {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.8),
            transparent 55%
        ),
        #eee1d2;
}

.envelope-container {

    width: min(100%, 390px);

    perspective: 1000px;
}

.envelope {

    position: relative;

    width: 100%;

    aspect-ratio: 1.5 / 1;

    background: #d9c0a4;

    border-radius: 8px;

    box-shadow:
        0 25px 60px rgba(90, 65, 44, 0.18);

    overflow: hidden;
}

.envelope-top {

    position: absolute;

    z-index: 3;

    top: 0;
    left: 0;

    width: 100%;
    height: 65%;

    background: #cdb08f;

    clip-path: polygon(
        0 0,
        100% 0,
        50% 100%
    );

    transform-origin: top;

    transition: transform 1s ease;
}

.letter {

    position: absolute;

    z-index: 2;

    left: 8%;
    right: 8%;

    bottom: 8%;

    height: 70%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background: #fffaf4;

    border-radius: 5px;

    box-shadow:
        0 8px 25px rgba(85, 62, 42, 0.12);
    
    padding-top: 90px;
}

.letter h2 {

    font-family: 'Cormorant Garamond', serif;

    font-size: 30px;

    color: #a47c4b;

    margin-bottom: 8px;
}

.letter p {

    font-size: 11px;

    color: #8b7765;
}

#invitation {

    min-height: 100vh;

    padding: 35px 18px 60px;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(214, 180, 135, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(214, 180, 135, 0.16),
            transparent 28%
        ),
        #f7f1e9;
}

.invitation-card {

    position: relative;

    width: min(100%, 440px);

    margin: 0 auto;

    padding: 45px 25px;

    text-align: center;

    border-radius: 32px;

    background:
        rgba(255, 252, 247, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        0 30px 80px rgba(105, 78, 53, 0.12);
}

.bear {

    display: block;

    font-size: 58px;

    margin-bottom: 12px;

    animation: bearFloat 4s ease-in-out infinite;
}

.invitation-card h2 {

    font-family: 'Cormorant Garamond', serif;

    font-size: 29px;

    font-weight: 500;

    color: #80654e;
}

.invitation-card h1 {

    margin-top: 3px;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(38px, 11vw, 54px);

    line-height: 0.95;

    color: #aa804e;
}

.invitation-card h3 {

    margin-top: 20px;

    font-family: 'Cormorant Garamond', serif;

    font-size: 29px;

    color: #765a43;
}

.event-info {

    margin: 28px 0;

    padding: 22px 15px;

    border-top: 1px solid rgba(169, 130, 82, 0.2);

    border-bottom: 1px solid rgba(169, 130, 82, 0.2);
}

.event-info p {

    margin: 7px 0;

    font-size: 13px;

    line-height: 1.6;

    color: #766452;
}

.buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 25px;
}

.btn {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    min-height: 52px;

    padding: 13px 18px;

    border: 1px solid rgba(181, 138, 81, 0.25);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(214, 181, 135, 0.95),
            rgba(181, 138, 81, 0.95)
        );

    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    box-shadow:
        0 10px 22px rgba(150, 108, 59, 0.16);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:active {

    transform: scale(0.97);

    box-shadow:
        0 5px 14px rgba(150, 108, 59, 0.12);
}

.countdown {

    margin-top: 35px;

    padding: 22px 15px;

    border-radius: 22px;

    background:
        rgba(226, 209, 188, 0.25);
}

.countdown h4 {

    font-family: 'Cormorant Garamond', serif;

    font-size: 22px;

    font-weight: 500;

    color: #9a7549;

    margin-bottom: 8px;
}

#timer {

    font-size: 13px;

    color: #766452;
}

@media (max-width: 360px) {

    .opening-card {
        padding: 35px 20px;
    }

    .invitation-card {
        padding: 38px 18px;
    }

    .opening-card h1 {
        font-size: 38px;
    }

    .invitation-card h1 {
        font-size: 40px;
    }
}

.gift-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        rgba(74, 55, 38, 0.48);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    animation:
        modalBackground 0.3s ease;
}

.gift-modal.hidden {

    display: none !important;
}

@keyframes modalBackground {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.gift-modal-content {

    position: relative;

    width: min(100%, 420px);

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px 24px 28px;

    text-align: center;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 252, 247, 0.98),
            rgba(247, 241, 233, 0.98)
        );

    border:
        1px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 30px 80px
        rgba(105, 78, 53, 0.25),

        inset
        0 1px 0
        rgba(255, 255, 255, 0.9);

    animation:
        modalAppear 0.35s ease both;
}

@keyframes modalAppear {

    from {

        opacity: 0;

        transform:
            translateY(20px)
            scale(0.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}

.close-modal {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid
        rgba(181, 138, 81, 0.18);

    border-radius: 50%;

    background:
        rgba(214, 181, 135, 0.12);

    color: #80654e;

    font-family: 'Poppins', sans-serif;

    font-size: 22px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.close-modal:hover {

    background:
        rgba(214, 181, 135, 0.28);

    transform: rotate(90deg);
}


.close-modal:active {

    transform:
        rotate(90deg)
        scale(0.92);
}

.gift-icon {

    display: block;

    margin-bottom: 8px;

    font-size: 46px;

    line-height: 1;

    filter:
        drop-shadow(
            0 8px 10px
            rgba(105, 78, 53, 0.12)
        );
}

.gift-modal-content h2 {

    margin: 0 0 8px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 34px;

    line-height: 1;

    font-weight: 700;

    color: #9d7748;
}

.gift-text {

    max-width: 320px;

    margin: 0 auto;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    line-height: 1.7;

    color: #806a56;
}

.gift-divider {

    width: 65px;

    height: 1px;

    margin: 20px auto;

    background:
        rgba(169, 130, 82, 0.30);
}

.gift-modal-content h3 {

    margin: 0 0 7px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 27px;

    line-height: 1;

    font-weight: 500;

    color: #765a43;
}

.gift-subtitle {

    max-width: 330px;

    margin: 0 auto 17px;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    line-height: 1.6;

    color: #8b7765;
}

.size-select {

    width: 100%;

    min-height: 52px;

    padding:
        13px
        16px;

    border:
        1px solid
        rgba(181, 138, 81, 0.25);

    border-radius: 999px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.72);

    color: #6e5947;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.size-select:focus {

    border-color:
        rgba(181, 138, 81, 0.55);

    box-shadow:
        0 0 0 3px
        rgba(181, 138, 81, 0.10);
}

.size-button {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    min-height: 52px;

    margin-top: 12px;

    padding: 13px 18px;

    border:
        1px solid
        rgba(181, 138, 81, 0.25);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(214, 181, 135, 0.95),
            rgba(181, 138, 81, 0.95)
        );

    color: #fff;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.1px;

    box-shadow:
        0 10px 22px
        rgba(150, 108, 59, 0.16);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.size-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 13px 26px
        rgba(150, 108, 59, 0.20);
}


.size-button:active {

    transform: scale(0.97);

    box-shadow:
        0 5px 14px
        rgba(150, 108, 59, 0.12);
}


.size-button:disabled {

    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow:
        0 6px 14px
        rgba(150, 108, 59, 0.08);
}

.size-message {

    display: none;

    margin-top: 12px;

    padding: 11px 14px;

    border-radius: 14px;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    line-height: 1.5;
}


.size-message.success {

    display: block;

    background:
        rgba(116, 157, 111, 0.10);

    border:
        1px solid
        rgba(116, 157, 111, 0.18);

    color: #587152;
}


.size-message.error {

    display: block;

    background:
        rgba(180, 105, 90, 0.10);

    border:
        1px solid
        rgba(180, 105, 90, 0.18);

    color: #9a5d51;
}

.size-stock {

    margin-top: 20px;

    padding: 18px 17px;

    border-radius: 22px;

    background:
        rgba(226, 209, 188, 0.22);

    border:
        1px solid
        rgba(169, 130, 82, 0.14);
}


/* Título */

.size-stock-title {

    margin-bottom: 9px;

    font-family:
        'Cormorant Garamond',
        serif;

    font-size: 21px;

    font-weight: 500;

    color: #9a7549;
}

.size-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 34px;

    padding: 6px 0;

    border-bottom:
        1px solid
        rgba(169, 130, 82, 0.13);

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    color: #766452;
}


.size-row:last-of-type {

    border-bottom: none;
}


.size-row span:first-child {

    font-weight: 500;

    color: #80654e;
}

.size-quantity {

    font-weight: 500;

    color: #9a7549;
}


.size-quantity.esgotado {

    color: #a56a5d;

    font-weight: 600;
}

.size-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 10px;

    padding-top: 12px;

    border-top:
        1px solid
        rgba(169, 130, 82, 0.22);

    font-family:
        'Poppins',
        sans-serif;

    font-size: 12px;

    color: #806a56;
}


.size-total strong {

    color: #9d7748;

    font-weight: 600;
}

.gift-footer {

    margin: 18px 0 0;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 11px;

    line-height: 1.6;

    color: #9a8575;
}

@media (max-width: 360px) {

    .gift-modal {

        padding: 14px;

    }


    .gift-modal-content {

        padding:
            30px 18px 23px;

        border-radius: 27px;

    }


    .gift-modal-content h2 {

        font-size: 31px;

    }


    .gift-modal-content h3 {

        font-size: 25px;

    }


    .gift-icon {

        font-size: 42px;

    }

}