:root {
    --clr-bg: #f7f9f7;
    --clr-surface: #ffffff;
    --clr-surface-translucent: rgba(255, 255, 255, 0.75);
    --clr-text-main: #2c3e35;
    --clr-text-muted: #4a6b55;
    --clr-primary: #5a8a6b;
    --clr-primary-hover: #456d53;
    --clr-secondary: #e6eee8;
    --clr-border: #d2ded5;
    --clr-error: #d9534f;
    --clr-error-bg: #fdf0f0;
    --clr-focus: #7aab8c;
    
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-micro: 0 4px 12px rgba(44, 62, 53, 0.05);
    --shadow-soft: 0 12px 32px rgba(44, 62, 53, 0.08);
    
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;
    --space-64: 64px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

html {
    font-family: var(--font-base);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand, .nav-list a {
    margin-top: 0;
    overflow-wrap: anywhere;
    color: var(--clr-text-main);
    font-weight: 600;
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: var(--space-24); }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: var(--space-24); }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: var(--space-16); }

p, ul, ol, figure, table {
    margin-top: 0;
    margin-bottom: var(--space-24);
}

a {
    color: var(--clr-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--clr-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

:focus-visible {
    outline: 3px solid var(--clr-focus);
    outline-offset: 2px;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px var(--space-24);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: var(--clr-text-main);
}

.btn-secondary:hover {
    background-color: var(--clr-border);
    color: var(--clr-text-main);
}

.btn-text {
    background-color: transparent;
    color: var(--clr-text-main);
    padding: 12px var(--space-16);
}

.btn-text:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-text-main);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
    min-width: 0;
}

/* Header */
.site-header {
    height: 64px;
    background-color: var(--clr-surface-translucent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--clr-text-main);
}

.brand-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: var(--space-8);
    color: var(--clr-text-main);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-24);
}

.nav-list a {
    text-decoration: none;
    color: var(--clr-text-main);
    font-weight: 500;
}

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

.header-cta {
    display: flex;
    align-items: center;
}

.header-cta .btn {
    padding: 8px var(--space-16);
}

@media (max-width: 767px) {
    .site-header {
        height: 52px;
    }
    .menu-toggle {
        display: block;
    }
    .header-cta {
        display: none;
    }
    .main-nav {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--clr-surface);
        padding: var(--space-24);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    .main-nav.is-visible {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        gap: var(--space-24);
    }
    .nav-list a {
        font-size: 1.25rem;
        display: block;
    }
}

/* Hero Section */
.hero {
    padding: var(--space-64) 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-40);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-24);
}

.grid > * {
    min-width: 0;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Glass Overlay Cards */
.glass-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-color: var(--clr-secondary);
    box-shadow: var(--shadow-micro);
    min-width: 0;
}

.glass-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 0;
}

.glass-card-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-24);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.glass-card-panel h3 {
    margin: 0;
}

.glass-card-panel p {
    margin: 0;
    color: var(--clr-text-muted);
}

.card-cta {
    align-self: flex-start;
}

/* Content Pages */
.page-header {
    padding: var(--space-64) 0 var(--space-40);
    text-align: center;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-24) 0 var(--space-64);
    min-width: 0;
}

.content-wrapper h2 {
    margin-top: var(--space-40);
}

.stat-block {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-12);
    background-color: var(--clr-surface);
    padding: var(--space-16) var(--space-24);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-micro);
    margin-bottom: var(--space-24);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-24);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

label {
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: var(--space-16);
    font-family: inherit;
    font-size: 1rem;
    color: var(--clr-text-main);
    background-color: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-micro);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-focus);
}

input.is-invalid, textarea.is-invalid {
    border-color: var(--clr-error);
    background-color: var(--clr-error-bg);
}

.error-message {
    display: none;
    color: var(--clr-error);
    font-size: 0.875rem;
}

input.is-invalid + .error-message, 
textarea.is-invalid + .error-message {
    display: block;
}

/* Static Map */
.static-map {
    width: 100%;
    height: 300px;
    background-color: var(--clr-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-40);
}

/* Footer */
.site-footer {
    margin-top: auto;
    background-color: var(--clr-surface);
    padding: var(--space-64) 0 var(--space-40);
    border-top: 1px solid var(--clr-border);
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-40);
    margin-bottom: var(--space-40);
}

.footer-col h4 {
    margin-bottom: var(--space-16);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--clr-primary);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: var(--space-24);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    justify-content: space-between;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-24);
    left: var(--space-24);
    right: var(--space-24);
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--clr-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

@media (max-width: 399px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .glass-card-panel { padding: var(--space-24); }
    .hero { padding: var(--space-40) 0; }
    .page-header { padding: var(--space-40) 0 var(--space-24); }
}