/* =========================================================================
   JOÃO & VICTORIA - WEDDING GIFT LIST
   ========================================================================= */

:root {
    --color-bg: #FCFBF9;
    --color-text: #4A4A4A;
    --color-accent: #CFA071;
    /* Rose Gold / Sand */
    --color-white: #FFFFFF;
    --color-border: #E8E8E8;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1,
h2,
h3,
.pre-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 80vh;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 2rem;
}

.pre-title {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.names {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 7rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.names span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    color: var(--color-accent);
}

.date {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* INTRO SECTION */
.intro {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 1.5rem auto 2.5rem;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* GIFTS GRID */
.gifts {
    padding: 4rem 0 8rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gift-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gift-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.gift-info {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gift-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.gift-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.btn-presentear {
    margin-top: auto;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
}

.btn-presentear:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* MODAL / PIX */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalFadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-text);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.selected-gift-name {
    font-size: 1.1rem;
    color: #666;
}

.selected-gift-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 2rem;
}

.pix-area {
    background: #FAFAFA;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed var(--color-border);
}

.pix-instructions {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.qrcode-box {
    background: #FFF;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#pix-copy-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #888;
    resize: none;
    height: 60px;
    margin-bottom: 1rem;
    background: #FFF;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #B88A5E;
}

.copy-feedback {
    color: #2E8B57;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.thank-you-msg {
    margin-top: 2rem;
    font-style: italic;
    color: #888;
}

/* FOOTER */
footer {
    background: var(--color-white);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.names-small {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-top: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .names {
        font-size: 3.5rem;
    }

    .hero {
        height: 60vh;
    }

    .intro {
        padding: 4rem 2rem;
    }
}