/* =====================================================================
   ??ER?K B?L?MLER? ? Davetiye, Geri Say?m, Hikaye, Galeri, RSVP...
   ===================================================================== */

/* ---------------------------------------------------------------------
   Ana sayfa hero ? krem / sol metin / sa? kart
--------------------------------------------------------------------- */
.invite-page.home-hero {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--c-cream);
    color: var(--c-text);
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: #ebe4da;
}

/* Soft floral photo-like blur field */
.home-hero-bg-blur {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(ellipse 45% 40% at 18% 30%, rgba(196, 120, 120, 0.45), transparent 60%),
        radial-gradient(ellipse 40% 45% at 82% 25%, rgba(166, 139, 103, 0.5), transparent 62%),
        radial-gradient(ellipse 50% 40% at 70% 78%, rgba(140, 110, 80, 0.35), transparent 65%),
        radial-gradient(ellipse 35% 35% at 30% 75%, rgba(150, 170, 120, 0.32), transparent 60%),
        radial-gradient(ellipse 55% 50% at 50% 50%, rgba(242, 220, 200, 0.7), rgba(232, 214, 190, 0.4) 50%, transparent 75%),
        linear-gradient(145deg, #f3ebe2 0%, #e8d9c8 45%, #dcc9b4 100%);
    filter: blur(36px) saturate(1.05);
    transform: scale(1.08);
    animation: home-bg-drift 26s ease-in-out infinite alternate;
}

.home-hero-bg-pattern {
    position: absolute;
    inset: -6%;
    background:
        url('../images/hero-botanical.svg') right 4% center / min(680px, 72vw) no-repeat,
        url('../images/hero-botanical.svg') left -10% bottom -5% / min(480px, 64vw) no-repeat;
    opacity: 0.28;
    filter: blur(0.4px);
}

.home-hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 48% 55% at 78% 45%, rgba(166, 139, 103, 0.16), transparent 65%),
        radial-gradient(ellipse 40% 40% at 22% 60%, rgba(196, 173, 138, 0.12), transparent 60%);
}

.home-hero-bg-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(242, 238, 233, 0.55) 0%, rgba(242, 238, 233, 0.38) 45%, rgba(242, 238, 233, 0.5) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@keyframes home-bg-drift {
    from { transform: scale(1.08) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, 1.2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-bg-blur,
    .home-hero-bg-pattern { animation: none; }
}

/* Falling roses / leaves */
.petal-fall {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.petal-fall-item {
    position: absolute;
    top: -12%;
    left: var(--x, 50%);
    width: var(--size, 20px);
    height: auto;
    color: #c4a07a;
    animation: petal-fall-down var(--duration, 14s) linear var(--delay, 0s) infinite;
    will-change: transform;
}

.petal-fall-item svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(42, 43, 38, 0.12));
}

.petal-fall-item.is-leaf { opacity: 0.7; }
.petal-fall-item.is-bud { opacity: 0.65; }

@keyframes petal-fall-down {
    0% {
        transform: translate3d(0, -10vh, 0) rotate(0deg);
        opacity: 0;
    }
    8% { opacity: 1; }
    100% {
        transform: translate3d(var(--drift, 30px), 110vh, 0) rotate(var(--spin, 220deg));
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .petal-fall { display: none; }
}

.home-hero-shell {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0 auto;
    padding:
        calc(72px + env(safe-area-inset-top, 0px))
        clamp(16px, 4vw, 48px)
        clamp(16px, 2.5vh, 28px);
    display: flex;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.home-hero-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold-dark);
    font-weight: 500;
}

.home-hero-welcome {
    margin: 0 0 clamp(2px, 0.6dvh, 6px);
    font-family: var(--font-display);
    font-size: clamp(0.88rem, 1.8dvh, 1.08rem);
    font-style: italic;
    color: var(--c-text-muted);
}

.home-hero-names {
    margin: 0 0 clamp(4px, 0.9dvh, 10px);
    font-family: var(--font-script);
    font-size: clamp(2.1rem, 5.2dvh + 0.6vw, 4.1rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--c-gold);
    letter-spacing: 0.01em;
}

.home-hero-names span {
    font-family: var(--font-script);
    color: var(--c-gold-dark);
    margin: 0 0.1em;
}

.home-hero-lead {
    margin: 0 auto clamp(6px, 1.2dvh, 16px);
    max-width: 36em;
    font-size: clamp(0.82rem, 1.55dvh, 0.98rem);
    line-height: 1.5;
    color: var(--c-text-muted);
    text-align: center;
}

.home-hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto clamp(6px, 1dvh, 14px);
    padding: 0;
}

.home-hero-date-day {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6dvh, 2.55rem);
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.home-hero-date-rule {
    width: 1px;
    height: clamp(28px, 4.5dvh, 40px);
    background: rgba(166, 139, 103, 0.55);
    flex-shrink: 0;
}

