/* ==========================================================================
   Miraya Wedding Template — Main Stylesheet
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --blush: #f7ede7;
    --cream: #fdf9f5;
    --rose: #c98a7d;
    --rose-deep: #a9655a;
    --plum: #3d2b2e;
    --gold: #c8a96a;
    --gold-soft: #e3cfa6;
    --ink: #4a3b3a;
    --muted: #8a7775;
    --white: #ffffff;
    --shadow: 0 24px 60px -28px rgba(61, 43, 46, 0.45);
    --shadow-soft: 0 18px 45px -30px rgba(61, 43, 46, 0.55);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Great Vibes', cursive;
    --sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--plum);
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.script {
    font-family: var(--script);
    color: var(--rose);
    font-weight: 400;
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader .ring {
    width: 64px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader .ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold-soft);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader .heart {
    font-size: 22px;
    color: var(--rose);
    animation: beat 1.1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.25); }
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--rose));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ---------- Header & Navigation ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(253, 249, 245, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px -20px rgba(61, 43, 46, 0.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--script);
    font-size: 32px;
    color: var(--plum);
    line-height: 1;
}

header.scrolled .brand { color: var(--plum); }

header:not(.scrolled) .brand,
header:not(.scrolled) .nav-links a { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose);
    transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active { color: var(--rose); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: currentColor;
    color: #fff;
    display: block;
    transition: 0.3s var(--ease);
}

header.scrolled .nav-toggle span { background: var(--plum); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s var(--ease);
    animation: kenburns 9s ease-out forwards;
    animation-play-state: paused;
}

.hero-slide.active {
    opacity: 1;
    animation-play-state: running;
}

@keyframes kenburns {
    to { transform: scale(1); }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35,22,24,0.55) 0%, rgba(35,22,24,0.25) 45%, rgba(35,22,24,0.6) 100%);
    z-index: 1;
}

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

.hero-eyebrow {
    font-family: var(--script);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    color: var(--gold-soft);
    opacity: 0;
    transform: translateY(20px);
    animation: rise 1s var(--ease) 0.3s forwards;
}

/* Gradient + glow couple names */
.hero-names {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(48px, 12vw, 130px);
    letter-spacing: 2px;
    margin: 6px 0 4px;
    background: linear-gradient(135deg, #fff 0%, #fce8c3 32%, #e8b98a 54%, #fce8c3 74%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    filter: drop-shadow(0 0 18px rgba(232,185,138,0.55)) drop-shadow(0 0 40px rgba(232,185,138,0.28));
    opacity: 0;
    transform: translateY(30px);
    animation: rise 1.1s var(--ease) 0.6s forwards, shimmer 4s linear 2s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-names .amp {
    font-family: var(--script);
    font-size: 0.55em;
    font-weight: 400;
    margin: 0 0.1em;
    vertical-align: middle;
    background: linear-gradient(135deg, #f5c6a0, #e8a87c, #f5c6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(232,168,124,0.7));
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 14px auto 10px;
    max-width: 320px;
    opacity: 0;
    animation: fade 1s ease 1s forwards;
}

.hero-divider span {
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,0.6);
}

.hero-divider i { color: var(--gold-soft); font-style: normal; }

.hero-date {
    font-size: clamp(15px, 2.5vw, 20px);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: rise 1s var(--ease) 1.2s forwards;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fade 1s ease 1.8s forwards;
}

.scroll-cue .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 14px;
    position: relative;
}

.scroll-cue .mouse::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 7px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 1.6s var(--ease) infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
    to { opacity: 1; }
}

/* ---------- Countdown ---------- */
.countdown {
    background: var(--plum);
    color: var(--cream);
    padding: 60px 0;
    position: relative;
}

.countdown .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.countdown .lead {
    text-align: center;
}

.countdown .lead .script { font-size: 40px; color: var(--gold-soft); }

.countdown .lead h2 {
    color: var(--cream);
    font-size: 30px;
    letter-spacing: 1px;
    font-weight: 500;
}

.clock {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.clock .unit {
    min-width: 92px;
    padding: 18px 10px;
    text-align: center;
    border: 1px solid rgba(227, 207, 166, 0.3);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.clock .num {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 600;
    color: var(--gold-soft);
    line-height: 1;
    display: block;
}

.clock .label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(253, 249, 245, 0.7);
    margin-top: 8px;
    display: block;
}

/* ---------- Section Shared ---------- */
section.block {
    padding: 110px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 70px;
}

.section-head .script { font-size: 38px; display: block; line-height: 1; }

.section-head h2 {
    font-size: clamp(32px, 5vw, 46px);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.section-head .ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--gold);
}

