:root {
    /* Split-Complementary Retro Palette */
    --retro-primary: #2A9D8F; /* Jungle Green - main teal/green */
    --retro-secondary: #E76F51; /* Burnt Sienna - contrasting orange/red */
    --retro-accent1: #F4A261; /* Sandy Brown - warm accent */
    --retro-accent2: #E9C46A; /* Saffron - yellow accent */

    --retro-dark: #264653; /* Charleston Green - for dark backgrounds, deep text */
    --retro-light: #FEFBF6; /* Off-white/Light Beige - for light backgrounds */
    --retro-light-bg: var(--retro-light); /* Alias for hero SVG fill or general light backgrounds */

    --retro-text-dark: #222222; /* Darker text for high contrast on light backgrounds */
    --retro-text-light: #FFFFFF;
    --retro-text-muted: #5a6268; /* Slightly darker muted text */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem;  /* 8px */
    --border-radius-lg: 0.8rem;  /* 12px, for more retro feel on cards */

    --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 6px 15px rgba(0, 0, 0, 0.12);
    --text-shadow-subtle: 1px 1px 2px rgba(0,0,0,0.25);
    --text-shadow-strong: 1px 1px 3px rgba(0,0,0,0.5);

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* GLOBAL STYLES */
body {
    font-family: var(--font-body);
    color: var(--retro-text-dark);
    background-color: var(--retro-light);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--retro-dark);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: var(--text-shadow-subtle); /* Subtle shadow for all headings */
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--retro-dark); /* Ensure high contrast */
}

p {
    margin-bottom: 1rem;
    color: var(--retro-text-dark);
}

p.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #495057; /* Slightly softer for lead paragraphs */
}

a {
    color: var(--retro-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--retro-secondary);
    text-decoration: underline;
}

/* HEADER & NAVIGATION */
.header {
    background-color: rgba(254, 251, 246, 0.92); /* --retro-light with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-light);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--retro-dark) !important;
    font-weight: 700;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--retro-dark) !important;
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    padding: 0.5rem 0.8rem !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
    border-radius: var(--border-radius-sm);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--retro-secondary);
    transition: width var(--transition-speed) var(--transition-timing);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}
.nav-link:hover,
.nav-link.active {
    color: var(--retro-secondary) !important;
}


.navbar-toggler {
    border-color: var(--retro-primary);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(42, 157, 143, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* HERO SECTION */
.hero-section {
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 120px;
    padding-bottom: 100px; /* Increased to accommodate curve and content */
}

.hero-section .hero-content h1,
.hero-section .hero-content p {
    color: var(--retro-text-light);
    text-shadow: var(--text-shadow-strong);
}

.hero-section .hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
}

.hero-section .hero-content p.lead {
    font-size: 1.35rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.curved-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.curved-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; /* Default height, adjust as needed based on SVG */
}
/* fill for path is in HTML: style="fill:var(--retro-light-bg);" */


/* GENERAL SECTION STYLING */
.content-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.bg-offset {
    background-color: #f8f5f0; /* Slightly warmer off-white for contrast */
}

/* BUTTONS (GLOBAL) */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--box-shadow-light);
    font-size: 1rem;
    line-height: 1.5; /* Ensure text is vertically centered */
}

.btn-primary, .retro-button {
    background-color: var(--retro-primary);
    border-color: var(--retro-primary);
    color: var(--retro-text-light);
}
.btn-primary:hover, .retro-button:hover {
    background-color: var(--retro-dark);
    border-color: var(--retro-dark);
    color: var(--retro-text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--box-shadow-strong);
}

.btn-secondary, .retro-button-small {
    background-color: var(--retro-secondary);
    border-color: var(--retro-secondary);
    color: var(--retro-text-light);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}
.btn-secondary:hover, .retro-button-small:hover {
    background-color: var(--retro-dark);
    border-color: var(--retro-dark);
    color: var(--retro-text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--box-shadow-strong);
}

.btn-outline-secondary, .retro-button-small-outline {
    background-color: transparent;
    border-color: var(--retro-secondary);
    color: var(--retro-secondary);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}
.btn-outline-secondary:hover, .retro-button-small-outline:hover {
    background-color: var(--retro-secondary);
    border-color: var(--retro-secondary);
    color: var(--retro-text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--box-shadow-strong);
}

.read-more-link {
    font-family: var(--font-heading);
    color: var(--retro-primary);
    text-decoration: underline;
    font-weight: 700;
    display: inline-block; /* For better interaction area */
    padding: 0.2em 0;
    transition: color var(--transition-speed) var(--transition-timing), letter-spacing var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover {
    color: var(--retro-secondary);
    letter-spacing: 0.5px;
    text-decoration-color: var(--retro-secondary);
}

/* CARD STYLES */
.card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    background-color: var(--retro-text-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* align-items: center; Per STROGO, this centers card's direct children like .card-image and .card-content if their width is not 100% */
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-strong);
}

