/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6e7a14;
    --color-primary-dark: #6e7a14;
    --color-bg: #f6f4ed;
    --color-bg-alt: #d7d69d;
    --color-text: #4a4a4a;
    --color-text-light: #7a7a7a;
    --color-white: #ffffff;
    --color-error: #c85a54;
    --font-serif: 'Cormorant Garamond', 'Bodoni Moda', 'Didot', Georgia, serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    /* Navbar height — measured & overridden by JS at runtime */
    --navbar-h: 56px;

    /* Schedule sizing — tied to viewport height; slightly tightened for breathing room */
    --zz-icon-size: clamp(58px, 8.8vh, 108px);
    --zz-time-size: clamp(18px, 3.2vh, 34px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

.view.hidden {
    display: none !important;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}


.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===== LOGIN VIEW ===== */
#login-view {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/Listras.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 460px;
    position: relative;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-section {
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.password-section.show {
    opacity: 1;
    pointer-events: all;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.password-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.password-content h2 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.password-content p {
    color: var(--color-primary-dark);
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-input {
    flex: 1;
    width: 100%;
    padding: 15px 52px 15px 20px;
    font-size: 16px;
    font-family: var(--font-sans);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-primary-dark);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(110, 122, 20, 0.1);
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-primary);
    opacity: 0.65;
    transition: opacity 0.2s ease;
    border-radius: 4px;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.password-toggle-icon {
    width: 22px;
    height: 22px;
}

.password-toggle .icon-eye-off { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }

.password-submit {
    padding: 15px 20px;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-message {
    color: var(--color-error);
    font-size: 14px;
    min-height: 20px;
    margin-top: 10px;
    margin-bottom: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-input.shake {
    animation: shake 0.5s ease;
    border-color: var(--color-error);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #8f8b40;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

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

.hero-names {
    margin: 0 0 28px;
    line-height: 0;
}

.hero-names-img {
    display: block;
    width: clamp(336px, 72vw, 744px);
    height: auto;
    margin: 0 auto;
}

.hero-date {
    margin-bottom: 15px;
}

.hero-date-text {
    font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-names-img {
        width: 92vw;
    }

    .hero-date-text {
        font-size: 18px;
        letter-spacing: 5px;
    }
}

/* ===== SECTIONS (shared) ===== */
.section {
    padding: 72px 48px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* paper texture + light bg — even sections override with alt bg below */
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Desktop: one section = one viewport, content vertically centered.
   We subtract the fixed navbar height so the bottom edge (and scroll arrow)
   stay inside the viewport when navigating to a section via hash/arrow. */
@media (min-width: 969px) {
    .section {
        min-height: calc(100svh - var(--navbar-h));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ===== SCROLL ARROW (single, fixed to viewport, desktop only) ===== */
.section-scroll-arrow {
    display: none;
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-primary-dark);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.section-scroll-arrow svg {
    width: 100%;
    height: 100%;
    animation: scrollArrowBounce 2.2s ease-in-out infinite;
}

.section-scroll-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

.section-scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (min-width: 969px) {
    .section-scroll-arrow {
        display: block;
    }
}

/* Alternating section background */
.venue-section,
.dresscode-section,
.prewedding-section,
.gifts-section {
    background-color: var(--color-bg-alt);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 300;
    color: var(--color-primary);
    text-align: center;
    margin: 0 auto 44px;
    max-width: 1200px;
    letter-spacing: 2px;
}


/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-bottom 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(110, 122, 20, 0.15);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar-toggle {
    display: none;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 20px;
    margin: 0 auto;
}

.navbar-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.navbar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.navbar.scrolled .navbar-link {
    color: var(--color-primary-dark);
}

.navbar.scrolled .navbar-link:hover {
    background: rgba(110, 122, 20, 0.12);
    color: var(--color-primary-dark);
}

.navbar.scrolled .navbar-link.active {
    background: var(--color-primary);
    color: #fff;
}

/* Mobile hamburger menu */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 12px 16px;
        z-index: 101;
    }

    .navbar-toggle-bar {
        display: block;
        width: 24px;
        height: 2px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s, background 0.3s;
    }

    .navbar.scrolled .navbar-toggle-bar {
        background: var(--color-primary-dark);
    }

    /* Animate to X when open */
    .navbar-toggle.open .navbar-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggle.open .navbar-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.open .navbar-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(110, 122, 20, 0.1);
    }

    .navbar-inner.open {
        display: flex;
    }

    .navbar-link {
        padding: 14px 24px;
        border-radius: 0;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        border-bottom: 1px solid rgba(110, 122, 20, 0.08);
    }

    .navbar-link:hover {
        background: rgba(110, 122, 20, 0.06);
    }

    .navbar-link.active {
        background: rgba(110, 122, 20, 0.1);
        color: var(--color-primary-dark);
        font-weight: 600;
    }
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 120px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(44px, 7vw, 70px);
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* ===== VENUE ===== */
.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.venue-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.venue-address {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.venue-map-link {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.venue-map-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.venue-title {
    margin-bottom: 24px;
}

.venue-photo-wrap {
    position: relative;
}

.venue-photo {
    width: 80%;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.venue-photo-frame {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    aspect-ratio: 2/3;
    background-color: #8f8b40;
    -webkit-mask-image: url('/icons/Margem.png');
    mask-image: url('/icons/Margem.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.prewedding-waves-icon {
    display: block;
    width: 220px;
    height: auto;
    margin: 36px auto 0;
    opacity: 0.9;
}

@media (max-width: 968px) {
    .venue-content {
        gap: 28px;
    }

    .venue-info {
        justify-content: flex-start;
    }

    .venue-address {
        margin-bottom: 24px;
    }

    .prewedding-waves-icon {
        width: 140px;
        margin: 22px auto 0;
    }
}

/* ===== SCHEDULE ZIGZAG ===== */
.schedule-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.schedule-section .section-title {
    margin-bottom: 22px;
}

.schedule-zigzag {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    /* JS inserts SVG path as first child */
}

.zz-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.zz-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: clamp(2px, 0.4vh, 8px);
    align-items: start;
    position: relative;
}

.zz-item:last-child {
    margin-bottom: 0;
}

.zz-panel {
    display: flex;
    flex-direction: column;
}

/* Content panels: pushed towards the outer edges so the path winds.
   Reduced from 36% so the larger marker (now containing icon) has room. */
.zz-panel-left {
    align-items: flex-end;
    text-align: right;
}

.zz-panel-right {
    align-items: flex-start;
    text-align: left;
}

.zz-panel-right:not(.zz-empty) {
    padding-left: 16%;
}

.zz-panel-left:not(.zz-empty) {
    padding-right: 16%;
}

/* Marker = time + dot + icon, all on one row.
   HTML order alternates: right-content items put time before icon (centerside),
   left-content items put icon before time (mirror). */
.zz-marker {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 1.2vh, 16px);
    margin-bottom: clamp(2px, 0.4vh, 6px);
}

.zz-dot {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: calc((var(--zz-icon-size) - 12px) / 2);
}

.zz-time {
    font-family: var(--font-serif);
    font-size: var(--zz-time-size);
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
    padding-top: calc((var(--zz-icon-size) - var(--zz-time-size)) / 2);
}

.zz-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.zz-icon {
    width: var(--zz-icon-size);
    height: var(--zz-icon-size);
    flex-shrink: 0;
}

/* Some icons have more whitespace baked into their PNG canvases, so scale
   them up visually to match the optical weight of the others. Using transform
   keeps the layout (and dot alignment) unchanged. */
.zz-icon[src*="champagne-bottle"],
.zz-icon[src*="disco-ball"] {
    transform: scale(1.35);
}

.zz-icon[src*="heart"],
.zz-icon[src*="cheers"] {
    transform: scale(1.2);
}

.zz-name {
    font-family: var(--font-serif);
    font-size: clamp(17px, 2.6vh, 28px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: clamp(2px, 0.4vh, 6px);
    line-height: 1.1;
}

.zz-desc {
    font-size: clamp(11px, 1.4vh, 15px);
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ===== DRESS CODE ===== */
.dresscode-section {
    text-align: center;
}

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

.dresscode-label {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.dresscode-desc {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: center;
}

/* ===== RSVP ===== */
.rsvp-section {
    text-align: center;
    background-image: url('/Listras.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rsvp-content {
    max-width: 680px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 48px 56px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rsvp-title {
    margin: 0 0 24px;
}

.rsvp-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 36px;
}

.rsvp-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvp-extra {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rsvp-extra[hidden] {
    display: none;
}

.rsvp-field label,
.rsvp-label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--color-text);
    border: 1px solid rgba(110, 122, 20, 0.3);
    border-radius: 4px;
    background: var(--color-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(110, 122, 20, 0.12);
}

.rsvp-form textarea {
    resize: vertical;
    min-height: 70px;
}

.rsvp-phone-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.rsvp-phone-row .rsvp-phone-code {
    text-align: center;
    min-width: 0;
}

.rsvp-phone-row .rsvp-phone-number {
    min-width: 0;
}

.rsvp-guests-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsvp-guests-list:empty {
    display: none;
}

.rsvp-guest-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.rsvp-guest-row input {
    flex: 1;
    min-width: 0;
}

.rsvp-remove-guest {
    flex: 0 0 38px;
    background: transparent;
    border: 1px solid rgba(110, 122, 20, 0.3);
    color: var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rsvp-remove-guest:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.rsvp-add-guest {
    align-self: flex-start;
    margin-top: 4px;
    background: transparent;
    border: 1px dashed rgba(110, 122, 20, 0.5);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rsvp-add-guest:hover {
    background: rgba(110, 122, 20, 0.06);
    border-color: var(--color-primary);
}

.rsvp-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.rsvp-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-text);
    cursor: pointer;
}

.rsvp-radio input {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

.rsvp-submit {
    margin-top: 6px;
    padding: 13px 30px;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsvp-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rsvp-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rsvp-status {
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--color-primary-dark);
}

.rsvp-status.error {
    color: var(--color-error);
}

/* ===== PRE-WEDDING (home teaser) ===== */
.prewedding-section {
    text-align: center;
}

.prewedding-date {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary-dark);
    text-align: center;
    margin: 0 0 22px;
    letter-spacing: 1px;
}

.prewedding-content {
    max-width: 760px;
    margin: 0 auto;
}

.prewedding-intro {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* ===== TRANSPORT ===== */
.transport-section {
}

.transport-content {
    max-width: 960px;
    margin: 0 auto;
}

.transport-intro {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 40px;
}

.transport-step {
    display: flex;
    gap: 44px;
    margin-bottom: 56px;
    align-items: flex-start;
}

.transport-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    margin-top: 2px;
}

.transport-step-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.transport-step-body p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.transport-options {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transport-options li {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
}

.transport-options li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 9px;
    height: 9px;
    background: var(--color-primary);
    border-radius: 50%;
}

.transport-option {
    padding: 18px 22px;
    border-left: 3px solid var(--color-primary);
    background: rgba(110, 122, 20, 0.05);
    border-radius: 0 6px 6px 0;
    margin-bottom: 14px;
}

.transport-option h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin: 0 0 6px;
}

.transport-option p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.transport-option a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 122, 20, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.transport-option a:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.transport-note {
    text-align: center;
    font-size: 15px;
    color: var(--color-primary);
    background: rgba(110, 122, 20, 0.08);
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 10px;
    line-height: 1.6;
    font-style: italic;
}

/* ===== GIFTS ===== */
.gifts-section {
    text-align: center;
}

.gifts-content {
    max-width: 860px;
    margin: 0 auto;
}

.gifts-message {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 44px;
}

.gifts-pix {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.gifts-pix h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--color-primary-dark);
    margin-bottom: 26px;
}

.pix-details {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pix-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pix-value.pix-link {
    text-decoration: none;
}

.pix-value.pix-link:hover {
    text-decoration: underline;
}

.pix-label {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.pix-value {
    font-family: monospace;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    padding: 8px 14px;
    border-radius: 4px;
}

.pix-value a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.copy-btn {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.copy-btn.copied {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===== COUPLE MESSAGE ===== */
.couple-message-section {
    text-align: center;
    background: #8f8b40;
    color: #fff;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.couple-message {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.couple-message p {
    font-size: 17px;
    line-height: 1.75;
    color: #fff;
    margin-bottom: 22px;
}

.couple-message p:last-child {
    margin-bottom: 0;
}

.couple-message-signoff {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px !important;
    color: #fff !important;
    margin-top: 40px !important;
    letter-spacing: 1px;
}

.signoff-greeting {
    display: inline-block;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 17px;
    letter-spacing: normal;
    margin-bottom: 6px;
}

.couple-message-icon {
    display: block;
    width: 104px;
    height: 104px;
    margin: 36px auto 0;
    background-color: #fff;
    -webkit-mask-image: url('/icons/anturio.png');
    mask-image: url('/icons/anturio.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (min-width: 969px) {
    .couple-message-icon {
        width: 180px;
        height: 180px;
        margin-top: 52px;
    }
}

/* ===== GUIDES SECTION ===== */
.guides-section {
    text-align: center;
}

.guides-intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    opacity: 0.85;
}

.guide-card-icon {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin-bottom: 20px;
}

@media (min-width: 969px) {
    .guide-card-icon {
        width: 128px;
        height: 128px;
    }
}

.guide-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.3;
}

.guide-card-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.55;
    text-align: center;
}

/* ===== SUBPAGE LAYOUT ===== */
.subpage-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.subpage-back {
    padding: 20px 30px;
    padding-top: 70px;
    background: var(--color-bg);
}

.back-link {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary-dark);
}

.subpage-hero {
    text-align: center;
    padding: 60px 20px 70px;
    background: linear-gradient(160deg, #f1e7d1 0%, #d7d69d 100%);
}

.subpage-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 300;
    color: var(--color-primary-dark);
    letter-spacing: 2px;
}

.subpage-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 30px;
}

.subpage-intro {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}

.subpage-section-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 300;
    color: var(--color-primary);
    text-align: center;
    margin: 56px 0 28px;
    letter-spacing: 2px;
}

.subpage-section-title:first-of-type {
    margin-top: 0;
}

/* ===== INFO CARDS (restaurants, tours, etc.) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.info-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.info-card-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary);
}

.price-tag {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-bg-alt);
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-left: 10px;
}

.info-card-meta {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.info-card-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.info-card-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-bg-alt);
}

.info-card-details p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== SCHEDULE TIMELINE (pre-wedding) ===== */
.schedule-note {
    background: var(--color-white);
    border-left: 4px solid var(--color-primary);
    padding: 24px 30px;
    margin-bottom: 48px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
}

.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.schedule-day {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.schedule-day-header {
    background: var(--color-primary);
    padding: 18px 30px;
}

.schedule-date {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.schedule-day-content {
    padding: 32px;
}

.schedule-day-content h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.schedule-day-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .section {
        padding: 80px 32px;
    }

    .login-container {
        padding: 40px 20px;
    }

    .venue-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 70px 24px;
    }

    .countdown-timer {
        gap: 20px;
    }

    .zz-path-svg {
        display: none;
    }

    .schedule-zigzag {
        position: relative;
        padding-left: 50px;
        max-width: 480px;
    }

    /* Vertical timeline rail — animates in when section becomes visible */
    .schedule-zigzag::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 6px;
        bottom: 6px;
        width: 1.5px;
        background: rgba(110, 122, 20, 0.55);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 2s cubic-bezier(0.45, 0.05, 0.35, 1) 0.2s;
    }

    .schedule-section.visible .schedule-zigzag::before {
        transform: scaleY(1);
    }

    .zz-item {
        grid-template-columns: 1fr;
        margin-bottom: 26px;
        position: relative;
    }

    .zz-empty {
        display: none;
    }

    /* Higher-specificity selectors needed to beat desktop's :not(.zz-empty) padding rules */
    .zz-panel-left,
    .zz-panel-right,
    .zz-panel-left:not(.zz-empty),
    .zz-panel-right:not(.zz-empty) {
        align-items: flex-start;
        text-align: left;
        padding: 0;
    }

    /* Stack: time row (with dot on rail), then icon + text row */
    .zz-marker {
        flex-direction: column !important;
        align-items: stretch;
        gap: 8px;
        position: static;
    }

    /* HTML order alternates (time/dot/icon vs icon/dot/time) — normalize via order */
    .zz-marker .zz-time { order: 1; }
    .zz-marker .zz-dot { order: 2; }
    .zz-marker .zz-icon-col { order: 3; }

    .zz-dot {
        display: block;
        position: absolute;
        left: -37px;
        top: 5px;
        width: 11px;
        height: 11px;
        margin: 0;
        background: var(--color-primary);
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0 0 5px var(--color-bg);
    }

    .zz-time {
        font-size: 15px;
        line-height: 1.2;
        padding-top: 0;
        letter-spacing: 1.5px;
        font-family: var(--font-sans);
        font-weight: 500;
        text-transform: uppercase;
    }

    /* Icon on the left, name + desc stacked to its right */
    .zz-icon-col {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon name"
            "icon desc";
        column-gap: 14px;
        row-gap: 2px;
        align-items: center;
        text-align: left;
    }

    .zz-icon {
        grid-area: icon;
        width: 48px;
        height: 48px;
        margin: 0;
        align-self: center;
    }

    .zz-name {
        grid-area: name;
        font-size: 22px;
        margin-bottom: 0;
        align-self: end;
        line-height: 1.1;
    }

    .zz-desc {
        grid-area: desc;
        font-size: 13px;
        align-self: start;
        line-height: 1.35;
    }

    .pix-item {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }

    .password-content {
        padding: 40px 25px;
    }

    .password-content h2 {
        font-size: 26px;
    }

    .language-selector {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

}

/* ===== SUBPAGE LAYOUT ===== */
.subpage-view {
    min-height: 100vh;
    background: var(--color-bg);
}

.subpage-back {
    padding: 16px 24px;
    padding-top: 44px;
}

.back-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-primary-dark);
}

.subpage-hero {
    text-align: center;
    padding: 40px 20px 50px;
}

.subpage-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.subpage-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.subpage-intro {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 44px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-section-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    margin: 56px 0 28px;
    letter-spacing: 1px;
}

/* ===== INFO CARDS (restaurants, tours, beleza, travel) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.info-card-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.price-tag {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(110, 122, 20, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.info-card-meta {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.info-card-body {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
}

.info-card-details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.info-card-details p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-card--with-image {
    padding-top: 0;
    overflow: hidden;
}

.info-card-image {
    display: block;
    width: calc(100% + 72px);
    margin: 0 -36px 24px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* ===== SCHEDULE TIMELINE (pre-wedding) ===== */
.schedule-note {
    text-align: center;
    font-size: 16px;
    color: var(--color-primary);
    background: rgba(110, 122, 20, 0.08);
    padding: 24px 30px;
    border-radius: 8px;
    margin-bottom: 56px;
    line-height: 1.6;
    font-style: italic;
}

.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.schedule-day {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.schedule-day-header {
    background: var(--color-primary);
    padding: 18px 30px;
}

.schedule-date {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.schedule-day-content {
    padding: 32px;
}

.schedule-day-content h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.schedule-day-content p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

/* ===== SUBPAGE RESPONSIVE ===== */
@media (max-width: 600px) {
    .subpage-back {
        padding: 15px 20px;
        padding-top: 55px;
    }

    .subpage-hero {
        padding: 30px 20px 40px;
    }

    .subpage-content {
        padding: 0 20px 60px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile body text sizing ===== */
@media (max-width: 768px) {
    .info-card-body,
    .info-card-meta,
    .info-card-details p,
    .guides-intro,
    .subpage-intro,
    .rsvp-intro,
    .venue-address,
    .dresscode-desc,
    .organizer-card p,
    .prewedding-intro,
    .gifts-message {
        font-size: 14px;
    }

    .couple-message-section {
        padding: 48px 22px;
    }

    .couple-message p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .couple-message-signoff {
        font-size: 21px !important;
        line-height: 1.5 !important;
        margin-top: 26px !important;
    }

    .signoff-greeting {
        font-size: 14px;
    }

    /* Guides & Tips — fit in a single iPhone screen without resizing icons or text */
    .guides-section {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px 20px;
    }

    .guides-section .section-title {
        margin-bottom: 16px;
    }

    .guides-section .guides-intro {
        margin-bottom: 14px;
        line-height: 1.45;
    }

    .guides-grid {
        gap: 10px;
    }

    .guide-card {
        padding: 10px 6px;
    }

    .guide-card-icon {
        margin-bottom: 8px;
    }

    .guide-card-title {
        margin-bottom: 4px;
    }

    .guide-card-desc {
        line-height: 1.35;
    }
}
