/* ============================================
   WEDDING INVITATION - MAIN STYLES
   Design: Emerald Green + Beige/Cream Palette
   Inspired by Behance Taplink Design
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary Colors */
    --olive: #1B5E3B;
    --olive-dark: #14472D;
    --olive-light: #2A7A50;
    --sage: #5DAF8B;
    --sage-light: #8ECFB0;

    /* Neutral Colors */
    --cream: #F5F9F6;
    --cream-dark: #E8F0EB;
    --beige: #C8D5CC;
    --beige-light: #DCE8E0;
    --dusty-rose: #D4E0D8;
    --warm-white: #FAFCFA;

    /* Text Colors */
    --text-dark: #3C3C3C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --text-on-dark: #FFFFFF;
    --text-on-dark-muted: rgba(255, 255, 255, 0.8);

    /* Fonts */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 480px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.preloader-content {
    text-align: center;
}

.preloader-leaf {
    font-size: 48px;
    animation: preloaderFloat 1.5s ease-in-out infinite;
}

.preloader-text {
    font-family: var(--font-script);
    font-size: 32px;
    color: var(--text-on-dark);
    margin-top: 16px;
    opacity: 0.9;
}

@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ---- Container ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Invitation Wrapper ---- */
.invitation-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---- Typography ---- */
.script-font {
    font-family: var(--font-script);
    font-weight: 400;
}

.section-title {
    font-family: var(--font-script);
    font-size: 36px;
    color: var(--olive);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
}

.section-title-light {
    font-family: var(--font-script);
    font-size: 36px;
    color: var(--text-on-dark);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* ---- Section Waves ---- */
.section-wave {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.section-wave-top {
    top: -1px;
}

.section-wave-bottom {
    bottom: -1px;
}

.section-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 71, 45, 0.65) 0%,
        rgba(27, 94, 59, 0.55) 40%,
        rgba(20, 71, 45, 0.7) 100%
    );
    z-index: 1;
}

.hero-botanical {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    z-index: 1;
    opacity: 0.6;
}

.hero-botanical-left {
    left: 0;
}

.hero-botanical-right {
    right: 0;
}

.botanical-svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-bottom: 24px;
}

.hero-names {
    margin-bottom: 32px;
}

.hero-name {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(48px, 12vw, 72px);
    color: var(--text-on-dark);
    line-height: 1.1;
}

.hero-ampersand {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(32px, 8vw, 48px);
    color: var(--sage-light);
    margin: 4px 0;
    line-height: 1;
}

.hero-date-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0;
}

.hero-line {
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-date {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--text-on-dark-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.hero-scroll-hint span {
    display: block;
    margin-bottom: 8px;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ============================================
   SECTION 2: INVITATION TEXT
   ============================================ */
.invitation-section {
    background: var(--cream);
    padding: 80px 0 60px;
    position: relative;
}

.invitation-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--warm-white);
    border-radius: 20px;
    border: 1px solid rgba(27, 94, 59, 0.12);
    box-shadow: 0 8px 40px rgba(27, 94, 59, 0.08);
    position: relative;
}

.invitation-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 3px solid var(--olive);
    box-shadow: 0 8px 24px rgba(27, 94, 59, 0.15);
}

.invitation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.ornament-top, .ornament-bottom {
    text-align: center;
    margin-bottom: 20px;
}

.ornament-bottom {
    margin-top: 24px;
    margin-bottom: 0;
}

.invitation-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.invitation-text:last-of-type {
    margin-bottom: 0;
}

/* ============================================
   SECTION 3: COUNTDOWN
   ============================================ */
.countdown-section {
    position: relative;
    background: var(--olive);
    padding: 100px 0;
}

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

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
}

.countdown-item {
    text-align: center;
    min-width: 68px;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 300;
    color: var(--text-on-dark);
    line-height: 1;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-top: 8px;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-on-dark-muted);
    padding-top: 8px;
    line-height: 1;
}