.home-hero-date-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: var(--c-dark);
    line-height: 1.25;
}

.home-hero-date-meta small {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--c-gold-dark);
    margin-top: 3px;
}

.home-hero-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 0;
    width: 100%;
    max-width: 320px;
    margin: 0 auto clamp(8px, 1.4dvh, 16px);
    padding: 0;
    border-top: 1px solid rgba(166, 139, 103, 0.28);
    border-bottom: 1px solid rgba(166, 139, 103, 0.28);
}

.home-hero-countdown .count-box,
.countdown.home-hero-countdown .count-box {
    width: auto;
    margin: 0;
    padding: clamp(6px, 1.2dvh, 12px) 4px;
    text-align: center;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: relative;
}

.home-hero-countdown .count-box + .count-box::before,
.countdown.home-hero-countdown .count-box + .count-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(166, 139, 103, 0.28);
}

.home-hero-countdown .count-value,
.countdown.home-hero-countdown .count-value {
    color: var(--c-dark) !important;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.home-hero-countdown .count-label,
.countdown.home-hero-countdown .count-label {
    color: var(--c-gold-dark) !important;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-top: 4px;
    display: block;
}

.home-hero-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.home-hero-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    gap: 4px;
    min-width: 0;
    max-width: none;
    min-height: clamp(48px, 7.5dvh, 64px);
    padding: 6px 4px;
    border-radius: 8px;
    border: 1px solid rgba(166, 139, 103, 0.45);
    background: rgba(255, 255, 255, 0.82);
    color: var(--c-dark);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 6px 16px rgba(42, 43, 38, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-hero-btn-ico {
    width: clamp(24px, 3.6dvh, 30px);
    height: clamp(24px, 3.6dvh, 30px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(166, 139, 103, 0.16), rgba(166, 139, 103, 0.05));
    border: 1px solid rgba(166, 139, 103, 0.35);
    color: var(--c-gold-dark);
    font-size: 0.78rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-hero-btn-ico i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    line-height: 1;
}

/* FA y?klenmezse SVG yedek */
.home-hero-btn-svg {
    display: none;
    width: 14px;
    height: 14px;
}

html.fa-failed .home-hero-btn-ico i { display: none; }
html.fa-failed .home-hero-btn-svg { display: block; }

.home-hero-btn-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-hero-btn:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(166, 139, 103, 0.28);
}

.home-hero-btn:hover .home-hero-btn-ico {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-hero-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    margin: 0;
}

.home-hero-qr.is-empty {
    min-height: 0;
    margin: 0;
}

.home-hero-qr .invitation-qr {
    padding: 4px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid rgba(166, 139, 103, 0.3);
    line-height: 0;
}

.home-hero-qr .invitation-qr img,
.home-hero-qr .invitation-qr canvas {
    display: block;
    width: 64px !important;
    height: 64px !important;
}

.home-hero-qr .invite-qr-note {
    margin: 0;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    max-width: 6.5em;
    line-height: 1.35;
}

.home-hero-card.home-hero-united {
    position: relative;
    width: min(720px, 100%);
    max-width: 720px;
    height: 100%;
    max-height: none;
    margin: 0 auto;
    transform: none;
    animation: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.invite-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #3a2e1c;
    background:
        radial-gradient(120% 70% at 50% 0%, #fffdf9 0%, transparent 55%),
        linear-gradient(165deg, #faf6ef 0%, #f0e8db 50%, #e8dfd0 100%);
    border: 1px solid rgba(166, 139, 103, 0.4);
    box-shadow:
        0 28px 70px rgba(42, 43, 38, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
}

.invite-card.home-hero-card.home-hero-united {
    opacity: 1;
    transform: none;
    animation: home-united-in 0.9s var(--ease-smooth) both;
    border-radius: 10px;
    border: 1px solid rgba(166, 139, 103, 0.36);
    box-shadow:
        0 22px 56px rgba(42, 43, 38, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

@media (min-width: 1100px) {
    body.invite-ready .home-hero-shell {
        padding-left: clamp(16px, 4vw, 48px);
        padding-right: clamp(16px, 4vw, 48px);
    }

    .invite-card.home-hero-card.home-hero-united {
        border-radius: 12px;
    }
}

@keyframes home-united-in {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

#content-wrapper.revealed .invite-card:not(.home-hero-card) {
    animation: invite-sheet-in 1s var(--ease-smooth) forwards;
}

#content-wrapper.revealed .home-hero-shell {
    animation: invite-sheet-in 0.85s var(--ease-smooth) both;
}

@keyframes invite-sheet-in {
    0% { opacity: 0; transform: translateY(18px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.invite-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.invite-card-frame {
    position: absolute;
    inset: clamp(6px, 1.2dvh, 10px);
    border: 1px solid rgba(166, 139, 103, 0.28);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
}

@media (max-height: 760px) {
    .home-hero-united .invite-couple-art {
        display: none;
    }

    .invite-families {
        margin-bottom: 4px;
    }

    .invite-family-name {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .home-hero-lead {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-height: 680px) {
    .home-hero-united .invite-mono {
        width: 36px;
        height: 36px;
        margin-bottom: 2px;
    }

    .home-hero-united .invite-mono span {
        font-size: 0.68rem;
    }

    .invite-families {
        display: none;
    }

    .home-hero-countdown .count-label,
    .countdown.home-hero-countdown .count-label {
        font-size: 0.52rem;
    }
}

.invite-card-body {
    position: relative;
    z-index: 3;
    padding: 20px 18px 16px;
    text-align: center;
}

.home-hero-united .invite-card-body {
    padding:
        clamp(10px, 1.8dvh, 28px)
        clamp(14px, 3vw, 44px)
        clamp(10px, 1.6dvh, 22px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 0;
    flex: 1 1 auto;
    gap: clamp(4px, 1dvh, 12px);
}

.home-hero-united .invite-card-body--personal {
    justify-content: space-between;
}

.invite-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.invite-personal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(8px, 1.2dvh, 14px) 8px 0;
    border-top: 1px solid rgba(166, 139, 103, 0.28);
    flex-shrink: 0;
}

.invite-mono {
    width: clamp(40px, 5.5dvh, 56px);
    height: clamp(40px, 5.5dvh, 56px);
    margin: 0 auto clamp(4px, 0.8dvh, 8px);
    border-radius: 50%;
    border: 1.5px solid var(--c-gold);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff, #f2eee9 70%);
    box-shadow: 0 6px 16px rgba(166, 139, 103, 0.2);
}

.invite-mono span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--c-gold-dark);
    font-weight: 600;
}

.invite-families {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4px 12px;
    width: 100%;
    max-width: 480px;
    margin: clamp(2px, 0.5dvh, 6px) auto clamp(4px, 1dvh, 10px);
}

.home-hero-united .invite-couple-art {
    width: min(140px, 42%);
    margin: 2px auto 4px;
}

.home-hero-united .invite-venue {
    margin-bottom: clamp(4px, 0.8dvh, 10px);
}

.home-hero-united .invite-venue strong {
    font-size: clamp(0.85rem, 1.7dvh, 1.02rem);
    letter-spacing: 0.12em;
}

.invite-families--single { grid-template-columns: 1fr; justify-items: center; }

.invite-families-sep {
    width: 1px;
    align-self: stretch;
    min-height: 30px;
    background: linear-gradient(180deg, transparent, rgba(166, 139, 103, 0.45), transparent);
}

.invite-family { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.invite-families:not(.invite-families--single) .invite-family:first-child { text-align: right; }
.invite-families:not(.invite-families--single) .invite-family:last-child { text-align: left; }
.invite-families--single .invite-family { text-align: center; }

.invite-family h3 {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-gold);
    border-bottom: 1px solid rgba(166, 139, 103, 0.3);
    display: inline-block;
    padding-bottom: 2px;
}

.invite-families:not(.invite-families--single) .invite-family:first-child h3 { margin-left: auto; }
.invite-families:not(.invite-families--single) .invite-family:last-child h3 { margin-right: auto; }

.invite-family-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
    color: #4a3f32;
}

.invite-couple-art { width: min(150px, 70%); margin: 2px auto 4px; }
.invite-couple-svg { width: 100%; height: auto; display: block; }

.invite-arch-names-wrap {
    position: relative;
    padding: 8px 4px 6px;
    margin: 0 auto 6px;
}

.invite-arch-names-wrap::before,
.invite-arch-names-wrap::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(166, 139, 103, 0.5), transparent);
}

.invite-arch-names-wrap::before { top: 0; }
.invite-arch-names-wrap::after { bottom: 0; }

.invite-arch-names {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.15;
    color: #2a2b26;
}

.invite-arch-amp {
    font-family: var(--font-script);
    font-size: 1.05rem;
    color: var(--c-gold);
    line-height: 1;
    margin: 1px 0;
}

.invite-venue strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #3a3b35;
}

/* Sayfa zeminleri ? krem / koyu zeytin */
.page-slide#davetiye,
.page-slide#galeri,
.page-slide#konum {
    background: var(--c-cream);
    color: var(--c-text);
}

.page-slide#rsvp {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(166, 139, 103, 0.12), transparent 55%),
        linear-gradient(180deg, #2f302a 0%, #2a2b26 100%);
    color: var(--c-text-on-dark);
}

.page-slide#sizden-gelenler {
    background:
        linear-gradient(180deg, #f7f3ed 0%, var(--c-cream, #f2eee9) 45%, #ebe4da 100%);
    color: var(--c-text);
}

.page-slide#hikaye {
    background: var(--c-cream, #f2eee9);
    color: var(--c-text);
}

.page-slide#rsvp .section-title {
    color: var(--c-cream);
}

.page-slide#hikaye .section-title,
.page-slide#hikaye h2,
.page-slide#sizden-gelenler .section-title,
.page-slide#sizden-gelenler h2,
.page-slide#galeri .section-title {
    color: var(--c-dark);
}

@media (max-width: 900px) {
    .invite-page.home-hero {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        align-items: stretch;
        overflow: hidden;
    }

    .home-hero-shell {
        width: 100%;
        height: 100%;
        max-height: none;
        margin-top: 0;
        padding:
            calc(88px + env(safe-area-inset-top, 0px))
            10px
            14px;
    }

    .home-hero-card.home-hero-united {
        width: min(680px, 100%);
        max-width: 680px;
        height: 100%;
        max-height: none;
    }

    .home-hero-bg-pattern { opacity: 0.3; }

    .home-hero-bg-wash {
        background:
            linear-gradient(180deg, rgba(242, 238, 233, 0.9) 0%, rgba(242, 238, 233, 0.72) 45%, rgba(242, 238, 233, 0.45) 100%);
    }

    .home-hero-countdown { max-width: 300px; }

    .invite-card.home-hero-card.home-hero-united {
        width: min(680px, 100%);
        max-width: 680px;
        border-radius: 10px;
    }
}

@media (max-width: 640px) {
    .invite-page.home-hero {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        align-items: stretch;
        overflow: hidden;
    }

    .page-slide#davetiye { padding: 0; }

    .home-hero-shell {
        width: 100%;
        height: 100%;
        max-height: none;
        padding:
            calc(108px + env(safe-area-inset-top, 0px))
            0
            0;
    }

    .home-hero-card.home-hero-united {
        width: min(560px, calc(100% - 16px));
        max-width: 560px;
        height: 100%;
        max-height: none;
        border-radius: 10px;
    }

    .home-hero-united .invite-card-body {
        padding: 10px 12px 12px;
        gap: 6px;
        justify-content: space-between;
    }

    .invite-main {
        justify-content: flex-start;
    }

    .home-hero-names { font-size: clamp(2rem, 8vw, 2.7rem); }
    .home-hero-date-day { font-size: 1.9rem; }
    .home-hero-countdown .count-value,
    .countdown.home-hero-countdown .count-value { font-size: 1.1rem; }
    .home-hero-lead { font-size: 0.86rem; margin-bottom: 8px; }
    .home-hero-welcome { font-size: 0.92rem; }
    .home-hero-links { gap: 5px; max-width: none; }
    .home-hero-btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        min-height: 52px;
        padding: 6px 3px;
        gap: 4px;
    }
    .home-hero-btn-ico {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }
    .home-hero-btn-label {
        letter-spacing: 0.02em;
        font-size: 0.52rem;
    }

    .invite-personal {
        gap: 8px 14px;
        padding-top: 8px;
    }

    .home-hero-qr .invitation-qr img,
    .home-hero-qr .invitation-qr canvas {
        width: 56px !important;
        height: 56px !important;
    }
}

