:root {
    /* Colors */
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --background-color: #f8f9fa;
    --footer-bg-color: #212529;
    --button-color: #007bff;
    --section-bg-1: #ffffff;
    --section-bg-2: #e9ecef;
    --section-bg-3: #f8f9fa;
    --section-bg-4: #dee2e6;
    --text-color: #343a40;
    --heading-color: #212529;
    --link-color: var(--primary-color);
    --link-hover-color: #0056b3;
    --border-color: #ced4da;

    /* Typography */
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'DM Serif Display', serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Ensure base is 16px for rem calculations */
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em; /* Brutalist touch */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
}

/* Lists */
ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

ul {
    list-style: none;
    padding: 0;
}

ul li::before {
    content: "—"; /* Brutalist bullet */
    color: var(--primary-color);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

ol {
    list-style: decimal;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent; /* Brutalist border */
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.05em; /* Brutalist touch */
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: #fff;
    background-color: var(--button-color);
    border-color: var(--button-color);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 6px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.btn-secondary:hover {
    background-color: #218838;
    border-color: #218838;
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--button-color);
    background-color: transparent;
    border-color: var(--button-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--button-color);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

/* Brutalist Button Accent */
.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) 50%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075); /* Subtle inner shadow */
}

.form-control:focus {
    color: var(--text-color);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

label {
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--heading-color);
}

/* Sections */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-1 {
    background-color: var(--section-bg-1);
}

.section-2 {
    background-color: var(--section-bg-2);
}

.section-3 {
    background-color: var(--section-bg-3);
}

.section-4 {
    background-color: var(--section-bg-4);
}

/* Cards */
.card {
    background-color: var(--section-bg-1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Utilities (for complementing Tailwind) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Brutalist Border Effect for specific elements */
.border-brutal {
    border: 3px solid var(--heading-color);
    box-shadow: 5px 5px 0px 0px var(--primary-color); /* Offset shadow */
    transition: all 0.2s ease-in-out;
}

.border-brutal:hover {
    box-shadow: 8px 8px 0px 0px var(--secondary-color);
    transform: translate(-3px, -3px);
}

/* Alpine.js Transitions */
[x-cloak] {
    display: none !important;
}

/* Generic transition for x-show */
[x-transition] {
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade In/Out */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* Slide In/Out (e.g., from top) */
.slide-down-enter-active, .slide-down-leave-active {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.slide-down-enter-from, .slide-down-leave-to {
    opacity: 0;
    transform: translateY(-20px);
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 0.95rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    .section {
        padding: var(--spacing-lg) 0;
    }
}


/* 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;
    }
}