:root {
    /* Typography */
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Raleway", sans-serif;

    /* Colors */
    --color-primary: #004c70;
    --color-accent: #b17b19;
    --color-light: #ffffff;
    --color-dark: #000000;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f4f4;
    --color-fg: #222222;
    --color-body: #444444;
    --color-border: #cccccc;
    --color-table-row-alt: #fafafa;
    --color-nav-link: #f4f4f4;
    --color-link: #0066cc;
    --color-bg-hero: #004c70;
    --color-footer-bg: #004c70;
    --color-hero-overlay: rgba(255, 255, 255, 0.8);
    --color-bg-transparent: rgba(255, 255, 255, 0.8);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #222;
    overflow: auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6); /* dramatically lighter overlay */
    z-index: 0;
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Layout structure */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-light);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section layout spacing */
section.hero,
section.mission,
section.features {
    margin-top: 30px;
    margin-left: 5%;
    margin-right: 5%;
}

section.contact {
    margin: 30px 5% 60px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--color-nav-link);
    border-radius: 2px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.logo a {
    color: var(--color-nav-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}
.logo a:hover {
    color: var(--color-nav-link);
    text-decoration: none;
}

.logo a:hover,
.logo a:hover .line1,
.logo a:hover .line2 {
    color: var(--color-nav-link);
    text-decoration: underline;
}

.logo img {
    height: 28px;
    width: 28px;
    margin-right: 8px;
}

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

.logo-text .line1,
.logo-text .line2 {
    font-size: 0.85rem;
    color: var(--color-nav-link);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-links a {
    color: var(--color-nav-link);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 400;
}

.nav-links a:hover {
    text-decoration: underline;
}


/* Simplified hero section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 30px 5% 0 5%;
    min-height: 10vh;
    background: var(--color-bg-transparent);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-content {
    max-width: 800px;
    padding: 0.5rem 2rem;
}

.hero-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Mission Section */
.mission {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 1rem 1rem 1rem;
    background: var(--color-bg-transparent);
    color: var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission:hover,
.mission:has(a:hover) {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mission-content {
    background: var(--color-bg-transparent);
}

/* Ensure both .mission a and .mission div are transparent */
.mission a,
.mission div {
    background: transparent !important;
}

/* Make the whole card clickable without changing color */
.mission a,
.mission a:hover,
.mission a:visited {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

/* Removed redundant .mission .mission-content and hover rules */

/* Typography tweaks */
.mission h2 { margin-bottom: 1rem; color: var(--color-accent); }
.mission p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-accent);
    font-weight: 600;
}


/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 1rem 1rem 1rem;
    text-align: center;
}

.feature {
    background: var(--color-bg-transparent);
    border-radius: 6px;
    padding: 1rem;
    /* Always apply hover effect */
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature h2 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.feature p {
    font-family: var(--font-body), sans-serif;
    color: var(--color-primary);
    line-height: 1.2;
}

/* home page contact information */
.contact {
    background: none;
    color: #d9a441;
    text-align: center;
    padding: 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-content {
    background: var(--color-primary);
    color: #d9a441;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.contact-content:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-content a {
    color: white;
    font-weight: 500;
}

.contact-content div {
    color: white !important;
}

/* Removed .mission-content h2, .mission-content p color inheritance rule */

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}



/* Footer flows with content */
.footer {
    position: relative;
    height: 40px;
    background-color: var(--color-footer-bg);
    color: var(--color-light);
    display: flex;
    align-items: center;
    line-height: 1;
    justify-content: flex-start;
    padding-left: 1rem;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.footer p {
    color: var(--color-light);
    margin: 0;
}

.content {
    flex: 1;
    padding: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 40px;
    box-sizing: border-box;
}

h3 {
    font-family: var(--font-heading, "Montserrat"), sans-serif;
    color: var(--color-fg, #222);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    font-family: var(--font-body, "Raleway"), sans-serif;
    color: var(--color-body, #444);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

ol, ul {
    margin-left: 6rem;
    padding-left: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem auto;
    max-width: 1000px;
    font-family: var(--font-body, "Raleway"), sans-serif;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--color-border, #ccc);
    padding: 0.75rem 1rem;
    text-align: left;
}

th {
    background-color: var(--color-bg-alt, #f4f4f4);
    color: var(--color-fg, #222);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--color-table-row-alt, #fafafa);
}

a {
    color: var(--color-link, #0066cc);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

 
.divider {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--color-primary);
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

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

    .nav-links a {
        padding: 1rem 0;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .content {
        margin-top: 60px;
        margin-bottom: 40px;
        padding: 0.75rem;
    }

    ul,
    ol {
        margin-left: 2rem;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.650rem;
    }
}
