/* ========================================
   Pioneer Lodge 82 - Main Stylesheet
   Color scheme: Dark browns, tans, western theme
   ======================================== */

/* === CSS Variables === */
:root {
    --primary-color: #8B4513; /* Saddle brown */
    --secondary-color: #D2691E; /* Chocolate */
    --dark-bg: #2C1810; /* Very dark brown */
    --light-bg: #F5F5DC; /* Beige */
    --text-dark: #2C1810;
    --text-light: #FFFFFF;
    --accent-gold: #DAA520; /* Goldenrod */
    --border-color: #8B7355;
    
    /* Fonts */
    --heading-font: 'Cinzel', serif;
    --body-font: 'Lato', sans-serif;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

/* === Header & Navigation === */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #fff;
    padding: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.lodge-name {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.lodge-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-dark);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    height: 500px;
    background: linear-gradient(rgba(44, 24, 16, 0.6), rgba(44, 24, 16, 0.6)),
                url('../images/hero-background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* === Page Header === */
.page-header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* === Content Sections === */
.content-section {
    padding: 4rem 0;
}

.content-section.bg-light {
    background-color: var(--light-bg);
}

.content-section.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* === Content Grid === */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* === Values Section === */
.values-section {
    padding: 4rem 0;
    background-color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.value-card {
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.value-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.text-link:hover {
    color: var(--secondary-color);
}

/* === Newsletter Section === */
.newsletter-section {
    text-align: center;
}

.newsletter-content h2 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

/* === About Page === */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cta-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-align: center;
}

/* === Contact Page === */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-block a {
    color: var(--primary-color);
}

.info-block a:hover {
    color: var(--secondary-color);
}

/* === Contact Form === */
.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--body-font);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* === Pay Dues Page === */
.paydues-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.paydues-text {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.paydues-box {
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.paydues-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    object-fit: contain;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === Calendar Page === */
.calendar-content {
    max-width: 900px;
    margin: 0 auto;
}

.events-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    text-align: center;
}

.events-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.date-month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-time {
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #555;
}

.no-events {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    font-size: 1.1rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    font-family: var(--body-font);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

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

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

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* === Footer === */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col:first-child {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.footer-col img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background-color: rgba(255,255,255,0.1);
    padding: 2px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
}

.footer-col h4 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* === Responsive Design === */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .content-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col:first-child {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .social-links {
        display: none;
    }
}
