/* --- THEME: Default Nineteen Twenty --- */

/* --- Global Resets and Base Styles --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.65;
    color: #e0e0e0;
    background-color: #1a1a1a;
    font-size: 16px;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    color: #c0a062;
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 700;
}
p {
    margin-bottom: 1.5em;
    color: #ccc;
}
a {
    color: #c0a062;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: #d4b77f;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Utility & Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* --- Header --- */
#main-header {
    background-color: #0d0d0d;
    padding: 12px 0;
    border-bottom: 3px solid #c0a062;
    position: sticky; top: 0; z-index: 1000;
    transition: padding 0.3s ease-in-out, box-shadow 0.3s ease; /* Simplified transition */
}

#main-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: align-items 0.3s ease-in-out;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

div.logo img {
    width: 350px;
    height: auto;
    border: 2px solid #c0a062;
    padding: 3px; 
    background-color: #0d0d0d;
    box-shadow: none;
}

/* Simplified scroll effect */
#main-header.scrolled {
    padding: 8px 0; /* Only padding changes for a smooth, stable effect */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ALL .logo-minimized RULES HAVE BEEN REMOVED */

/* Hamburger Button Styles */
#hamburger-button {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1010;
    position: absolute;
    top: 10px;
    right: 15px;
}
#hamburger-button .hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #c0a062;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}
#hamburger-button.active .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger-button.active .hamburger-bar:nth-child(2) { opacity: 0; }
#hamburger-button.active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Navigation Menu Styles (No Dropdown) --- */
#main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0; margin: 0;
}
#main-nav ul li {
    margin: 0 5px;
}
#main-nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    font-size: 1em;
    border-radius: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    text-decoration: none;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: #c0a062;
    background-color: #2a2a2a;
}

/* --- Parallax Section and other page content... --- */
.parallax-section {
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.parallax-section::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}
.parallax-content { position: relative; z-index: 1; padding: 20px; }
.parallax-content h2 {
    font-size: 2.8em; margin-bottom: 15px; color: #c0a062;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.parallax-content p { font-size: 1.3em; color: #f0f0f0; }

/* Hero Images */
.home-hero { background-image: url('../images/placeholder_hero.jpg'); }
.about-hero { background-image: url('../images/placeholder_about.jpg'); }
.contact-hero { background-image: url('../images/placeholder_contact.jpg'); }
.benefits-hero { background-image: url('../images/placeholder_benefits_hero.jpg'); }
.rules-hero { background-image: url('../images/placeholder_rules_hero.jpg'); }
.guild-hero { background-image: url('../images/placeholder_guild_hero.jpg'); }
.gallery-hero { background-image: url('../images/placeholder_gallery_hero.jpg'); }

/* --- Main Content Area --- */
.main-content { padding: 40px 0; }
.main-content .container {
    background-color: #222;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.main-content h2.page-title {
    font-size: 2.2em; color: #c0a062; margin-bottom: 25px; text-align: center;
}
.main-content p { font-size: 1.05em; color: #ccc; }
img.inline-image {
    margin: 25px auto;
}
.image-grid { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.image-grid img { box-shadow: 0 0 10px rgba(0,0,0,0.3); }

/* --- Gallery Page Styles --- */
.gallery-grid-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-bottom: 2em;
}
.gallery-item {
    display: block; position: relative; overflow: hidden;
    border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 3px; transition: transform 0.4s ease, opacity 0.4s ease;
    border: none; box-shadow: none;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* --- Contact Form --- */
.contact-form label { display: block; margin-bottom: 8px; color: #c0a062; font-weight: bold; font-size: 0.95em; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%; padding: 12px; margin-bottom: 20px;
    border: 1px solid #555; background-color: #333; color: #e0e0e0;
    border-radius: 4px; font-size: 1em;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none; border-color: #c0a062; box-shadow: 0 0 5px rgba(192, 160, 98, 0.5);
}
.contact-form button[type="submit"] {
    background-color: #c0a062; color: #1a1a1a; padding: 12px 25px;
    border: none; border-radius: 4px; cursor: pointer;
    font-size: 1.05em; font-weight: bold; transition: background-color 0.3s ease;
}
.contact-form button[type="submit"]:hover { background-color: #a5854e; }
.form-message { padding: 15px; margin-bottom: 20px; border-radius: 4px; font-size: 1em; }
.form-message.success { background-color: #28a745; color: #fff; border: 1px solid #1e7e34;}
.form-message.error { background-color: #dc3545; color: #fff; border: 1px solid #b82e3b;}

/* --- Footer --- */
footer {
    background-color: #0d0d0d; color: #aaa; text-align: center;
    padding: 30px 0; border-top: 3px solid #c0a062; margin-top: 40px;
    font-size: 0.85em;
}
footer p { margin-bottom: 8px; }

/* --- Lightbox2 Customization --- */
.lb-data .lb-caption { color: #ccc; font-family: 'Georgia', serif; font-size: 0.9em; font-weight: normal; line-height: 1.4; }
.lb-data .lb-number { color: #aaa; font-size: 0.8em; }
.lb-dataContainer, .lb-outerContainer { background-color: #0d0d0d; border-radius: 3px; }
.lb-nav a.lb-prev, .lb-nav a.lb-next { opacity: 0.6; transition: opacity 0.2s ease; }
.lb-nav a.lb-prev:hover, .lb-nav a.lb-next:hover { opacity: 1; }
.lb-data .lb-close { opacity: 0.7; transition: opacity 0.2s ease; }
.lb-data .lb-close:hover { opacity: 1; }

/* === Media Queries === */
@media (max-width: 767px) {
    #main-nav {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: #0d0d0d;
        box-shadow: 0 3px 5px rgba(0,0,0,0.2);
        border-top: 1px solid #2a2a2a;
        padding: 0;
        z-index: 1000;
    }
    #main-nav.nav-open { display: block; }
    #main-nav ul {
        flex-direction: column;
    }
    #main-nav ul li {
        margin: 0; width: 100%; text-align: center;
    }
    #main-nav ul li a {
        padding: 12px 20px; border-radius: 0;
        border-bottom: 1px solid #2a2a2a; width: 100%; font-size: 1em;
    }
    #main-nav ul li:last-child > a { border-bottom: none; }
    
    #hamburger-button { display: block; }
}

@media (min-width: 768px) {
    .image-grid { flex-direction: row; gap: 25px; }
    .image-grid img { flex: 1 1 calc(50% - 12.5px); }
    .contact-form { max-width: 700px; margin-left: auto; margin-right: auto; }
    .gallery-grid-container { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .parallax-section { background-attachment: fixed; }
    
    .main-content img.inline-image {
        width: 60%;
    }
}

@media (min-width: 992px) {
    .gallery-grid-container { grid-template-columns: repeat(4, 1fr); }
}