.card .card-image { /* Wrapper div for img */
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.picture-card .card-image,
.research-section .card .card-image { /* For workshops, research, etc. */
    height: 250px; /* Fixed height for these image containers */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-timing);
}
.card:hover .card-image img {
    transform: scale(1.08);
}

.card .card-content, .card .card-body, .card .p-3, .card .p-4 {
    text-align: center;
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* Ensure content inside also behaves well with flex */
    justify-content: space-between; /* Pushes button to bottom if card has fixed height or content varies */
}

.card-title {
    font-size: 1.4rem;
    color: var(--retro-primary);
    margin-bottom: 0.75rem;
}
.card-text {
    font-size: 0.95rem;
    color: var(--retro-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem; /* Space before button or end of card */
    flex-grow: 1; /* Allows text to take up available space */
}

/* Specific Card Types */
.retro-card { /* Insights Section */
    border: 2px dashed var(--retro-accent1);
    background-color: #fffdf7; /* Very light cream */
}
.retro-card .card-icon img {
    border-radius: 50%;
    padding: 12px;
    background-color: var(--retro-accent2);
    box-shadow: 0 2px 8px rgba(233, 196, 106, 0.6); /* Saffron with shadow */
    margin-bottom: 1rem;
    width: 80px; /* Ensure consistent icon size */
    height: 80px;
}
.retro-card .card-title { color: var(--retro-secondary); }

.testimonial-card {
    background-color: var(--retro-light);
    border-left: 6px solid var(--retro-primary);
}
.testimonial-card .card-image img { /* Image of person */
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--retro-accent1);
    margin: 0 auto 1rem auto; /* Center and space */
}
.testimonial-card blockquote p {
    font-style: italic;
    color: var(--retro-dark);
    font-size: 1.05rem;
}
.testimonial-card blockquote footer {
    font-size: 0.9rem;
    color: var(--retro-primary);
    margin-top: 0.5rem;
}

.resource-link-card {
    background-color: #f8f9fa;
    border-left: 4px solid var(--retro-accent2);
    transition: background-color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}
.resource-link-card:hover {
    background-color: #eef1f3;
    transform: translateX(5px);
}
.resource-link-card .resource-title a {
    font-family: var(--font-heading);
    color: var(--retro-dark);
    font-size: 1.2rem;
}
.resource-link-card .resource-title a:hover { color: var(--retro-secondary); }
.resource-link-card .resource-description {
    font-size: 0.9rem;
    color: var(--retro-text-muted);
    margin-bottom: 0;
}

