/* Table of Contents
==================================================
1.  :root Variables
2.  Global Styles & Typography
3.  Utility Classes
4.  Header & Navigation
5.  Hero Section
6.  General Section Styling
7.  Card Styles (Services, Team, Insights, Case Studies)
8.  Specific Component Styles (Progress Bars, Toggles, Modals)
9.  Section-Specific Styles
    - Services
    - Insights
    - Workshops
    - Team
    - Case Studies
    - Resources
    - Contact
10. Footer
11. Animations
12. Page-Specific Styles (Success, Privacy, Terms)
13. Responsive Design
================================================== */

/* 1. :root Variables
================================================== */
:root {
    /* Color Palette: Complementary - Corporate Blue & Gold Accent */
    --primary-color: #0D2B4E; /* Deep Navy Blue */
    --primary-color-rgb: 13, 43, 78;
    --primary-color-darker: #091F3A;
    --secondary-color: #3E648A; /* Steel Blue */
    --accent-color: #F7B538; /* Gold/Yellow */
    --accent-color-rgb: 247, 181, 56;
    --accent-color-darker: #D49C2E;
    --accent-color-hover: #e0a830;

    --text-color-dark: #222222; /* For headings on light backgrounds */
    --text-color-body: #333333; /* For main body text on light backgrounds */
    --text-color-light: #FFFFFF; /* For text on dark backgrounds */
    --text-color-muted: #555555; /* For subtitles, less important text */
    --text-color-link: var(--accent-color);

    --background-color-light: #FFFFFF;
    --background-color-medium: #F4F7F6; /* Light grey for alternate sections */
    --background-color-dark: var(--primary-color);

    --card-background-color: #FFFFFF;
    --card-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.1);
    --card-border-radius: 8px;

    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Work Sans', sans-serif;

    --container-width: 1200px;
    --container-padding: 1.5rem; /* 24px */
    --spacing-unit: 1rem; /* 16px */

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    --header-height: 80px; /* Approximate height */
    --transition-speed: 0.3s;
    --transition-easing: ease-in-out;
}

/* 2. Global Styles & Typography
================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* Typically 16px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color-body);
    background-color: var(--background-color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color-dark);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--text-color-link);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-easing);
}
a:hover {
    color: var(--accent-color-darker);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: var(--spacing-unit);
    padding-left: calc(var(--spacing-unit) * 1.5);
}

li {
    margin-bottom: calc(var(--spacing-unit) / 2);
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75);
    border-radius: var(--border-radius-medium);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-speed) var(--transition-easing),
                color var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color); /* Dark text on bright accent */
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
}

/* 3. Utility Classes
================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 4);
}
.section-padding-alt {
    padding-top: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 4);
    background-color: var(--background-color-medium);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--primary-color); /* Ensure high contrast for titles */
}

.section-subtitle {
    text-align: center;
    color: var(--text-color-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-light { color: var(--text-color-light) !important; } /* For dark backgrounds */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.grid-container {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
}
/* Default to 1 column on smallest screens, then adapt */
.grid-container.columns-2 {
    grid-template-columns: 1fr;
}
.grid-container.columns-3 {
    grid-template-columns: 1fr;
}

/* 4. Header & Navigation
================================================== */
.site-header {
    background-color: var(--background-color-light);
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--accent-color);
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-list li {
    margin-left: calc(var(--spacing-unit) * 2);
    margin-bottom: 0;
}
.main-navigation .nav-list a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    padding: calc(var(--spacing-unit) / 2) 0;
    position: relative;
}
.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) var(--transition-easing);
}
.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after { /* Add .active class with JS for current page/section */
    width: 100%;
}
.main-navigation .nav-list a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav list when it's a dropdown */
}
.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0s 0.3s; /* Delay hiding for better visual on close */
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform var(--transition-speed) var(--transition-easing),
                top var(--transition-speed) var(--transition-easing) 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active state for hamburger (JS toggles .is-active on .menu-toggle) */
.menu-toggle.is-active .hamburger { background-color: transparent; }
.menu-toggle.is-active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    transition: top var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing) 0.3s;
}
.menu-toggle.is-active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing) 0.3s;
}