.section-head .ornament span {
    width: 50px;
    height: 1px;
    background: var(--gold-soft);
}

.section-head .ornament i { font-style: normal; font-size: 14px; }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="left"].in,
[data-reveal="right"].in { transform: translateX(0); }

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }

/* ---------- Couple ---------- */
.couple { background: var(--blush); }

.couple-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: stretch;
}

.person {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.person:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.person .photo {
    position: relative;
    aspect-ratio: 4 / 3.6;
    overflow: hidden;
}

.person .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.person:hover .photo img { transform: scale(1.07); }

.person .role {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 22px 16px;
    background: linear-gradient(transparent, rgba(35,22,24,0.7));
    color: #fff;
    font-family: var(--script);
    font-size: 28px;
}

.person .body {
    padding: 26px 28px 30px;
    text-align: center;
}

.person .body h4 {
    font-size: 28px;
    margin-bottom: 6px;
}

.person .body .meta {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.person .body p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    list-style: none;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    font-size: 14px;
    transition: 0.35s var(--ease);
}

.socials a:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
    transform: translateY(-3px);
}

.couple-heart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.couple-heart .ring-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    font-size: 26px;
    animation: beat 1.6s ease-in-out infinite;
}

.couple-heart .vline {
    width: 1px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(var(--gold-soft), transparent);
}

/* ---------- Story ---------- */
.story { background: var(--cream); }

.story-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    align-items: start;
}

.story-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.story-tab {
    border: 1px solid var(--gold-soft);
    background: var(--white);
    color: var(--ink);
    border-radius: 40px;
    padding: 10px 22px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.35s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.story-tab:hover { border-color: var(--rose); color: var(--rose); }

.story-tab.active {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

.story-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    animation: panelIn 0.6s var(--ease);
}

.story-panel.active { display: grid; }

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

.story-panel img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.story-panel .text { padding: 30px 30px 34px; }

.story-panel .text .date {
    color: var(--rose);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.story-panel .text h3 { font-size: 28px; margin: 6px 0 12px; }

.story-panel .text p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }

.story-feature {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
}

.story-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.story-feature .cap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    background: linear-gradient(transparent, rgba(35,22,24,0.75));
    color: #fff;
}

.story-feature .cap .script { color: var(--gold-soft); font-size: 30px; }

.story-feature .cap h3 { color: #fff; font-size: 30px; }

/* ---------- Events ---------- */
.events { background: var(--blush); }

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.event-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease);
    border-top: 3px solid transparent;
}

.event-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--rose);
}

.event-card .ico {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--blush);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.event-card h3 { font-size: 24px; margin-bottom: 14px; }

.event-card .line {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.event-card .line strong { color: var(--ink); font-weight: 500; }

.event-card .btn-mini {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rose);
    border-bottom: 1px solid var(--gold-soft);
    padding-bottom: 3px;
    transition: 0.3s;
}

.event-card .btn-mini:hover { color: var(--rose-deep); border-color: var(--rose); }

/* ---------- Wishes ---------- */
.wishes {
    background: linear-gradient(rgba(61,43,46,0.85), rgba(61,43,46,0.85)), url('../images/bquotes-bg.jpg') center/cover fixed;
    color: #fff;
    text-align: center;
    padding: 110px 0;
}

.wishes .quote-mark { font-family: var(--serif); font-size: 80px; color: var(--gold-soft); line-height: 0.4; }

.wish-track { position: relative; max-width: 760px; margin: 0 auto; min-height: 150px; }

.wish {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
}

.wish.active { opacity: 1; position: relative; }

.wish p {
    font-family: var(--serif);
    font-size: clamp(20px, 3vw, 27px);
    font-style: italic;
    color: var(--cream);
}

.wish .who { margin-top: 18px; font-family: var(--script); font-size: 26px; color: var(--gold-soft); }

.wish .who span {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.wish-dots { display: flex; gap: 10px; justify-content: center; margin-top: 36px; }

.wish-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: 0.3s;
}

.wish-dots button.active { background: var(--gold-soft); transform: scale(1.3); }

/* ---------- People ---------- */
.people { background: var(--cream); }

.people-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.people-col h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 28px;
}

.people-col h3 .script { display: block; font-size: 24px; }

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pcard {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1.15;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }

.pcard:hover img { transform: scale(1.08); }

.pcard .info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(transparent 45%, rgba(35,22,24,0.82));
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s var(--ease);
}