/* ---------------------------------------------------------------------
   Geri Say?m
--------------------------------------------------------------------- */
.countdown {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    margin: 30px 0;
}

.countdown .count-box {
    width: 88px;
    padding: 10px 8px;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    position: relative;
}

.countdown .count-box + .count-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 22%;
    width: 1px;
    background: rgba(166, 139, 103, 0.35);
}

.countdown .count-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #fff;
    display: block;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.invite-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 28px 0 10px;
}

.invite-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 84px;
    background: none;
    border: none;
    color: var(--c-dark);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.invite-action-ico {
    width: 52px;
    height: 52px;
    color: var(--c-gold);
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 8px rgba(166, 139, 103, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.invite-action-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}

.invite-action:hover .invite-action-ico {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 12px rgba(166, 139, 103, 0.45));
}

.invite-action i {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(166, 139, 103, 0.45);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.invite-action:hover i {
    background: rgba(166, 139, 103, 0.15);
    border-color: var(--c-gold);
}

.countdown .count-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.page-slide#davetiye .countdown .count-label {
    color: var(--c-gold-dark);
}


/* ---------------------------------------------------------------------
   Hikaye ? yatay carousel
--------------------------------------------------------------------- */
.page-slide#hikaye {
    background: var(--c-cream, #f2eee9);
    color: var(--c-text);
    display: block;
    height: auto;
    min-height: 0;
    padding: 72px 0 88px;
    overflow: visible;
}

