:root {
    /* Colors */
    --color-primary: #284B63; /* Dark Blue-Green from primary_color_hex */
    --color-secondary: #3C6E71; /* Teal from secondary_color_hex */
    --color-background: #F0F5F9; /* Light Gray-Blue from background_color_hex */
    --color-footer-bg: #353535; /* Dark Gray from footer_bg_color_hex */
    --color-button: #D9BF5B; /* Golden Yellow from button_color_hex */
    --color-text: #333333; /* Dark text for readability */
    --color-light-text: #666666; /* Lighter text for secondary info */
    --color-white: #FFFFFF;

    /* Section Backgrounds - derived from section_bg_colors */
    --section-bg-1: #F8FCFF;
    --section-bg-2: #E6EDF2;
    --section-bg-3: #DCE7F0;
    --section-bg-4: #C6D4E1;
    --section-bg-5: #B0C0CE;

    /* Fonts */
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Open Sans', sans-serif;

    /* Spacing & Sizing */
    --spacing-unit: 1rem; /* Base unit for consistent spacing */
    --border-radius-base: 0.75rem; /* rounded-lg equivalent */
    --border-radius-xl: 1rem; /* rounded-xl equivalent */

    /* Shadows */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
    --shadow-button-hover: 0 8px 12px rgba(0, 0, 0, 0.25); /* Stronger shadow for button hover */

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-secondary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7; /* Generous line-height for readability */
    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-primary);
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Slightly tighter letter spacing for headings */
}

h1 {
    font-size: 3.5rem; /* Larger for impact */
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed-normal) ease-in-out;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Section Backgrounds */
.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: 0.9rem 2.2rem;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed-normal) ease-out;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md); /* Soft initial shadow */
    position: relative; /* For 3D effect */
    overflow: hidden; /* For subtle internal gradient or shine */
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-button) 0%, darken(var(--color-button), 10%) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 8px rgba(217, 191, 91, 0.3); /* Button specific shadow */
}

.btn-primary:hover {
    transform: translateY(-3px); /* Subtle lift */
    box-shadow: var(--shadow-button-hover); /* Stronger, deeper shadow */
    background: linear-gradient(135deg, darken(var(--color-button), 5%) 0%, darken(var(--color-button), 15%) 100%);
}

.btn-primary:active {
    transform: translateY(0); /* Press down effect */
    box-shadow: 0 2px 4px rgba(217, 191, 91, 0.2);
}

/* Card Styles */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    transition: transform var(--transition-speed-normal) ease-out, box-shadow var(--transition-speed-normal) ease-out;
    overflow: hidden; /* For internal elements */
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: var(--shadow-xl); /* Deeper shadow */
}

/* Form Elements - Basic Styling */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed-fast) ease-in-out, box-shadow var(--transition-speed-fast) ease-in-out;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle inner shadow */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--color-button);
    box-shadow: 0 0 0 3px rgba(217, 191, 91, 0.2); /* Focus ring */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Utility Classes for Layout (to complement Tailwind) */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Specific Styles */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-background);
    padding: 3rem 0;
    font-size: 0.95rem;
    text-align: center;
}

footer a {
    color: var(--color-button);
}

footer a:hover {
    color: var(--color-button);
    text-decoration: underline;
}

/* Subtle Gradient Background for Hero or Key Sections - Example */
.hero-section {
    background: linear-gradient(180deg, var(--section-bg-1) 0%, var(--section-bg-2) 100%);
    padding: 6rem 0;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    p {
        font-size: 1rem;
    }
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-section {
        padding: 4rem 0;
    }
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.95rem;
    }
    .btn {
        display: block; /* Stack buttons on small screens */
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Animation for subtle background movement */
@keyframes backgroundPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Example of applying a subtle background animation (can be used on body or specific large sections) */
/* body {
    background-size: 200% 200%;
    animation: backgroundPan 30s ease infinite;
} */


/* 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;
    }
}