/* style.css */

/*------------------------------------------------------------------
[TABLE OF CONTENTS]

1.  ROOT VARIABLES
2.  RESET & BASE STYLES
3.  UTILITY CLASSES
4.  HEADER & NAVIGATION
5.  HERO SECTION
6.  SECTION STYLING (Titles, General Padding)
7.  CARD COMPONENTS (General, Feature, Case Study, Testimonial, Press, Resource)
8.  BUTTONS & FORMS (Global Styles)
9.  UI COMPONENTS (Progress Bars, Toggles)
10. SPECIFIC SECTIONS
    - Features
    - Case Studies
    - Success Stories (Testimonials)
    - Clientele
    - Press
    - External Resources
    - Contact Section
    - Careers
11. FOOTER
12. PAGE-SPECIFIC STYLES
    - About Page
    - Contact Page
    - Privacy & Terms Pages
    - Success Page
13. BIOMORPHIC ELEMENTS & ANIMATIONS
14. RESPONSIVE DESIGN (Media Queries)
-------------------------------------------------------------------*/

/* 1. ROOT VARIABLES */
:root {
    --primary-color: #0077B6; /* Strong Blue */
    --secondary-color: #FFB703; /* Vibrant Orange/Yellow */
    --tertiary-color: #00A896; /* Teal/Green */

    --primary-darker: #005A8D;
    --secondary-darker: #CC9202;
    --tertiary-darker: #007F71;

    --background-light: #F8F9FA; /* Off-white */
    --background-dark: #212529; /* Dark Gray for dark sections or text */
    --background-alt: #E9ECEF; /* Light Gray for alternating sections */

    --text-light: #FFFFFF;
    --text-dark: #343A40; /* Dark Gray for body text */
    --text-muted: #6C757D; /* Medium Gray for subtitles, meta */
    --text-accent: var(--primary-color);
    --text-on-dark-bg: #E0E0E0; /* Slightly off-white for dark backgrounds */

    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --border-radius-small: 8px;
    --border-radius-medium: 15px; /* For cards, biomorphic touch */
    --border-radius-large: 25px; /* For larger elements */
    
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.12);
    --box-shadow-strong: 0 15px 45px rgba(40, 40, 90, 0.15);


    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-s: 1rem;    /* 16px */
    --spacing-m: 1.5rem;  /* 24px */
    --spacing-l: 2rem;    /* 32px */
    --spacing-xl: 3rem;   /* 48px */
    --spacing-xxl: 4rem;  /* 64px */

    --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s ease-in-out;
}

/* 2. RESET & BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark); /* Ensure high contrast for headers */
    line-height: 1.3;
    margin-bottom: var(--spacing-m);
    font-weight: 700; /* Archivo Black is bold by default, Roboto needs this for headings */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

h1 { font-size: 2.8rem; } /* Adjusted for Archivo Black */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--spacing-m);
    color: var(--text-dark);
}

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

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

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

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* 3. UTILITY CLASSES */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-m);
    padding-right: var(--spacing-m);
}

.main-container {
    overflow-x: hidden; /* Catches any stray elements causing scroll */
}

.section-padding {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.alt-bg {
    background-color: var(--background-alt);
}

.text-center {
    text-align: center;
}

.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text-dark) !important; }

.grid-layout {
    display: grid;
    gap: var(--spacing-l);
}

@media (min-width: 768px) {
    .grid-layout.two-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-layout.three-cols { grid-template-columns: repeat(3, 1fr); }
}

/* 4. HEADER & NAVIGATION */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-s) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
}
.logo span {
    color: var(--secondary-color);
    font-size: 0.8em; /* Make "Avanzada" slightly smaller or different */
}
.logo:hover {
    color: var(--primary-darker);
    text-decoration: none;
}

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

.main-nav li {
    margin-left: var(--spacing-m);
}

.main-nav a {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-s);
    border-radius: var(--border-radius-small);
    transition: var(--transition-smooth);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover,
.main-nav a.active { /* Add .active class with JS for current page */
    color: var(--primary-color);
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 70%;
}


/* Burger Menu for Mobile */
.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

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