.story-section {
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: auto;
    display: block;
    background:
        linear-gradient(180deg, #f7f3ed 0%, var(--c-cream, #f2eee9) 45%, #ebe4da 100%);
    color: var(--c-text, #2a2b26);
}

.story-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.story-atmosphere-bloom {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 50% 0%, rgba(166, 139, 103, 0.14), transparent 70%),
        radial-gradient(ellipse 35% 30% at 100% 70%, rgba(196, 173, 138, 0.07), transparent 70%);
}

.story-inner {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
}

.story-header {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 28px;
}

.story-kicker {
    margin: 0 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-gold-dark, #7d6648);
}

.story-title {
    margin: 0 0 12px;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2.2rem, 4.5vw, 3.1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-dark, #2a2b26);
}

.story-ornament {
    display: block;
    width: 56px;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, var(--c-gold, #a68b67), transparent);
}

.story-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--c-text-muted);
    font-weight: 300;
}

.story-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.story-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 4px;
}

.story-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.story-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 4px 2px;
}

.story-slide-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: rgba(255, 252, 248, 0.78);
    border: 1px solid rgba(166, 139, 103, 0.3);
    box-shadow: 0 16px 40px rgba(42, 43, 38, 0.07);
    min-height: 320px;
}

.story-slide-photo {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: linear-gradient(145deg, #faf8f5, #efe8dc);
    cursor: pointer;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    font: inherit;
    color: inherit;
}

.story-slide-photo.is-static,
.story-slide-photo.is-empty {
    cursor: default;
    display: grid;
    place-items: center;
    color: rgba(166, 139, 103, 0.45);
    font-size: 1.6rem;
}

.story-slide-photo .timeline-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-slide-text {
    min-width: 0;
    padding: 8px 4px;
}

.story-slide-num {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--c-gold, #a68b67);
}

.story-slide-date {
    margin: 0 0 8px;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--c-gold-dark, #7d6648);
}

.story-slide-title {
    margin: 0 0 12px;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--c-dark, #2a2b26);
    line-height: 1.2;
}

.story-slide-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    font-weight: 300;
}

