/* ────────────────────────────────────────────
   Elif Başak & Mert — 21 Ağustos 2026
   Tema: yaz akşamı bahçe düğünü
   ──────────────────────────────────────────── */

:root {
    --paper: #F6F5EE;      /* keten beyazı, hafif yeşil dokulu */
    --paper-deep: #EEEDE1; /* bir ton koyu zemin */
    --ink: #22382B;        /* çam yeşili metin */
    --leaf: #5F7455;       /* adaçayı / zeytin ara tonu */
    --gold: #B98F4A;       /* mum ışığı altını */
    --night: #14231B;      /* gece yeşili */
    --dusk: #3E4A36;       /* alacakaranlık */
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background-color: var(--paper);
    text-align: center;
    line-height: 1.6;
}

/* ── Kapak ── */
.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 90px;
    color: var(--paper);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('hero.jpg') no-repeat center 30% / cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
        rgba(20, 35, 27, 0.55) 0%,
        rgba(20, 35, 27, 0.35) 45%,
        rgba(20, 35, 27, 0.72) 100%);
}

.hero-content {
    animation: fade-up 1.4s ease both;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 26px;
}

.couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.6rem, 9vw, 5.2rem);
    line-height: 1.12;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.couple-names .amp {
    font-size: 0.5em;
    color: var(--gold);
    filter: brightness(1.35);
    line-height: 1.4;
}

.date-box {
    margin-top: 34px;
    padding: 18px 34px;
    border-top: 1px solid rgba(246, 245, 238, 0.55);
    border-bottom: 1px solid rgba(246, 245, 238, 0.55);
    display: inline-block;
}

.wedding-date {
    font-family: 'Marcellus', serif;
    font-size: clamp(1.15rem, 4vw, 1.6rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.wedding-day {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    margin-top: 8px;
}

.wedding-venue {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    margin-top: 4px;
    opacity: 0.85;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.75;
}

.scroll-arrow {
    display: block;
    margin-top: 6px;
    animation: bounce 2.2s infinite;
}

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

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Ortak bölüm düzeni ── */
.section {
    padding: 96px 24px;
}

.section-eyebrow {
    font-family: 'Marcellus', serif;
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.section-eyebrow.light { color: #D8BC85; }

.section-subtitle {
    font-size: 1rem;
    color: var(--dusk);
    max-width: 520px;
    margin: -10px auto 34px;
}

/* Kaydırınca beliren bloklar */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ── Davet + Aileler ── */
.invitation-section { background-color: var(--paper); }

.sprig {
    font-size: 1.8rem;
    color: var(--leaf);
    margin-bottom: 22px;
}

.invitation-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    line-height: 1.45;
    max-width: 640px;
    margin: 0 auto 56px;
}

.parents-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(95, 116, 85, 0.28);
}

.parent-family {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.family-firstname {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.45rem;
    color: var(--dusk);
}

.family-surname {
    font-family: 'Marcellus', serif;
    font-size: 1.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.family-role {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--leaf);
    margin-top: 8px;
}

.family-ornament {
    font-size: 1.4rem;
    color: var(--gold);
    padding: 0 26px;
    user-select: none;
}

/* ── Geri Sayım ── */
.countdown-section {
    background-color: var(--paper-deep);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 6vw, 56px);
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.countdown-block span:first-child {
    font-family: 'Marcellus', serif;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    color: var(--leaf);
    text-transform: uppercase;
    margin-top: 10px;
}

.countdown-done {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Program: gün batımından geceye ── */
.program-section {
    color: var(--paper);
    background: linear-gradient(to bottom,
        #6E5A3A 0%,      /* 19:00 — gün batımı */
        #4A4A38 32%,     /* alacakaranlık */
        #26332A 66%,     /* akşam */
        var(--night) 100%); /* 21:00 — gece */
}

.light-heading {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin: -14px 0 48px;
}

.timeline {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    top: 30px;
    bottom: 72px;
    background: linear-gradient(to bottom, rgba(216, 188, 133, 0.8), rgba(216, 188, 133, 0.2));
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 52px;
    position: relative;
}

.timeline-item.last { padding-bottom: 0; }

.timeline-time {
    font-family: 'Marcellus', serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #D8BC85;
    margin-bottom: 12px;
}

.timeline-dot {
    width: 11px;
    height: 11px;
    background: #D8BC85;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(216, 188, 133, 0.18), 0 0 14px rgba(216, 188, 133, 0.5);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.timeline-desc {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: rgba(246, 245, 238, 0.65);
    margin-top: 3px;
}

/* ── Konum ── */
.map-section { background-color: var(--paper); }

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.venue-address {
    font-size: 1rem;
    color: var(--dusk);
    margin-bottom: 34px;
}

/* ── Butonlar ── */
.btn {
    display: inline-block;
    padding: 15px 42px;
    color: var(--ink);
    border: 1px solid var(--gold);
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--gold);
    color: var(--paper);
}

.btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.btn-solid {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background-color: var(--gold);
    border-color: var(--gold);
}

/* ── RSVP & Albüm ── */
.rsvp-section { background-color: var(--paper-deep); }
.photos-section { background-color: var(--paper); }

/* ── Yüzen RSVP butonu ── */
.floating-rsvp {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 10;
    padding: 14px 32px;
    background-color: var(--ink);
    color: var(--paper);
    border: 1px solid rgba(216, 188, 133, 0.7);
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(20, 35, 27, 0.35);
    opacity: 0;
    transform: translate(-50%, calc(100% + 40px));
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s ease;
}

.floating-rsvp.visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.floating-rsvp:hover,
.floating-rsvp:focus-visible {
    background-color: var(--gold);
    color: var(--night);
}

.floating-rsvp:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* ── Alt bilgi ── */
.footer {
    background-color: var(--night);
    color: rgba(246, 245, 238, 0.85);
    padding: 54px 20px;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6rem;
}

.footer-date {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    margin-top: 8px;
    color: #D8BC85;
}

/* ── Duyarlı düzen ── */
@media (max-width: 640px) {
    .section { padding: 72px 20px; }

    .wide-only { display: none; }

    .section-eyebrow {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
    }

    #countdown { gap: 12px; }

    .countdown-block { min-width: 58px; }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.14em;
    }

    .parents-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 32px;
    }

    .family-ornament { padding: 0; }

    .date-box { padding: 16px 22px; }
}

/* ── Hareket azaltma tercihi ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-content { animation: none; }
    .scroll-arrow { animation: none; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .floating-rsvp {
        transition: opacity 0.3s ease, background-color 0.3s ease;
        transform: translate(-50%, 0);
    }
}
