:root {
    --bg-color: #f8f8f8;
    --text-color: #1a1a1a;
    --accent-color: #b33b00;
    --nav-height: 70px;
    --white: #ffffff;
    --black: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg-color); color: var(--text-color); line-height: 1.6; padding-top: var(--nav-height); }
h1, h2, h3 { font-family: 'Playfair Display', serif; margin-bottom: 20px; }

/* NAV */
nav { display: flex; justify-content: space-between; align-items: center; height: var(--nav-height); padding: 0 5%; background: var(--white); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; border-bottom: 1px solid #ddd; }
.logo { margin: 0; padding: 0; display: flex; align-items: center; height: 100%; }
.logo a { display: block; }
.logo img { height: auto; width: auto; max-height: calc(var(--nav-height) * 0.9); display: block; }
.nav-links { display: flex; gap: 20px; list-style: none; text-transform: uppercase; font-weight: 600; font-size: 0.8rem; }
/* Hamburger hidden by default (desktop) */
.hamburger { display: none; }
.nav-links a { text-decoration: none; color: var(--text-color); }
.nav-links a:hover, .active-page { color: var(--accent-color); }
.lang-switch { cursor: pointer; display: flex; gap: 10px; font-weight: bold; }
.lang-switch span.active { border-bottom: 2px solid var(--accent-color); }

/* HERO */
header { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; color: var(--white); overflow: hidden; }
.back-video { position: absolute; right: 0; bottom: 0; min-width: 100%; min-height: 100%; z-index: -2; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: -1; }
.hero-content { text-align: center; z-index: 1; }
.hero-content h1 { font-size: 4rem; }

/* PAGES CONTENT */
.page-content { padding: 50px 10%; min-height: 60vh; }
.text-block { max-width: 800px; margin-bottom: 40px; }
.small-text { font-size: 0.85rem; color: #666; }

/* EVENTS */
.event-card { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 25px; margin-bottom: 20px; border-left: 5px solid var(--accent-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.date-box { text-align: center; font-weight: bold; margin-right: 20px; }
.date-box .day { font-size: 2rem; display: block; line-height: 1; }
.map-link { font-size: 0.8rem; color: #666; text-decoration: underline; }

/* BUTTONS */
.btn { padding: 12px 25px; text-transform: uppercase; font-weight: 600; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-primary { background: var(--accent-color); color: var(--white); }
.btn-secondary { border: 2px solid var(--white); color: var(--white); }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-bottom: 40px; grid-auto-rows: 220px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; transition: transform 0.3s; display: block; }

/* Modal styles used by events page */
.modal { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.5); z-index: 2000; }
.modal.hidden { display: none; }
.modal-content { background: #fff; padding: 20px; border-radius: 6px; width: 90%; max-width: 640px; position: relative; }
.modal-close { position: absolute; right: 8px; top: 6px; background: transparent; border: none; font-size: 22px; cursor: pointer; }
.modal-content h3 { margin-top: 0; }
.modal-content form label { display:block; margin:8px 0; font-size:0.95rem; }
.modal-content form input, .modal-content form textarea { width:100%; padding:8px; margin-top:4px; }

/* Tweak event card layout for actions alignment */
.event-card { display:flex; gap:18px; align-items:center; background:#fff; padding:18px; margin-bottom:14px; border-left:5px solid var(--accent-color); box-shadow:0 2px 5px rgba(0,0,0,0.06); }
.event-card .event-details { flex:1; }

/* Admin-only helper: hide by default, show when JS adds .show */
.admin-only { display: none !important; }
.admin-only.show { display: inline-block !important; }

/* FOOTER */
footer { background: #111; color: #888; padding: 40px 10%; text-align: center; margin-top: 50px; }
.social-icons { margin: 20px 0; }
.social-icons a { margin: 0 10px; color: var(--white); font-size: 1.5rem; text-decoration: none; }
.social-icons a:hover { color: var(--accent-color); }
.newsletter-form { margin: 20px 0; }
.newsletter-form input { padding: 10px; width: 250px; }
.newsletter-form button { padding: 10px 20px; background: var(--accent-color); border: none; color: white; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: inline-flex; flex-direction: column; gap: 8px; width: 56px; height: 44px; padding: 10px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; z-index: 1600; -webkit-tap-highlight-color: transparent; }
    .hamburger span { display: block; height: 4px; width: 40px; background: var(--text-color); border-radius: 3px; }

    /* Hide desktop horizontal links; mobile menu will show them when nav.open */
    .nav-links { display: none; }

    /* Mobile menu (shown when nav has .open) */
    nav.open .nav-links { display: flex; position: fixed; top: calc(var(--nav-height)); left: 0; right: 0; background: var(--white); height: calc(100vh - var(--nav-height)); flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18px; gap: 18px; z-index: 1500; }
    nav.open .nav-links li { list-style: none; }
    nav.open .nav-links a { font-size: 1.05rem; padding: 10px 20px; }

    .event-card { flex-direction: column; text-align: center; gap: 15px; }
    .hero-content h1 { font-size: 2.5rem; }
}