.countdown-date-display {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--text-on-dark-muted);
    font-weight: 300;
}

.countdown-dot {
    margin: 0 2px;
}

/* ============================================
   SECTION 4: OUR STORY
   ============================================ */
.story-section {
    background: var(--cream);
    padding: var(--section-padding);
    position: relative;
}

.story-timeline {
    position: relative;
    padding-left: 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--olive), transparent);
    transform: translateX(-50%);
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
    gap: 20px;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-photo-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--olive);
    padding: 3px;
    flex-shrink: 0;
}

.story-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.story-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-light), var(--beige-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-photo-placeholder i {
    font-size: 36px;
    color: var(--olive);
    opacity: 0.6;
}

.story-content {
    max-width: 300px;
}

.story-date-label {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--olive);
    margin-bottom: 8px;
}

.story-content p {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ============================================
   SECTION 5: SCHEDULE / TIMELINE
   ============================================ */
.schedule-section {
    position: relative;
    background: var(--olive);
    padding: 100px 0;
}

.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
    animation-delay: var(--delay, 0s);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.timeline-icon i {
    font-size: 18px;
    color: var(--text-on-dark);
}

.timeline-time {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-on-dark);
    min-width: 70px;
    padding-top: 10px;
}

.timeline-desc {
    padding-top: 10px;
    flex: 1;
}

.timeline-desc h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 4px;
}

.timeline-desc p {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    color: var(--text-on-dark-muted);
    line-height: 1.5;
}

/* ============================================
   SECTION 6: LOCATION
   ============================================ */
.location-section {
    background: var(--cream);
    padding: var(--section-padding);
    position: relative;
}

.location-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-card {
    background: var(--warm-white);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(109, 119, 89, 0.12);
    box-shadow: 0 4px 20px rgba(109, 119, 89, 0.06);
    transition: var(--transition-smooth);
    animation-delay: var(--delay, 0s);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(109, 119, 89, 0.12);
}

.location-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--olive), var(--olive-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.location-icon i {
    font-size: 24px;
    color: var(--text-on-dark);
}

.location-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--olive-dark);
    margin-bottom: 12px;
}

.location-address {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.location-detail {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.location-time {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--olive);
    font-weight: 500;
    margin-bottom: 20px;
}

.location-time i {
    margin-right: 4px;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--olive);
    color: var(--text-on-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.location-btn:hover {
    background: var(--olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(109, 119, 89, 0.3);
}

/* ============================================
   SECTION 7: DRESS CODE
   ============================================ */
.dresscode-section {
    position: relative;
    background: var(--olive);
    padding: 100px 0;
    text-align: center;
}

.dresscode-text {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-on-dark);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.dresscode-colors {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.color-swatch-img {
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0;
}

.color-swatch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.dresscode-note {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-on-dark-muted);
    font-style: italic;
}

/* ============================================
   SECTION 8: PHOTO GALLERY (Polaroid Style)
   ============================================ */
.gallery-section {
    background: var(--cream);
    padding: var(--section-padding);
    position: relative;
}

.polaroid-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 380px;
    margin: 0 auto;
}

.polaroid {
    background: white;
    padding: 10px 10px 36px;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rotate, 0deg));
    transition: var(--transition-bounce);
    animation-delay: var(--delay, 0s);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    overflow: hidden;
}

.polaroid-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sage-light), var(--cream-dark), var(--beige-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid-placeholder i {
    font-size: 32px;
    color: var(--olive);
    opacity: 0.4;
}

.polaroid-caption {
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
    color: var(--text-medium);
    text-align: center;
    margin-top: 10px;
}

/* ============================================
   SECTION 9: RSVP
   ============================================ */
.rsvp-section {
    position: relative;
    background: var(--olive);
    padding: 100px 0;
}

.rsvp-subtitle {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-on-dark-muted);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.7;
}

