/* ==========================================================================
   Andi & Lucia – Hochzeit Madeira – Design System
   ========================================================================== */

/* --- Custom Properties --- */
:root {
    --color-primary: #3B2D3F;
    --color-primary-light: #5a4660;
    --color-accent: #c4956a;
    --color-accent-dark: #a67a52;
    --color-accent-light: #dbb896;
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ece6;
    --color-white: #ffffff;
    --color-text: #2c3e3e;
    --color-text-light: #7a8a8a;
    --color-border: #e0dbd4;
    --color-overlay: rgba(59, 45, 63, 0.55);
    --color-success: #4a8c6f;

    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

    --text-hero: clamp(3rem, 8vw, 6rem);
    --text-4xl: clamp(2rem, 4vw, 3rem);
    --text-2xl: clamp(1.25rem, 2.5vw, 1.75rem);
    --text-xl: 1.25rem;
    --text-lg: 1.125rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;

    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --gap: clamp(0.75rem, 2vw, 1.25rem);
    --radius: 8px;
    --radius-lg: 16px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration: 0.4s;
    --duration-slow: 0.8s;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-size: var(--text-4xl);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-style: italic;
    font-weight: 300;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
}

.section-ornament {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 1rem;
    color: var(--color-accent);
}

.section-ornament img {
    height: 22px;
    width: auto;
    opacity: 0.75;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background var(--duration) ease, padding var(--duration) ease, box-shadow var(--duration) ease;
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-white);
    transition: color var(--duration) ease;
    letter-spacing: 0.03em;
}

.nav-lions {
    height: 44px;
    width: auto;
    opacity: 0.95;
    transition: opacity var(--duration) ease, filter var(--duration) ease;
    filter: brightness(0) invert(1);
}

.nav.scrolled .nav-lions {
    filter: none;
    opacity: 0.85;
}

.nav-logo:hover .nav-lions {
    opacity: 1;
}

.nav.scrolled .nav-logo {
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--duration) ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav.scrolled .nav-links a {
    color: var(--color-text);
}

