:root {
    --primary-color: #2F4F4F; /* Deep Slate Gray */
    --secondary-color: #808080; /* Cool Gray */
    --accent-color: #ADD8E6; /* Light Institutional Blue */
    --background-color: #F5F5F5; /* Soft Neutral Gray */
    --text-color: #36454F; /* Dark Anthracite */
    --text-light: #FFFFFF;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --font-family: 'Lato', sans-serif;
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 24px; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p {
    margin-bottom: 16px;
    max-width: 75ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, .subtle-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* --- LAYOUT & SECTIONS --- */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.alt-bg {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}


/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- HERO SECTION --- */
.hero, .hero-article {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
}

.hero { min-height: 60vh; }
.hero-article { min-height: 40vh; }

.hero::before, .hero-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(47, 79, 79, 0.7), rgba(47, 79, 79, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* --- ARTICLE & CONTENT STYLING --- */
.article-list .article-link-item {
    margin-bottom: 30px;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
}
.article-list h3 { margin-bottom: 8px; }

.subtle-link {
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
}
.subtle-link:hover {
    background-color: rgba(173, 216, 230, 0.2);
    border-bottom-color: var(--primary-color);
}

.focus-list {
    list-style-type: '✓  ';
    padding-left: 20px;
}
.focus-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.values-list {
    list-style: none;
    margin-top: 30px;
}
.values-list li {
    margin-bottom: 20px;
}
.values-list strong {
    display: block;
    color: var(--primary-color);
}

.article-body p, .article-body ul, .article-body h2 {
    margin-bottom: 24px;
}

.article-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    filter: grayscale(1) contrast(0.9) brightness(0.9);
}

.diagram-placeholder {
    border: 1px dashed var(--secondary-color);
    padding: 30px;
    text-align: center;
    background-color: #fafafa;
    margin: 40px 0;
    border-radius: 8px;
}
.diagram-placeholder p { font-style: italic; color: var(--secondary-color); }

.article-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.main-footer h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.main-footer p, .main-footer address {
    font-size: 0.9rem;
    line-height: 1.8;
    font-style: normal;
}
.main-footer a {
    color: var(--accent-color);
    text-decoration: none;
}
.main-footer a:hover {
    text-decoration: underline;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px 20px;
}
.disclaimer-section {
    background-color: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.8);
    padding: 20px 30px;
    margin: 0 20px 20px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.1);
}
.disclaimer-section strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}


/* --- CONTACT PAGE --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1100px;
}
.contact-form-container, .contact-details {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.contact-details address, .contact-details p {
    font-size: 1rem;
    line-height: 1.8;
}
.contact-subtitle { margin-top: 30px; }

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: var(--primary-color);
}
.submit-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}
.submit-btn:hover {
    background-color: #3a5f5f;
    color: var(--text-light);
    text-decoration: none;
}
.map-section {
    padding: 0 20px 80px;
    max-width: 1280px;
    margin: 0 auto;
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.map-container iframe { width: 100%; height: 100%; border: none; }


/* --- THANK YOU & 404 PAGE --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.thank-you-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}
.thank-you-section h1 { margin-bottom: 20px; }
.thank-you-section p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin-bottom: 30px;
}
.error-code {
    font-size: 6rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 0;
}


/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(47, 79, 79, 0.95);
    color: var(--text-light);
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    backdrop-filter: blur(5px);
}
.cookie-banner p { margin-bottom: 0; }
.cookie-banner a { color: var(--accent-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
}
.cookie-buttons button.decline {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
}

/* --- RESPONSIVE STYLES --- */
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .main-header {
        height: 70px;
    }
    .mobile-nav-toggle {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
    }
    .mobile-nav-toggle span {
        position: absolute;
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
        left: 0;
    }
    .mobile-nav-toggle span:nth-child(1) { top: 0; }
    .mobile-nav-toggle span:nth-child(2) { top: 10px; }
    .mobile-nav-toggle span:nth-child(3) { top: 20px; }
    
    .nav-open .mobile-nav-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }
    .nav-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-open .mobile-nav-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-open .main-nav {
        transform: translateX(0);
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        height: 100%;
    }
    .nav-link {
        font-size: 1.5rem;
        padding: 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
    .nav-link:hover { background-color: var(--background-color); }
    .nav-link::after { display: none; }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}