.pcard:hover .info { opacity: 1; transform: translateY(0); }

.pcard .info h5 { color: #fff; font-size: 16px; font-family: var(--serif); }

.pcard .info span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- RSVP ---------- */
.rsvp {
    background: linear-gradient(rgba(247,237,231,0.94), rgba(247,237,231,0.94)), url('../images/rsvp-bg.jpg') center/cover;
    position: relative;
}

.rsvp-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 22px;
    padding: 50px 46px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(200,169,106,0.25);
}

.rsvp-card .note { color: var(--muted); margin-bottom: 30px; font-size: 16px; }

.rsvp-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    text-align: left;
}

.rsvp-form .full { grid-column: 1 / -1; }

.rsvp-form label {
    display: block;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e7dcd3;
    border-radius: 10px;
    background: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    transition: border 0.3s, box-shadow 0.3s;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: 0;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(201,138,125,0.12);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: var(--rose);
    color: #fff;
    border: 0;
    padding: 15px 42px;
    border-radius: 40px;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.4s var(--ease);
    box-shadow: 0 14px 30px -14px rgba(169,101,90,0.7);
}

.btn:hover { background: var(--rose-deep); transform: translateY(-3px); }

.rsvp-msg {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    display: none;
}

.rsvp-msg.ok { display: block; background: #eaf3ec; color: #3c7a4f; }

/* ---------- Gallery ---------- */
.gallery { background: var(--blush); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}

.gitem {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gitem.wide { grid-column: span 2; }
.gitem.tall { grid-row: span 2; }

.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }

.gitem:hover img { transform: scale(1.1); }

.gitem::after {
    content: "\f00e";
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61,43,46,0.45);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.gitem:hover::after { opacity: 1; }

.gitem .plus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-family: var(--serif);
    background: rgba(61,43,46,0.45);
    opacity: 0;
    transition: 0.4s var(--ease);
    z-index: 2;
}

.gitem:hover .plus { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(25,16,17,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s var(--ease);
    backdrop-filter: blur(6px);
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
    max-width: 86vw;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: panelIn 0.4s var(--ease);
}

.lb-btn {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: 0;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.lb-btn:hover { background: var(--rose); }

.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
footer {
    background: var(--plum);
    color: var(--cream);
    text-align: center;
    padding: 80px 0 30px;
}

.footer-card .birds { font-size: 40px; color: var(--gold-soft); }

.footer-card .script { font-size: 46px; color: var(--gold-soft); }

.footer-card h2 { color: var(--cream); font-size: 30px; margin: 6px 0; }

.footer-card .date {
    letter-spacing: 4px;
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(253,249,245,0.7);
}

.footer-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 28px 0;
    list-style: none;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(227,207,166,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    transition: 0.35s var(--ease);
}

.footer-socials a:hover { background: var(--rose); border-color: var(--rose); color: #fff; transform: translateY(-3px); }

.copyright { font-size: 13px; color: rgba(253,249,245,0.45); letter-spacing: 1px; margin-top: 20px; }

/* ---------- Floating Petals ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }

.petal {
    position: absolute;
    top: -40px;
    color: rgba(201,138,125,0.55);
    font-size: 16px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.1; }
}

/* ---------- Back To Top ---------- */
.to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rose);
    color: #fff;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.4s var(--ease);
    z-index: 900;
    box-shadow: 0 14px 30px -12px rgba(169,101,90,0.8);
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--rose-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .story-wrap { grid-template-columns: 1fr; }
    .people-cols { grid-template-columns: 1fr; gap: 50px; }
    .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(80vw, 320px);
        background: var(--plum);
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        transform: translateX(100%);
        transition: transform 0.45s var(--ease);
        box-shadow: -20px 0 50px rgba(0,0,0,0.3);
    }

    .nav-links.open { transform: translateX(0); }

    header:not(.scrolled) .nav-links a,
    .nav-links a { color: #fff; text-shadow: none; }

    .nav-links a { font-size: 16px; }

    .couple-grid { grid-template-columns: 1fr; }
    .couple-heart { flex-direction: row; }
    .couple-heart .vline { display: none; }

    .story-panel { grid-template-columns: 1fr; }
    .story-panel img { min-height: 240px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .gitem.wide { grid-column: span 1; }
    .gitem.tall { grid-row: span 1; }

    .people-grid { grid-template-columns: repeat(2, 1fr); }
    .rsvp-form { grid-template-columns: 1fr; }
    .rsvp-card { padding: 36px 24px; }
    section.block { padding: 80px 0; }
}
