/*
Theme Name: HilarioeMichela Invite
Author: GVLAXY
Version: 4.0
Description: Convite digital de casamento premium — Hilário & Michela
*/

/* ===========================
   CSS VARIABLES
   =========================== */

:root {
    --gold: #d4af37;
    --gold-light: #e8d48b;
    --gold-dark: #b8962e;
    --lilac: #c8a2c8;
    --lilac-soft: #ede0ed;
    --lilac-bg: #f5eef5;
    --white: #ffffff;
    --cream: #f9f6f0;
    --cream-dark: #f0ebe1;
    --dark: #2a2a2a;
    --dark-card: #1e1e1e;
    --text: #3a2f23;
    --text-light: #5c4a3b;
    --text-muted: #8a7b6d;

    --font-script: 'Great Vibes', cursive;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --radius: 16px;
    --radius-lg: 28px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}


/* ===========================
   RESET & BASE
   =========================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(245, 238, 245, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(232, 212, 139, 0.16) 0%, transparent 50%),
        var(--cream);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Splash Lock & Content Fade-in Gate */
body.invite-locked {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

.invite-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.invite-opened .invite-content {
    opacity: 1;
    visibility: visible;
}


/* ===========================
   SCROLL REVEAL (utility)
   =========================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================
   SECTION TITLE (script font)
   =========================== */

.section-title-script {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    font-weight: 400;
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
}


/* ===========================
   1. HERO SECTION
   =========================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    opacity: 0;
    animation: heroEntrance 2s ease forwards;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.active {
    height: 75vh;
    height: 75dvh;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}

@keyframes heroEntrance {
    to {
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
    pointer-events: none;
}


/* --- Hero Phases --- */

.hero-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.hero-phase>* {
    pointer-events: auto;
}

/* Phase 1 */
.hero-phase-1 {
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-phase-1.hide {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none !important;
}

.hero-phase-1.hide>* {
    pointer-events: none !important;
}

/* Phase 2 */
.hero-phase-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero-phase-2.show {
    opacity: 1;
    transform: translateY(0);
}


/* --- Hero Phase 1 Content --- */

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 5vw, 2rem);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.4s ease forwards;
    animation-delay: 0.3s;
}

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 9vw, 4.2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.6s ease forwards;
    animation-delay: 0.6s;
}

.hero-names .amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
    margin: 0 4px;
}

