/* style.css */

/* -------------------
   CSS Variables
------------------- */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Bright Color Scheme */
    --primary-color: #00AFFF; /* Bright Blue */
    --primary-color-dark: #007acc;
    --primary-rgb: 0, 175, 255;

    --secondary-color: #FF4081; /* Bright Pink/Magenta */
    --secondary-color-dark: #c60055;
    --secondary-rgb: 255, 64, 129;

    --accent-color: #00E676; /* Bright Green */
    --accent-color-dark: #00b24a;
    --accent-rgb: 0, 230, 118;

    --neutral-dark: #1a1d24; /* Dark, almost black for backgrounds/text */
    --neutral-medium: #333740;
    --neutral-light: #f0f2f5; /* Light grey for backgrounds */
    --neutral-extralight: #ffffff;

    --text-color-dark: #222222; /* For light backgrounds */
    --text-color-light: #f0f0f0; /* For dark backgrounds */
    --text-color-headings: #111111;

    --border-color: rgba(var(--primary-rgb), 0.3);
    --card-bg: var(--neutral-extralight);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.2);

    --header-height: 80px;
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 15px;

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

/* -------------------
   Global Resets & Base Styles
------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--neutral-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.main-container {
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

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

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.25rem;
    color: var(--neutral-medium);
}

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

a:hover, a:focus {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

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

ul, ol {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding-top: clamp(60px, 10vh, 100px);
    padding-bottom: clamp(60px, 10vh, 100px);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem; /* Increased margin */
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-small);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--neutral-medium);
    max-width: 700px;
    margin: 0 auto 3rem auto; /* Increased bottom margin */
}

.alt-background {
    background-color: var(--neutral-extralight); /* Slightly different from main bg */
}
.dark-background {
    background-color: var(--neutral-dark);
    color: var(--text-color-light);
}
.dark-background .section-title,
.dark-background h1, .dark-background h2, .dark-background h3, .dark-background h4,
.dark-background p {
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.dark-background .section-title::after {
    background-color: var(--accent-color);
}
.dark-background a {
    color: var(--accent-color);
}
.dark-background a:hover {
    color: var(--primary-color);
}


/* Global Button Styles */
.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8em 1.8em;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    text-align: center;
    background-color: var(--primary-color);
    color: var(--neutral-extralight);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--primary-color-dark);
    color: var(--neutral-extralight);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    text-decoration: none;
}
.cta-button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.2);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.3);
}
.cta-button.secondary:hover {
    background-color: var(--secondary-color-dark);
    box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.4);
}


/* -------------------
   Header & Navigation
------------------- */
.site-header {
    background-color: rgba(26, 29, 36, 0.9); /* Dark, slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color var(--transition-speed) var(--transition-timing);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neutral-extralight);
    text-decoration: none;
}
.logo .logo-ar {
    color: var(--primary-color);
    font-weight: 700;
}
.logo:hover {
    color: var(--neutral-extralight);
    text-decoration: none;
}

.main-nav .nav-menu {
    display: flex;
    align-items: center;
}

.main-nav .nav-menu li {
    margin-left: 1.8rem;
}

.main-nav .nav-menu li a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--neutral-light);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-nav .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) var(--transition-timing);
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li a.active { /* Add .active for current page */
    color: var(--primary-color);
    text-decoration: none;
}
.main-nav .nav-menu li a:hover::after,
.main-nav .nav-menu li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--neutral-extralight);
    position: relative;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--neutral-extralight);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing), bottom var(--transition-speed) var(--transition-timing);
}

.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { bottom: -8px; }

/* Active state for burger */
.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }


/* -------------------
   Hero Section
------------------- */
.hero-section {
    /* background-image is set inline with linear-gradient */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: calc(100vh - var(--header-height)); /* Adjust if header is transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
    color: var(--neutral-extralight); /* Ensured by parent or specific style */
}

.hero-content h1 {
    color: var(--neutral-extralight); /* Explicitly white */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--neutral-light); /* Explicitly light */
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.hero-content .cta-button {
    font-size: 1.1rem;
    padding: 1em 2.5em;
}

/* -------------------
   Card Styles (General)
------------------- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing), border-radius var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}

.card:hover {
    transform: translateY(-8px) scale(1.01); /* Morphing: slight scale and lift */
    box-shadow: var(--card-hover-shadow);
    /* border-radius: var(--border-radius-large); /* Morphing: change shape slightly */
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden; /* Clip image */
    position: relative;
    display: flex; /* Center image if it's smaller (though object-fit:cover handles it) */
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for consistent image display */
    transition: transform 0.4s ease-out;
}

