@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

.infos-header {
    text-align: center;
    padding: 36px 18px 16px;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.infos-main {
    max-width: 1000px;
    margin: 26px auto;
    padding: 0 18px 80px;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

.section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.16);
}

.section h2 {
    margin: 0 0 10px;
    font-family: var(--mono);
}

.section p,
.section ul,
.section li {
    font-family: var(--grotesk);
    color: var(--muted);
    line-height: 1.5;
    font-size: 18px;
}

.section ul {
    margin: 6px 0 0 18px;
}

.map-frame {
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
    background: #e6e6e6;
}

.map-link {
    margin-top: 8px;
}

.map-link a {
    color: var(--text);
    font-family: var(--mono);
    text-decoration: underline;
}

:root {
    --bg: #ffffff;
    --pink: #ffffff;
    --accent: #ffffff;
    --shadow: rgba(0, 0, 0, 0.25);
    --text: #640000;
    --muted: #6a5f55;
    --drop: #9c8e5d;
    --card-bg: #fff7e6;
    --button-bg-hover: #fff6e6;
    --button-bg: #FFF4D4;
    --rounded: 12px;
    --mono: "Libre Bodoni", serif;
    --grotesk: "Libre Bodoni", serif;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    scrollbar-gutter: none;
    scrollbar-width: none;
}

body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #f4f6f8;
    color: var(--text);
    font-family: var(--grotesk);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

main.page {
    flex: 1 0 auto;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 28px 0;
}

.masthead {
    padding: 15px 28px 0;
    text-align: center;
}

.title {
    font-family: var(--mono);
    font-size: 42px;
    letter-spacing: 5px;
    margin: 0;
}

.subtitle {
    font-family: var(--mono);
    font-size: 30px;
    margin: 0;
    letter-spacing: 5px;
}

.subsubtitle {
    font-family: var(--mono);
    font-size: 20px;
    margin: 0;
    margin-bottom: 15px;
    letter-spacing: 5px;
}

.hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    margin-top: 8px;
    min-height: 170px;
}

.photo-strip {
    background: #f4f6f8;
    padding: 8px 80px;
    border-radius: 18px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 1200px;
    width: 86%;
    min-width: 480px;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.polaroid {
    flex: 0 0 240px;
    width: 240px;
    background: #fff;
    padding: 10px 10px 16px;
    border-radius: 6px;
    transform-origin: center bottom;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.20);
    position: relative;
    margin-top: -36px;
}

.polaroid img {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
}

.polaroid-caption {
    margin-top: 8px;
    height: 15px;
    font-size: 12px;
    text-align: center;
    font-family: var(--mono);
}

.polaroid-1 {
    z-index: 1;
}

.polaroid-2 {
    margin-left: 10px;
    z-index: 1;
}

.polaroid-3 {
    margin-left: 10px;
    z-index: 1;
}

.polaroid-4 {
    margin-left: 10px;
    z-index: 1;
}

.countdown-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.countdown-card {
    margin-top: 30px;
    background: #fff;
    width: 450px;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.countdown-title {
    font-family: var(--mono);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 20px;
}

.countdown-display {
    background: #fff;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text);
    box-shadow: 6px 6px 0 var(--text);
}

.controls {
    width: 99vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 30px;
    height: 200px;
    background-image: url("bg-flores4.jpeg");
    background-position: center;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.btn {
    min-width: 160px;
    max-height: 80px;
    padding: 8px 8px;
    border-radius: 5px;
    border: none;
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: bold;
    background: #ffff;
    box-shadow: 4px 4px 0 var(--text);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 4px 4px 0 var(--text);
}

.btn:hover {
    background: #f4f6f8;
}

.page-footer {
    position: static;
    width: 100%;
    padding: 7px 7px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 0;
}

.page-footer * {
    margin-bottom: 0;
}

.footer-inner {
    max-width: 1200px;
    width: 86%;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--mono);
    font-size: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 90%;
    max-width: 560px;
    background: #f4f6f8;
    border-radius: 12px;
    font-size: 20px;
    padding: 18px 22px;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    max-height: 80vh;
    overflow: auto;
    transform: translateY(6px);
    transition: transform .18s ease;
}

.modal-backdrop.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    z-index: 130;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

#modalTitle {
    font-family: var(--mono);
    margin: 0 0 12px 0;
}

.form-row {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    align-items: center;
}

.form-row label {
    font-family: var(--mono);
    font-size: 20px;
    min-width: 80px;
}

.form-row input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: #ffff;
    border: 0px solid var(--muted);
    font-family: inherit;
    font-size: 20px;
    width: 100%;
}

.gift-list {
    display: grid;
    gap: 8px;
}

.gift-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 8px;
    background: #fbf6ec;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.04);
    font-family: var(--mono);
}

@media (max-width:920px) {
    .photo-strip {
        width: 90vw;
        padding: 8px 36px;
    }

    .controls {
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
        margin-top: 30px;
        height: 250px;
        background-image: url("bg-flores4.jpeg");
        background-position: center;
        border-radius: 16px;
        padding: 32px 28px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .polaroid {
        flex: none;
        width: 150px;
        background: #fff;
        padding: 10px 10px 16px;
        border-radius: 6px;
        transform-origin: center bottom;
        box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.20);
        position: relative;
        margin-top: -28px;
    }

    .polaroid img {
        height: 170px;
    }

    .polaroid-caption {
        height: 5px;
    }

    .polaroid-1 {
        display: none;
    }

    .polaroid-2 {
        margin-left: 1px;
        z-index: 1;
    }
    
    .polaroid-3 {
        margin-left: 1px;
        z-index: 1;
    }    

    .polaroid-4 {
        display: none;
    }

    .countdown-card {
        margin-top: 10px;
    }

    .controls {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        padding: 14px;
    }

    .btn {
        min-width: 220px;
        font-size: 15px;
    }

    .modal {
        font-size: 18px;
    }

    .form-row label {
        font-size: 16px;
    }

    .form-row input[type="text"] {
        font-size: 16px;
    }

    .footer-inner {
        width: 80%;
    }
}

