:root {
    --color-primary: #5A725A;
    --color-secondary: #D4B483;
    --color-background: #FBFAF5;
    --color-footer-bg: #1E2B2C;
    --color-text-dark: #1E2B2C;
    --color-text-light: #FBFAF5;
    --color-accent: #A2B99E; /* A subtle accent derived from primary */

    --font-family-heading: 'Lora', serif;
    --font-family-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --shadow-subtle: 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.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.07);

    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.2, 0.8, 0.2, 1); /* Softer ease for premium feel */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-dark);
    line-height: 1.65;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-text-dark);
    line-height: 1.25;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 600; /* Balances elegance with presence */
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.9rem;
}

h4 {
    font-size: 1.55rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    max-width: 75ch; /* Optimal line length for readability */
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease), border-bottom var(--transition-speed) var(--transition-ease);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
}

/* Layout & Structure */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden; /* Ensures no content overflows */
}

/* Section Backgrounds (as per design_preferences) */
.section-bg-1 { background-color: #FBFAF5; }
.section-bg-2 { background-color: #EFF2ED; }
.section-bg-3 { background-color: #F8F5F0; }
.section-bg-4 { background-color: #E8EBE6; }
.section-bg-5 { background-color: #F3F0EC; }

/* 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-family: var(--font-family-body);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed) var(--transition-ease);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 150px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.btn-text {
    background: none;
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    min-width: unset;
}

.btn-text:hover {
    color: var(--color-secondary);
    background-color: transparent;
    transform: none;
    box-shadow: none;
    border-bottom: 1px solid var(--color-secondary);
}

/* Cards & Panels */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 114, 90, 0.2); /* Focus ring effect */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer specific styles */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    font-size: 0.95rem;
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
    border-bottom-color: transparent;
}

.footer a:hover {
    color: var(--color-text-light);
    border-bottom-color: var(--color-text-light);
}

/* Alpine.js specific transitions (for x-show, x-if) */
[x-cloak] {
    display: none !important;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity var(--transition-speed) var(--transition-ease);
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

.slide-fade-enter-active, .slide-fade-leave-active {
    transition: all var(--transition-speed) var(--transition-ease);
}
.slide-fade-enter, .slide-fade-leave-to {
    transform: translateY(10px);
    opacity: 0;
}

/* Utility classes (complementary to Tailwind) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Premium Minimalism specific touches */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-background); /* Base background for hero */
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Subtle background texture for sections */
.section-textured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23000000" fill-opacity="0.03" fill-rule="evenodd"%3E%3Cpath d="M5 0h1v6H0V5h5zM5 6V0H0v1h5z"/%3E%3C/g%3E%3C/svg%3E'); /* Very subtle diagonal lines */
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Elegant Accents: Underline animation for specific text */
.animated-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--color-secondary);
    transition: width var(--transition-speed) ease;
    -webkit-transition: width var(--transition-speed) ease;
}

.animated-underline:hover::after {
    width: 100%;
    left: 0;
    background: var(--color-primary);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    p { font-size: 1rem; }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        min-width: unset;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Custom scrollbar for a refined feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
    border: 2px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}


/* 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;
    }
}