.card:hover .card-image img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push actions to bottom if any */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card-content .read-more-link {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes link to bottom if card content varies */
    display: inline-block;
}
.card-content .read-more-link:hover {
    color: var(--secondary-color-dark);
    text-decoration: underline;
}


/* -------------------
   Features Section
------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* -------------------
   Sustainability Section
------------------- */
.sustainability-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .sustainability-content {
        grid-template-columns: 1fr 1.2fr; /* Image on left, text on right */
    }
    .sustainability-content.image-right { /* Optional class for image on right */
        grid-template-columns: 1.2fr 1fr;
    }
    .sustainability-content.image-right .sustainability-image-container {
        order: 2;
    }
}


.sustainability-image-container img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
}

.sustainability-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* -------------------
   Team Section
------------------- */
.team-carousel {
    /* Basic styling for carousel container. JS will handle the sliding. */
    /* For now, let's use a grid for display if JS is not ready */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* overflow-x: auto; */ /* If using a simple scrollable row without JS */
    /* padding-bottom: 1rem; */ /* For scrollbar */
}

.team-member.card .card-image {
    height: 280px; /* Taller for portraits */
}
.team-member.card .card-image img {
     border-radius: 0; /* No radius if image fills container */
}
.team-member .card-content {
    text-align: center;
}
.team-member h3 {
    margin-bottom: 0.25rem;
}
.team-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem !important; /* Override p margin */
}


/* -------------------
   Insights Section (Accordion)
------------------- */
.insights-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--neutral-extralight);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-speed) var(--transition-timing);
}
.accordion-item:hover {
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.1);
}

.accordion-header {
    background-color: transparent; /* Button is transparent, item has bg */
    color: var(--text-color-headings);
    cursor: pointer;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.accordion-header:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform var(--transition-speed) var(--transition-timing);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* Morphing the plus to a cross */
}

.accordion-content {
    padding: 0 1.5rem;
    background-color: var(--neutral-extralight);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0), padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0); /* Smooth morphing open/close */
    border-top: 1px solid transparent;
}
.accordion-item.active .accordion-content {
    /* max-height is set by JS, or a large enough value */
    padding: 1.5rem;
    border-top-color: var(--border-color);
}
.accordion-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.accordion-content p:last-child {
    margin-bottom: 0;
}


/* -------------------
   External Resources Section
------------------- */
.external-resources-section {
    background-color: var(--neutral-light); /* Or a subtle texture */
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background-color: var(--neutral-extralight);
    padding: 1.5rem;
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) var(--transition-timing);
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb),0.15);
}
.resource-card h4 {
    margin-bottom: 0.5rem;
}
.resource-card h4 a {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}
.resource-card h4 a:hover {
    color: var(--primary-color-dark);
}
.resource-card p {
    font-size: 0.9rem;
    color: var(--neutral-medium);
    margin-bottom: 0;
}

/* -------------------
   Contact Section
------------------- */
.contact-section {
    /* Background set inline with gradient */
    background-size: cover;
    background-position: center;
    color: var(--text-color-light);
    padding-top: var(--header-height); /* If part of main flow after a page change */
}

.contact-section .section-title {
    color: var(--neutral-extralight); /* Override for dark background */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.contact-section .section-title::after {
    background-color: var(--accent-color);
}

.contact-form-container {
    background-color: rgba(30, 30, 40, 0.8); /* Dark, semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--neutral-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: var(--border-radius-small);
    background-color: rgba(var(--neutral-light-rgb, 240, 242, 245), 0.1); /* Very subtle light background */
    color: var(--neutral-extralight);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
:root { /* Define RGB for neutral-light if not already, for rgba() */
    --neutral-light-rgb: 240, 242, 245;
}


.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(var(--text-color-light-rgb, 240, 240, 240), 0.6);
}
:root { /* Define RGB for text-color-light if not already, for rgba() */
    --text-color-light-rgb: 240, 240, 240;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
    background-color: rgba(var(--neutral-light-rgb), 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit-button { /* Uses global .cta-button styles */
    width: 100%;
    padding: 1em;
    font-size: 1.1rem;
}

.contact-details {
    text-align: center;
    margin-top: 2rem;
}
.contact-details p {
    font-size: 1.1rem;
    color: var(--neutral-light);
    margin-bottom: 0.8rem;
}
.contact-details a {
    color: var(--accent-color);
    font-weight: bold;
}
.contact-details a:hover {
    color: var(--primary-color);
}

/* -------------------
   Footer
------------------- */
.site-footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column p {
    color: var(--neutral-light);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-links ul li,
.social-links-text ul li { /* Removed social-links-text from ul */
    margin-bottom: 0.6rem;
}
.social-links-text li { /* Apply directly to li for text links */
     margin-bottom: 0.6rem;
}


.footer-links ul li a,
.social-links-text li a { /* Style for text social links */
    color: var(--neutral-light);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}

.footer-links ul li a:hover,
.social-links-text li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Subtle hover effect */
    text-decoration: underline;
}

.footer-contact p a {
    color: var(--neutral-light);
}
.footer-contact p a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--neutral-light-rgb), 0.1);
    font-size: 0.85rem;
}
.footer-bottom p {
    margin-bottom: 0.5rem;
    color: var(--neutral-light);
}
.back-to-top {
    color: var(--primary-color);
    font-weight: bold;
}
.back-to-top:hover {
    color: var(--accent-color);
}

