/* style.css */

:root {
    /* Pastel Color Scheme with Neo-Brutalism in mind */
    --primary-color: #A0D2DB; /* Pastel Blue/Teal */
    --primary-darker: #7AAFB7; /* Darker shade for interactions */
    --secondary-color: #F7C8E0; /* Pastel Pink */
    --secondary-darker: #D9A9C1; /* Darker shade for interactions */
    --accent-color: #FFDAB9; /* Peach Puff - pastel orange/peach */
    --accent-darker: #EBC0A0; /* Darker shade for interactions */

    --background-color: #FEFBF6; /* Very light, almost white pastel */
    --light-bg-color: #F0F8FF;   /* AliceBlue - for alternating sections */
    --card-bg-color: #FFFFFF;     /* White for cards */
    
    --text-color: #333333;          /* Dark grey for body text */
    --text-color-light: #FFFFFF;    /* White for dark backgrounds */
    --heading-text-color: #222222;  /* Near black for headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-darker);

    /* Neo-Brutalism Elements */
    --neo-border-color: var(--text-color); 
    --neo-border: 2px solid var(--neo-border-color);
    --neo-border-light: 2px solid #dddddd; /* Lighter border for some elements */
    --neo-shadow: 4px 4px 0px var(--neo-border-color);
    --neo-shadow-light: 2px 2px 0px rgba(0,0,0,0.1);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Transitions & Animations */
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --transition-easing: ease-in-out;

    /* Spacing */
    --section-padding-y: 5rem;
    --container-max-width: 1140px; /* Consistent with Bootstrap's lg breakpoint */
}

/* Meyer Reset or Normalize (Optional, Bootstrap includes its own reboot) */
/* For this example, we'll rely on Bootstrap's reboot.css */

/* --- GLOBAL STYLES --- */
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-text-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

h1 { font-size: 2.8rem; } /* Adjusted for responsiveness via media queries later */
h2 { font-size: 2.4rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--heading-text-color);
    text-align: center;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

/* --- BUTTONS (GLOBAL) --- */
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0; /* Neo-brutalism: sharp edges */
    border: var(--neo-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed-normal) var(--transition-easing);
    box-shadow: var(--neo-shadow-light);
    text-align: center;
}

.btn-primary, button.btn-primary, input[type='submit'].btn-primary {
    background-color: var(--primary-color);
    color: var(--heading-text-color); /* Darker text on lighter pastel primary */
    border-color: var(--neo-border-color);
}

.btn-primary:hover, button.btn-primary:hover, input[type='submit'].btn-primary:hover {
    background-color: var(--primary-darker);
    color: var(--text-color-light); /* Lighter text on darker pastel primary */
    border-color: var(--neo-border-color);
    box-shadow: var(--neo-shadow);
    transform: translate(-2px, -2px); /* Morphing effect */
}

.btn-secondary, button.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--heading-text-color);
    border-color: var(--neo-border-color);
}

.btn-secondary:hover, button.btn-secondary:hover {
    background-color: var(--secondary-darker);
    color: var(--text-color-light);
    border-color: var(--neo-border-color);
    box-shadow: var(--neo-shadow);
    transform: translate(-2px, -2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
     box-shadow: var(--neo-shadow);
    transform: translate(-2px, -2px);
}

/* "Read More" Link Style */
.read-more-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 1rem;
    padding-bottom: 2px; /* For the underline effect */
    border-bottom: 2px solid transparent; /* Placeholder for hover effect */
    transition: color var(--transition-speed-fast) var(--transition-easing), 
                border-bottom-color var(--transition-speed-fast) var(--transition-easing);
}

.read-more-link:hover {
    color: var(--accent-darker);
    border-bottom-color: var(--accent-darker);
    text-decoration: none; /* Remove default underline */
}


/* --- HEADER / NAVIGATION --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.8); /* Slight transparency */
    backdrop-filter: blur(10px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--neo-border);
    padding: 0.5rem 0;
    transition: background-color var(--transition-speed-normal) var(--transition-easing);
}

.site-header.scrolled { /* JS adds this class on scroll */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-darker); /* Using darker primary for brand */
}

.site-header .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-color);
    padding: 0.6rem 1rem !important; /* Ensure Bootstrap padding is overridden if needed */
    margin: 0 0.3rem;
    border-radius: 0; /* Sharp edges for nav items if desired */
    transition: color var(--transition-speed-fast) var(--transition-easing), 
                background-color var(--transition-speed-fast) var(--transition-easing);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--primary-darker);
    background-color: rgba(160, 210, 219, 0.2); /* Light primary bg on hover */
}

.navbar-toggler {
    border: var(--neo-border);
    border-radius: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.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(34, 34, 34, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border-radius: 0;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-light);
    background-color: var(--card-bg-color);
}
.dropdown-item {
    font-family: var(--font-body);
    color: var(--text-color);
    padding: 0.5rem 1.2rem;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--light-bg-color);
    color: var(--primary-darker);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    /* min-height: 85vh; Height should be natural based on content or specific design */
    padding: 8rem 0; /* Example padding, adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-section h1 {
    color: var(--text-color-light); /* White text as requested */
    font-size: 3.5rem; /* Large and bold for hero */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: var(--text-color-light); /* White text */
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-section .btn {
    margin: 0.5rem;
}