/* Main content needs padding to not be obscured by fixed header */
main {
    padding-top: var(--header-height);
}


/* 5. Hero Section
================================================== */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding: calc(var(--spacing-unit) * 6) 0; /* Increased padding */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height)); /* Example: Full viewport height minus header */
    position: relative;
}
.hero-section::before { /* Overlay for text readability, if not in inline style */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background: linear-gradient(rgba(var(--primary-color-rgb), 0.5), rgba(var(--primary-color-rgb), 0.7)); */
    /* The HTML already has a linear-gradient in style attribute, this is a fallback/alternative */
}
.hero-content {
    position: relative; /* To be above the ::before overlay */
    max-width: 800px;
}
.hero-content h1 {
    color: var(--text-color-light); /* STROGO: White text */
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* Ensured by HTML, reinforced here */
}
.hero-content p {
    color: var(--text-color-light); /* STROGO: White text */
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.8;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5); /* Ensured by HTML, reinforced here */
}
.hero-content .btn-primary {
    font-size: 1.1rem;
    padding: calc(var(--spacing-unit) * 0.9) calc(var(--spacing-unit) * 2.2);
}

/* 6. General Section Styling - already covered by .section-padding etc. */

/* 7. Card Styles
================================================== */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
    text-align: left; /* Default text alignment for card content, can be overridden */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--primary-color-rgb), 0.15);
}

/* Specific card structure from prompt: <div class='card'><div class='card-image'><img ...></div><div class='card-content'>...</div></div> */
.card .card-image { /* This is the container for the image */
    width: 100%;
    height: 220px; /* Fixed height for consistency, adjust as needed per card type */
    overflow: hidden;
    position: relative; /* For potential overlays on image */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-easing);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill card height */
}
.card .card-content h3 {
    color: var(--primary-color);
    margin-top: 0; /* Remove top margin if it's the first element */
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}
.card .card-content p {
    font-size: 0.95rem;
    color: var(--text-color-muted);
    flex-grow: 1; /* Push buttons/links to bottom if card height is fixed by grid */
    margin-bottom: var(--spacing-unit);
}
.card .card-content .btn,
.card .card-content .read-more-insights {
    margin-top: auto; /* Pushes button to the bottom of the card content */
    align-self: flex-start; /* Align button to left by default */
}

/* STROGO: For cards in general, text-align: center for the card itself if content is centered */
/* If specific cards need centered text (like team cards), apply it there */
.team-member-card .card-content,
.workshop-item { /* Example of items needing centered text */
    text-align: center;
}
.team-member-card .card-content .btn,
.workshop-item .btn {
    align-self: center;
}

.team-member-card .card-image {
    height: 300px; /* specific for team member photos */
    border-radius: 50%; /* If team photos are circular */
    width: 200px; /* Example: if circular or specific dimensions */
    height: 200px; /* Example */
    margin: var(--spacing-unit) auto; /* Center the image block */
}
.team-member-card .card-image img {
    border-radius: 50%; /* If team photos are circular */
}
/* If team member images are not circular, remove border-radius from .card-image and img above */

.team-member-title {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* 8. Specific Component Styles
================================================== */
/* Progress Bar */
.progress-bar-container {
    margin: var(--spacing-unit) 0;
}
.progress-bar-container label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 3);
    font-size: 0.85em;
    color: var(--text-color-muted);
    font-weight: 500;
}
progress.themed-progress-bar {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: var(--border-radius-small);
    overflow: hidden;
}
progress.themed-progress-bar::-webkit-progress-bar {
    background-color: #e9ecef;
    border-radius: var(--border-radius-small);
}
progress.themed-progress-bar::-webkit-progress-value {
    background-color: var(--accent-color);
    border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
    transition: width 0.6s var(--transition-easing);
}
progress.themed-progress-bar::-moz-progress-bar { /* Firefox */
    background-color: var(--accent-color);
    border-radius: var(--border-radius-small);
    transition: width 0.6s var(--transition-easing);
}
.progress-bar-container span {
    font-size: 0.85em;
    margin-left: calc(var(--spacing-unit) / 2);
    color: var(--primary-color);
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch-container {
    display: flex;
    align-items: center;
    margin: var(--spacing-unit) 0;
    gap: var(--spacing-unit);
}
.toggle-switch-container > span:first-child { /* The label text */
    font-size: 0.9em;
    color: var(--text-color-body);
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { display:none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--accent-color); }
input:focus + .slider { box-shadow: 0 0 1px var(--accent-color); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Modals */
.modal {
    display: none; /* Hidden by default, JS toggles this */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(var(--primary-color-rgb), 0.7); /* Dark overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--background-color-light);
    margin: auto;
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 40px rgba(var(--primary-color-rgb), 0.2);
    max-width: 700px; /* Or percentage based like 80vw */
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative; /* For close button positioning */
    animation: modal-fade-in 0.4s var(--transition-easing);
}
.modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-unit);
}
.modal-content p, .modal-content ul {
    color: var(--text-color-body);
    font-size: 0.95rem;
    line-height: 1.8;
}
.modal-content ul { list-style: disc; padding-left: 20px; }
.close-button {
    color: var(--text-color-muted);
    position: absolute;
    top: var(--spacing-unit);
    right: calc(var(--spacing-unit) * 1.5);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}
