* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #fff5ee;
    color: #7b4a2a;
}

/* ===== MENU ===== */
.menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,224,204,0.96);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.menu-inner {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    color: #7b4a2a;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.menu ul li a {
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    color: #7b4a2a;
    position: relative;
}

.menu ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #7b4a2a;
    transition: width 0.3s ease;
}

.menu ul li a:hover::after {
    width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #7b4a2a;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ffe0cc, #ffd1b3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: 98%;
    max-width: 980px;
}

.hero-tagline {
    margin-top: 30px;
    font-size: 22px;
}

.scroll-down {
    margin-top: 40px;
    font-size: 28px;
    text-decoration: none;
    color: #7b4a2a;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ===== SECTIONS ===== */
.section { scroll-margin-top: 120px; }

section {
    max-width: 1100px;
    margin: 90px auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
}

p {
    font-size: 18px;
    line-height: 1.75;
    max-width: 900px;
    margin: 0 auto 22px;
    text-align: center;
}

.seo-text {
    font-size: 14px;
    opacity: 0.6;
}

/* ===== EVENTS ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity .4s ease, transform .4s ease;
}

#lightbox img.show {
    opacity: 1;
    transform: scale(1);
}

.prev, .next, .close {
    position: absolute;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

.prev { left: 30px; }
.next { right: 30px; }
.close { top: 20px; right: 30px; }

#counter {
    position: absolute;
    bottom: 25px;
    font-size: 16px;
    opacity: 0.8;
}

/* ===== INSTAGRAM ===== */
.instagram a {
    font-weight: 600;
    text-decoration: none;
    color: #7b4a2a;
    font-size: 19px;
}

/* ===== ANIMATIONS (desktop only) ===== */
@media (min-width: 769px) {
    .animate {
        opacity: 0;
        transform: translateY(40px);
        transition: all 1.1s ease;
    }

    .animate.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
    .animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #ffe0cc;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

/* ===== MOBILE MENU – LISTĂ MICĂ ===== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .menu ul {
        position: absolute;
        top: 100%;
        right: 20px;
        background: #ffe0cc;
        flex-direction: column;
        gap: 18px;
        padding: 20px 26px;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        display: none;
    }

    .menu ul.open {
        display: flex;
    }

    .menu ul li a {
        font-size: 18px;
    }
}
/* === FIX MOBILE: afiseaza galeriile corect === */
@media (max-width: 768px) {
    .event.animate,
    .gallery {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 16px;
    color: #7b4a2a;
    opacity: 0.7;
    transition: opacity .3s ease;
}

.theme-toggle:hover {
    opacity: 1;
}

/* ===== WARM EVENING THEME ===== */
body.warm-dark {
    background: #3b2721;
    color: #f2d6c2;
}

/* MENU */
body.warm-dark .menu {
    background: rgba(59,39,33,0.92);
    backdrop-filter: blur(10px);
}

body.warm-dark .menu-logo,
body.warm-dark .menu a {
    color: #f2d6c2;
}

/* HERO (FIX REAL) */
body.warm-dark .hero {
    background: linear-gradient(135deg, #4a2f28, #3b2721);
}

body.warm-dark .hero-tagline {
    color: #f2d6c2;
}

/* SECTIONS */
body.warm-dark h2,
body.warm-dark h3 {
    color: #ffd9bf;
}

body.warm-dark p {
    color: #f2d6c2;
}

/* MOBILE MENU */
body.warm-dark .menu ul {
    background: #4a2f28;
}

/* FOOTER */
body.warm-dark footer {
    background: #4a2f28;
    color: #f2d6c2;
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

