/* ── Vintage Floral Wedding Theme ── */
:root {
    --cream:       #FAF6EF;
    --cream-dark:  #F0E8D8;
    --parchment:   #EDE0CC;
    --rose:        #7B1B2E;
    --rose-dark:   #5A1220;
    --rose-light:  #C9768A;
    --gold:        #B8860B;
    --gold-light:  #D4AF72;
    --green:       #4A6741;
    --text-dark:   #2C1A1D;
    --text-mid:    #5C3D3D;
    --white:       #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Global paper grain overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: rgba(250, 246, 239, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--parchment);
    box-shadow: 0 2px 12px rgba(123, 27, 46, 0.08);
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    color: var(--rose);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--rose); }

/* ── Hero / Invitation ── */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 7rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eedec8;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30 Z' fill='none' stroke='%237B1B2E' stroke-width='0.4' stroke-opacity='0.12'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%23B8860B' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 50%, rgba(255,252,245,0.75) 0%, transparent 65%),
        radial-gradient(ellipse at 0%   0%,  rgba(123,27,46,0.22)  0%, transparent 40%),
        radial-gradient(ellipse at 100% 0%,  rgba(184,134,11,0.20) 0%, transparent 40%),
        radial-gradient(ellipse at 0%   100%, rgba(184,134,11,0.20) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(123,27,46,0.22) 0%, transparent 40%);
    overflow: hidden;
}

/* ── Ornamental watermark ring behind the invitation card ── */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 96vw);
    height: min(640px, 96vw);
    border-radius: 50%;
    border: 1px solid rgba(123,27,46,0.20);
    box-shadow:
        0 0 0 10px rgba(184,134,11,0.08),
        0 0 0 20px rgba(123,27,46,0.10),
        0 0 0 40px rgba(184,134,11,0.06),
        0 0 0 70px rgba(123,27,46,0.05),
        0 0 0 110px rgba(184,134,11,0.03);
    pointer-events: none;
    z-index: 1;
}

/* ── Floral corner decorations ── */
.floral-corner {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.92;
    filter: drop-shadow(0 3px 10px rgba(123,27,46,0.28));
}

.rose-svg {
    display: block;
    width: 65px;
    height: 100px;
}

.floral-top-left    { top: -10px;  left: -10px;  transform: rotate(-20deg) scale(2.2); }
.floral-top-right   { top: -10px;  right: -10px; transform: rotate(20deg)  scale(2.2); }
.floral-bottom-left { bottom: -10px; left: -10px;  transform: rotate(20deg) scale(2.2); }
.floral-bottom-right{ bottom: -10px; right: -10px; transform: rotate(-20deg) scale(2.2); }

.floral-mid-left  { position: absolute; left: -20px;  top: 50%; transform: translateY(-50%) rotate(-10deg) scale(2.4); opacity: 0.78; pointer-events: none; filter: drop-shadow(0 3px 10px rgba(123,27,46,0.28)); }
.floral-mid-right { position: absolute; right: -20px; top: 50%; transform: translateY(-50%) rotate(10deg)  scale(2.4); opacity: 0.78; pointer-events: none; filter: drop-shadow(0 3px 10px rgba(123,27,46,0.28)); }
.floral-venue-left  { top: 50%; left: -20px;  transform: translateY(-50%) rotate(-10deg) scale(2.2); }
.floral-venue-right { top: 50%; right: -20px; transform: translateY(-50%) rotate(10deg)  scale(2.2); }

/* ── Date corner badge ── */
.date-corner-badge {
    position: absolute;
    top: 6rem;
    right: 1.5rem;
    border: 2px solid var(--rose);
    padding: 0.6rem 0.9rem;
    text-align: center;
    background: var(--white);
    min-width: 80px;
    box-shadow: 2px 2px 8px rgba(123,27,46,0.15);
}

.dcb-day {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.2rem;
}

.dcb-num {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--rose);
}

.dcb-month {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 1.1rem;
    color: var(--text-mid);
    margin-top: 0.2rem;
}

