:root {
    /* Colors */
    --color-primary: #003366;
    --color-secondary: #6699CC;
    --color-accent: #E0B420; /* A gold/yellow for accent, contrasting with blue palette */
    --color-background: #F8F9FA;
    --color-footer-bg: #002244;
    --color-text-dark: #2c3e50;
    --color-text-light: #ecf0f1;
    --color-border: rgba(0, 51, 102, 0.1);

    --section-bg-1: #FFFFFF;
    --section-bg-2: #F0F4F8;
    --section-bg-3: #E6EFF5;
    --section-bg-4: #D9E3ED;
    --section-bg-5: #C6D0DB;

    /* Typography */
    --font-family-heading: 'Inter', sans-serif; /* Modern, clean, professional */
    --font-family-body: 'Open Sans', sans-serif; /* Highly legible, Swiss precision feel */
    --font-size-base: 1.125rem; /* 18px */
    --line-height-base: 1.7;

    /* Spacing */
    --spacing-unit: 1rem;
    --padding-md: calc(var(--spacing-unit) * 1.5); /* 24px */
    --padding-lg: calc(var(--spacing-unit) * 3); /* 48px */
    --margin-md: calc(var(--spacing-unit) * 1.5);
    --margin-lg: calc(var(--spacing-unit) * 3);

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    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-primary);
    line-height: 1.2;
    margin-top: var(--margin-lg);
    margin-bottom: var(--margin-md);
    letter-spacing: -0.02em; /* Tighten for headings */
}

h1 {
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
}

h2 {
    font-size: 2.75rem; /* 44px */
    font-weight: 600;
}

h3 {
    font-size: 2.25rem; /* 36px */
    font-weight: 600;
}

h4 {
    font-size: 1.75rem; /* 28px */
    font-weight: 500;
}

p {
    margin-bottom: var(--margin-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease),
                text-decoration var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

ul, ol {
    margin-left: var(--margin-md);
    margin-bottom: var(--margin-md);
}

li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* General Layout and Spacing */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-md);
    padding-right: var(--padding-md);
}

section {
    padding-top: var(--padding-lg);
    padding-bottom: var(--padding-lg);
    position: relative;
    overflow: hidden; /* For geometric shapes */
}

/* Section Backgrounds - Swiss Precision inspired, subtle differentiation */
.section-bg-1 {
    background-color: var(--section-bg-1);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
}

.section-bg-5 {
    background-color: var(--section-bg-5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--padding-md) var(--padding-lg);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.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-md);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: darken(var(--color-accent), 10%); /* Assuming SCSS-like darken or manually adjust */
    border-color: darken(var(--color-accent), 10%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background-color: var(--section-bg-1);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--padding-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-speed) var(--transition-ease),
                box-shadow var(--transition-speed) var(--transition-ease);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--padding-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    background-color: var(--section-bg-1);
    transition: all var(--transition-speed) var(--transition-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Specifics */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding-top: var(--padding-lg);
    padding-bottom: var(--padding-lg);
    font-size: 0.9rem;
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
}

.footer a:hover {
    color: var(--color-text-light);
}

/* Brutalism-inspired Geometric Shapes (Abstract Background Elements) */
.section-geometric::before,
.section-geometric::after {
    content: '';
    position: absolute;
    z-index: 0;
    opacity: 0.05; /* Very subtle */
}

.section-geometric::before {
    width: 200px;
    height: 200px;
    background-color: var(--color-primary);
    transform: rotate(45deg);
    top: -50px;
    left: -50px;
}

.section-geometric::after {
    width: 300px;
    height: 100px;
    background-color: var(--color-secondary);
    transform: skewX(-20deg);
    bottom: -50px;
    right: -100px;
}

.section-geometric > .container {
    position: relative;
    z-index: 1; /* Ensure content is above shapes */
}

/* Utility for text alignment */
.text-center {
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem; /* 48px */
    }

    h2 {
        font-size: 2.25rem; /* 36px */
    }

    h3 {
        font-size: 1.75rem; /* 28px */
    }

    .btn {
        padding: calc(var(--padding-md) * 0.75) calc(var(--padding-lg) * 0.75);
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem; /* 40px */
    }

    h2 {
        font-size: 2rem; /* 32px */
    }

    h3 {
        font-size: 1.5rem; /* 24px */
    }

    body {
        font-size: 1rem; /* 16px */
        line-height: 1.6;
    }

    .container {
        padding-left: var(--spacing-unit);
        padding-right: var(--spacing-unit);
    }

    section {
        padding-top: var(--padding-md);
        padding-bottom: var(--padding-md);
    }

    .section-geometric::before,
    .section-geometric::after {
        display: none; /* Hide complex shapes on smaller screens for performance/simplicity */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem; /* 32px */
    }

    h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    .btn {
        width: 100%;
        display: block;
        margin-bottom: var(--spacing-unit);
    }
}

/* Keyframe for subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    animation: fadeIn 0.6s var(--transition-ease) forwards;
    animation-timeline: view(); /* Modern API for scroll-linked animation */
    animation-range: entry 25% cover 50%;
}

/* Fallback for browsers not supporting animation-timeline */
@supports not (animation-timeline: view()) {
    .fade-in-element {
        /* Consider adding a JS-based observer for older browsers if needed */
        opacity: 1; /* Default to visible */
        transform: none;
    }
}

/* Alpine.js specific transitions (assuming it adds/removes classes) */
[x-cloak] { display: none !important; }

/* Example for a simple Alpine.js transition */
.collapsible-enter-active, .collapsible-leave-active {
    transition: all 0.3s ease-out;
    overflow: hidden;
}
.collapsible-enter, .collapsible-leave-to {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}
.collapsible-enter-to, .collapsible-leave {
    max-height: 500px; /* Adjust based on content */
    opacity: 1;
    transform: translateY(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;
    }
}