/* ==================== Variáveis de Cores ==================== */
:root {
    --creme:        #f4eade;
    --rosa-quartzo: #f5e4ea;
    --rose-cota:    #cb898d;
    --oliva:        #737858;
    --rose-emp:     #906d51;
    --terra-cotta:  #8B7355;
    --dark-brown:   #5D4E37;
    --light-bg:     #FBF8F3;
}

/* ==================== Reset e Estilos Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-brown);
    line-height: 1.6;
}

/* ==================== Header / Navbar ==================== */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-brown);    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--rose-emp);
}

/* ==================== Hero Section ==================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(245, 230, 211, 0.3) 0%, rgba(193, 122, 158, 0.1) 100%);
}

.hero-content {
    text-align: center;
}

.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-date {
    font-size: 1rem;
    color: var(--dark-brown);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.italic{
    font-size: 0.8em;
    font-style: italic;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bouquet-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== Grande Dia Section ==================== */
.grande-dia {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.inicio-content {
    text-align: center;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    display: flex;
}

.grande-dia-content {
    text-align: center;
    padding: 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.grande-dia-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.desktop{
    display: block;
}

.mobile{
    display: none;
}

.grande-dia-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.grande-dia-local {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.map-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-rsvp {
    background-color: var(--terra-cotta);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-rsvp:hover {
    background-color: var(--rose-emp);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(141, 79, 85, 0.3);
}

/* ==================== PIX Styles ==================== */
.pix-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding: 0 0 1.5em 0;
}

.pix-section {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--rosa-quartzo);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pix-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pix-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.pix-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-brown);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.pix-number:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.grande-dia-image {
    display: flex;
    justify-content: center;
}

.bouquet-side {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== Nossas Cores Section ==================== */
.cores {
    padding: 4rem 2rem;
    text-align: center;
    background-color: white;
    margin: 3rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cores-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.color-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.color {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.color-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-brown);
    text-align: center;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--dark-brown);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* ==================== Responsividade ==================== */
@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }

    .galeria-grid img {
        height: 180px;
    }
    .nav-menu {
        gap: 1rem;
        font-size: 0.65rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 1rem 0 0 0;
    }

    .hero-names {
        font-size: 2.2rem;
    }

    .grande-dia {
        grid-template-columns: 1fr;
        padding: 2rem 0 0 0;
        margin: 1em 0 0 0;
    }

    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    .inicio-content{
        padding: 1em 0 0 0;
        display: block;
    }

    .grande-dia-content{
        padding: 1em 0 0 0;
    }

    section{
        margin: 1em 0 0 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cores-palette {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .color {
        width: 100px;
        height: 100px;
    }

    .pix-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-names {
        font-size: 1.8rem;
    }

    .cores-palette {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Tempo de casados ==================== */
#marriage-counter {
    position: absolute;
    top: 7rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1.1rem .7rem .8rem;
    background: linear-gradient(180deg, rgba(244,234,222,.97), rgba(245,228,234,.97));
    color: var(--dark-brown);
    border: 1px solid rgba(93,78,55,.1);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0,0,0,.1);
    z-index: 900;
}
.marriage-heart {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rose-emp);
    color: #fff;
}
.marriage-copy { display: flex; flex-direction: column; gap: .05rem; }
.marriage-label { font-size: .61rem; font-weight: 600; letter-spacing: .13em; }
#marriage-duration { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.marriage-since { font-size: .61rem; color: var(--dark-brown); opacity: .85; }
@media (max-width: 650px) {
    #marriage-counter {
        position: static;
        width: fit-content;
        margin: .75rem auto;
        display: flex;
        padding: .6rem .9rem;
        max-width: calc(100% - 2rem);
    }
    #marriage-duration { font-size: 1.05rem; }
}

/* ==================== Memórias e convidados ==================== */
.nav-menu .nav-guests { color: var(--rose-emp); background: #f1e6da; border-radius: 6px; padding: .5rem .7rem; font-weight: 600; }
.home-eyebrow { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--rose-emp); margin-bottom: 7px; }
.home-guests { width: min(1120px, calc(100% - 64px)); margin: 1.5rem auto 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 25px 28px; background: #f1e8dd; border: 1px solid #e5d8c8; border-radius: 14px; }
.home-guests-copy { display: flex; align-items: center; gap: 20px; min-width: 0; }
.home-guests-heart { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #cfbba5; border-radius: 50%; color: var(--rose-emp); font-size: 2rem; line-height: 1; }
.home-guests h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 5px; line-height: 1.25; }
.home-guests-copy p:last-child { color: #786a59; font-size: .74rem; line-height: 1.6; }
.home-guests-link { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 17px; border: 1px solid var(--rose-emp); border-radius: 8px; background: var(--rose-emp); color: #fff; text-decoration: none; font-size: .74rem; font-weight: 500; transition: background .18s ease; }
.home-guests-link:hover { background: #79573f; }
.home-guests-link:focus-visible, .gallery-card a:focus-visible, .gallery-card button:focus-visible { outline: 3px solid var(--rose-emp); outline-offset: 4px; }

.galeria-section { width: min(1120px, calc(100% - 64px)); margin: 0 auto 3.5rem; padding: 0; scroll-margin-top: 110px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.gallery-heading .section-title { margin-bottom: 9px; letter-spacing: -.02em; font-size: 2.2rem; line-height: 1.2; }
.gallery-heading > div > p:last-child { color: #786a59; font-size: .8rem; }
.gallery-total { flex-shrink: 0; padding: 7px 12px; background: #f0e5d9; border: 1px solid #e6d8c8; border-radius: 999px; color: #80624a; font-size: .72rem; }
.gallery-card { border: 1px solid #e5dace; border-radius: 18px; overflow: hidden; background: #fffdfa; box-shadow: 0 12px 36px #5d4e370b; }
.gallery-stage { height: clamp(280px, 58vh, 620px); position: relative; display: grid; place-items: center; background: #ece4d9; overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 0; box-shadow: none; transition: opacity .15s ease; }
.gallery-stage[aria-busy="true"] img { opacity: .65; }
.gallery-stage[aria-busy="true"]::after { content: 'Carregando foto…'; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #fffdf2ed; border-radius: 999px; color: var(--dark-brown); padding: 7px 12px; font-size: .7rem; pointer-events: none; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #fff8; border-radius: 50%; background: #fffdf4ed; color: #5d4e37; font-family: Georgia, serif; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 14px #251d1520; transition: background .18s ease; }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow:disabled { opacity: .4; cursor: default; }
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; }
.gallery-toolbar p { font-size: .75rem; font-weight: 500; color: #786a59; }
.gallery-toolbar a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #e9ded2; border-radius: 7px; font-size: .72rem; color: #80624a; text-decoration: none; }
.gallery-toolbar a:hover { background: #f6eee4; }
.gallery-toolbar a > span { font-size: 1.2rem; line-height: 1; }
.gallery-thumbnails { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 18px; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: #cbb8a2 #f7f0e7; }
.gallery-thumb { display: block; flex: 0 0 96px; height: 70px; border: 2px solid transparent; border-radius: 8px; padding: 3px; background: #f4ede3; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .7; border-radius: 4px; box-shadow: none; transition: opacity .18s ease; }
.gallery-thumb:hover img, .gallery-thumb[aria-current="true"] img { opacity: 1; }
.gallery-thumb[aria-current="true"] { border-color: #a07755; }
.gallery-hint { margin-top: 14px; text-align: center; color: #786a59; font-size: .7rem; line-height: 1.7; }
.gallery-status { color: #8b493b; text-align: center; font-size: .8rem; margin-top: 14px; }
.gallery-status:empty { display: none; }
.gallery-empty { padding: 38px 22px; background: #f1e8dd; border: 1px solid #e5d8c8; border-radius: 12px; color: #786a59; text-align: center; }

body.gallery-open { overflow: hidden; }
.gallery-dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 18px; border: 0; border-radius: 16px; background: #28231f; color: #faf1e5; box-shadow: 0 20px 80px #0005; }
.gallery-dialog::backdrop { background: #17130fe8; backdrop-filter: blur(4px); }
.gallery-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; }
.gallery-modal-header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; line-height: 1.3; font-weight: 400; }
#gallery-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ffffff30; border-radius: 50%; background: transparent; color: inherit; font-size: 1.6rem; cursor: pointer; }
#gallery-close:hover { background: #ffffff18; }
.gallery-dialog :focus-visible { outline: 2px solid #dfbd98; outline-offset: 3px; }
.gallery-modal-stage { position: relative; height: min(68vh, 740px); display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.gallery-modal-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; box-shadow: none; }
.gallery-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: .72rem; }
.gallery-modal-footer a { color: inherit; border: 1px solid #ffffff40; border-radius: 7px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.gallery-modal-footer a:hover { background: #ffffff12; }

@media (max-width: 768px) {
    .header { padding: .8rem 0; }
    .navbar { flex-direction: column; gap: .5rem; padding: 0 1rem; }
    .nav-logo { font-size: 1.5rem; }
    .nav-menu { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .3rem .8rem; }
    .nav-menu a { display: block; font-size: .62rem; letter-spacing: .04em; padding: .3rem .1rem; }
    .nav-menu .nav-guests { padding: .3rem .55rem; }
    .home-guests { width: calc(100% - 32px); margin: 1.5rem auto 2.5rem; flex-direction: column; align-items: stretch; padding: 22px; gap: 20px; }
    .home-guests-copy { gap: 14px; }
    .home-guests-heart { flex-basis: 40px; width: 40px; height: 40px; font-size: 1.7rem; }
    .home-guests h2 { font-size: 1.2rem; }
    .home-eyebrow { font-size: .57rem; letter-spacing: .1em; }
    .home-guests-copy p:last-child { font-size: .65rem; }
    .home-guests-link { font-size: .73rem; }
    .galeria-section { width: calc(100% - 32px); margin-bottom: 2.5rem; scroll-margin-top: 140px; }
    .gallery-heading { align-items: flex-start; gap: 14px; margin-bottom: 18px; }
    .gallery-heading .section-title { font-size: 1.7rem; }
    .gallery-heading > div > p:last-child { font-size: .72rem; }
    .gallery-total { padding: 6px 9px; font-size: .62rem; margin-top: 24px; }
    .gallery-stage { height: clamp(220px, 54vw, 400px); }
    .gallery-arrow { width: 44px; height: 44px; font-size: 1.8rem; }
    .gallery-arrow-prev { left: 10px; }
    .gallery-arrow-next { right: 10px; }
    .gallery-toolbar { padding: 10px 14px; gap: 10px; }
    .gallery-toolbar p, .gallery-toolbar a { font-size: .66rem; }
    .gallery-toolbar a { padding: 10px; }
    .gallery-thumbnails { gap: 7px; padding: 0 12px 14px; }
    .gallery-thumb { flex-basis: 84px; height: 60px; }
    .gallery-hint { font-size: .63rem; }
    .gallery-dialog { width: calc(100% - 16px); padding: 12px; max-height: calc(100dvh - 16px); border-radius: 12px; }
    .gallery-modal-header { gap: 12px; }
    .gallery-modal-header h2 { font-size: .95rem; }
    .gallery-modal-stage { height: min(62dvh, 620px); }
    .gallery-modal-footer { font-size: .63rem; gap: 8px; }
    .gallery-modal-footer a { padding: 10px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery-stage img, .gallery-thumb img, .gallery-arrow, .home-guests-link { transition: none; }
}
