﻿/* ====== Reset & Base ====== */
:root {
    --accent: #9D0759; /* dark fuchsia #D6336C; warm rose */
    --muted: #6B7280;
    --bg: #FAF9F8;
    --card: #FFFFFF;
    --glass: rgba(255,255,255,0.6);
    --shadow: 0 8px 24px rgba(11,15,30,0.07);
    --maxw: 1100px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: linear-gradient(180deg,var(--bg),#fff);
    color: #111;
    line-height: 1.45
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    /*padding: 28px*/
}

/* ===== header.site responsivo ===== */
.site {
    background: transparent;
    padding: 12px 0
}

.container-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

/* logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px
}

.mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg,#D6336C,#FF8FA3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0
}

.brand-name {
    font-weight: 700
}

.brand-sub {
    font-size: 12px;
    color: var(--muted)
}

/* nav (desktop) */
.main-nav ul {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center
}

.main-nav a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted)
}

    .main-nav a.cta {
        background: transparent;
        border: 1px solid rgba(0,0,0,0.06);
        color: var(--accent)
    }

    .main-nav a:focus {
        outline: 2px solid rgba(157,7,89,0.18);
        outline-offset: 2px
    }

/* hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer
}

.hamburger {
    display: inline-block;
    width: 28px;
    height: 20px;
    position: relative
}

    .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        background: #111;
        width: 100%;
        left: 0;
        transition: transform .25s ease,opacity .25s ease
    }

        .hamburger span:nth-child(1) {
            top: 0
        }

        .hamburger span:nth-child(2) {
            top: 9px
        }

        .hamburger span:nth-child(3) {
            bottom: 0
        }

/* mobile styles */
@media (max-width:880px) {
    .container-header {
        padding: 0 16px
    }
    /* show hamburger */
    .nav-toggle {
        display: block
    }
    /* hide desktop nav by default */
    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 64px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(4px);
        box-shadow: 0 8px 24px rgba(11,15,30,0.06);
        transform: translateY(-12px) scaleY(0.98);
        opacity: 0;
        pointer-events: none;
        transition: all .25s ease;
        border-radius: 12px;
        margin: 12px;
        z-index: 1200;
        overflow: hidden
    }

        .main-nav.open {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0) scaleY(1)
        }

        .main-nav ul {
            flex-direction: column;
            gap: 8px;
            padding: 16px
        }

        .main-nav a {
            padding: 12px 14px;
            border-radius: 10px;
            width: 100%;
            text-align: left
        }
    /* reposition mark so header doesn't wrap awkwardly */
    .brand-sub {
        display: none
    }
}

/* when nav toggle is active - animate hamburger to X */
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0
}

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

/* ensure header stacks nicely on very small screens */
@media (max-width:420px) {
    .mark {
        width: 44px;
        height: 44px;
        font-size: 16px
    }

    .brand-name {
        font-size: 14px
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px
}

    .logo .mark {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        background: linear-gradient(135deg,var(--accent),#FF8FA3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700
    }

/* ====== Hero ====== */
.hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    margin-top: 18px;
    justify-content: center;
}

.hero-card {
    background: linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0.85));
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.couple-photo, .couple-avatar {
    width: 100%;
    background-size: cover;
    background-position: center;
    display: block
}

.couple-photo {
    height: 420px;
    border-radius: 16px;
}

.couple-avatar {
    height: 750px;
}

.quote {
    font-size: 20px;
    color: var(--muted);
    margin-top: 12px
}

.names {
    font-size: 34px;
    font-weight: 700;
    margin: 8px 0
}

.countdown {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

    .countdown .item {
        background: var(--card);
        padding: 12px 14px;
        border-radius: 10px;
        min-width: 72px;
        text-align: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04)
    }

/* ====== Nav ====== */
nav {
    display: flex;
    gap: 12px
}

    nav a {
        padding: 8px 12px;
        border-radius: 10px;
        text-decoration: none;
        color: var(--muted)
    }

        nav a.primary {
            background: transparent;
            border: 1px solid rgba(0,0,0,0.06);
            color: #111
        }

/* ====== Two-column main ====== */
main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-top: 24px
}

.card {
    background: var(--card);
    padding: 18px;
    border-radius: 14px;
    box-shadow: var(--shadow)
}

h2 {
    margin: 0 0 12px 0
}

/* ====== RSVP destaque ====== */
.rsvp-section {
    text-align: center;
    background: #fff8fa;
    padding: 3rem 1rem;
}

    .rsvp-section h2 {
        color: #b44e6d;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

iframe {
    width: 100%;
    border: none;
}

/* ====== RSVP antigo (apagar) ====== */
.rsvp-spot {
    border: 2px dashed rgba(214,51,108,0.12);
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg,rgba(214,51,108,0.03),transparent)
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px
}

input[type=text], input[type=email], select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #E6E6E9;
    margin-top: 6px
}

.row {
    display: flex;
    gap: 10px
}

    .row .col {
        flex: 1
    }

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer
}

    button.secondary {
        background: #fff;
        color: var(--accent);
        border: 1px solid rgba(214,51,108,0.12)
    }

/* ====== Gift list destaque ====== */
.gifts {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.gift-item, .gift-item-a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #F0E7EA
}

.gift-item-a {
    font-size: large;
    color: var(--accent) !important
}

.pix {
    background: linear-gradient(90deg,#FDF2F8,#FFF0F4);
    padding: 10px;
    border-radius: 10px
}

/* ====== Gallery Landscape ====== */
.gallery-grid-landscape {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top:12px;
}

    .gallery-grid-landscape img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px
    }

/* ====== Gallery Portrait ====== */
.gallery-grid-portrait {
    display: grid;
    grid-template-columns: repeat(2,1fr); /* menos colunas, fotos mais altas */
    gap: 12px;
}

    .gallery-grid-portrait img {
        width: 100%;
        height: 500px; /* altura maior para retrato */
        object-fit: cover;
        object-position: top; /* opcional: corta de cima */
        border-radius: 8px;
    }

/* ====== Footer ====== */
footer {
    margin-top: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 20px
}

.couple-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.couple {
    position: relative;
    width: 100%;
    height: 700px; /* ajuste se quiser */
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.couple:hover {
    transform: scale(1.02);
}

.pw-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 600;
    color: #D6336C; /*var(--accent);*/
    text-align: center;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --- DESKTOP (hover normal) --- */
.couple:hover .pw-title-overlay {
    opacity: 1;
}

/* ====== Responsiveness ====== */
@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    main {
        grid-template-columns: 1fr
    }

    .hero-card {
        order: 2
    }

    .couple-photo {
        height: 300px;
        border-radius: 0px;
    }

    .couple-avatar {
        height: 500px
    }

    .gallery-grid-landscape, .gallery-grid-portrait {
        grid-template-columns: repeat(2,1fr)
    }
}

/* --- MOBILE: overlay aparece automaticamente --- */
@media (max-width: 768px) {

    /* Remove efeito de hover no mobile */
    .couple:hover .pw-title-overlay {
        opacity: 0;
    }

    .pw-title-overlay {
        opacity: 0;
        animation: mobileFadeIn 2s ease forwards 0.8s; /* 0.8s antes de surgir */
        font-size: 1.8rem;
    }

    @keyframes mobileFadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}