/* Styles for open burger menu (JS adds .nav-open to .main-nav) */
.main-nav.nav-open .hamburger { background-color: transparent; }
.main-nav.nav-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-color);
}
.main-nav.nav-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-color);
}


/* 5. HERO SECTION */
.hero-section {
    position: relative;
    color: var(--text-light);
    padding: 120px 0 80px; /* Adjust padding as needed, more top for fixed header */
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh; /* Ensure hero takes substantial viewport height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3.5rem; /* Archivo Black is impactful */
    color: var(--text-light);
    margin-bottom: var(--spacing-m);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-l);
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.biomorphic-shape-divider {
    position: absolute;
    bottom: -1px; /* Ensure it slightly overlaps or meets section below */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}
.biomorphic-shape-divider svg {
    display: block;
    width: 100%;
    height: auto; /* Control height via viewBox or explicit height on SVG if needed */
}


/* 6. SECTION STYLING */
.section-title {
    text-align: center;
    font-size: 2.5rem; /* Archivo Black */
    color: var(--text-dark); /* Good contrast */
    margin-bottom: var(--spacing-s);
    position: relative;
    padding-bottom: var(--spacing-s);
}

.section-title::after { /* Biomorphic underline */
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--secondary-color);
    margin: var(--spacing-s) auto 0;
    border-radius: 5px; /* Organic shape */
    transform: skewX(-15deg); /* Slight modern slant */
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

/* 7. CARD COMPONENTS */
.card {
    background-color: var(--text-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition-elastic);
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content like titles, paragraphs if not full width */
    height: 100%; /* For equal height cards in a grid */
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.card-image, .image-container {
    width: 100%; /* Take full width of card */
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
    margin: 0 auto var(--spacing-m); /* Center if image has intrinsic width less than container */
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}
.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for consistent image display */
    transition: transform 0.4s ease;
}
.card:hover .card-image img, .card:hover .image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-l);
    flex-grow: 1; /* Allows content to take up space, pushing footer down if any */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* If card has a button at bottom */
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-s);
    font-size: 1.5rem; /* Slightly smaller for card titles */
}
.card-content h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-m);
}
.card-content p:last-child {
    margin-bottom: 0;
}

.card .btn-small, .card .btn-link {
    margin-top: auto; /* Pushes button to bottom if card content varies */
    align-self: center; /* Center button in the card */
}

/* Specific Card Types */
.testimonial-card .card-image {
    width: 120px; /* Smaller for avatar */
    height: 120px;
    border-radius: 50%; /* Circular avatar */
    margin: var(--spacing-m) auto; /* Center avatar */
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.testimonial-card .card-content {
    padding-top: 0;
}
.testimonial-card cite {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: var(--spacing-m);
}
.testimonial-card span {
    font-size: 0.9em;
    color: var(--text-muted);
}

.press-article .article-meta {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: var(--spacing-s);
    margin-top: var(--spacing-m);
}

.resource-card h4 a {
    color: var(--primary-color);
    font-family: var(--font-body); /* Resources titles might be better in Roboto */
    font-weight: 700;
}
.resource-card p {
    font-size: 0.9em;
}
.resource-card small {
    display: block;
    margin-top: var(--spacing-s);
    color: var(--tertiary-color);
    font-weight: bold;
}

/* 8. BUTTONS & FORMS (Global Styles) */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: var(--spacing-s) var(--spacing-l);
    border-radius: var(--border-radius-large); /* Biomorphic buttons */
    transition: var(--transition-elastic);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}