/* -------------------
   Page Specific Styles (About, Terms, Privacy)
------------------- */
.page-container { /* For generic content pages like about, terms, privacy */
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
    min-height: calc(100vh - var(--header-height) - 150px); /* Adjust footer height approx */
}
.page-content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--neutral-extralight);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--card-shadow);
}
.page-content-section h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
.page-content-section p,
.page-content-section ul li,
.page-content-section ol li {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.page-content-section ul,
.page-content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.page-content-section ul li {
    list-style: disc;
}
.page-content-section ol li {
    list-style: decimal;
}

/* Specific padding for privacy and terms as requested if they don't use .page-container */
/* Assuming privacy.html and terms.html main content area has a class or ID */
.privacy-content-area, .terms-content-area {
    padding-top: 100px; /* Ensures content below fixed header */
}


/* -------------------
   Success Page
------------------- */
body.success-page { /* Add this class to body of success.html */
    display: flex;
    flex-direction: column; /* To allow header/footer if any, or just center main */
    min-height: 100vh;
    background-color: var(--neutral-dark); /* Futuristicy background */
}
.success-page .site-header, .success-page .site-footer {
    flex-shrink: 0; /* Prevent header/footer from shrinking */
}

.success-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: var(--header-height); /* if header is present */
}

.success-message {
    background-color: rgba(var(--accent-rgb), 0.15);
    border: 2px solid var(--accent-color);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
    max-width: 600px;
    /* Glassmorphism attempt */
    /* background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2); */
}

.success-message h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.success-message p {
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.success-message .cta-button {
    background-color: var(--accent-color);
    color: var(--neutral-dark);
    font-weight: bold;
}
.success-message .cta-button:hover {
    background-color: var(--accent-color-dark);
}

/* -------------------
   ScrollReveal Initial State (elements hidden by default)
------------------- */
.reveal-on-scroll {
    /*visibility: hidden; !* Handled by ScrollReveal, but good fallback *!*/
}

/* -------------------
   Responsive Design
------------------- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .team-carousel {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero-section {
        min-height: 80vh;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001; /* Above nav menu */
    }
    .main-nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Initially off-screen */
        width: min(75%, 300px); /* Responsive width */
        height: 100vh;
        background-color: var(--neutral-dark); /* Solid background for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s var(--transition-timing);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        padding-top: var(--header-height);
    }
    .main-nav .nav-menu.active {
        right: 0;
    }
    .main-nav .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav .nav-menu li a {
        display: block;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        color: var(--neutral-extralight);
        border-bottom: 1px solid rgba(var(--neutral-light-rgb), 0.1);
    }
    .main-nav .nav-menu li:last-child a {
        border-bottom: none;
    }
    .main-nav .nav-menu li a:hover,
    .main-nav .nav-menu li a.active {
        background-color: var(--primary-color);
        color: var(--neutral-extralight);
    }
    .main-nav .nav-menu li a::after { /* Remove underline effect for mobile */
        display: none;
    }

    .sustainability-content {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .sustainability-content.image-right .sustainability-image-container {
        order: 0; /* Reset order for stacking */
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4 {
        margin-top: 1rem;
    }
     .footer-column:first-child h4 {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-form-container {
        padding: 1.5rem;
    }
    .card-content {
        padding: 1.2rem;
    }
}

/* Cookie Popup Styles (already in HTML, but can be moved here) */
/*
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: #f0f0f0;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    text-align: center;
    font-family: var(--font-body);
}
.cookie-popup p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    line-height: 1.6;
}
.cookie-popup button {
    background-color: var(--primary-color);
    color: var(--neutral-extralight);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.cookie-popup button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}
*/