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

:root {
    /* Layout variables */
    --navbar-height: 60px;

    /* Coolors Palette: https://coolors.co/palette/dad7cd-a3b18a-588157-3a5a40-344e41 */
    --timberwolf: #dad7cd;          /* Light beige/tan */
    --sage: #a3b18a;                /* Muted sage green */
    --fern-green: #588157;          /* Medium fern green */
    --hunter-green: #3a5a40;        /* Dark hunter green */
    --brunswick-green: #344e41;     /* Very dark brunswick green */

    /* Text colors */
    --text-on-light: #344e41;       /* Brunswick green for light backgrounds */
    --text-on-dark: #dad7cd;        /* Timberwolf for dark backgrounds */
    --text-muted-light: #3a5a40;    /* Hunter green muted */
    --text-muted-dark: #a3b18a;     /* Sage muted */

    /* Background colors */
    --bg-light-primary: #dad7cd;    /* Timberwolf */
    --bg-light-secondary: #a3b18a;  /* Sage */
    --bg-dark-primary: #3a5a40;     /* Hunter green */
    --bg-dark-secondary: #344e41;   /* Brunswick green */

    /* Border colors */
    --border-light: #a3b18a;        /* Sage border on light */
    --border-dark: #588157;         /* Fern green border on dark */

    /* Accent and interactive */
    --color-primary: #588157;       /* Fern green */
    --color-accent: #3a5a40;        /* Hunter green */
    --hover-light: #588157;         /* Fern green hover on light */
    --hover-dark: #a3b18a;          /* Sage hover on dark */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) - 10px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    padding-top: 0;
    position: relative;
    background: var(--bg-light-primary);
}

/* Global text inherits from parent */
body * {
    color: inherit;
}

/* Hide WebGL canvas */
#gradient-canvas {
    display: none;
}

/* Hide blur overlay */
.blur-overlay {
    display: none;
}

/* Hide grain texture */
.grain-texture {
    display: none;
}

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

.team-container {
    max-width: 1100px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
    background: var(--bg-light-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 0;
    width: 100%;
}

.navbar .container {
    padding: 0 20px;
    position: relative;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 20px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-on-light);
    transition: all 0.3s;
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: block;
}

.nav-links a {
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: block;
    padding: 0.5rem 0;
    line-height: 1.2;
    color: var(--text-muted-light);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero Section - Light background */
.hero {
    padding: 4rem 2rem 6rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: var(--bg-light-primary);
    color: var(--text-on-light);
}

.hero-headline {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto;
    letter-spacing: -0.02em;
}

/* Photo Section - Parallax Window */
.photo-section {
    position: relative;
    z-index: 10;
    padding: 0;
    margin: 0;
    height: 50vh;
    overflow: hidden;
}

.full-width-photo {
    width: 100%;
    height: 150%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: relative;
    top: -25%;
    will-change: transform;
}

/* Base Section Styles */
.section {
    padding: 6rem 2rem;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Alternating section backgrounds - 4-color rotation */
.section:nth-of-type(4n+1) {
    background: var(--bg-light-primary);
    color: var(--text-on-light);
}

.section:nth-of-type(4n+2) {
    background: var(--bg-dark-primary);
    color: var(--text-on-dark);
}

.section:nth-of-type(4n+3) {
    background: var(--bg-light-secondary);
    color: var(--text-on-light);
}

.section:nth-of-type(4n) {
    background: var(--bg-dark-secondary);
    color: var(--text-on-dark);
}

.section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0;
}

.section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.125rem;
}

/* About Section */
.about-description {
    font-size: 1.15rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3rem;
}

/* Team Section */
.team-subtitle {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-member p {
    text-align: left;
}

.team-story {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid currentColor;
    opacity: 0.3;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-story {
    opacity: 1;
}

.team-story p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Contact Section */
.contact-subtitle {
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 1rem;
}

#contact-message {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid currentColor;
    opacity: 0.3;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: inherit;
}

.form-group input,
.form-group textarea {
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    border-width: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-on-dark);
    padding: 0.75rem 3rem;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--fern-green);
    border-color: var(--fern-green);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid currentColor;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    background: var(--bg-dark-secondary);
    color: var(--text-on-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-link {
    text-decoration: none;
    color: var(--text-on-dark);
    font-size: 0.9rem;
    transition: all 0.3s;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    color: var(--sage);
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Make navbar container relative for absolute positioning */
    .navbar {
        position: fixed;
    }

    .navbar .container {
        position: static;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-light-primary);
        border-bottom: 1px solid var(--border-light);
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        align-items: flex-end;
    }

    /* Show nav links when mobile menu is open */
    .nav-links.mobile-open {
        max-height: 300px;
        padding: 0;
    }

    .nav-links li {
        display: block;
        width: 100%;
        text-align: right;
        padding: 0;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-light-primary);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        display: block;
        color: var(--text-on-light);
        font-size: 1.125rem;
        text-align: right;
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .hero {
        padding: 4rem 1rem 1rem;
        min-height: 0vh;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 1rem;
    }

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

    .section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .section p {
        margin-bottom: 1rem;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .team-story {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .contact-form {
        margin-top: 1rem;
    }

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

    .footer {
        padding: 2rem 0;
    }
}
