:root {
    /* Colors */
    --color-primary: #5A7261;
    --color-secondary: #C2D4C6;
    --color-background: #F8F8F4;
    --color-footer-bg: #3A4B41;
    --color-button: #5A7261;
    --color-text-dark: #3A4B41;
    --color-text-light: #F8F8F4;
    --color-accent: #8FA295; /* Derived from primary for subtle variations */
    --color-neutral-light: #E8ECE9;
    --color-neutral-medium: #D9E5E0;

    /* Spacing Scale (based on 8px) */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */

    /* Typography */
    --font-family-heading: 'Lora', serif; /* Elegant Serif Display */
    --font-family-body: 'Inter', sans-serif; /* Clean Sans-serif */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --font-size-base: 1rem; /* 16px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */
    --font-size-5xl: 3rem; /* 48px */
    --font-size-6xl: 3.75rem; /* 60px */

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-ease: all 0.3s ease-in-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-weight: var(--font-weight-normal);
    line-height: 1.65;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

h1 { font-size: var(--font-size-5xl); font-weight: var(--font-weight-semibold); letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-4xl); font-weight: var(--font-weight-semibold); }
h3 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-medium); }
h4 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-medium); }
h5 { font-size: var(--font-size-xl); font-weight: var(--font-weight-medium); }
h6 { font-size: var(--font-size-lg); font-weight: var(--font-weight-medium); }

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-ease);
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

ul, ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Helper Classes for Tailwind Integration context */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-background { background-color: var(--color-background); }
.bg-footer { background-color: var(--color-footer-bg); }
.text-dark { color: var(--color-text-dark); }
.text-light { color: var(--color-text-light); }

/* Custom Section Backgrounds */
.section-bg-0 { background-color: var(--color-background); } /* F8F8F4 */
.section-bg-1 { background-color: #E8ECE9; }
.section-bg-2 { background-color: #C2D4C6; }
.section-bg-3 { background-color: #F1F4F2; }
.section-bg-4 { background-color: #D9E5E0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    border: none;
    transition: var(--transition-ease);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
    border: 1px solid var(--color-button);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-ease);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: white;
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none; /* For consistent styling across browsers */
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(90, 114, 97, 0.25); /* Subtle focus ring */
}

.form-textarea {
    min-height: 5rem;
    resize: vertical;
}

/* Alpine.js specific styles for transitions */
[x-cloak] { display: none !important; }

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Hero Section Specifics */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-background) 0%, #E8ECE9 100%); /* Subtle gradient */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.7;
    pointer-events: none;
    animation: subtle-pulse 10s infinite alternate ease-in-out;
}

@keyframes subtle-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

/* Footer Styling */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-2xl) 0;
    font-size: var(--font-size-sm);
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: var(--color-background);
}

/* Utility for text alignment (if not provided by Tailwind) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

/* Glassmorphism for specific elements (e.g., modals, subtle overlays) */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-light);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--border-radius-full);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Subtle texture overlay for body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA3MiA3MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZDJOIDAgNzJoNzJWMEwwIDcyeiIgZmlsbD0idXJsKCNwYXR0ZXJuMSkiLz4KPHBhdHRlcm4gaWQ9InBhdHRlcm4xIiBwYXR0ZXJuQ29udGVudFVuaXRzPSJvYmplY3RUb2JhY3RnZW50IiB3aWR0aD0iMjUiIGhlaWdodD0iMjUiPgo8cmVjdCB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBmaWxsPSIjRjFGNEYyIi8+CjxyZWN0IHg9IjgiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiIGZpbGw9IiNGMUY0RjIiLz4KPHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBmaWxsPSIjRjFGNEYyIi8+CjxyZWN0IHk9IjI0IiB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBmaWxsPSIjRjFGNEYyIi8+CjxyZWN0IHg9IjguNCIgeT0iMiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI0YxRjRGMiIvPgo8L3BhdHRlcm4+Cjwvc3ZnPg==');
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Elegant line-art icons (placeholder, assuming SVG or icon font) */
.icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
    margin-right: var(--spacing-xs);
}

/* Subtle border-radius variations for visual interest */
.rounded-soft {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    transition: var(--transition-ease);
}

.rounded-soft:hover {
    border-radius: 60% 40% 30% 70% / 60% 60% 40% 40%;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Custom class for elements with a subtle "lift" effect */
.lift-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lift-on-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* A custom class for a slightly more pronounced, but still subtle, gradient */
.bg-gradient-soft {
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-neutral-light) 100%);
}

/* Custom class for a 'serene' border, perhaps for images or special sections */
.border-serene {
    border: 1px solid var(--color-secondary);
    box-shadow: inset 0 0 15px rgba(194, 212, 198, 0.2);
    border-radius: var(--border-radius-md);
}


/* 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;
    }
}