/* --- GENERAL SECTION STYLING --- */
section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}
section.bg-light {
    background-color: var(--light-bg-color) !important;
}

/* --- CARD STYLES (GENERAL & SPECIFIC) --- */
.card {
    background-color: var(--card-bg-color);
    border: var(--neo-border);
    border-radius: 0; /* Sharp edges */
    box-shadow: var(--neo-shadow-light);
    transition: transform var(--transition-speed-normal) var(--transition-easing), 
                box-shadow var(--transition-speed-normal) var(--transition-easing);
    height: 100%; /* For equal height cards in a row */
    display: flex; /* For flex properties like centering content if needed */
    flex-direction: column; /* Stack card items vertically */
}

.card:hover {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 8px 8px 0px var(--primary-color); /* Neo-brutalism hover */
}

/* Card image wrapper */
.card-image {
    overflow: hidden; /* Ensures image stays within bounds, esp. with scaling */
    border-bottom: var(--neo-border); /* Separator */
    position: relative; /* For potential overlays or fixed height images */
    /* Fixed height for card image containers for consistency */
    height: 250px; /* Adjust as needed, this is an example */
    width: 100%; /* Take full width of card */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform var(--transition-speed-slow) var(--transition-easing);
}

.card:hover .card-image img {
    transform: scale(1.08); /* Morphing: Slight zoom on hover */
}

/* Card content */
.card-content, .card-body { /* .card-content is a custom class, .card-body from Bootstrap */
    padding: 1.75rem;
    flex-grow: 1; /* Allows content to take available space, useful for equal height cards */
    display: flex;
    flex-direction: column;
    text-align: left; /* Default, override with .text-center if needed */
}
.card-content > *:last-child, .card-body > *:last-child {
    margin-bottom: 0; /* Remove bottom margin from last element in card body */
}
.card-content .btn, .card-body .btn {
    margin-top: auto; /* Pushes button to the bottom if card is flex column */
    align-self: flex-start; /* Align button to the start */
}

.card-title {
    font-family: var(--font-heading);
    color: var(--primary-darker); /* Use a more prominent color */
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

/* Styles for cards where content should be centered (e.g., team members, specific info cards) */
.card.text-center .card-content, 
.card.text-center .card-body {
    text-align: center;
    align-items: center; /* Center flex items horizontally */
}
.card.text-center .btn {
    align-self: center;
}
.card.text-center .card-image img.rounded-circle {
    margin-left: auto;
    margin-right: auto;
}


/* Info Cards (icon, title, text) */
.info-card {
    /* Uses .card styles, but can have specific adjustments */
    text-align: center;
    padding: 2rem;
}
.info-card .icon-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    /* For actual icons (SVG/Font), style here or use Bootstrap icon classes */
}

/* Link Cards (for external resources) */
.link-card {
    border: var(--neo-border-light); /* Lighter border */
}
.link-card:hover {
    box-shadow: 4px 4px 0px var(--accent-color);
    transform: translateY(-3px) translateX(-3px);
}
.link-card .card-title a {
    color: var(--primary-darker);
}
.link-card .card-title a:hover {
    color: var(--accent-darker);
}

/* Team Member Cards */
.team-member .card-image { /* Wrapper for image */
    width: 150px; /* Example fixed size for circular image */
    height: 150px;
    margin: 1.5rem auto 1rem auto; /* Centering the image container */
    border-radius: 50%;
    border: 2px solid var(--primary-color); /* Accent border */
    box-shadow: var(--neo-shadow-light);
}
.team-member .card-image img {
    border-radius: 50%;
    object-fit: cover;
}

/* --- STATISTICAL WIDGETS --- */
.statistical-widgets .stat-widget {
    background-color: var(--card-bg-color);
    padding: 1.5rem;
    text-align: center;
    border: var(--neo-border);
    box-shadow: var(--neo-shadow-light);
}
.stat-widget .fs-2 { /* The number itself */
    font-family: var(--font-heading);
    color: var(--primary-darker);
    font-weight: 700;
    font-size: 2.5rem !important; /* Override Bootstrap fs-2 if needed */
    margin-bottom: 0.25rem;
}
.stat-widget p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* --- FORMS --- */
.form-label {
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--heading-text-color);
}

.form-control {
    font-family: var(--font-body);
    border-radius: 0; /* Sharp edges */
    border: var(--neo-border);
    padding: 0.75rem 1rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed-fast) var(--transition-easing), 
                box-shadow var(--transition-speed-fast) var(--transition-easing);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(160, 210, 219, 0.3); /* Primary color with opacity */
    background-color: var(--card-bg-color); /* Ensure bg doesn't change on focus */
}
.form-control::placeholder {
    color: #999;
    opacity: 1;
}

textarea.form-control {
    min-height: 120px;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--heading-text-color); /* Dark background */
    color: var(--text-color-light);
    padding-top: var(--section-padding-y);
    padding-bottom: calc(var(--section-padding-y) / 2);
    border-top: 4px solid var(--primary-color); /* Strong accent top border */
}