.btn:focus, button:focus, input[type="submit"]:focus {
    outline: 2px solid var(--secondary-darker);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--primary-darker);
    color: var(--text-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    background-color: var(--secondary-darker);
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-m);
    font-size: 0.9rem;
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-s);
    font-weight: bold;
    box-shadow: none;
    position: relative;
}
.btn-link::after {
    content: '→'; /* Arrow for visual cue */
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.btn-link:hover {
    color: var(--primary-darker);
    background-color: transparent;
    text-decoration: underline;
    transform: none; /* No jump for link buttons */
    box-shadow: none;
}
.btn-link:hover::after {
    transform: translateX(5px);
}


/* Modern Form Styles */
.modern-form .form-group {
    margin-bottom: var(--spacing-m);
}

.modern-form label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form textarea {
    width: 100%;
    padding: var(--spacing-s);
    border: 1px solid #CED4DA; /* Light gray border */
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* Ensure bg color for inputs */
}

.modern-form input[type="text"]:focus,
.modern-form input[type="email"]:focus,
.modern-form input[type="tel"]:focus,
.modern-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 182, 0.25); /* Focus glow */
    outline: none;
}

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

.modern-form .checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.modern-form input[type="checkbox"] {
    margin-right: var(--spacing-xs);
    accent-color: var(--primary-color); /* Modern checkbox color */
    width: 18px;
    height: 18px;
}
.modern-form .checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}
.modern-form .checkbox-label a:hover {
    color: var(--primary-darker);
}

.modern-form .btn-submit {
    width: 100%;
    padding: var(--spacing-m);
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .modern-form .btn-submit {
        width: auto; /* Allow button to size to content on larger screens */
    }
}


/* 9. UI COMPONENTS */
/* Progress Indicators */
.progress-indicator-container {
    margin-top: var(--spacing-s);
    text-align: left; /* Align label and progress bar */
}
.progress-indicator-container label {
    font-size: 0.9em;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--spacing-xs);
}
.progress-indicator-container progress {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden; /* For Safari/iOS to respect border-radius */
    border: none; /* Remove default border */
}
/* Styling for progress bar track */
.progress-indicator-container progress::-webkit-progress-bar {
    background-color: var(--background-alt);
    border-radius: 6px;
}
.progress-indicator-container progress::-moz-progress-bar { /* Firefox */
    background-color: var(--tertiary-color);
    border-radius: 6px;
}
/* Styling for progress bar value */
.progress-indicator-container progress::-webkit-progress-value {
    background-color: var(--tertiary-color);
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
}
.progress-indicator-container span {
    font-size: 0.9em;
    color: var(--tertiary-darker);
    font-weight: bold;
    margin-left: var(--spacing-xs);
}

/* Toggle Switches */
.toggle-switch-container {
    display: flex;
    align-items: center;
    margin-top: var(--spacing-s);
    text-align: left;
}
.toggle-switch-container > span { /* Label text */
    margin-right: var(--spacing-s);
    font-size: 0.9em;
    color: var(--text-muted);
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Width of the switch */
    height: 28px; /* Height of the switch */
}
.switch input { 
    /*opacity: 0;*/
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px; /* Rounded switch */
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; /* Size of the knob */
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic */
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(22px); /* Movement of the knob */
}
.additional-details {
    margin-top: var(--spacing-s);
    padding: var(--spacing-s);
    background-color: var(--background-alt);
    border-radius: var(--border-radius-small);
    font-size: 0.9em;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 10. SPECIFIC SECTIONS */
/* Features Section */
.features-grid {
    display: grid;
    gap: var(--spacing-l);
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

/* Case Studies Section */
.case-studies-section .grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Success Stories (Testimonials) */
.testimonials-slider {
    display: grid;
    gap: var(--spacing-l);
}
@media (min-width: 768px) {
    .testimonials-slider { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

/* Clientele Section */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}
.client-logos img {
    max-height: 60px; /* Adjust as needed */
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.client-logos img:hover {
    opacity: 1;
}

/* Press Section */
.press-section .grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* External Resources */
.resources-grid {
    display: grid;
    gap: var(--spacing-l);
}
@media (min-width: 768px) {
    .resources-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
.resource-card {
    background-color: var(--text-light); /* Ensure bg for contrast */
}

/* Contact Section on Index Page */
.contact-section#contact { /* For index page section */
    background-color: var(--background-dark); /* Darker background */
}
.contact-section#contact .section-title,
.contact-section#contact .section-subtitle {
    color: var(--text-light);
}
.contact-section#contact .section-title::after {
    background-color: var(--secondary-color); /* Keep accent color visible */
}
.contact-section#contact .modern-form label {
    color: var(--text-on-dark-bg);
}
.contact-section#contact .modern-form input[type="text"],
.contact-section#contact .modern-form input[type="email"],
.contact-section#contact .modern-form input[type="tel"],
.contact-section#contact .modern-form textarea {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-light);
}
.contact-section#contact .modern-form input[type="text"]::placeholder,
.contact-section#contact .modern-form input[type="email"]::placeholder,
.contact-section#contact .modern-form input[type="tel"]::placeholder,
.contact-section#contact .modern-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}
.contact-section#contact .modern-form input[type="text"]:focus,
.contact-section#contact .modern-form input[type="email"]:focus,
.contact-section#contact .modern-form input[type="tel"]:focus,
.contact-section#contact .modern-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 3, 0.35); /* Focus glow with secondary color */
}
.contact-section#contact .modern-form .checkbox-label {
    color: var(--text-on-dark-bg);
}
.contact-section#contact .modern-form .checkbox-label a {
    color: var(--secondary-color);
}