.story-nav {
    appearance: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(166, 139, 103, 0.4);
    background: rgba(255, 255, 255, 0.75);
    color: var(--c-gold-dark, #7d6648);
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.story-nav:hover:not(:disabled) {
    background: var(--c-gold, #a68b67);
    color: #fff;
}

.story-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.story-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.story-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.story-dot {
    appearance: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(166, 139, 103, 0.28);
    cursor: pointer;
}

.story-dot.is-active {
    background: var(--c-gold, #a68b67);
    transform: scale(1.2);
}

.story-counter {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--c-text-muted);
}

.story-empty {
    width: 100%;
    text-align: center;
    padding: 48px 16px;
    color: var(--c-text-muted);
}

@media (max-width: 760px) {
    .story-slide-card {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        padding: 14px;
    }

    .story-slide-photo {
        max-width: 280px;
        margin: 0 auto;
        aspect-ratio: 5 / 4;
    }

    .story-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 520px) {
    .story-carousel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .story-nav {
        position: absolute;
        top: 38%;
        z-index: 3;
        background: rgba(255, 255, 255, 0.88);
    }

    .story-nav-prev { left: 4px; }
    .story-nav-next { right: 4px; }
}

/* ---------------------------------------------------------------------
   Galeri ? Instagram ?zgara
--------------------------------------------------------------------- */
.gallery-section {
    overflow-x: hidden;
}

.gallery-section > .container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding-left: clamp(12px, 3vw, 24px);
    padding-right: clamp(12px, 3vw, 24px);
    box-sizing: border-box;
}

.gallery-section .gallery-lead,
.guest-shots-lead {
    text-align: center;
    max-width: 420px;
    margin: -8px auto 28px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--c-text-muted);
    font-weight: 300;
}

.ig-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: transparent;
}

.ig-gallery-item {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: rgba(42, 43, 38, 0.06);
    font: inherit;
    color: inherit;
}

.ig-gallery-item img,
.ig-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ease-smooth, cubic-bezier(0.16, 1, 0.3, 1)), filter 0.35s ease;
}