.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


/* 9. Section-Specific Styles
================================================== */
/* Insights Section */
.insights-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
    grid-template-columns: 1fr; /* Default for mobile */
}
.insight-item {
    background-color: var(--card-background-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.insight-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.insight-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-content {
    padding: calc(var(--spacing-unit) * 1.5);
}
.insight-content h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.insight-content p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-unit);
}
a.read-more-insights {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: calc(var(--spacing-unit) / 2);
    font-size: 0.9rem;
}
a.read-more-insights:hover {
    color: var(--accent-color-darker);
    text-decoration: underline;
}
a.read-more-insights::after {
    content: ' \00BB';
    margin-left: 3px;
}

/* Workshops Section */
.workshop-item {
    background-color: var(--background-color-light);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    text-align: center; /* Center content as per prompt for "items" */
}
.workshop-item .workshop-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.workshop-item h3 { color: var(--primary-color); }
.workshop-item p { color: var(--text-color-muted); font-size: 0.95rem; }
.workshop-item p strong { color: var(--text-color-body); }
.workshop-item .btn { margin-top: var(--spacing-unit); }

/* Resources Section */
.resources-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 1.5);
}
.resource-item {
    background-color: var(--background-color-light);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-small);
    border: 1px solid #e0e0e0;
    transition: border-color var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
}
.resource-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.15);
}
.resource-item h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) / 2);
}
.resource-item h3 a {
    color: var(--primary-color);
}
.resource-item h3 a:hover {
    color: var(--accent-color);
}
.resource-item p {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0;
}
.disclaimer {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 2);
}

/* Contact Section */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: calc(var(--spacing-unit) * 3);
    background-color: var(--background-color-light); /* Form usually on light bg */
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
}
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) / 2);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.8) var(--spacing-unit);
    border: 1px solid #ced4da;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-color-body);
    transition: border-color var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.25);
    outline: none;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group .checkbox-label {
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-color-muted);
    display: inline-flex; /* Align checkbox and text */
    align-items: center;
}
.form-group input[type="checkbox"] {
    margin-right: calc(var(--spacing-unit) / 2);
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color); /* Modern way to color checkboxes */
}
.contact-form-container .btn-submit {
    width: 100%;
    padding-top: var(--spacing-unit);
    padding-bottom: var(--spacing-unit);
    font-size: 1.1rem;
}

.contact-info {
    color: var(--text-color-body);
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}
.contact-info p {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 0.95rem;
}
.contact-info p strong {
    color: var(--primary-color);
}
.contact-info a {
    color: var(--accent-color);
}
.contact-info a:hover {
    color: var(--accent-color-darker);
}

/* Case Studies Section */
.case-study-card .card-image {
    height: 280px; /* Or specific for case studies */
}
.case-study-card .card-content h3 {
    font-size: 1.4rem;
}
.case-study-card .card-content p strong {
    color: var(--text-color-body);
    display: block;
    margin-bottom: calc(var(--spacing-unit) / 4);
}

/* 10. Footer
================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8); /* Light text on dark background */
    padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5) 0;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.footer-about h4,
