/* CSS Variables for consistent theming */
:root {
    --primary: #2c5530;
    --secondary: #8b4513;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #333;
    --white: #ffffff;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    font-weight: 300 !important;
}

/* Ensure all text elements use light weight */
p, span, div, a, li, td, th {
    font-weight: 300 !important;
}

/* Keep headings with appropriate weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a2c38 !important;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 300 !important;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    background-attachment: fixed;
}



.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-weight: 400;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 300;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Legacy Images */
.image-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.legacy-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legacy-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.legacy-image:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Form Styles */
#join {
    background: var(--light);
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 300;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

button[type="submit"] {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background: #1e3a21;
}

#form-message {
    text-align: center;
    font-weight: 300;
}

/* Honeypot - hidden field for spam prevention */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Captcha Styling */
.captcha-group {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.captcha-group label {
    font-weight: 300;
    margin-bottom: 15px;
    display: block;
}

/* Checkbox Challenge */
.checkbox-challenge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-challenge:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.checkbox-challenge input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-challenge span {
    font-weight: 300;
    user-select: none;
}

#challenge-status {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

/* Promise Section */
#promise {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

#promise blockquote {
    font-size: 1.8rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

#promise p {
    font-size: 1.5rem;
    margin-top: 30px;
    font-weight: 300;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

footer a {
    color: var(--primary);
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin: 20px 0 0 0;
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 300;
}

/* Contacts Table */
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}

.contacts-table th, 
.contacts-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: left;
}

.contacts-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 300;
}

.contacts-table tr:nth-child(even) {
    background: #f9f9f9;
}

.contacts-table tr:hover {
    background: #f1f1f1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .image-section {
        grid-template-columns: 1fr;
    }
    
    form {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    #promise blockquote {
        font-size: 1.4rem;
    }
    
    .contacts-table {
        font-size: 0.9rem;
    }
    
    .contacts-table th, 
    .contacts-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .legacy-image {
        height: 250px;
    }
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 300;
}

.cookie-text p {
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 600px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.cookie-btn.accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: #1e3a21;
}

.cookie-btn.decline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cookie-btn.decline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Mobile responsive for cookie popup */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 150px;
    }
    
    .cookie-text p {
        max-width: none;
    }
}