@media (max-width:520px) {
    .photo-strip {
        padding: 6px 18px;
        min-width: 0;
        width: 96%;
    }

    .flower-left,
    .flower-right {
        display: none;
    }

    .title {
        font-size: 37px;
    }

    .modal {
        font-size: 18px;
    }

    .form-row label {
        font-size: 16px;
        min-width: 90px;
    }

    .form-row input[type="text"] {
        font-size: 16px;
    }

    .countdown-display {
    	font-size: 16px;
    }

    .subtitle {
        font-size: 25px;
    }

    .subsubtitle {
        font-size: 18px;
    }

}

@media (min-width:880px) {
    .infos-main {
        grid-template-columns: 40% 60%;
        grid-auto-rows: min-content;
    }

    .hospedagem {
        grid-column: 1;
    }

    .map {
        grid-column: 2;
    }
}


@media (max-width:520px) {
    .map-frame {
        height: 220px;
    }

    .title {
        font-size: 30px;
    }

    .subtitle {
        font-size: 22px;
    }

    .subsubtitle {
        font-size: 18px;
    }
}

.infos-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.infos-container.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-main-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-top, 0px) + 140px);
    right: 350px;
    left: auto;
    z-index: 9999;
    width: 70px;
    height: 70px;
    border-radius: 10%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 36px;
    background: #fff;
    box-shadow: 4px 4px 0 #640000;
    cursor: pointer;
    transition: transform .14s ease, opacity .12s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.98);
}

.back-to-main-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-main-btn svg {
    color: #640000;
    transform: scaleX(-1) scale(1.4);
}

.back-to-main-btn:active {
    transform: translateY(2px);
    box-shadow: 4px 4px 0 #640000;
}

.back-to-main-btn:hover {
    background: #f4f6f8;
}

@media (max-width:1800px) {
    .back-to-main-btn {
        right: 80px;
    }
}

@media (max-width:420px) {
    .back-to-main-btn {
        width: 58px;
        height: 58px;
        font-size: 20px;
        bottom: 50px;
        right: 25px;
    }

    .back-to-main-btn.visible {
        opacity: 1;
    }

    .back-to-main-btn svg {
        transform: scaleX(-1) scale(1.2);
    }
}

.bank-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start;
}

@media (max-width:920px) {
    .bank-grid {
        grid-template-columns: 1fr;
    }
}

.bank-details {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.bank-details h3 {
    margin-top: 0;
    font-family: var(--mono);
}

/* copy button */
.copy-btn {
    padding: 8px 8px;
    border-radius: 5px;
    border: none;
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: bold;
    background: var(--button-bg);
    box-shadow: 8px 8px 0 var(--drop);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.qrcode {
    background: #fff;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.qrcode svg {
    width: 240px;
    height: 240px;
    max-width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

.qrcode p {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    /* text-align: center; */
}

.bank-note {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 13px;
    color: #5b544d;
}

.section.qrcode {
    grid-column: 1 / -1;
}

.section.banco {
    grid-column: 1 / -1;
}

.bank-grid-inner {
    display: block;
    gap: 0;
}

.bank-details {
    padding: 22px;
    background: #fffdf7;
    border-radius: 12px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* header */
.bank-header .bank-note {
    margin: 0 0 6px 0;
    font-family: var(--mono);
    color: #6b5f53;
    font-size: 18px;
}

.bank-header h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 0.6px;
}

.pix-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    min-height: 100%;
}

.pix-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    min-width: 320px;
}

.pix-label {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--muted);
}

.pix-value {
    font-size: 20px;
    letter-spacing: 0.6px;
    color: var(--text);
    word-break: break-all;
}

.pix-actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.copy-btn {
    background: #fff;
    border: 0;
    padding: 6px 6px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #640000;
    font-family: var(--mono);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.copy-btn .copy-icon {
    font-size: 20px;
}

.copy-btn:hover {
    background: #f4f6f8;
}

.copy-btn:active {
    transform: translateY(1px);
    box-shadow: 4px 4px 0 #640000;
}

.bank-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.bank-field {
    font-family: var(--grotesk);
    color: var(--muted);
    font-size: 20px;
}

.bank-label {
    font-family: var(--mono);
    font-weight: 700;
    margin-right: 6px;
    color: #4a4038;
}

.bank-value {
    color: var(--muted);
}

.section.qrcode {
    grid-column: 1 / -1;
}

.pix-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
    margin-left: 200px;
    margin-right: 200px;
    margin-top: 16px;
}


.qrcode-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

.qrcode-display img {
    width: 120px;
    height: auto;
    max-width: 100%;
}

.qrcode-hint {
    font-family: var(--mono);
    color: var(--muted);
    text-align: center;
    margin: 8px 0 12px;
}

.qrcode-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

@media (max-width:920px) {
    .bank-header .bank-note {
        font-size: 18px;
    }

    .pix-row {
        flex-direction: column;
        align-items: center;
    }

    .pix-actions {
        justify-content: flex-start;
        margin-bottom: 15px;
    }

    .pix-box {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .pix-layout {
        grid-template-columns: 1fr;
        margin-left: 0px;
        margin-right: 0px;
        gap: 16px;
    }
}