/* TIMELINE (CUSTOMER STORIES) */
.timeline { position: relative; padding: 2rem 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background-color: var(--retro-accent1); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item:nth-child(odd) .timeline-content { float: left; margin-left: -20px; text-align: right; padding-right: 40px; }
.timeline-item:nth-child(odd) .timeline-content::before { content: ''; position: absolute; top: 20px; right: -10px; border-style: solid; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent var(--retro-light); }
.timeline-item:nth-child(even) .timeline-content { float: right; margin-right: -20px; text-align: left; padding-left: 40px; }
.timeline-item:nth-child(even) .timeline-content::before { content: ''; position: absolute; top: 20px; left: -10px; border-style: solid; border-width: 10px 10px 10px 0; border-color: transparent var(--retro-light) transparent transparent; }
.timeline-item::after { content: ""; display: table; clear: both; }
.timeline-img { position: absolute; left: 50%; top: 10px; width: 30px; height: 30px; margin-left: -15px; background-color: var(--retro-secondary); border: 3px solid var(--retro-light); border-radius: 50%; z-index: 1; display: flex; justify-content: center; align-items: center; }
.timeline-content { position: relative; width: 45%; background-color: var(--retro-light); border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-light); }
.timeline-content.retro-card { border-color: var(--retro-accent2); } /* Uses card padding from HTML */
.timeline-content h3 { font-size: 1.3rem; color: var(--retro-primary); }
.timeline-content p.small { color: var(--retro-text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.timeline-content p:not(.small) { font-size: 0.95rem; color: var(--retro-text-dark); }
.timeline-content .card-image img { border: 2px solid var(--retro-accent1); margin-bottom: 0.5rem; width: 80px; height: 80px; /* Consistent size for timeline portraits */ }

/* STATISTICS SECTION */
#statistics-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax */
}
.stat-widget {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
}
.stat-widget .stat-number { font-family: var(--font-heading); color: var(--retro-accent1); font-size: 3.5rem; margin-bottom: 0.5rem; line-height: 1; }
.stat-widget .stat-label { color: var(--retro-text-light); font-size: 1rem; line-height: 1.4; }
#statistics-section .section-title, #statistics-section p { color: var(--retro-text-light); text-shadow: var(--text-shadow-strong); }


/* CONTACT FORM */
.retro-form .form-label { font-family: var(--font-heading); color: var(--retro-dark); font-size: 1rem; margin-bottom: 0.3rem; font-weight: 700; }
.retro-form .form-control { border: 2px solid var(--retro-accent1); border-radius: var(--border-radius-sm); padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 1rem; color: var(--retro-text-dark); background-color: #fff; transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing); }
.retro-form .form-control:focus { border-color: var(--retro-primary); box-shadow: 0 0 0 0.25rem rgba(42, 157, 143, 0.3); background-color: #fff; color: var(--retro-text-dark); }
.retro-form textarea.form-control { min-height: 130px; resize: vertical; }
.retro-form .btn { margin-top: 1rem; }

/* FOOTER */
.footer { background-color: var(--retro-dark); color: var(--retro-text-light); padding-top: 3.5rem; padding-bottom: 2.5rem; }
.footer h5.footer-heading { font-family: var(--font-heading); color: var(--retro-accent1); font-size: 1.5rem; margin-bottom: 1.2rem; text-transform: uppercase; }
.footer p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer ul { padding-left: 0; list-style: none; }
.footer ul li a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; padding: 0.25rem 0; display: inline-block; transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing); }
.footer ul li a:hover { color: var(--retro-text-light); text-decoration: none; padding-left: 6px; }
.footer .social-links li a { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.5px; }
.footer .social-links li a:hover { color: var(--retro-accent2); }
.footer hr { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer .copyright { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); margin-top: 1.5rem; }

/* SPECIFIC PAGE STYLES */
.success-page-container { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; text-align: center; padding: 2rem; background-color: var(--retro-light); }
.success-page-container .success-icon { font-size: 4.5rem; color: var(--retro-primary); margin-bottom: 1.5rem; } /* Add an icon element in HTML if desired */
.success-page-container h1 { color: var(--retro-dark); font-size: 2.8rem; }
.success-page-container p { color: var(--retro-text-dark); font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; }

.legal-page-content { padding-top: 120px; padding-bottom: 3rem; min-height: calc(100vh - 150px); /* Adjust if footer height changes */ }
.legal-page-content .container { max-width: 900px; }
.legal-page-content h1 { margin-bottom: 2rem; font-size: 2.5rem; color: var(--retro-dark); }
.legal-page-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.8rem; color: var(--retro-primary); }
.legal-page-content p, .legal-page-content li { line-height: 1.8; color: var(--retro-text-dark); }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 991px) { /* Medium devices (tablets) */
    .timeline::before { left: 15px; }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { width: calc(100% - 60px); float: right; text-align: left; padding-left: 30px; padding-right: 15px; margin-left: 0; margin-right: 0; }
    .timeline-item:nth-child(odd) .timeline-content::before, .timeline-item:nth-child(even) .timeline-content::before { left: -10px; right: auto; border-width: 10px 10px 10px 0; border-color: transparent var(--retro-light) transparent transparent; }
    .timeline-img { left: 0; }
    .section-title { font-size: 2.4rem; }
    .hero-section .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) { /* Small devices (landscape phones, large portrait phones) */
    body { font-size: 15px; }
    .content-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .section-title { font-size: 2.2rem; }
    .hero-section { min-height: 75vh; padding-top: 100px; padding-bottom: 80px; }
    .hero-section .hero-content h1 { font-size: 2.8rem; }
    .hero-section .hero-content p.lead { font-size: 1.2rem; }
    .btn, button, input[type="submit"], input[type="button"] { padding: 0.7rem 1.6rem; font-size: 0.95rem; }
    .btn-secondary, .retro-button-small, .btn-outline-secondary, .retro-button-small-outline { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
    .header .navbar-nav { background-color: var(--retro-light); padding: 1rem; border-radius: var(--border-radius-md); margin-top: 0.5rem; box-shadow: var(--box-shadow-light); }
    .header .nav-link { margin: 0.5rem 0; display: block; text-align: center;}
    .header .nav-link::after { display: none; } /* Remove underline for mobile menu items */
}

@media (max-width: 576px) { /* Extra small devices (portrait phones) */
    .hero-section .hero-content h1 { font-size: 2.2rem; }
    .hero-section .hero-content p.lead { font-size: 1.1rem; }
    .section-title { font-size: 1.9rem; margin-bottom: 2rem; }
    .timeline-content h3 { font-size: 1.15rem; }
    .stat-widget .stat-number { font-size: 2.8rem; }
    .card-title { font-size: 1.25rem; }
    .card-text { font-size: 0.9rem; }
}

/* Cookie Consent Popup (already styled inline in HTML, this is for reference/override) */
#cookieConsentPopup p {
    color: var(--retro-text-light) !important; /* Ensure high contrast against dark popup */
}