.nav.scrolled .nav-links a:hover {
    color: var(--color-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav.scrolled .nav-toggle span {
    background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    animation: heroSlide 35s infinite;
}

/* 5 slides, each cycle = 35s, each visible ~7s, crossfade 1.2s */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
.hero-slide:nth-child(4) { animation-delay: 21s; }
.hero-slide:nth-child(5) { animation-delay: 28s; }

@keyframes heroSlide {
    0%   { opacity: 0; transform: scale(1.08); }
    3%   { opacity: 1; }
    20%  { opacity: 1; transform: scale(1); }
    23%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 1; transform: none; }
    .hero-slide:not(:first-child) { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    background: linear-gradient(
        180deg,
        rgba(59, 45, 63, 0.3) 0%,
        rgba(59, 45, 63, 0.5) 50%,
        rgba(59, 45, 63, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 1.5rem;
}

.hero-date {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-hero);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s var(--ease-out) 0.5s forwards;
}

.hero-rings {
    display: block;
    width: clamp(60px, 10vw, 90px);
    height: auto;
    margin: 0.75rem auto 1.25rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.85);
    filter: brightness(0) invert(1);
    animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero-location {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero-scroll svg {
    animation: bounceDown 2s ease-in-out infinite;
}

/* ==========================================================================
   Filter Tabs
   ========================================================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.filter-tab {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    transition: all var(--duration) ease;
}

.filter-tab:hover {
    color: var(--color-primary);
    border-color: var(--color-primary-light);
}

.filter-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Category Pills (upload form) */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    cursor: pointer;
}

.category-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-pill span {
    display: inline-block;
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    background: var(--color-white);
    color: var(--color-text-light);
    transition: all var(--duration) ease;
}

.category-pill input:checked + span {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.category-pill:hover span {
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.category-pill input:checked + span:hover {
    color: var(--color-white);
}

/* Category badge on guestbook card */
.guestbook-category {
    display: inline-block;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    background: rgba(196, 149, 106, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Photo Gallery – Masonry
   ========================================================================== */
.gallery-grid {
    column-count: 3;
    column-gap: var(--gap);
}

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: var(--gap);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out), filter var(--duration) ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(59, 45, 63, 0);
    transition: background var(--duration) ease;
    pointer-events: none;
    border-radius: var(--radius);
}

.gallery-item:hover::after {
    background: rgba(59, 45, 63, 0.08);
}

/* Hidden items for load-more or filter */
.gallery-item.hidden,
.gallery-item.filtered {
    display: none;
}

.btn-load-more {
    display: block;
    margin: 3rem auto 0;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 0.875rem 2.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    background: transparent;
    transition: background var(--duration) ease, color var(--duration) ease;
}

.btn-load-more:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-load-more.hidden {
    display: none;
}

/* ==========================================================================
   Video Gallery
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.video-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: var(--color-primary);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out), opacity var(--duration) ease;
}

.video-card:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.video-play svg {
    opacity: 0.85;
    transition: opacity var(--duration) ease, transform var(--duration) var(--ease-out);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.video-card:hover .video-play svg {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   Guestbook & Upload
   ========================================================================== */

/* Access Gate */
.upload-gate {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.gate-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 20px rgba(59, 45, 63, 0.06);
}

.gate-card p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.gate-input-wrap {
    display: flex;
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto;
}

.gate-error {
    color: #c0392b;
    font-size: var(--text-sm);
    margin-top: 0.75rem;
    min-height: 1.2em;
}

/* Form Elements */
.input {
    width: 100%;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 300;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
    outline: none;
}

.input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

/* Upload Form */
.upload-form-wrap {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.upload-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 20px rgba(59, 45, 63, 0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--duration) ease, background var(--duration) ease;
    color: var(--color-text-light);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--color-accent);
    background: rgba(196, 149, 106, 0.04);
}

.dropzone.has-files {
    border-color: var(--color-success);
    background: rgba(74, 140, 111, 0.04);
}

.dropzone svg {
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.dropzone p {
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    font-size: var(--text-xs);
    opacity: 0.6;
}

/* File List */
.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.file-item-icon {
    flex-shrink: 0;
    font-size: var(--text-base);
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    color: var(--color-text-light);
    font-size: var(--text-xs);
    white-space: nowrap;
}

.file-item-remove {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}

.file-item-remove:hover {
    color: #c0392b;
}

.file-item-progress {
    width: 100%;
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.375rem;
}

.file-item-progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    transition: all var(--duration) ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-submit {
    width: 100%;
    font-size: var(--text-base);
    padding: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Upload Success */
.upload-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 20px rgba(59, 45, 63, 0.06);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.success-icon {
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.upload-success h3 {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
}

.upload-success p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Guestbook Wall */
.guestbook-wall {
    margin-top: 2rem;
}

.guestbook-wall-title {
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: 2rem;
}

.guestbook-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

.guestbook-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(59, 45, 63, 0.05);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) ease;
}

.guestbook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(59, 45, 63, 0.08);
}

.guestbook-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guestbook-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 500;
    flex-shrink: 0;
}

.guestbook-card::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    margin-bottom: 0.75rem;
    background: var(--color-accent);
    opacity: 0.35;
    -webkit-mask: url('../images/heart.svg') center / contain no-repeat;
    mask: url('../images/heart.svg') center / contain no-repeat;
}

.guestbook-name {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-primary);
}

.guestbook-date {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

.guestbook-message {
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Guest Media: Main Image + "Mehr anzeigen" */
.guestbook-media {
    position: relative;
}

.guestbook-main-image {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.guestbook-main-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.guestbook-main-image:hover img {
    transform: scale(1.03);
}

.guestbook-more-badge {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.375rem 0.875rem;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.03em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.guestbook-more-badge:hover,
.guestbook-more-badge:focus-visible {
    background: var(--color-accent, var(--color-text-light));
    color: var(--color-bg, #fff);
    outline: none;
}

.guestbook-hidden-link {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Guest Videos */
.guestbook-videos {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guestbook-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: border-color var(--duration) ease, color var(--duration) ease;
    cursor: pointer;
}

.guestbook-video-link:hover {
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.guestbook-video-play svg {
    width: 20px;
    height: 20px;
}

.guestbook-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-light);
    padding: 2rem;
    font-style: italic;
}

/* ==========================================================================
   Location
   ========================================================================== */
.location-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 960px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(59, 45, 63, 0.06);
}

.location-map {
    position: relative;
    min-height: 320px;
    background: var(--color-bg-alt);
}

.location-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.location-name {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    font-weight: 500;
}

.location-address {
    color: var(--color-text);
    font-size: var(--text-base);
}

.location-coords {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
}

.location-btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .location-wrap {
        grid-template-columns: 1fr;
    }
    .location-map {
        min-height: 260px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
}

.footer-ornament {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-heart {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin: 0 0.35em;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.footer-ornament img {
    height: 32px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.footer-detail {
    font-size: var(--text-sm);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-admin {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    transition: color var(--duration) ease;
}

.footer-admin:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* Staggered reveal for gallery items */
.gallery-item.reveal {
    transform: translateY(20px);
    transition-duration: 0.6s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100svh;
        background: var(--color-bg);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.4s var(--ease-out);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--color-text) !important;
        font-size: var(--text-base);
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
    }

    /* Gallery */
    .gallery-grid {
        column-count: 2;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Guestbook */
    .guestbook-entries {
        grid-template-columns: 1fr;
    }

    .gate-input-wrap {
        flex-direction: column;
    }

    .upload-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}