/* ── Invitation card ── */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--parchment);
    box-shadow:
        0 0 0 6px var(--cream),
        0 0 0 8px var(--parchment),
        0 10px 40px rgba(123,27,46,0.12);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out both;
    border-radius: 2px;
}

/* doily inner ring */
.hero-content::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(123,27,46,0.25);
    pointer-events: none;
}

.invite-intro {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.groom-name,
.bride-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--rose);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.parent-line {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.2rem;
}

.parent-names {
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.names-divider {
    margin: 1rem 0;
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--gold);
}

/* ── Scroll indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--rose-light);
    animation: bounce 2s infinite;
    z-index: 2;
}

.arrow { font-size: 1.8rem; }

/* ── Countdown Section ── */
.countdown-section {
    position: relative;
    padding: 4rem 2rem;
    background-color: #ede3d3;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0px, transparent 18px,
            rgba(184,134,11,0.04) 18px, rgba(184,134,11,0.04) 19px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px, transparent 18px,
            rgba(123,27,46,0.03) 18px, rgba(123,27,46,0.03) 19px
        );
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(184,134,11,0.25);
    border-bottom: 1px solid rgba(184,134,11,0.25);
}

.counting-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--rose);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--parchment);
    box-shadow: 0 4px 12px rgba(123,27,46,0.1);
    padding: 0.8rem 1.2rem;
    min-width: 70px;
}

.countdown-item span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--rose);
    line-height: 1;
}

.countdown-item small {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-top: 0.3rem;
}

.countdown-sep {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 300;
    margin: 0 0.1rem;
    align-self: flex-start;
    padding-top: 0.5rem;
}

/* ── Venue Section ── */
.venue-section {
    position: relative;
    padding: 5rem 2rem;
    background-color: #f5ede0;
    background-image:
        radial-gradient(ellipse at 0% 100%, rgba(123,27,46,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%,  rgba(184,134,11,0.08) 0%, transparent 50%);
    text-align: center;
    overflow: visible;
}

.venue-card {
    position: relative;
    z-index: 2;
    display: inline-block;
    max-width: 480px;
    width: 100%;
    background: var(--white);
    border: 3px solid var(--rose-dark);
    box-shadow:
        inset 0 0 0 4px var(--cream),
        inset 0 0 0 7px var(--rose-dark),
        0 15px 40px rgba(123,27,46,0.18);
    padding: 2.5rem 2rem;
    border-radius: 2px;
}

.venue-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    color: var(--rose);
    margin-bottom: 1rem;
}

.venue-name {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.venue-time {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-mid);
    font-style: italic;
    margin-bottom: 1.8rem;
}

.venue-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-map,
.btn-waze {
    display: inline-block;
    padding: 0.65rem 1.8rem;
    border: 1px solid var(--rose);
    border-radius: 2px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.25s ease;
    min-width: 120px;
}

.btn-map {
    background: var(--white);
    color: var(--rose);
}

.btn-waze {
    background: var(--rose);
    color: var(--white);
}

.btn-map:hover  { background: var(--rose); color: var(--white); }
.btn-waze:hover { background: var(--rose-dark); }

/* ── Add to Calendar ── */
.calendar-btn-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 1.2rem;
}

.btn-add-calendar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.8rem;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: transparent;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.88rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-add-calendar:hover {
    background: var(--gold);
    color: var(--white);
}

.calendar-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--parchment);
    box-shadow: 0 8px 24px rgba(123,27,46,0.15);
    min-width: 190px;
    z-index: 999;
    display: none;
    flex-direction: column;
}

.calendar-dropdown.open {
    display: flex;
}

.cal-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.2rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--parchment);
}

.cal-option:last-child { border-bottom: none; }
.cal-option:hover { background: var(--cream-dark); color: var(--rose); }
.cal-icon { font-size: 1rem; }

