/* ======================================================
   Juandre & Monique · Save the Date
   Design: Cinematic dark romance — champagne gold on deep ink
   ====================================================== */

:root {
    --bg:          #080605;
    --bg-card:     #100D0B;
    --bg-light:    #F4EDE4;
    --fg:          #EFE4D0;
    --fg-muted:    rgba(239,228,208,0.55);
    --fg-dark:     #1A1410;
    --fg-dark-muted: #5A4E42;
    --gold:        #C8A86A;
    --gold-light:  #E2C896;
    --gold-dim:    rgba(200,168,106,0.18);
    --rose:        #9C6B5E;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-script:  'Dancing Script', cursive;
    --font-body:    'Jost', system-ui, sans-serif;
    --ease-silk:    cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ====================================================
   MUSIC PLAYER
   ==================================================== */
.music-player {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(8,6,5,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200,168,106,0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem 0.4rem 0.45rem;
}
.music-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.music-btn:hover { background: var(--gold); color: var(--bg); }
.music-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    white-space: nowrap;
}
.music-player.playing .music-label { color: var(--gold-light); }
.music-prompt {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    white-space: nowrap;
    animation: promptPulse 2s ease-in-out infinite;
}
@keyframes promptPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slideshow — CSS keyframe animation cycling through 13 slides */
.slideshow {
    position: absolute;
    inset: -5% -5%;
    z-index: 0;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.42) contrast(1.05);
}

/* 13 slides, 8s each = 104s total */
.slide.s1  { animation: slideShow 104s 0s   infinite; }
.slide.s2  { animation: slideShow 104s 8s   infinite; }
.slide.s3  { animation: slideShow 104s 16s  infinite; }
.slide.s4  { animation: slideShow 104s 24s  infinite; }
.slide.s5  { animation: slideShow 104s 32s  infinite; }
.slide.s6  { animation: slideShow 104s 40s  infinite; }
.slide.s7  { animation: slideShow 104s 48s  infinite; }
.slide.s8  { animation: slideShow 104s 56s  infinite; }
.slide.s9  { animation: slideShow 104s 64s  infinite; }
.slide.s10 { animation: slideShow 104s 72s  infinite; }
.slide.s11 { animation: slideShow 104s 80s  infinite; }
.slide.s12 { animation: slideShow 104s 88s  infinite; }
.slide.s13 { animation: slideShow 104s 96s  infinite; }

@keyframes slideShow {
    0%      { opacity: 0; }
    3%      { opacity: 1; }
    /* visible 8s / 104s ≈ 7.7% */
    7%      { opacity: 1; }
    10%     { opacity: 0; }
    100%    { opacity: 0; }
}

/* Vignette overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(8,6,5,0.6) 100%),
        linear-gradient(to bottom,
            rgba(8,6,5,0.15) 0%,
            transparent 30%,
            transparent 55%,
            rgba(8,6,5,0.92) 100%);
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem max(20px, 5vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.save-the-date-script {
    font-family: var(--font-script);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeUp 1.2s 0.4s var(--ease-silk) forwards;
}
.hero-names {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--fg);
    opacity: 0;
    animation: fadeUp 1.2s 0.7s var(--ease-silk) forwards;
}
.hero-amp {
    font-style: normal;
    color: var(--gold);
    font-weight: 300;
    display: inline-block;
    margin: 0 0.35em;
    font-size: 0.65em;
    vertical-align: middle;
}
.hero-rule {
    width: 70px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
    opacity: 0;
    animation: fadeIn 1.2s 1.1s var(--ease-silk) forwards;
}
.hero-date {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0;
    animation: fadeUp 1.2s 1s var(--ease-silk) forwards;
}
.hero-venue {
    margin-top: 0.7rem;
    font-family: var(--font-body);
    font-weight: 200;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    animation: fadeUp 1.2s 1.2s var(--ease-silk) forwards;
}
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1.5s 2.2s var(--ease-silk) forwards;
}
.scroll-hint span {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--fg-muted);
}
.scroll-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: arrowPulse 2.2s infinite;
}

/* ====================================================
   SECTIONS — SHARED
   ==================================================== */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: max(24px, 5vw);
}
.eyebrow {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
    display: block;
}
.section-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--fg);
    margin-bottom: 2rem;
}
.section-title.dark { color: var(--fg-dark); }

/* ====================================================
   STORY
   ==================================================== */
.story-section {
    background: var(--bg-card);
    padding-block: 8rem 7rem;
    position: relative;
}
.story-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.story-lead {
    max-width: 60ch;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--fg-muted);
    margin-bottom: 4.5rem;
}

