@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400&display=swap');

:root {
    --color-primary: #2C5F2D;
    --color-secondary: #97BC62;
    --color-background: #F8F8F8;
    --color-footer-bg: #1B3A1B;
    --color-button: #8A9A5B;
    --color-text-light: #F8F8F8;
    --color-text-dark: #333333;
    --color-section-1: #F8F8F8;
    --color-section-2: #E8F5E9;
    --color-section-3: #DCE7D6;
    --color-section-4: #F1F8E9;
    --color-section-5: #DCEDC8;
    --color-section-6: #C8E6C9;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --border-radius-base: 8px;
    --shadow-lifted: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    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-heading);
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.8rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-base);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
    box-shadow: var(--shadow-lifted);
}

.btn-primary:hover {
    background-color: #6C7A4D; /* Slightly darker shade of var(--color-button) */
    transform: translateY(-2px);
    box-shadow: 0 12px 18px -4px rgba(0, 0, 0, 0.15), 0 5px 8px -2px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: inset 0 0 0 0 var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 18px -4px rgba(0, 0, 0, 0.15), 0 5px 8px -2px rgba(0, 0, 0, 0.08);
}

.card {
    background-color: #ffffff;
    border-radius: var(--border-radius-base);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lifted);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15), 0 6px 10px -2px rgba(0, 0, 0, 0.08);
}

.section {
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xl);
}

.section:nth-of-type(1) { background-color: var(--color-section-1); }
.section:nth-of-type(2) { background-color: var(--color-section-2); }
.section:nth-of-type(3) { background-color: var(--color-section-3); }
.section:nth-of-type(4) { background-color: var(--color-section-4); }
.section:nth-of-type(5) { background-color: var(--color-section-5); }
.section:nth-of-type(6) { background-color: var(--color-section-6); }

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid #ddd;
    border-radius: var(--border-radius-base);
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(151, 188, 98, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-secondary);
}

footer a:hover {
    color: var(--color-text-light);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    h3 {
        font-size: 1.9rem;
    }
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    p {
        font-size: 1rem;
    }
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 1rem;
    }
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Utility classes (if needed for specific layouts not covered by Tailwind) */
.text-center {
    text-align: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-md {
    gap: var(--spacing-md);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.py-xl {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.bg-primary-light {
    background-color: var(--color-section-2);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.rounded-lg {
    border-radius: var(--border-radius-base);
}

.shadow-lg {
    box-shadow: var(--shadow-lifted);
}

/* Custom subtle gradient for a premium touch */
.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Organic touch for specific elements like images or hero sections */
.organic-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    transition: border-radius 0.8s ease-in-out;
}

.organic-shape:hover {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

/* Subtle background texture for sections */
.section-textured {
    position: relative;
}

.section-textured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCA2IDYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMDAwMCkgZmlsbC1vcGFjaXR5PSIwLjA1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik01IDYgVjQuOTk2TDQgNS4wMDdWNkw1IDZMNiA2VjVMNS45OTMgNEw1IDQuMDA3VjVMNS45OTYgNkw2IDVMNiA2WiBNMCA2VjVMNS4wMDcgNEwwIDQuMDA3VjVMMSA1LjAwNlY2TDANjZMMS4wMDQgNkwwIDZWMi4wMDdMMCAwTDEgMFYxLjk5M0wyIDBWMS4wMDdWMkwxIDJWMEwwIDBWNFY2WiI+PC9wYXRoPjwvZz48L3N2Zz4=');
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above texture */
.section-textured > * {
    position: relative;
    z-index: 1;
}

/* Alpine.js transition styles for x-show */
.transition-fade {
    transition-property: opacity, transform;
    transition-duration: var(--transition-speed);
    transition-timing-function: ease-out;
}

.transition-fade-enter, .transition-fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.transition-fade-enter-to, .transition-fade-leave {
    opacity: 1;
    transform: translateY(0);
}

/* Active navigation link style */
.nav-link.active {
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: 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;
    }
}