.hero-date {
    margin-top: 1rem;
    letter-spacing: 4px;
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.6s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Botão VER CONVITE (CENTRADO) --- */

.hero-btn-wrapper {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUpBtn 1.8s ease forwards;
    animation-delay: 2s;
}

@keyframes fadeUpBtn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.btn-invite {
    display: inline-block;
    padding: 16px 56px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-invite:hover {
    background: var(--white);
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-invite:active {
    transform: scale(0.97);
}

.btn-invite::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 54px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: btnPulse 2.2s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 18px 8px rgba(255, 255, 255, 0.12);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* --- Hero Phase 2 Content --- */

.welcome-icon {
    margin-bottom: 1rem;
    opacity: 0.85;
    color: var(--white);
}

.hero-phase-2.show .welcome-icon {
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {

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

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

.welcome-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 0.4rem;
    color: var(--gold-light);
}

.welcome-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 2.6rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.65;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-arrow {
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {

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

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


/* ===========================
   2. COUNTDOWN
   =========================== */

.countdown-section {
    padding: 40px 20px;
    background: transparent;
    text-align: center;
}

.countdown-card {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease;
}

.countdown-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px;
    width: 100%;
}

.countdown-pretext {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    color: var(--text);
    margin-bottom: 1.2rem;
    opacity: 0.95;
    letter-spacing: 1px;
}

.countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 380px;
    margin: 0 auto;
    padding: 0;
}

.countdown-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 12px rgba(58, 47, 37, 0.03);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

.countdown-tagline {
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--text);
    margin-top: 1.5rem;
    opacity: 0.95;
}


/* ===========================
   3. OS NOIVOS
   =========================== */

.noivos-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.noivos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Noivo & Noiva Photo Framing --- */
.noivo-photo-frame {
    width: 170px;
    height: 170px;
    margin: 0 auto 24px;
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.noivo-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    display: block;
}

.noivo-photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px double var(--gold);
    pointer-events: none;
    opacity: 0.8;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.4s ease;
}

.noivo-photo-frame:hover {
    transform: scale(1.05);
}

.noivo-photo-frame:hover .noivo-photo-ring {
    transform: scale(1.06) rotate(15deg);
    opacity: 1;
    border-color: var(--gold-light);
}

.noivo-card {
    text-align: center;
}

.noivo-name {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.noivo-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 0.3rem;
}

.noivo-parent {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.noivo-e {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 2px 0;
}

.in-memoriam {
    display: block;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.85;
    margin-top: 2px;
    margin-bottom: 6px;
}

.noivos-heart {
    color: var(--gold);
    animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    56% {
        transform: scale(1);
    }
}


/* ===========================
   4. VERSÍCULO
   =========================== */

.verse-section {
    padding: 80px 20px;
    background: transparent;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.verse-overlay,
.rsvp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(249, 246, 240, 0.78);
    z-index: 1;
    pointer-events: none;
}

.verse-content,
.rsvp-inner {
    position: relative;
    z-index: 2;
}

.verse-content {
    max-width: 560px;
    margin: 0 auto;
}

.verse-quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: -10px;
}

.verse-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    line-height: 1.8;
    color: var(--text);
}

.verse-ref {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}


/* ===========================
   5. CONVITE
   =========================== */

.convite-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.convite-intro {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

.convite-guest-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.convite-guest-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}


/* --- Ivory Premium Cards --- */

.convite-card {
    max-width: 420px;
    margin: 2.5rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.convite-card-inner {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--radius-lg);
    color: var(--text);
    padding: 48px 28px;
    position: relative;
    box-shadow: 0 10px 30px rgba(58, 47, 37, 0.04);
    transition: all 0.4s ease;
}

.convite-card:hover {
    transform: translateY(-5px);
}

.convite-card:hover .convite-card-inner {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

/* Date header */
.convite-date-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1.2rem;
}

.convite-line {
    height: 1px;
    width: 60px;
    background: rgba(212, 175, 55, 0.3);
}

.convite-calendar-icon {
    color: var(--gold);
    opacity: 1;
}

.convite-day {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
}

.convite-full-date {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.convite-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
    margin: 1.5rem 0;
}

.convite-divider-small {
    height: 1px;
    width: 100px;
    margin: 1rem auto;
    background: rgba(212, 175, 55, 0.15);
}


/* Events */
.convite-event {
    padding: 8px 0;
}

.convite-event-icon {
    color: var(--gold);
    margin-bottom: 6px;
    opacity: 0.9;
}

.convite-event-name {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-style: italic;
    color: var(--text-light);
}

.convite-event-time {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 4px;
    color: var(--gold-dark);
}


/* Venues */
.convite-venues {
    margin-top: 1rem;
}

.convite-venue {
    margin-bottom: 1.2rem;
}

.convite-venue-pin {
    color: var(--gold);
    margin-bottom: 6px;
}

.convite-venue-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.convite-venue-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.convite-venue-separator {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    margin: 0.8rem 0;
    font-style: italic;
}


/* NB note */
.convite-nb {
    max-width: 420px;
    margin: 1.5rem auto 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ===========================
   6. LOCALIZAÇÃO
   =========================== */

.location-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.location-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.location-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    box-shadow: 0 10px 30px rgba(58, 47, 37, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.location-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.location-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.location-venue {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.location-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-map:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}


/* ===========================
   7. DRESS CODE
   =========================== */

.dresscode-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.dresscode-content {
    max-width: 400px;
    margin: 0 auto;
}

.dresscode-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

.dresscode-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dresscode-type {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.dresscode-colors {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 1.5rem;
}

.dresscode-swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dresscode-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(58, 47, 37, 0.1);
    border: 2px solid var(--white);
    transition: transform 0.3s ease;
}

.dresscode-swatch-wrap:hover .dresscode-swatch {
    transform: scale(1.12);
}

.dresscode-swatch-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ===========================
   8. RSVP
   =========================== */

.rsvp-section {
    padding: 80px 20px;
    background: transparent;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: 0 10px 30px rgba(58, 47, 37, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease;
}

.rsvp-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.rsvp-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.rsvp-field {
    margin-bottom: 1.5rem;
}

.rsvp-field label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rsvp-field input[type="text"],
.rsvp-field select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.rsvp-field input[type="text"]:focus,
.rsvp-field select:focus {
    border-color: var(--lilac);
    box-shadow: 0 0 0 4px rgba(200, 162, 200, 0.15);
}

.rsvp-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238a7b6d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


/* Toggle (Confirmo / Não poderei ir) */

.rsvp-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rsvp-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.rsvp-toggle-btn:hover {
    border-color: var(--lilac);
}

.rsvp-toggle-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.rsvp-toggle-btn.active.declined-active {
    background: #c0392b;
    border-color: #c0392b;
}


/* Submit */

.rsvp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 0.5rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.rsvp-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
}

.rsvp-submit:active {
    transform: translateY(0);
}

.rsvp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* Message */

.rsvp-message {
    margin-top: 1.2rem;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.rsvp-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.rsvp-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* ===========================
   9. CONTACTOS
   =========================== */

.contacts-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.contacts-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 50px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(58, 47, 37, 0.03);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 1px;
}


/* ===========================
   10. FOOTER
   =========================== */

.site-footer {
    padding: 50px 20px;
    background: var(--dark);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.footer-date {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.4;
}

.footer-credit a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ===========================
   BOTÃO MÚSICA (FIXO)
   =========================== */

.music-btn {
    position: fixed;
    bottom: 28px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    z-index: 100;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s, box-shadow 0.3s;
}

.music-btn.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.music-btn:hover {
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
    transform: scale(1.08);
}

.music-btn:active {
    transform: scale(0.95);
}

/* Playing = show pause icon */
.music-btn .music-icon-play {
    display: none;
}

.music-btn .music-icon-pause {
    display: block;
}

/* Paused = show play icon */
.music-btn.paused .music-icon-play {
    display: block;
}

.music-btn.paused .music-icon-pause {
    display: none;
}


/* ===========================
   RESPONSIVE — TABLET+
   =========================== */

@media (min-width: 768px) {
    .noivos-grid {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
    }

    .noivo-card {
        flex: 1;
        max-width: 320px;
    }

    .noivos-heart {
        align-self: center;
        margin-top: 1rem;
    }

    .location-cards {
        flex-direction: row;
        max-width: 700px;
    }

    .location-card {
        flex: 1;
    }

    .contacts-list {
        flex-direction: row;
        max-width: 500px;
    }

    .contact-item {
        flex: 1;
        justify-content: center;
    }
}


/* ===========================
   RESPONSIVE — MOBILE SMALL
   =========================== */

@media (max-width: 380px) {
    .hero.active {
        height: 70vh;
        height: 70dvh;
        border-bottom-left-radius: 32px;
        border-bottom-right-radius: 32px;
    }

    .btn-invite {
        padding: 14px 40px;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-btn-wrapper {
        bottom: 48px;
    }

    .countdown-boxes {
        gap: 8px;
    }

    .countdown-box {
        padding: 16px 6px;
    }

    .convite-card-inner {
        padding: 36px 20px;
    }

    .rsvp-toggle {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   NEW: GALERIA & LIGHTBOX STYLES
   ============================================ */

.gallery-section {
    padding: 80px 20px;
    background: transparent;
    text-align: center;
}

.gallery-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 34, 27, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-overlay svg {
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-overlay svg {
    transform: scale(1);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}


/* --- LIGHTBOX --- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2010;
    outline: none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.05);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    width: 50px;
    height: 50px;
}

.lightbox-next {
    right: 20px;
    width: 50px;
    height: 50px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-next {
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}