/* Careers Section */
.careers-section .section-title { margin-bottom: var(--spacing-xl); }
.careers-section [style*="background-image"] { /* Target div with inline bg image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-light);
}
.careers-content-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-medium);
}
.careers-content-overlay p {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* 11. FOOTER */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-on-dark-bg);
    padding: var(--spacing-xl) 0 var(--spacing-s);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-l);
    margin-bottom: var(--spacing-l);
}
@media (min-width: 576px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: var(--spacing-m);
    font-size: 1.25rem;
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.footer-col h4::after { /* Small underline for footer titles */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.footer-col p {
    color: var(--text-muted); /* Lighter muted for dark bg */
    font-size: 0.95rem;
    line-height: 1.6;
}
.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    padding-left: 5px; /* Slight indent on hover */
}

/* Footer Social Links (text-based) */
.footer-col .social-links li a {
    color: var(--text-muted);
    font-weight: normal; /* Override potential bold from other lists */
}
.footer-col .social-links li a:hover {
    color: var(--secondary-color);
}


.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-l);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 0; }


/* 12. PAGE-SPECIFIC STYLES */
/* Page Title Section (for About, Contact, Privacy, Terms) */
.page-title-section {
    position: relative;
    padding: 140px 0 80px; /* More top padding due to fixed header */
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}
.page-title-section .hero-overlay { /* Re-use hero-overlay style */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
}
.page-title-section h1 {
    font-size: 3rem;
    color: var(--text-light); /* Ensure white text */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.page-title-section p {
    font-size: 1.2rem;
    color: var(--text-light); /* Ensure white text */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: var(--spacing-s) auto 0;
}


/* About Page Specifics */
.about-page .content-section, /* Assuming .about-page class on body or main */
body.about-page .content-section, /* If class is on body */
.values-grid,
.team-preview-grid {
    padding-top: var(--spacing-xxl); /* To avoid overlap with fixed header, if header is taller*/
}

.values-grid {
    display: grid;
    gap: var(--spacing-l);
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-xl);
}
@media (min-width: 768px) {
    .values-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.value-item.card .card-image { height: 200px; }

.team-preview-grid {
    display: grid;
    gap: var(--spacing-l);
    margin-top: var(--spacing-l);
}
@media (min-width: 576px) {
    .team-preview-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
.team-member-card .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: var(--spacing-m) auto; /* Center avatar */
}

/* Contact Page Specifics */
.contact-page .content-section,
body.contact-page #contact-page-form { /* Target main content area */
    padding-top: var(--spacing-xl);
}
.contact-grid {
    display: grid;
    gap: var(--spacing-xl);
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr; /* Info column slightly smaller */
        align-items: start;
    }
}
.contact-info ul { margin-top: var(--spacing-m); }
.contact-info li {
    margin-bottom: var(--spacing-s);
    font-size: 1.05rem;
    display: flex; /* For icon alignment if added later */
    align-items: flex-start;
}
.contact-info li strong {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
    min-width: 90px; /* Align text after strong */
}
.map-placeholder img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow);
    margin-top: var(--spacing-l);
}