/* Timeline */
.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-dim) 8%, var(--gold-dim) 92%, transparent);
}
.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0 2.5rem;
    padding-bottom: 3rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 150px;
    top: 7px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-item.highlight::before {
    background: var(--gold);
    box-shadow: 0 0 14px rgba(200,168,106,0.5);
    width: 11px; height: 11px;
    top: 6px;
}
.timeline-year {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
    padding-top: 0.1rem;
    text-align: right;
    padding-right: 2.5rem;
    line-height: 1.4;
}
.timeline-content h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--fg);
    margin-bottom: 0.35rem;
}
.timeline-content p {
    font-size: 0.9rem;
    color: var(--fg-muted);
    line-height: 1.85;
    max-width: 52ch;
}

/* Story photo strip */
.story-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 5rem;
}
.story-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 1px;
}
.story-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.88);
    transition: transform 0.8s var(--ease-silk), filter 0.6s;
}
.story-photo:hover img { transform: scale(1.05); filter: brightness(1); }

/* ====================================================
   COUNTDOWN
   ==================================================== */
.countdown-section {
    padding-block: 7rem;
    background: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.countdown-section::before {
    content: '"Until I Found You"';
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(4rem, 13vw, 10rem);
    color: rgba(200,168,106,0.04);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}
.countdown-section .section-inner { position: relative; }
.countdown {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: 3rem;
    flex-wrap: wrap;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.countdown-number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 1;
    color: var(--fg);
    min-width: 2ch;
    text-align: center;
}
.countdown-label {
    font-size: 0.62rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
}
.countdown-sep {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold-dim);
    line-height: 1;
    margin-bottom: 1.6rem;
    font-style: italic;
}

/* ====================================================
   VENUE
   ==================================================== */
.venue-section {
    background: var(--bg-light);
    padding-block: 7rem;
}
.venue-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.venue-eyebrow { color: var(--rose); }
.venue-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--fg-dark);
    margin-bottom: 0.15rem;
    font-weight: 400;
}
.venue-space {
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1.3rem;
    font-weight: 300;
    display: block;
}
.venue-rule {
    width: 44px; height: 1px;
    background: var(--rose);
    margin-bottom: 1.4rem;
}
.venue-address {
    font-size: 0.92rem;
    line-height: 2.1;
    color: var(--fg-dark-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}
.venue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose);
    border-bottom: 1px solid var(--rose);
    padding-bottom: 2px;
    transition: opacity 0.2s;
    font-weight: 300;
}
.venue-link:hover { opacity: 0.65; }

.venue-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.venue-photo { overflow: hidden; border-radius: 1px; }
.venue-photo.vp-main {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}
.venue-photo:not(.vp-main) { aspect-ratio: 4/5; }
.venue-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s var(--ease-silk);
}
.venue-photo:hover img { transform: scale(1.04); }

/* ====================================================
   CALENDAR CTA
   ==================================================== */
.calendar-section {
    background: var(--bg-card);
    padding-block: 8rem;
    text-align: center;
    position: relative;
}
.calendar-section::before,
.calendar-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.calendar-section::before { top: 0; }
.calendar-section::after  { bottom: 0; }
.calendar-sub {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--fg-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 44ch;
    margin-inline: auto;
}
.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1.1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.35s;
}
.calendar-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s var(--ease-silk);
    z-index: 0;
}
.calendar-btn:hover::before { transform: scaleX(1); }
.calendar-btn:hover { color: var(--bg); }
.calendar-btn span { position: relative; z-index: 1; }
.btn-diamond { font-size: 0.6em; }
.calendar-btn:active { transform: scale(0.98); }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
    background: var(--bg);
    padding-block: 4rem;
    text-align: center;
    border-top: 1px solid var(--gold-dim);
}
.footer-ornament {
    font-size: 0.6rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5em;
}
.footer-names {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.footer-sub {
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 200;
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes arrowPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.18); }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
    .timeline::before { left: 0; }
    .timeline-item    { grid-template-columns: 1fr; padding-left: 1.5rem; gap: 0.35rem; }
    .timeline-item::before { left: 0; }
    .timeline-year    { text-align: left; padding-right: 0; }

    .story-photos     { grid-template-columns: repeat(2,1fr); }
    .story-photos .story-photo:last-child { display: none; }

    .venue-inner      { grid-template-columns: 1fr; gap: 3rem; }
    .venue-photos     { order: -1; }

    .countdown-sep    { display: none; }
    .music-label      { display: none; }
    .music-player     { padding: 0.4rem 0.5rem; }
}
@media (max-width: 480px) {
    .story-photos { grid-template-columns: 1fr; }
    .story-photos .story-photo:last-child { display: block; }
    .venue-photos { grid-template-columns: 1fr; }
    .venue-photo.vp-main { grid-column: 1; }
}

/* ====================================================
   BLAZOR ERROR UI
   ==================================================== */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: #1a0f0f;
    color: #e8c8c8;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    border-top: 1px solid #8B3333;
}
#blazor-error-ui .reload { color: #E8A8A8; margin-left: 1rem; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