.ig-gallery-item:hover img,
.ig-gallery-item:hover video,
.ig-gallery-item:focus-visible img,
.ig-gallery-item:focus-visible video {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.ig-gallery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(42, 43, 38, 0.55);
    color: #fff;
    font-size: 0.7rem;
    pointer-events: none;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .gallery-section > .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery-section .gallery-lead {
        margin-bottom: 18px;
        font-size: 0.86rem;
        padding: 0 6px;
    }

    .ig-gallery {
        gap: 2px;
        max-width: 100%;
    }

    .ig-gallery-item:hover img,
    .ig-gallery-item:hover video {
        transform: none;
        filter: none;
    }

    .ig-gallery-badge {
        top: 6px;
        right: 6px;
        width: 22px;
        height: 22px;
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .ig-gallery {
        gap: 1px;
    }
}

body.lightbox-open { overflow: hidden; }

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(20, 18, 14, 0.94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 28px;
    gap: 14px;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-lightbox.active,
.gallery-lightbox:not([hidden]).active {
    display: flex;
}

.gallery-lightbox[hidden] { display: none !important; }

.gallery-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(92vw, 900px);
    max-height: min(72vh, 720px);
    touch-action: pan-y;
}

.gallery-lightbox img,
.gallery-lightbox video {
    max-width: 100%;
    max-height: min(72vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: min(90vw, 560px);
    text-align: center;
}

.gallery-lightbox-caption {
    margin: 0;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: rgba(242, 238, 233, 0.92);
    line-height: 1.5;
}

.gallery-lightbox-counter {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(242, 238, 233, 0.55);
}

.gallery-lightbox-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 2;
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--c-gold, #a68b67);
    cursor: pointer;
    padding: 10px;
}

.gallery-lightbox-close:hover {
    color: #fff;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(242, 238, 233, 0.22);
    background: rgba(42, 43, 38, 0.55);
    color: #f2eee9;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(166, 139, 103, 0.55);
    border-color: var(--c-gold, #a68b67);
}

.gallery-lightbox-prev { left: max(10px, env(safe-area-inset-left)); }
.gallery-lightbox-next { right: max(10px, env(safe-area-inset-right)); }

.gallery-lightbox-nav[hidden] { display: none !important; }

@media (max-width: 640px) {
    .gallery-lightbox {
        padding: 52px 8px 22px;
        gap: 10px;
    }

    .gallery-lightbox-stage {
        width: 100%;
        max-height: 68vh;
    }

    .gallery-lightbox img,
    .gallery-lightbox video {
        max-height: 68vh;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
        background: rgba(42, 43, 38, 0.42);
    }

    .gallery-lightbox-prev { left: 4px; }
    .gallery-lightbox-next { right: 4px; }

    .gallery-lightbox-caption {
        font-size: 0.95rem;
        padding: 0 8px;
    }
}

/* ---------------------------------------------------------------------
   Sizden Gelenler ? y?kleme
--------------------------------------------------------------------- */
.guest-shots-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.guest-shots-card {
    padding: 22px 20px 24px;
    border: 1px solid rgba(166, 139, 103, 0.28);
    background: rgba(255, 252, 248, 0.78);
}

.guest-shots-sub {
    margin: 0 0 14px;
    text-align: center;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--c-dark);
}

.guest-shots-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--c-text-muted);
}

.guest-shots-alert {
    text-align: center;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.guest-shots-alert.is-ok { color: #2f7a4f; }
.guest-shots-alert.is-err { color: #b4454a; }

.page-slide#sizden-gelenler .field {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(166, 139, 103, 0.35);
    color: var(--c-dark);
}

.page-slide#sizden-gelenler .field::placeholder {
    color: rgba(42, 43, 38, 0.45);
}

.page-slide#sizden-gelenler .guestbook-message {
    background: rgba(255, 252, 248, 0.85);
    color: var(--c-text);
}

/* ---------------------------------------------------------------------
   Hikaye foto lightbox ? premium footer caption
--------------------------------------------------------------------- */
.story-lightbox {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 36px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-smooth), visibility 0.45s;
}

.story-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.story-lightbox[hidden] { display: none !important; }
.story-lightbox.is-open[hidden] { display: grid !important; }

.story-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(53, 54, 47, 0.55), rgba(10, 11, 9, 0.94) 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.story-lightbox-shell {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92dvh, 920px);
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.985);
    transition: transform 0.5s var(--ease-smooth);
}

.story-lightbox.is-open .story-lightbox-shell {
    transform: none;
}

.story-lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, #2f302a 0%, #242520 100%);
    border: 1px solid rgba(166, 139, 103, 0.35);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.story-lightbox-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: clamp(14px, 2.5vw, 28px) clamp(14px, 2.5vw, 28px) 10px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(166, 139, 103, 0.08), transparent 70%);
}

.story-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: min(58dvh, 560px);
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(166, 139, 103, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #1a1b17;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.story-lightbox.is-loading .story-lightbox-image {
    opacity: 0.35;
}

.story-lightbox-footer {
    flex: 0 0 auto;
    padding: 18px clamp(18px, 3vw, 32px) 22px;
    border-top: 1px solid rgba(166, 139, 103, 0.28);
    background: linear-gradient(180deg, rgba(26, 27, 23, 0.4), rgba(26, 27, 23, 0.85));
    text-align: center;
}

.story-lightbox-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 1em;
}

.story-lightbox-year {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold-light);
}

.story-lightbox-date {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: rgba(242, 238, 233, 0.45);
}

.story-lightbox-date:not([hidden])::before {
    content: '?';
    margin-right: 12px;
    color: rgba(166, 139, 103, 0.55);
}

.story-lightbox-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #f2eee9;
}

.story-lightbox-desc {
    margin: 0 auto;
    max-width: 40em;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(242, 238, 233, 0.62);
}

.story-lightbox-close {
    position: absolute;
    top: -6px;
    right: 0;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(166, 139, 103, 0.4);
    border-radius: 50%;
    background: rgba(42, 43, 38, 0.85);
    color: var(--c-gold-light);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.story-lightbox-close:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: #fff;
}

