/* Base styles with responsive font sizing */
:root {
    --primary-color: #00695c;
    --primary-dark: #004d40;
    --accent-color: #ffd600;
    --text-color: #222;
    --bg-color: #f8f9fa;
    --header-height: 60px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 50px;
    }
}

html {
    font-size: 16px;
    box-sizing: border-box;
    height: 100%;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation and Menu Toggle */
.menu-toggle {
    display: none;
    padding: 0.5rem;
    background: var(--primary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

nav {
    background: var(--primary-color);
    padding: 1em 0;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    align-items: center;
}

@media (max-width: 768px) {
    nav {
        padding: 0;
        position: relative;
    }
    
    nav ul {
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        padding: 0.5rem 0;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    nav.nav-open ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

nav ul li {
    margin: 0 1.5em;
}

@media (max-width: 768px) {
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.2s ease;
    padding: 1em;
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    nav ul li a {
        padding: 0.8em 1em;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
}

nav ul li a:hover {
    color: var(--accent-color);
    background: rgba(255,255,255,0.1);
}
/* Main content area */
main {
    width: 95%;
    max-width: 800px;
    margin: 1.5rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow-y: auto;
    min-height: 0;
}

@media (max-width: 768px) {
    main {
        width: 100%;
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 0;
    }
}

/* Typography improvements */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 2rem 0 1rem;
}

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

p, ul, ol {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 0.75rem 0;
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 10;
    font-size: 0.9rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    display: block;
}

form input, form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    form input:hover, form textarea:hover {
        border-color: var(--primary-color);
    }
}
/* Buttons and interactive elements */
form button,
.button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
}

@media (hover: hover) {
    form button:hover,
    .button:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }
}

form button:active,
.button:active {
    transform: translateY(1px);
}

#formMessage {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
    background: rgba(0,105,92,0.1);
}

/* Header and Logo */
.site-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

nav {
    z-index: 2;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.site-logo img {
    height: var(--header-height);
    width: auto;
    display: block;
    max-width: 100%;
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .site-logo:hover img {
        transform: scale(1.05);
    }
}

/* Print styles */
@media print {
    body {
        background: none;
        color: black;
    }
    
    nav,
    .menu-toggle,
    form button {
        display: none !important;
    }
    
    main {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    h1, h2 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}