/* === RESET & VARS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream:      #FFFAF5;
    --light-rose: #FFE8EF;
    --blush:      #F5B8C8;
    --rose:       #C94F6D;
    --deep:       #8B2040;
    --gold:       #C9923A;
    --text:       #2D1420;
    --text-mid:   #7A3848;
    --text-soft:  #B07080;
    --white:      #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

/* === FLOATING HEARTS === */
#hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -60px;
    animation: rise linear infinite;
    user-select: none;
    will-change: transform, opacity;
}

@keyframes rise {
    0%   { transform: translateY(0)       scale(1)    rotate(0deg);  opacity: 0;    }
    8%   {                                                             opacity: 0.65; }
    90%  {                                                             opacity: 0.2;  }
    100% { transform: translateY(-110vh) scale(0.4)  rotate(20deg); opacity: 0;    }
}

/* === HERO === */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(150deg, #FFF5F8 0%, #FFE8EF 50%, #FFF0E0 100%);
}

.hero-inner { max-width: 720px; }

/* names line */
.names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3.5vw, 1.9rem);
    color: var(--text-mid);
    letter-spacing: 0.28em;
    margin-bottom: 2rem;
}

.amp {
    color: var(--rose);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.fade-down {
    opacity: 0;
    animation: fadeDown 1s ease forwards 0.5s;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes pulse {
    0%, 100% { transform: scale(1);    }
    50%       { transform: scale(1.28); }
}

/* typewriter heading */
.typewriter-line {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 4.5vw, 2.9rem);
    font-weight: 600;
    color: var(--rose);
    line-height: 1.35;
    min-height: 2.6em;
    margin-bottom: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    background: var(--rose);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* subtitle */
.subtitle-line {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    color: var(--gold);
    line-height: 1.75;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.subtitle-line.show {
    opacity: 1;
    transform: translateY(0);
}

/* scroll arrow */
.scroll-arrow {
    margin-top: 3.5rem;
    font-size: 1.4rem;
    color: var(--blush);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scroll-arrow.show {
    opacity: 1;
    animation: bob 2s ease-in-out infinite;
}

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

/* === SHARED LAYOUT === */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 3.5vw, 2.4rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-heading.light { color: var(--white); }

.section-sub {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* === COUNTER === */
.counter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--deep) 0%, var(--rose) 100%);
    text-align: center;
    position: relative;
    z-index: 1;
}

.counter-section .section-heading {
    margin-bottom: 0;
}

.counters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2.5rem 0 1.5rem;
}

.c-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 1.4rem 2.2rem;
    min-width: 120px;
    backdrop-filter: blur(6px);
}

.c-item b {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.c-item span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 0.45rem;
}


/* === GALLERY === */
.gallery-section {
    padding: 6rem 0;
    background: var(--cream);
    position: relative;
    z-index: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.photo-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(140, 32, 64, 0.09);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    aspect-ratio: 4 / 3;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(140, 32, 64, 0.18);
}

/* featured card — left column, spans both rows */
.photo-card.featured {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
}

.placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    background: linear-gradient(135deg, #FFE8EF, #FDF0D5);
    border: 2px dashed var(--blush);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.2rem;
}

.placeholder span { font-size: 2.2rem; }

.placeholder em {
    font-size: 0.82rem;
    color: var(--text-soft);
    font-style: italic;
    text-align: center;
}

/* when real photos are added */
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === MESSAGE === */
.message-section {
    padding: 6rem 0;
    background: linear-gradient(160deg, #FFF5F8, #FFF0E0);
    position: relative;
    z-index: 1;
}

.message-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 8px 48px rgba(140, 32, 64, 0.1);
    position: relative;
}

.big-quote {
    font-family: 'Playfair Display', serif;
    font-size: 9rem;
    color: #FFE8EF;
    line-height: 0.4;
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    pointer-events: none;
    user-select: none;
}

.message-body {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-mid);
    line-height: 2;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.divider-hearts {
    color: var(--rose);
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.8rem;
}

.from {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* === FOOTER === */
footer {
    background: var(--text);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-heart {
    color: var(--blush);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.footer-sub {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.18em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-card.featured {
        grid-column: 1 / 3;
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }

    .counters { gap: 1rem; }
    .c-item { min-width: 100px; padding: 1.1rem 1.4rem; }

    .message-card { padding: 2.5rem 1.5rem; }
    .big-quote { font-size: 6rem; }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .photo-card.featured {
        grid-column: 1;
        aspect-ratio: 4 / 3;
    }
}
