:root {
    --color-primary: #506D42;
    --color-secondary: #C9B6A1;
    --color-background: #F8F5EE;
    --color-footer-bg: #2C3E2D;
    --color-button: #506D42;
    --color-text-light: #F8F5EE;
    --color-section-1: #F8F5EE;
    --color-section-2: #EDE8DE;
    --color-section-3: #F1EBE3;
    --color-section-4: #E6E0D6;
    --color-section-5: #FBF9F6;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius-soft: 0.75rem;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: #333;
    background-color: var(--color-background);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-soft);
}

/* Layout & Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

section {
    padding: var(--spacing-xl) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background-color: var(--color-section-1);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-subtle);
}

section:nth-of-type(odd) {
    background-color: var(--color-section-2);
}

section:nth-of-type(even) {
    background-color: var(--color-section-3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    background-color: var(--color-button);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background-color: color-mix(in srgb, var(--color-button) 85%, var(--color-secondary) 15%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-subtle);
}

/* Cards */
.card {
    background-color: var(--color-section-5);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-subtle);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: #555;
    font-family: var(--font-body);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-soft);
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(80, 109, 66, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Header & Footer */
.site-header {
    background-color: var(--color-background);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.site-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.site-header nav a {
    font-weight: 600;
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-soft);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header nav a:hover {
    background-color: rgba(80, 109, 66, 0.1);
    color: var(--color-primary);
}

.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    border-top-left-radius: var(--border-radius-soft);
    border-top-right-radius: var(--border-radius-soft);
    margin-top: var(--spacing-xl);
}

.site-footer a {
    color: var(--color-secondary);
}

.site-footer a:hover {
    color: var(--color-text-light);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

.fade-in-transition {
    transition: opacity 0.3s ease-out;
}
.fade-in-transition[x-transition:enter] {
    opacity: 0;
}
.fade-in-transition[x-transition:enter-end] {
    opacity: 1;
}
.fade-in-transition[x-transition:leave] {
    opacity: 1;
}
.fade-in-transition[x-transition:leave-end] {
    opacity: 0;
}

/* Organic shapes - optional */
.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: border-radius 0.8s ease-in-out;
}

.organic-shape:hover {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .site-header nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .btn {
        width: 100%;
        padding: var(--spacing-sm);
    }

    .container {
        padding: var(--spacing-sm);
    }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}