/* American Legion Post 88 - Main Stylesheet */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-dark: #161616;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-primary: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(22, 22, 22, 0.98);
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    transition: var(--transition);
}

.logo:hover h3 {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 1.75rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.hero-small {
    min-height: 50vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-text p {
    margin: 0.5rem 0;
}

.hero-cta {
    margin-bottom: 2rem;
}

.hero-phone {
    font-size: 1.1rem;
}

.hero-phone a {
    color: var(--white);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #c9a028;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-intro {
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-intro a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Events Section */
.events-section {
    background: var(--white);
    color: var(--text-color);
}

.events-section .section-title {
    color: var(--text-color);
}

.events-calendar {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-events {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Community Section */
.community-section {
    background: var(--bg-light);
    color: var(--text-color);
}

.community-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.community-content {
    display: flex;
    align-items: center;
}

.content-box {
    padding: 2rem;
}

.content-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    color: var(--text-color);
}

.contact-section .section-title {
    color: var(--text-color);
}

.contact-form {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-form h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    left: 8px;
    font-size: 0.85rem;
    background: var(--white);
    padding: 0 4px;
    color: var(--accent-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.form-disclaimer a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info {
    padding: 2rem;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-details {
    margin: 2rem 0;
}

.contact-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0.5rem 0;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
}

.business-hours {
    margin-top: 2rem;
}

.hours-table table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.map-container {
    position: relative;
    margin-top: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-directions-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

/* Subscribe Section */
.subscribe-section {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
}

.subscribe-section .section-title {
    color: var(--white);
}

.subscribe-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.subscribe-input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscribe-input-group .input-group {
    flex: 1;
    min-width: 250px;
}

/* Bar/Canteen Page */
.bar-info-section {
    background: var(--white);
    color: var(--text-color);
}

.bar-info-section .section-title {
    color: var(--text-color);
}

.bar-details {
    margin: 3rem 0;
}

.bar-hours,
.bar-contact {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.bar-hours h3,
.bar-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.bar-contact p {
    margin: 1rem 0;
}

.bar-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.bar-features {
    margin-top: 3rem;
}

.bar-features h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-section {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #4caf50;
    color: white;
}

.flash-error {
    background: #f44336;
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cookie-content p {
    flex: 1;
    color: var(--text-light);
    margin: 0;
}

/* Error Pages */
.error-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--white);
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.error-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        overflow-y: auto;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-item-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        margin-top: 0;
        margin-left: 1rem;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 0.5rem;
    }
    
    .dropdown-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.75rem 1rem;
    }
    
    .dropdown-link:hover {
        color: var(--accent-color);
        background: transparent;
        padding-left: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .subscribe-input-group {
        flex-direction: column;
    }
    
    .subscribe-input-group .input-group {
        min-width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .error-content h1 {
        font-size: 5rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
}