.story-lightbox-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(166, 139, 103, 0.4);
    border-radius: 50%;
    background: rgba(42, 43, 38, 0.8);
    color: #f2eee9;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.story-lightbox-prev { left: -8px; }
.story-lightbox-next { right: -8px; }

.story-lightbox-nav:hover {
    background: rgba(166, 139, 103, 0.35);
    border-color: var(--c-gold);
    transform: scale(1.04);
}

@media (max-width: 720px) {
    .story-lightbox {
        padding: 10px;
        align-items: stretch;
    }

    .story-lightbox-shell {
        max-height: 96dvh;
        height: 100%;
    }

    .story-lightbox-figure {
        height: 100%;
    }

    .story-lightbox-image {
        max-height: min(52dvh, 420px);
    }

    .story-lightbox-close {
        top: 8px;
        right: 8px;
    }

    .story-lightbox-nav {
        top: auto;
        bottom: 118px;
    }

    .story-lightbox-prev { left: 10px; }
    .story-lightbox-next { right: 10px; }

    .story-lightbox-footer {
        padding: 14px 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-lightbox,
    .story-lightbox-shell,
    .story-lightbox-image {
        transition: none !important;
    }
}

/* ---------------------------------------------------------------------
   RSVP
--------------------------------------------------------------------- */
.rsvp-card { max-width: 560px; margin: 0 auto; padding: 40px 36px; }

.page-slide#rsvp .field {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(166, 139, 103, 0.4);
    color: #f2eee9;
}

.page-slide#rsvp .field::placeholder {
    color: rgba(242, 238, 233, 0.45);
}

.rsvp-options { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }

.rsvp-option {
    flex: 1;
    min-width: 140px;
    padding: 16px 14px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(166, 139, 103, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.04);
}

.rsvp-option input { display: none; }
.rsvp-option span {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-on-dark);
}

.rsvp-option:hover {
    border-color: var(--c-gold);
    background: rgba(166, 139, 103, 0.15);
}

.rsvp-option:has(input:checked) {
    background: linear-gradient(180deg, var(--c-gold-light), var(--c-gold));
    border-color: transparent;
}

.rsvp-option:has(input:checked) span {
    color: #fff;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Tebrik Mesajlar? (Guestbook)
--------------------------------------------------------------------- */
.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.guestbook-message { padding: 24px; }
.guestbook-message .msg-name { color: var(--c-gold-light); font-weight: 600; margin-bottom: 6px; display: block; }
.guestbook-message .msg-photo { border-radius: var(--radius-sm); margin-top: 12px; max-height: 160px; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------------------
   Konum
--------------------------------------------------------------------- */
.location-map-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.location-map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.3) contrast(1.1); }

.location-actions { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   G?n?n program? + masa bilgisi
--------------------------------------------------------------------- */
.home-hero-guest-hello {
    margin: 0 0 clamp(2px, 0.6dvh, 6px);
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: clamp(0.78rem, 1.6dvh, 0.92rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-gold-dark, #7d6648);
    line-height: 1.3;
    text-align: center;
}

.invite-seat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    border: 0;
}

.invite-seat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 56px;
}

.invite-seat-label {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.invite-seat-value {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(1.15rem, 2.6dvh, 1.45rem);
    font-weight: 600;
    color: var(--c-dark, #2a2b26);
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.invite-seat-value--sm {
    font-size: clamp(0.9rem, 2dvh, 1.05rem);
    font-weight: 500;
}

.event-program {
    max-width: 480px;
    margin: 8px auto 0;
    padding: 8px 8px 0;
}

.event-program-title {
    text-align: center;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--c-dark);
    margin: 0 0 22px;
}

.event-program-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.event-program-list::before {
    content: '';
    position: absolute;
    left: 52px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(166, 139, 103, 0.55), transparent);
}

.event-program-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    padding: 0 0 22px;
    position: relative;
}

.event-program-item:last-child { padding-bottom: 0; }

.event-program-time {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--c-gold-dark, #7d6648);
    text-align: right;
    padding-top: 2px;
}

.event-program-body {
    position: relative;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-program-body::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-cream, #f2eee9);
    border: 1.5px solid var(--c-gold, #a68b67);
    box-shadow: 0 0 0 3px rgba(242, 238, 233, 0.9);
}

.event-program-body strong {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--c-dark);
}

.event-program-body small {
    font-size: 0.82rem;
    color: var(--c-text-muted);
    line-height: 1.45;
}

.detail-cards {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin: 36px auto 0;
}

.detail-card {
    padding: 22px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(166, 139, 103, 0.28);
    border-radius: 12px;
}

.detail-card-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold-dark, #7d6648);
}

.detail-card-value {
    display: block;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--c-dark);
}