.site-footer h5 {
    font-family: var(--font-heading);
    color: var(--primary-color); /* Accent color for footer headings */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.site-footer p {
    color: #ccc; /* Lighter text for paragraphs */
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.site-footer .list-unstyled li {
    margin-bottom: 0.6rem;
}

.site-footer .list-unstyled a {
    color: #ddd; /* Lighter text for links */
    font-weight: 400;
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing);
}

.site-footer .list-unstyled a:hover {
    color: var(--primary-color); /* Brighten on hover */
    text-decoration: underline;
}

.site-footer .copyright-text {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444; /* Subtle separator */
}

/* Footer Social Media Text Links */
.site-footer .social-links-list { /* Assuming you might wrap them in a ul */
    /* Add specific styling if needed, but generally they are covered by .list-unstyled a */
}


/* --- PAGE SPECIFIC STYLES --- */

/* Success Page (success.html) */
.success-page-body { /* Add this class to <body> of success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-color);
}
.success-container { /* Container for success message */
    padding: 3rem;
    background-color: var(--card-bg-color);
    border: var(--neo-border);
    box-shadow: var(--neo-shadow);
    max-width: 600px;
    margin: 1rem;
}
.success-container h1 {
    color: var(--primary-darker);
}
.success-container img {
    margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
/* Apply to <main> or a wrapper div inside <main> on privacy.html & terms.html */
.legal-page-content main {
    padding-top: 100px !important; /* Ensure header doesn't overlap */
}
.legal-page-content article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-darker);
}
.legal-page-content article ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}
.legal-page-content article ul li {
    margin-bottom: 0.5rem;
}


/* --- UTILITY CLASSES & ANIMATIONS --- */
/* Scroll Reveal Animations (initial state for JS) */
.reveal-on-scroll { /* Generic class for elements to be revealed */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-speed-slow) var(--transition-easing),
                transform var(--transition-speed-slow) var(--transition-easing);
}
.reveal-on-scroll.is-visible { /* Class added by ScrollReveal.js */
    opacity: 1;
    transform: translateY(0);
}

/* Parallax background handled by background-attachment: fixed on .hero-section */

/* Cookie Consent Popup (as per previous HTML) */
#cookieConsentPopup {
    /* Basic styles provided in HTML, this is for potential overrides or enhancements */
    font-family: var(--font-body);
}
#cookieConsentPopup p a {
    color: var(--accent-color) !important; /* Ensure link color is visible */
}
#cookieConsentPopup button { /* Overriding global button styles for these specific buttons */
    font-family: var(--font-body); /* Using body font for cookie buttons for a softer look */
    text-transform: none;
    letter-spacing: normal;
    border-radius: 4px; /* Softer edges for cookie buttons */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none; /* No neo-border here */
    box-shadow: none;
}
#cookieConsentPopup button:hover {
    transform: none; /* No morphing for cookie buttons */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#acceptCookieConsent { background-color: #4CAF50 !important; }
#acceptCookieConsent:hover { background-color: #45a049 !important; }
#closeCookieConsent { background-color: #f44336 !important; }
#closeCookieConsent:hover { background-color: #e53935 !important; }


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991.98px) { /* Medium devices (tablets, less than 992px) */
    h1, .section-title { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    
    .hero-section {
        padding: 6rem 0;
        background-attachment: scroll; /* Disable parallax on mobile for performance */
    }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section .lead { font-size: 1.15rem; }

    .site-header .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border: var(--neo-border);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--neo-shadow-light);
        position: absolute;
        width: calc(100% - 2rem); /* Adjust based on container padding */
        left: 1rem; /* Adjust based on container padding */
        z-index: 1000;
        margin-top: 300px ;
    }
     .site-header .nav-link {
        padding: 0.8rem 0.5rem !important;
        margin: 0.2rem 0;
        display: block; /* Full width links in collapsed menu */
    }
}

@media (max-width: 767.98px) { /* Small devices (landscape phones, less than 768px) */
    h1, .section-title { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    p { font-size: 1rem; }

    .hero-section { padding: 5rem 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .lead { font-size: 1.05rem; }
    .hero-section .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

    .btn, button, input[type='submit'] {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-content, .card-body { padding: 1.25rem; }
    .card-title { font-size: 1.2rem; }

    .footer-column { /* Assuming columns in footer might stack */
        margin-bottom: 2rem;
        text-align: center;
    }
    .site-footer h5 {
        text-align: center;
    }
    .site-footer .list-unstyled {
        text-align: center;
    }
}

@media (max-width: 575.98px) { /* Extra small devices (portrait phones, less than 576px) */
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    .hero-section h1 { font-size: 1.9rem; }
    .hero-section .lead { font-size: 1rem; }

    :root {
        --section-padding-y: 3.5rem;
    }
}

/* Fallback for backdrop-filter if not supported */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .site-header {
    background-color: rgba(255, 255, 255, 0.95); /* More opaque fallback */
  }
}