﻿/* ==============================================
   The Lavender Editorial - CSS
   ============================================== */

:root {
    --primary-lavender: #7c5cbf;
    --dark-lavender: #5a3d8a;
    --soft-lavender: #c4b1e0;
    --bg-ivory: #fcfbf7;
    --text-black: #1a1a1a;
    --text-gray: #4a4a4a;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-lavender: rgba(124, 92, 191, 0.2);
    --h-font: 'Cormorant Garamond', serif;
    --b-font: 'Quicksand', sans-serif;
    --transition-editorial: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-ivory);
    color: var(--text-black);
    font-family: var(--b-font);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==============================================
   Minimalist Top Header
   ============================================== */
.editorial-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-editorial);
    border-bottom: 1px solid transparent;
    padding-top: env(safe-area-inset-top, 0);
    /* Notch support */
}

    .editorial-header.scrolled {
        background: rgba(252, 251, 247, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
    }

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(15px, 2vw, 25px) clamp(20px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    font-weight: 600;
}

.header-nav {
    display: flex;
    gap: 40px;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
}

.editorial-header a {
    color: var(--text-black);
    text-decoration: none;
    transition: var(--transition-editorial);
}

    .editorial-header a:hover {
        color: var(--primary-lavender);
    }

/* ==============================================
   Hero Section (Split Screen)
   ============================================== */
.hero-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.hero-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 8% 5% 8%;
    border-right: 1px solid var(--border-color);
}

.hero-image-side {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?w=1200&h=1600&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--primary-lavender);
    margin-bottom: 2rem;
    display: block;
}

.hero-title {
    font-family: var(--h-font);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--dark-lavender);
    /* Title in lavender */
}

.hero-details {
    margin-top: auto;
}

.hero-date {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--text-black);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1rem;
}

/* ==============================================
   The Message Section
   ============================================== */
.section-message {
    padding: 15vh 10%;
    text-align: right;
}

.message-text {
    font-family: var(--h-font);
    font-size: clamp(1.8rem, 4vw, 3rem);
    max-width: 800px;
    margin-left: auto;
    font-weight: 400;
    line-height: 1.3;
}

.rsvp-button {
    font-family: var(--b-font);
    background: var(--primary-lavender);
    color: white;
    padding: 20px 50px;
    border: none;
    margin-top: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition-editorial);
}

    .rsvp-button:hover {
        background: var(--dark-lavender);
        transform: translateY(-5px);
    }

/* ==============================================
   Moment Collage (Asymmetric Grid)
   ============================================== */
.section-moments {
    padding: 10vh 5%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
}

.moment-title-container {
    grid-column: 1 / span 4;
    grid-row: 1;
}

.moment-title {
    font-family: var(--h-font);
    font-size: 5rem;
    line-height: 0.8;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left top;
    white-space: nowrap;
    position: absolute;
    left: 20px;
    color: var(--dark-lavender);
    /* Story title in lavender */
}

.moment-item {
    position: relative;
    overflow: hidden;
    transition: var(--transition-editorial);
}

.moment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-editorial);
}

.moment-item:hover .moment-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Asymmetric positions */
.item-1 {
    grid-column: 5 / span 4;
    grid-row: 1 / span 3;
    height: 500px;
}

.item-2 {
    grid-column: 9 / span 3;
    grid-row: 2 / span 2;
    height: 350px;
    margin-top: 40px;
}

.item-3 {
    grid-column: 2 / span 3;
    grid-row: 4 / span 2;
    height: 400px;
}

.item-4 {
    grid-column: 6 / span 5;
    grid-row: 4 / span 3;
    height: 450px;
    margin-left: -50px;
}

.moment-caption {
    font-family: var(--h-font);
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 10px;
    display: block;
}

/* ==============================================
   Details Area
   ============================================== */
.section-details {
    padding: 15vh 10%;
    border-top: 1px solid var(--border-lavender);
    /* Subtle lavender border */
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.detail-block h3 {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.detail-main {
    font-family: var(--h-font);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary-lavender);
    /* Details in lavender */
}

.detail-sub {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 10px;
}

/* ==============================================
   RSVP Slide Panel
   ============================================== */
.rsvp-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    /* Dynamic Viewport Height for mobile browsers */
    background: white;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--transition-editorial);
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 60px);
    overflow-y: auto;
}

    .rsvp-panel.active {
        right: 0;
    }

@media (max-width: 991px) {
    .rsvp-panel {
        max-width: 100vw;
        width: 100vw;
    }
}

.close-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Panel Content Styling */
.panel-title {
    font-family: var(--h-font);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 300;
    font-style: italic;
}

.panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.editorial-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--text-gray);
        font-weight: 600;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        font-family: var(--b-font);
        font-size: 1rem;
        background: transparent;
        transition: var(--transition-editorial);
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-bottom-color: var(--primary-lavender);
            background: rgba(124, 92, 191, 0.02);
            /* Very subtle lavender focus background */
        }

.rsvp-submit {
    margin-top: 2rem;
    background: var(--text-black);
    color: white;
    border: none;
    padding: 18px;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: var(--transition-editorial);
}

    .rsvp-submit:hover {
        background: var(--primary-lavender);
        transform: translateY(-2px);
    }

.rsvp-success-message {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 1s ease forwards;
}

    .rsvp-success-message h3 {
        font-family: var(--h-font);
        font-size: 2rem;
        margin-bottom: 1rem;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   Footer
   ============================================== */
.editorial-footer {
    padding: 5vh 10%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 991px) {
    .editorial-header {
        background: rgba(252, 251, 247, 0.98);
        border-bottom: 1px solid var(--border-color);
    }

    .header-inner {
        padding: 15px 20px;
    }

    .header-nav {
        gap: 20px;
    }

    .hero-split {
        flex-direction: column;
    }

    .hero-text-side {
        height: auto;
        padding: 120px 20px 60px 20px;
        /* More top padding for the fixed header */
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-image-side {
        height: 50vh;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .section-moments {
        display: flex;
        flex-direction: column;
        padding: 5vh 15px;
        gap: 60px;
        /* More gap for breathing space between staggered items */
    }

    .moment-title-container {
        margin-bottom: 30px;
        text-align: left;
    }

    .moment-title {
        position: relative;
        transform: none;
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        left: 0;
        top: 0;
        writing-mode: horizontal-tb;
        line-height: 1;
        margin-bottom: 0;
    }

    .moment-item {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Staggered Collage Style */
    .item-1 {
        width: 90%;
        align-self: flex-start;
    }

    .item-2 {
        width: 85%;
        align-self: flex-end;
        margin-top: -20px;
    }

    .item-3 {
        width: 95%;
        align-self: center;
    }

    .item-4 {
        width: 80%;
        align-self: flex-start;
        margin-top: -30px;
    }

    .moment-img {
        height: auto;
        aspect-ratio: 4/5;
        /* Keep consistent vertical feel */
        object-fit: cover;
    }

    .moment-caption {
        margin-top: 15px;
        font-size: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
        width: fit-content;
    }

    .item-2 .moment-caption {
        align-self: flex-end;
        text-align: right;
    }

    .item-4 .moment-caption {
        font-size: 1.1rem;
        font-weight: 500;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-main {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 15px;
        /* Keep links visible but closer */
    }

    .header-left,
    .header-right,
    .header-nav {
        font-size: 0.6rem;
        /* Slightly smaller for fitting */
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .message-text {
        font-size: 1.5rem;
    }
}