.detail-card-note {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.gift-iban {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gift-iban-name {
    font-size: 0.85rem;
    color: var(--c-dark);
}

.gift-iban-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    background: rgba(242, 238, 233, 0.9);
    border: 1px solid rgba(166, 139, 103, 0.25);
    border-radius: 8px;
    color: var(--c-dark);
    word-break: break-all;
}

.gift-iban-copy {
    appearance: none;
    border: 1px solid rgba(166, 139, 103, 0.45);
    background: transparent;
    color: var(--c-gold-dark);
    font: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 6px;
}

.gift-iban-copy:hover {
    background: rgba(166, 139, 103, 0.12);
}

.detail-card-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--c-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.photo-wall-title {
    text-align: center;
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.55rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--c-dark);
}

.photo-wall-lead {
    text-align: center;
    max-width: 28em;
    margin: 0 auto 22px;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.photo-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.photo-wall-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(166, 139, 103, 0.22);
}

.photo-wall-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-wall-item figcaption {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.photo-wall-item strong {
    font-size: 0.78rem;
    color: var(--c-dark);
}

.photo-wall-item span {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    line-height: 1.35;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--c-text-muted);
    font-size: 0.82rem;
}

.site-footer .footer-names {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--c-gold);
    display: block;
    margin-bottom: 10px;
}

.page-slide#konum .site-footer .footer-names { color: var(--c-gold-dark); }

/* ---------------------------------------------------------------------
   Yazd?r / PDF ? yaln?zca davetiye kart? (tek sayfa)
--------------------------------------------------------------------- */
@media print {
    @page {
        size: A5 portrait;
        margin: 10mm;
    }

    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.is-printing-invite #loading-screen,
    body.is-printing-invite #door-intro,
    body.is-printing-invite #hero-overlay,
    body.is-printing-invite #welcome-overlay,
    body.is-printing-invite .guest-welcome-rail,
    body.is-printing-invite .wa-float,
    body.is-printing-invite .page-nav-btn,
    body.is-printing-invite .petal-fall,
    body.is-printing-invite .home-hero-bg,
    body.is-printing-invite .invite-card-shine,
    body.is-printing-invite .home-hero-links,
    body.is-printing-invite .home-hero-countdown,
    body.is-printing-invite .page-slide:not(#davetiye),
    body.is-printing-invite #content-wrapper > :not(#page-track),
    body.is-printing-invite #page-track > :not(#davetiye) {
        display: none !important;
    }

    /* QR yoksa gizle; varsa yazd?r */
    body.is-printing-invite .home-hero-qr:not(.has-qr),
    body.is-printing-invite .home-hero-qr.is-empty {
        display: none !important;
    }

    body.is-printing-invite .invite-personal:not(:has(.invite-seat)):not(:has(.home-hero-qr.has-qr)),
    body.is-printing-invite .invite-personal.is-print-empty {
        display: none !important;
    }

    body.is-printing-invite #content-wrapper,
    body.is-printing-invite #page-track,
    body.is-printing-invite #davetiye,
    body.is-printing-invite .home-hero-shell,
    body.is-printing-invite .home-hero-card,
    body.is-printing-invite .invite-card-body,
    body.is-printing-invite .invite-main {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        animation: none !important;
    }

    body.is-printing-invite .home-hero-shell {
        padding: 0 !important;
    }

    body.is-printing-invite .home-hero-card {
        background: #fff !important;
        border: 1px solid rgba(166, 139, 103, 0.35) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    body.is-printing-invite .invite-card-body,
    body.is-printing-invite .invite-card-body--personal {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 14mm 10mm !important;
        overflow: visible !important;
    }

    body.is-printing-invite .invite-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    body.is-printing-invite .invite-card-frame {
        inset: 4mm !important;
        border-radius: 0 !important;
    }

    body.is-printing-invite .invite-personal {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(166, 139, 103, 0.3) !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    body.is-printing-invite .home-hero-qr.has-qr {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 0 !important;
    }

    body.is-printing-invite .home-hero-qr .invitation-qr img,
    body.is-printing-invite .home-hero-qr .invitation-qr canvas {
        width: 72px !important;
        height: 72px !important;
    }

    body.is-printing-invite .home-hero-names {
        font-size: 32pt !important;
        margin: 4px 0 6px !important;
        color: #a68b67 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.is-printing-invite .home-hero-guest-hello {
        display: block !important;
        margin: 0 0 8px !important;
        font-family: var(--font-body, 'Poppins', sans-serif) !important;
        font-size: 11pt !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        color: #7d6648 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.is-printing-invite .home-hero-guest-hello::before {
        content: none;
    }

    body.is-printing-invite .home-hero-lead {
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
        font-size: 10pt !important;
        margin-bottom: 8px !important;
    }

    body.is-printing-invite .invite-families {
        display: grid !important;
        margin: 4px auto 8px !important;
    }

    body.is-printing-invite .invite-couple-art {
        display: none !important;
    }

    body.is-printing-invite .visually-hidden {
        display: none !important;
    }
}

