@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,600&family=Outfit:wght@300;400;500&display=swap');

:root {
    --bg: #060d06;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.42);
    --border: rgba(255,255,255,0.07);
    --accent: #a8c87a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Outfit', sans-serif; overflow-x: hidden; }

/* Petals */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.petal {
    position: absolute;
    top: -40px;
    animation: fallPetal linear infinite;
    user-select: none;
}
@keyframes fallPetal {
    0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.3; }
    50%  { transform: translateY(50vh) rotate(180deg) translateX(40px); }
    100% { transform: translateY(105vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; padding: 1rem 2rem; z-index: 100; background: rgba(6,13,6,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-back { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.nav-back:hover { opacity: 1; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative; z-index: 1;
}
.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,200,122,0.08), transparent 70%);
    pointer-events: none;
}
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1rem; font-weight: 300; max-width: 500px; line-height: 1.75; }

/* Flower blocks */
.flowers-main { position: relative; z-index: 1; }

.flower-block {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 3rem;
    align-items: center;
    padding: 5rem 4rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,255,255,0.015), transparent);
    transition: background 0.4s;
}
.flower-block:hover { background: linear-gradient(135deg, rgba(168,200,122,0.04), transparent); }
.flower-block.reverse { direction: rtl; }
.flower-block.reverse > * { direction: ltr; }

/* Flower visual column */
.flower-visual {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255,255,255,0.02);
}
.flower-emoji { font-size: 4rem; margin-bottom: 0.8rem; display: block; line-height: 1; }
.flower-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; margin-bottom: 0.3rem; }
.flower-origin { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); font-style: italic; }

/* Content column */
.flower-content { }
.flower-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400; line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text);
}
.flower-compare {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}
.flower-trait {
    display: inline-block;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent);
    border: 1px solid rgba(168,200,122,0.3);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
}

/* Photo column */
.flower-photo { position: relative; }
.flower-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.4s;
}
.flower-block:hover .flower-photo img { filter: brightness(0.95) saturate(1.05); }
.photo-caption-fl {
    margin-top: 0.6rem;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
}

/* Footer */
.footer { text-align: center; padding: 5rem 1rem 4rem; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.footer-line { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; line-height: 1.7; margin-bottom: 2rem; color: rgba(255,255,255,0.6); }
.footer-line em { color: var(--accent); font-style: italic; }
.footer-back { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
.footer-back:hover { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
    .flower-block { grid-template-columns: 1fr; padding: 3rem 1.5rem; text-align: center; }
    .flower-block.reverse { direction: ltr; }
    .flower-photo img { max-width: 280px; margin: 0 auto; }
    .photo-caption-fl { max-width: 280px; margin: 0.6rem auto 0; }
}

/* Gift Button */
.gift-btn {
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #060d06;
    background: var(--accent);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(168, 200, 122, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.gift-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(168, 200, 122, 0.6);
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    position: relative;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text);
}
.modal-emoji {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: pulseHeart 1.5s ease infinite alternate;
}
@keyframes pulseHeart {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.modal-msg {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.8rem;
}
.modal-btn {
    padding: 0.7rem 2rem;
    border: 1px solid var(--accent);
    background: none;
    color: var(--accent);
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.modal-btn:hover {
    background: var(--accent);
    color: #060d06;
}
