/* Lumière (Minimal) Template Styles */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&family=Cormorant+Garamond:ital,wght@1,300&family=DM+Sans:wght@400&family=DM+Mono:wght@400&display=swap');

:root {
    /* Colors */
    --color-bg: #FAFAF8;
    --color-bg-section: #F2F0EC;
    --color-text-primary: #0A0A0A;
    --color-text-muted: #6B6B6B;
    --color-text-light: #A8A8A8;
    --color-accent: #B8860B;
    --color-border: #E4E2DC;
    --color-border-dark: #0A0A0A;

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 128px;
}

/* Base Settings */
body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Typography Classes */
.font-display {
    font-family: var(--font-display);
}

.font-title {
    font-family: var(--font-title);
}

.font-body {
    font-family: var(--font-body);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay utilities */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Button - Outline Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text-primary);
}

.btn:hover {
    background: var(--color-text-primary);
    color: var(--color-bg);
}

/* Footer Accent Line */
.footer-accent {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 32px auto;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-hint__line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

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

/* Registry Link Hover */
.registry-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: gap 0.3s ease;
}

.registry-link:hover {
    gap: 14px;
}

.registry-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.registry-link:hover::after {
    transform: translateX(4px);
}

/* Map Grayscale */
.map-grayscale {
    filter: grayscale(1) contrast(0.9);
    transition: filter 0.5s ease;
}

.map-grayscale:hover {
    filter: grayscale(0) contrast(1);
}

/* Custom Gallery Grid - Masonry-ish */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 3px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Section Number Floating */
.section-number {
    position: absolute;
    left: 24px;
    top: 50%;
    /* Adjust in sections if needed */
    transform-origin: left center;
    transform: rotate(-90deg) translateX(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-row: span 1;
        /* Reset on mobile for cleaner stack usually, or keep if intent requires */
    }

    .section-number {
        display: none;
    }
}

/* Hero specific overrides */
.hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 25%);
    z-index: 10;
    pointer-events: none;
}

/* Premium refinement layer */
body {
    background-image:
        radial-gradient(circle at 12% 10%, rgba(184, 134, 11, 0.06), transparent 34%),
        radial-gradient(circle at 86% 22%, rgba(10, 10, 10, 0.05), transparent 40%);
}

.hero {
    border-bottom: 1px solid var(--color-border);
}

.hero-copy::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(10, 10, 10, 0.08);
    pointer-events: none;
}

.hero-photo img {
    filter: saturate(0.92) contrast(1.06);
    transform: scale(1.02);
}

.countdown-shell {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 10, 10, 0.08);
    box-shadow: 0 20px 60px rgba(10, 10, 10, 0.07);
    padding: clamp(20px, 3vw, 36px);
}

.countdown-shell > div {
    position: relative;
}

.countdown-shell > div::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 22%;
    right: 22%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184, 134, 11, 0.45), transparent);
}

.editorial-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5));
    border: 1px solid rgba(10, 10, 10, 0.08);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: 0 24px 56px rgba(10, 10, 10, 0.08);
}

.map-frame {
    border: 1px solid rgba(10, 10, 10, 0.12);
    box-shadow: 0 20px 54px rgba(10, 10, 10, 0.14);
    overflow: visible;
}

.map-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(184, 134, 11, 0.24);
    pointer-events: none;
}

.map-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.18), transparent 34%);
    pointer-events: none;
}

.btn {
    position: relative;
    overflow: hidden;
    border-color: rgba(10, 10, 10, 0.76);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}

.btn::after {
    content: '→';
    font-size: 0.95em;
    transform: translateX(0);
    transition: transform 0.35s ease;
}

.btn:hover::after {
    transform: translateX(4px);
}

.gallery-grid {
    gap: 8px;
}

.gallery-item {
    border: 1px solid rgba(10, 10, 10, 0.08);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.1));
}

.info-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    border-color: rgba(10, 10, 10, 0.1);
    box-shadow: 0 14px 34px rgba(10, 10, 10, 0.07);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 134, 11, 0.34);
    box-shadow: 0 20px 46px rgba(10, 10, 10, 0.12);
}

.soft-tile {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 10, 10, 0.08);
    box-shadow: 0 14px 32px rgba(10, 10, 10, 0.06);
    padding: 30px;
}

.rsvp-panel {
    border: 1px solid rgba(10, 10, 10, 0.1);
    box-shadow: 0 28px 70px rgba(10, 10, 10, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(250, 250, 248, 0.92));
}

.lcv-shell {
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 16px;
    padding: clamp(16px, 2.6vw, 24px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 245, 0.96));
}

.lcv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lcv-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(10, 10, 10, 0.16);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.72);
}

.lcv-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 10px;
}

.lcv-status {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.lcv-status[data-state="ready"] {
    color: var(--color-accent);
}

.lcv-status[data-state="error"] {
    color: #7a3b3b;
}

.lcv-embed {
    width: 100%;
    display: block;
    min-height: 640px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 12px;
    background: #fff;
    opacity: 1;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.lcv-shell.is-loading .lcv-embed {
    opacity: 0.45;
    filter: grayscale(0.2) blur(1px);
}

.lcv-shell.is-ready .lcv-embed {
    opacity: 1;
    filter: none;
}

.lcv-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.lcv-actions a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(10, 10, 10, 0.2);
    padding-bottom: 2px;
}

.lcv-actions a:hover {
    border-bottom-color: rgba(184, 134, 11, 0.55);
    color: var(--color-accent);
}

.site-footer {
    background: linear-gradient(to top, rgba(242, 240, 236, 0.7), rgba(250, 250, 248, 0));
}

@media (max-width: 768px) {
    .hero-copy::after {
        inset: 10px;
    }

    .countdown-shell {
        padding: 16px;
    }

    .countdown-shell > div::before {
        left: 12%;
        right: 12%;
    }

    .soft-tile {
        padding: 24px;
    }

    .lcv-embed {
        min-height: 560px;
    }

    .lcv-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .btn,
    .gallery-item img,
    .info-card {
        transition: none !important;
        animation: none !important;
    }
}