.footer-links h4,
.footer-social h4 {
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-unit);
}
.footer-about p {
    line-height: 1.8;
    margin-bottom: 0;
}
.footer-links ul,
.footer-social .social-links-text {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-social .social-links-text li {
    margin-bottom: calc(var(--spacing-unit) * 0.6);
}
.footer-links a,
.footer-social .social-links-text a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.footer-links a:hover,
.footer-social .social-links-text a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.footer-contact-info {
    margin-top: var(--spacing-unit);
    line-height: 1.8;
}
.footer-contact-info a {
    color: rgba(255,255,255,0.8);
}
.footer-contact-info a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}
.footer-bottom p { margin-bottom: 0; }

/* 11. Animations (Scroll-dependent)
================================================== */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.7s; /* Base duration */
    transition-timing-function: var(--transition-easing);
}
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.fade-in-up { transform: translateY(50px); }
.animate-on-scroll.fade-in-left { transform: translateX(-50px); }
.animate-on-scroll.fade-in-right { transform: translateX(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* 12. Page-Specific Styles
================================================== */
/* Success Page */
body.success-page { /* Add this class to body on success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color-medium);
}
.success-page .site-header, .success-page .site-footer {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}
.success-page main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
}
.success-content {
    background-color: var(--card-background-color);
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
    max-width: 600px;
}
.success-content h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
    font-size: 2.2rem;
}
.success-content p {
    color: var(--text-color-body);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 1.1rem;
}
.success-content .btn {
    margin-top: var(--spacing-unit);
}

/* Privacy & Terms Pages */
/* Add .static-page class to body or main on these pages */
.static-page main .container, /* If using this structure */
.static-page-content { /* Or if using a dedicated div wrapper */
    padding-top: calc(var(--spacing-unit) * 3); /* 100px is quite large, adjusting based on header height */
    padding-bottom: calc(var(--spacing-unit) * 3);
    max-width: 900px; /* Better readability for text-heavy pages */
}
.static-page main h1, .static-page-content h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-align: left;
}
.static-page main h2, .static-page-content h2 {
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: var(--spacing-unit);
    text-align: left;
    font-size: 1.6rem;
}
.static-page main p, .static-page-content p,
.static-page main li, .static-page-content li {
    text-align: left;
    line-height: 1.8;
    color: var(--text-color-body);
}

/* 13. Responsive Design
================================================== */
@media (min-width: 576px) {
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-container.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-container.columns-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* More robust for 3 columns */
    }
     .insights-grid { /* For insights, maybe 2 columns on tablet */
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .contact-form-container {
        grid-template-columns: 2fr 1fr; /* Form on left, info on right */
        align-items: start;
    }
    #contact-form { order: 1; } /* Ensure form is first if source order changes */
    .contact-info { order: 2; }
}

@media (min-width: 992px) {
    .grid-container.columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .insights-grid { /* Up to 3 columns for insights on larger screens */
       grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Navigation */
@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    .menu-toggle {
        display: block;
    }
    .main-navigation .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height); /* Align below header */
        left: 0;
        width: 100%;
        background-color: var(--background-color-light);
        box-shadow: 0 8px 16px rgba(var(--primary-color-rgb), 0.1);
        flex-direction: column;
        padding: var(--spacing-unit) 0;
        border-top: 1px solid #eee;
    }
    .main-navigation .nav-list.is-active {
        display: flex; /* Use flex for column layout */
        animation: slideDown 0.3s var(--transition-easing);
    }
    .main-navigation .nav-list li {
        margin-left: 0;
        width: 100%;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-unit) var(--container-padding);
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after { /* Mobile nav link indicator */
        display: none; /* Or style differently for mobile */
    }
    .main-navigation .nav-list a:hover {
        background-color: var(--background-color-medium);
        color: var(--accent-color);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Cookie Popup - Styles are primarily inline in HTML for simplicity as requested.
   This ensures it works even if CSS fails to load, and keeps it self-contained.
   However, global variables could be used if CSS is guaranteed.
   Example:
   #cookie-popup { background-color: rgba(var(--primary-color-rgb), 0.95); }
   #accept-cookie-button { background-color: var(--accent-color); color: var(--primary-color); }
*/