/* ── Our Love Story ── */
.love-story-section {
    padding: 5rem 2rem;
    background-color: #ede3d3;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px, transparent 28px,
            rgba(184,134,11,0.05) 28px, rgba(184,134,11,0.05) 29px
        );
    text-align: center;
    border-top: 1px solid rgba(184,134,11,0.25);
    border-bottom: 1px solid rgba(184,134,11,0.25);
}

.section-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--rose);
    margin-bottom: 2rem;
}

.love-story-text {
    max-width: 560px;
    margin: 0 auto;
}

.love-story-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    font-style: italic;
    margin-bottom: 1.4rem;
    line-height: 1.9;
}

/* ── RSVP Section ── */
.rsvp-section {
    padding: 5rem 2rem;
    background-color: #f5ede0;
    background-image:
        radial-gradient(ellipse at 50% 0%,   rgba(212,175,114,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(123,27,46,0.07)  0%, transparent 55%);
    text-align: center;
}

.rsvp-container {
    max-width: 520px;
    margin: 0 auto;
}

.rsvp-text {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
    font-style: italic;
}

.rsvp-card {
    background: var(--white);
    border: 1px solid var(--parchment);
    box-shadow: 0 8px 30px rgba(123,27,46,0.1);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.rsvp-card p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.btn-rsvp-main {
    display: inline-block;
    background: var(--rose);
    color: var(--white);
    padding: 0.9rem 2.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 14px rgba(123,27,46,0.25);
}

.btn-rsvp-main:hover {
    background: var(--rose-dark);
    transform: translateY(-2px);
}

.rsvp-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--green);
    font-style: italic;
}

.rsvp-contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--parchment);
}

.rsvp-contact-info .rsvp-note {
    font-size: 0.95rem;
    color: var(--rose);
    margin-bottom: 1rem;
    font-style: normal;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-info p { font-size: 0.9rem; color: var(--text-mid); }
.contact-info strong { color: var(--rose); }

/* ── Music Control ── */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--rose);
    border: 2px solid var(--gold-light);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(123,27,46,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-button:hover  { transform: scale(1.1); }
.music-button:active { transform: scale(0.95); }

.music-button.playing { animation: pulse 1.2s ease-in-out infinite; }

/* ── Music Overlay ── */
.music-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    z-index: 999999 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
    pointer-events: auto !important;
}

.music-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    display: none !important;
}

.overlay-content {
    text-align: center;
    padding: 3rem;
    cursor: pointer;
}

.wedding-logo { text-align: center; }

.logo-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.logo-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(212,175,114,0.5);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.logo-initials {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.initial-f { display: block; font-size: 4rem; margin-bottom: 0.3rem; }
.ampersand { font-size: 2rem; color: var(--gold-light); display: block; margin: 0.3rem 0; }
.initial-l { display: block; font-size: 4rem; margin-top: 0.3rem; }

.logo-date {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 3px;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* ── Footer ── */
.footer {
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-floral {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5rem;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.footer-date {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.footer-message {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    max-width: 400px;
    margin: 0 auto 1.2rem;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    font-family: 'Montserrat', sans-serif;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-14px); }
    60%  { transform: translateX(-50%) translateY(-7px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(123,27,46,0.4); }
    50%       { box-shadow: 0 8px 28px rgba(123,27,46,0.7); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .nav-brand { font-size: 1.3rem; }
    .nav-link  { font-size: 0.85rem; }

    .date-corner-badge { top: 5rem; right: 0.8rem; }
    .dcb-num  { font-size: 2rem; }

    .hero-content { padding: 2rem 1.2rem; }
    .groom-name, .bride-name { font-size: 2.4rem; }

    .floral-top-left, .floral-top-right,
    .floral-bottom-left, .floral-bottom-right { font-size: 3.5rem; }

    .countdown-item { min-width: 58px; padding: 0.6rem 0.8rem; }
    .countdown-item span { font-size: 1.5rem; }

    .venue-card { padding: 2rem 1.2rem; }
    .venue-buttons { flex-direction: column; align-items: center; }

    .contact-info { flex-direction: column; gap: 0.4rem; }
}
