/* Main Stylesheet */

:root {
    --earth-900: #1a1410;
    --earth-800: #2d2620;
    --earth-700: #3d3530;
    --earth-600: #4f4a45;
    --sage-600: #6b8e6f;
    --sage-500: #7da578;
    --sage-400: #8fb68f;
    --gray-100: #f5f3f0;
    --gray-200: #e8e4df;
    --gray-300: #d1ccc5;
    --gray-400: #a99f96;
    --gray-500: #7f776d;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--earth-900);
    color: var(--gray-200);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-100);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--gray-300);
    line-height: 1.75;
}

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

a:hover {
    color: var(--sage-400);
}

/* Utility Classes */

.bg-gradient-earth {
    background: linear-gradient(135deg, var(--earth-800) 0%, var(--earth-700) 100%);
}

.bg-gradient-sage {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-500) 100%);
}

.text-sage-accent {
    color: var(--sage-500);
}

.border-sage-accent {
    border-color: var(--sage-500);
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--earth-800);
    border-bottom: 1px solid var(--earth-700);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-100);
}

.logo span:first-child {
    font-size: 28px;
}

.logo span:last-child {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--gray-300);
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--sage-500);
}

/* Button Styles */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sage-600) 0%, var(--sage-500) 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 142, 111, 0.3);
}

.btn-secondary {
    border: 1px solid var(--earth-600);
    color: var(--gray-300);
    background-color: transparent;
}

.btn-secondary:hover {
    border-color: var(--sage-500);
    color: var(--sage-500);
}

/* Card Styles */

.card {
    background: linear-gradient(135deg, var(--earth-800) 0%, var(--earth-700) 100%);
    border: 1px solid var(--earth-600);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--sage-500);
    box-shadow: 0 12px 24px rgba(107, 142, 111, 0.15);
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Section Styles */

section {
    scroll-margin-top: 80px;
}

section + section {
    border-top: 1px solid var(--earth-700);
}

/* Form Styles */

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--earth-700);
    border: 1px solid var(--earth-600);
    color: var(--gray-100);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sage-500);
    box-shadow: 0 0 0 3px rgba(125, 165, 120, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-500);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-100);
}

/* Footer Styles */

footer {
    background-color: var(--earth-800);
    border-top: 1px solid var(--earth-700);
    color: var(--gray-300);
}

footer h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: 16px;
}

footer a {
    font-size: 14px;
    color: var(--gray-400);
}

footer a:hover {
    color: var(--sage-500);
}

footer p {
    font-size: 13px;
}

/* Cookie Banner */

#cookie-banner {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Styles */

#cookie-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#cookie-modal input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--sage-500);
}

/* Details/Summary (FAQ) */

details {
    transition: all 0.3s ease;
}

details[open] {
    background-color: var(--earth-700);
}

summary {
    outline: none;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* Responsive Typography */

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

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Accessibility */

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

/* Print Styles */

@media print {
    header,
    footer,
    #cookie-banner,
    #cookie-modal,
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: #0066cc;
    }
}

/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--earth-900);
        color: var(--gray-200);
    }
}

/* High Contrast Support */

@media (prefers-contrast: more) {
    body {
        color: var(--gray-100);
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid var(--sage-500);
    }
}

/* Focus Visible for Keyboard Navigation */

:focus-visible {
    outline: 2px solid var(--sage-500);
    outline-offset: 2px;
}

/* Utility Margins */

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

/* Utility Gap */

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

/* Utility Flex */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Utility Grid */

.grid { display: grid; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

/* Utility Sizing */

.w-full { width: 100%; }
.h-auto { height: auto; }
.max-w-full { max-width: 100%; }
.object-cover { object-fit: cover; }

/* Text Utilities */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

/* Color Utilities */

.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }

.bg-earth-800 { background-color: var(--earth-800); }
.bg-earth-700 { background-color: var(--earth-700); }

.border-earth-600 { border-color: var(--earth-600); }
.border-earth-700 { border-color: var(--earth-700); }
.border-sage-500 { border-color: var(--sage-500); }
.border-sage-600 { border-color: var(--sage-600); }

.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-l { border-left: 1px solid; }
.border-l-4 { border-left: 4px solid; }

/* Rounding */

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* Shadow */

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Opacity */

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* Cursor */

.cursor-pointer { cursor: pointer; }

/* Display */

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Position */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-4 { bottom: 16px; }
.right-4 { right: 16px; }

/* Transform */

.translate-y-0 { transform: translateY(0); }
.translate-y-2 { transform: translateY(8px); }

/* Transition */

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Z-Index */

.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Overflow */

.overflow-hidden { overflow: hidden; }

/* Max Width */

.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }

/* Cursor User Select */

.user-select-none { user-select: none; }

/* Screen Reader Only */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}