/* Privacy & Terms Pages */
.privacy-page .content-section,
.terms-page .content-section,
body.privacy-page .content-section, /* If class is on body */
body.terms-page .content-section {
    padding-top: 100px; /* Ensure content is below fixed header */
}
.content-column { /* For single column text pages */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-column h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-s);
}
.content-column h2:first-of-type {
    margin-top: 0;
}
.content-column ul {
    list-style: disc;
    padding-left: var(--spacing-l);
    margin-bottom: var(--spacing-m);
}
.content-column ul li {
    margin-bottom: var(--spacing-xs);
}

/* Success Page */
.success-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px); /* Full viewport minus header/footer approx height */
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-m);
}
.success-icon {
    width: 80px;
    height: 80px;
    color: var(--tertiary-color);
    margin-bottom: var(--spacing-l);
}
.success-message-container h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-m);
    font-size: 2.5rem;
}
.success-message-container p {
    font-size: 1.15rem;
    color: var(--text-dark);
    max-width: 600px;
    margin-bottom: var(--spacing-l);
}


/* 13. BIOMORPHIC ELEMENTS & ANIMATIONS */
/* AOS will handle scroll animations. CSS here is for interactive states. */
[data-aos] { /* Ensure elements are hidden initially if AOS is used for fade-in */
    /*opacity: 0;*/
    transition-property: opacity, transform; /* Ensure smooth transition with AOS */
}
[data-aos].aos-animate {
    opacity: 1;
}

/* Parallax effect for hero (simple version) */
.hero-section[style*="background-image"] {
    background-attachment: fixed; /* Simple parallax, might have issues on mobile */
}

/* Cookie Consent Popup (from HTML) */
#cookieConsentPopup {
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
#cookieConsentPopup p {
    color: var(--text-light); /* Ensure text is light on dark popup */
    margin-bottom: var(--spacing-m);
}
#cookieConsentPopup button {
    margin-right: var(--spacing-s);
}
#cookieConsentPopup a {
    color: var(--secondary-color); /* Make link stand out */
}
#cookieConsentPopup a:hover {
    color: var(--secondary-darker);
}

/* 14. RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 991px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }

    .main-header { padding: var(--spacing-s) 0; }
    .nav-toggle {
        display: block; /* Show burger */
    }
    .main-nav ul {
        display: none; /* Hide nav links */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-l) 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--background-alt);
    }
    .main-nav.nav-open ul {
        display: flex; /* Show when burger is clicked */
        animation: slideDownNav 0.4s ease-out;
    }
    @keyframes slideDownNav {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .main-nav li {
        margin: var(--spacing-s) 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: var(--spacing-s);
        width: 100%;
    }
    .main-nav a::after { display: none; } /* No underline for mobile dropdown */

    .page-title-section { padding: 120px 0 60px; }
    .page-title-section h1 { font-size: 2.5rem; }
}

@media (max-width: 767px) {
    html { font-size: 15px; } /* Slightly smaller base for small devices */
    .section-padding {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    .section-title { font-size: 1.8rem; }
    .section-title::after { width: 60px; height: 4px; }
    .section-subtitle { font-size: 1rem; margin-bottom: var(--spacing-l); }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-section { min-height: 70vh; }

    .card-content { padding: var(--spacing-m); }
    .card-content h3 { font-size: 1.3rem; }

    .grid-layout,
    .features-grid,
    .case-studies-section .grid-layout,
    .testimonials-slider,
    .press-section .grid-layout,
    .resources-grid,
    .values-grid,
    .team-preview-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .footer-col h4::after { margin-left: auto; margin-right: auto; }

    /* Fix parallax on mobile if it causes issues - disable fixed attachment */
    .hero-section[style*="background-image"] {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .container { width: 95%; padding-left: var(--spacing-s); padding-right: var(--spacing-s); }
    .logo { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2rem; }
    .btn, button, input[type="submit"] {
        padding: calc(var(--spacing-s) * 0.9) calc(var(--spacing-l) * 0.9);
        font-size: 0.9rem;
    }
}