.rsvp-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-on-dark-muted);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: var(--text-on-dark);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    outline: none;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--olive-dark);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio & Checkbox styles */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label, .checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: var(--transition-smooth);
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}

.radio-label:hover, .checkbox-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.radio-label input, .checkbox-label input {
    display: none;
}

.radio-custom, .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-custom {
    border-radius: 6px;
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    border-color: var(--sage-light);
    background: var(--sage-light);
}

.radio-custom::after, .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-smooth);
}

.radio-custom::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olive-dark);
}

.checkbox-custom::after {
    content: '✓';
    font-size: 12px;
    color: var(--olive-dark);
    font-weight: 700;
}

.radio-label input:checked ~ .radio-custom::after,
.checkbox-label input:checked ~ .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input:checked ~ span:last-child,
.checkbox-label input:checked ~ span:last-child {
    color: var(--text-on-dark);
}

.checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
}

.checkbox-label {
    flex: 1;
    min-width: 120px;
}

/* RSVP Button */
.rsvp-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--cream);
    color: var(--olive-dark);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.rsvp-btn:hover {
    background: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rsvp-btn:active {
    transform: translateY(0);
}

/* RSVP Success */
.rsvp-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: var(--sage-light);
    margin-bottom: 20px;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.rsvp-success h3 {
    font-family: var(--font-script);
    font-size: 36px;
    color: var(--text-on-dark);
    margin-bottom: 12px;
}

.rsvp-success p {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-on-dark-muted);
}

/* ============================================
   PHOTO BANNER (before footer)
   ============================================ */
.photo-banner-section {
    background: var(--cream);
    padding: 0;
}

.photo-banner {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 24px;
}

.photo-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 32px rgba(27, 94, 59, 0.12);
}

.photo-banner-overlay {
    position: absolute;
    inset: 0;
    left: 24px;
    right: 24px;
    border-radius: 20px;
    background: linear-gradient(to bottom, transparent 60%, rgba(27, 94, 59, 0.1) 100%);
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--cream);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-botanical {
    margin-bottom: 20px;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 40px;
    color: var(--olive);
    margin-bottom: 8px;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-message {
    font-family: var(--font-serif);
    font-size: 17px;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.footer-hearts {
    font-size: 20px;
    color: var(--dusty-rose);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    56% { transform: scale(1); }
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.music-toggle, .back-to-top {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.music-toggle {
    bottom: 80px;
    right: 20px;
    background: var(--olive);
    color: var(--text-on-dark);
    box-shadow: 0 4px 16px rgba(109, 119, 89, 0.3);
}

.music-toggle:hover {
    background: var(--olive-dark);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(109, 119, 89, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(109, 119, 89, 0.6); }
}

.back-to-top {
    bottom: 20px;
    right: 20px;
    background: var(--cream);
    color: var(--olive);
    border: 1px solid rgba(109, 119, 89, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--olive);
    color: var(--text-on-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
    :root {
        --container-width: 560px;
    }

    .section-title, .section-title-light {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 6px;
    }

    .countdown-number {
        font-size: 52px;
        min-width: 80px;
    }

    .countdown-item {
        min-width: 80px;
    }

    .timeline-item {
        margin-bottom: 48px;
    }

    .polaroid-gallery {
        max-width: 440px;
    }
}

@media (max-width: 380px) {
    .countdown-timer {
        gap: 4px;
    }

    .countdown-number {
        font-size: 32px;
        padding: 8px 4px;
    }

    .countdown-item {
        min-width: 56px;
    }

    .countdown-separator {
        font-size: 28px;
    }

    .hero-name {
        font-size: 42px;
    }

    .checkbox-label {
        min-width: 100%;
    }

    .timeline-time {
        font-size: 22px;
        min-width: 55px;
    }
}

/* ---- Print Styles ---- */
@media print {
    .music-toggle, .back-to-top, .hero-scroll-hint {
        display: none !important;
    }
}