/* style.css */

/* -------------------------------------------------------------------------
   1. CSS Variables (Root)
   ------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Tetrad Color Scheme */
    --color-tetrad-green: #007F5F; /* Rich Green - Growth, Colombia */
    --color-tetrad-gold: #FFB600;  /* Gold/Yellow - Wealth, Sun, Colombia Flag */
    --color-tetrad-magenta: #D90368;/* Vibrant Magenta - Modern, Attention-grabbing CTA */
    --color-tetrad-blue: #00A8E8;   /* Bright Blue - Stability, Trust */

    /* Core Palette */
    --color-primary: var(--color-tetrad-green);
    --color-secondary: var(--color-tetrad-gold);
    --color-accent: var(--color-tetrad-magenta);
    --color-accent-alt: var(--color-tetrad-blue);

    /* Text & Backgrounds */
    --color-text-dark: #1F1F1F;         /* Very Dark Grey for strong contrast */
    --color-text-light: #FFFFFF;        /* Pure White */
    --color-text-subtle: #555555;
    --color-background-light: #FFFFFF;
    --color-background-medium: #F0F2F5; /* Light grey for section separation */
    --color-background-dark: #1A2E35;   /* Dark Teal/Green for Footer or dark sections */

    /* Brutalism Elements */
    --color-border-brutalist: #000000;
    --brutalist-border-width: 2px;
    --brutalist-shadow-offset: 4px;
    --brutalist-shadow: var(--brutalist-shadow-offset) var(--brutalist-shadow-offset) 0 var(--color-border-brutalist);
    --brutalist-shadow-hover: calc(var(--brutalist-shadow-offset) + 2px) calc(var(--brutalist-shadow-offset) + 2px) 0 var(--color-border-brutalist);

    /* UI Elements */
    --border-radius-sharp: 0; /* Brutalist default */
    --border-radius-subtle: 4px; /* For biomorphic touches if needed */
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.15s;
    --max-width-container: 1200px;
    --header-height: 80px;
}

/* -------------------------------------------------------------------------
   2. Basic Reset & Typography
   ------------------------------------------------------------------------- */
*,
*::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-secondary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--color-text-dark); /* Ensure high contrast for headers */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

h1 { font-size: 3rem; margin-bottom: 0.5em; } /* 48px */
h2 { font-size: 2.5rem; } /* 40px */
h3 { font-size: 1.75rem; } /* 28px */
h4 { font-size: 1.25rem; } /* 20px */

p {
    margin-bottom: 1.5em;
    font-size: 1rem; /* 16px */
    color: var(--color-text-subtle);
}
body.home p { /* slightly larger for readability on home sections */
    font-size: 1.05rem;
}


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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1em;
}

/* -------------------------------------------------------------------------
   3. Layout (Container)
   ------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-padding-alt {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-background-medium);
}

.section-title {
    text-align: center;
    margin-bottom: 2em; /* More space after title */
    font-size: 2.8rem;
    color: var(--color-text-dark);
    position: relative;
}
.section-title::after { /* Brutalist underline */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 0.5em auto 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em;
    font-size: 1.1rem;
    color: var(--color-text-subtle);
}

/* -------------------------------------------------------------------------
   4. Header & Navigation
   ------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--brutalist-border-width) solid var(--color-border-brutalist);
    padding: 0 1em;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .logo-accent {
    color: var(--color-primary);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav .nav-link {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.8em 1.2em;
    margin: 0 0.2em;
    border-radius: var(--border-radius-sharp);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.current-page {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-decoration: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav list for mobile */
}

.hamburger {
    display: block;
    width: 25px;
    height: var(--brutalist-border-width);
    background-color: var(--color-text-dark);
    position: relative;
    transition: transform var(--transition-speed) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: var(--brutalist-border-width);
    background-color: var(--color-text-dark);
    position: absolute;
    left: 0;
    transition: transform var(--transition-speed) ease, top var(--transition-speed) ease;
}

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

/* Active state for hamburger (JS toggles .nav-open on .main-nav or .site-header) */
.main-nav.nav-open .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.main-nav.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.main-nav.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* -------------------------------------------------------------------------
   5. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 60px 0 30px;
    border-top: var(--brutalist-border-width) solid var(--color-tetrad-gold);
}

.site-footer .logo {
    color: var(--color-text-light);
}
.site-footer .logo .logo-accent {
    color: var(--color-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-nav-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-logo-area {
    flex-basis: 100%; /* Full width on small screens */
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .footer-logo-area {
        flex-basis: 30%;
        margin-bottom: 0;
    }
}


.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}

.footer-nav {
    flex-basis: 100%; /* Full width on small screens */
}
@media (min-width: 768px) {
    .footer-nav {
        flex-basis: auto;
    }
}


.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav-list li {
    margin-bottom: 0.8em;
}
.footer-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-speed-fast) ease;
}
.footer-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-social {
    flex-basis: 100%; /* Full width on small screens */
}
@media (min-width: 768px) {
    .footer-social {
        flex-basis: auto;
        text-align: right;
    }
    .footer-nav-list { /* For medium screens when nav and social are side-by-side */
        display: flex;
        flex-direction: column;
    }
}
@media (min-width: 992px) { /* Larger screens, perhaps inline */
    .footer-nav-list {
        flex-direction: row;
        gap: 20px;
    }
     .footer-nav-list li {
        margin-bottom: 0;
    }
}


.footer-social p {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; /* Spacing between social links */
}
@media (max-width: 767px) {
    .social-links-list {
        justify-content: flex-start; /* Align left on mobile */
    }
}
@media (min-width: 768px) {
    .social-links-list {
        justify-content: flex-end; /* Align right on larger screens if .footer-social is text-align:right */
    }
}


.social-link { /* Text-only links */
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-speed-fast) ease;
    font-size: 0.9rem;
}
.social-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-copyright p {
    margin-bottom: 0.5em;
    color: rgba(255,255,255,0.6);
}


/* -------------------------------------------------------------------------
   6. Buttons (Global)
   ------------------------------------------------------------------------- */
.btn, button[type="submit"], input[type="submit"] { /* Global button styles */
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 0.8em 2em;
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    border-radius: var(--border-radius-sharp);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1); /* For 3D effects */
    letter-spacing: 1px;
    position: relative; /* For 3D pseudo elements if any */
}

.btn-primary, button[type="submit"].btn-primary, input[type="submit"].btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    box-shadow: var(--brutalist-shadow);
}

.btn-primary:hover, button[type="submit"].btn-primary:hover, input[type="submit"].btn-primary:hover {
    background-color: var(--color-primary); /* Darken accent or use primary */
    color: var(--color-text-light);
    box-shadow: var(--brutalist-shadow-hover);
    transform: translate(-2px, -2px); /* Brutalist shift */
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: var(--brutalist-border-width) solid var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    box-shadow: var(--brutalist-shadow);
    transform: translate(-2px, -2px);
}

.btn-hero {
    font-size: 1.1rem;
    padding: 1em 2.5em;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    border-color: var(--color-border-brutalist);
}
.btn-hero:hover {
    background-color: var(--color-tetrad-gold); /* Keep it gold but slightly different */
    color: var(--color-border-brutalist);
    box-shadow: var(--brutalist-shadow-hover);
    transform: translate(-3px, -3px) perspective(500px) rotateY(5deg); /* Subtle 3D */
}


/* -------------------------------------------------------------------------
   7. Forms (Global)
   ------------------------------------------------------------------------- */
.contact-form .form-group {
    margin-bottom: 1.5em;
}

.contact-form label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em 1em;
    font-family: var(--font-secondary);
    font-size: 1rem;
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    border-radius: var(--border-radius-sharp);
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary); /* Brutalist focus indicator */
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-submit { /* Use global button style, but can be btn-primary */
    width: 100%;
}
@media (min-width: 768px) {
    .contact-form .btn-submit {
        width: auto; /* Allow button to size to content on larger screens */
    }
}


/* -------------------------------------------------------------------------
   8. Cards (Global)
   ------------------------------------------------------------------------- */
.card {
    background-color: var(--color-background-light);
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    border-radius: var(--border-radius-sharp); /* Brutalist */
    overflow: hidden; /* Ensures content respects border radius */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center inline/inline-block content like text */
    box-shadow: var(--brutalist-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02); /* Slight lift and scale */
    box-shadow: var(--brutalist-shadow-hover);
}

.card .card-image, .card .image-container { /* Ensure images are contained and centered */
    width: 100%; /* Make container take full width of card */
    height: 200px; /* Fixed height for consistency */
    overflow: hidden; /* Clip image if it's larger */
    margin-bottom: 1em; /* Space between image and content */
    display: flex; /* For centering the image itself if not 100% width */
    align-items: center;
    justify-content: center;
}

.card .card-image img, .card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block; /* Remove bottom space */
}

.card .card-content {
    padding: 1.5em;
    flex-grow: 1; /* Allows content to take remaining space if card has fixed height */
}

.card .card-content h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

.card .card-content p {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
    margin-bottom: 0; /* Remove default p margin if it's the last element */
}

/* -------------------------------------------------------------------------
   9. Section-Specific Styles
   ------------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
    color: var(--color-text-light);
    min-height: 85vh; /* Enough height to be impactful */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: var(--header-height); /* Account for fixed header */
}

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

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

.hero-title {
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--color-text-light); /* Explicitly white for hero */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Stronger shadow for readability */
}

.hero-title .highlight {
    color: var(--color-secondary); /* Gold highlight */
    display: inline-block; /* For potential animations or effects */
}

.hero-subtitle {
    font-size: 1.3rem; /* 20.8px */
    margin-bottom: 2em;
    line-height: 1.6;
    color: var(--color-text-light); /* Explicitly white for hero */
    font-weight: 400; /* Nunito regular */
}

/* Page Hero (for subpages like About, Contact etc.) */
.page-hero {
    color: var(--color-text-light);
    min-height: 40vh; /* Shorter than main hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}
.page-hero .hero-overlay { /* Re-use hero-overlay style */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.45));
    z-index: 1;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero .page-title {
    font-size: 2.8rem;
    color: var(--color-text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.page-hero .page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    opacity: 0.9;
}

/* About Us Section */
.about-us-section .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.about-us-section .about-text {
    flex: 1;
    min-width: 300px; /* Prevent too much squishing */
}
.about-us-section .about-image-container {
    flex: 1;
    min-width: 300px;
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    box-shadow: var(--brutalist-shadow);
}
.about-us-section .about-image-container img {
    border-radius: var(--border-radius-sharp);
}
.about-us-section .about-text .btn { margin-top: 1em; }


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2em;
}
.feature-card .card-icon {
    margin-bottom: 1em;
    display: flex;
    justify-content: center; /* Center icon horizontally */
}
.feature-card .card-icon .animated-icon {
    width: 60px;
    height: 60px;
    fill: var(--color-primary);
    transition: transform var(--transition-speed) ease;
}
.feature-card:hover .animated-icon {
    transform: scale(1.1) rotate(5deg); /* Biomorphic touch on hover */
}
.feature-card .card-content h3 {
    font-size: 1.4rem;
}

/* Statistics Section */
.statistics-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
    text-align: center;
}
.statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 70, 0.8); /* Dark blue/green overlay */
    z-index: 1;
}
.statistics-section .container {
    position: relative;
    z-index: 2;
}
.statistics-section .section-title,
.statistics-section .section-intro {
    color: var(--color-text-light);
}
.statistics-section .section-title::after {
    background-color: var(--color-secondary); /* Gold underline for contrast */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 3em;
}
.stat-item {
    background-color: rgba(255,255,255,0.05); /* Subtle glassmorphism */
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2em 1em;
    border-radius: var(--border-radius-subtle); /* Biomorphic touch */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary); /* Gold numbers */
    margin-bottom: 0.2em;
    line-height: 1;
}
.stat-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-text-light);
}
.stat-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}


/* Press Section (Carousel Items) */
.press-carousel { /* Basic container, JS will handle actual carousel functionality */
    display: grid; /* Fallback for no-JS or simple display */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2em;
}
.press-item.card {
    /* Styles specific to press cards if different from generic cards */
    padding: 1.5em;
}
.press-item .card-image {
    height: 80px; /* Smaller height for logos */
    margin-bottom: 1em;
}
.press-item .card-image img {
    object-fit: contain; /* Logos should be contained, not covered */
    max-height: 60px; /* Ensure logos are not too big */
    width: auto;
}
.press-item .card-content p {
    font-style: italic;
    font-size: 0.9rem;
}

/* External Resources Section */
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2em;
}
.resource-item.card {
    text-align: left; /* Override card default for resource list */
}
.resource-item .card-content h3 a {
    color: var(--color-primary);
    font-size: 1.3rem;
    transition: color var(--transition-speed-fast) ease;
}
.resource-item .card-content h3 a:hover {
    color: var(--color-accent);
}

/* FAQ Section (Accordion) */
.faq-accordion {
    max-width: 800px;
    margin: 2em auto 0;
}
.accordion-item {
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    margin-bottom: 10px;
    border-radius: var(--border-radius-sharp);
    background-color: var(--color-background-light);
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1em 1.5em;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    position: relative;
    color: var(--color-text-dark);
    transition: background-color var(--transition-speed-fast) ease;
}
.accordion-header:hover {
    background-color: var(--color-background-medium);
}
.accordion-header::after { /* Arrow indicator */
    content: '+'; /* Plus/Minus or Arrow */
    font-size: 1.5rem;
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed) ease;
    color: var(--color-primary);
}
.accordion-item.active .accordion-header::after {
    content: '–'; /* Minus sign for active */
    transform: translateY(-50%) rotate(180deg);
}
.accordion-content {
    padding: 0 1.5em;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
}
.accordion-content p {
    font-size: 0.95rem;
    padding: 1em 0; /* Add padding when content is visible */
    margin-bottom: 0;
}
.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust as needed for content length */
    padding: 0.5em 1.5em 1.5em;
}

/* Contact Page Specifics */
.contact-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.contact-info-column, .contact-form-column {
    flex: 1;
    min-width: 300px; /* Adjust as needed */
}
.section-title-sub { /* For sub-titles on pages */
    font-size: 1.8rem;
    margin-bottom: 1em;
    color: var(--color-primary);
}
.contact-details-list {
    list-style: none;
    padding: 0;
}
.contact-details-list li {
    display: flex;
    align-items: flex-start; /* Align icon with first line of text */
    margin-bottom: 1.2em;
    font-size: 1rem;
}
.contact-details-list .contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: var(--color-primary);
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 0.1em; /* Align with text */
}
.contact-details-list li strong {
    font-family: var(--font-primary);
    display: block;
    margin-bottom: 0.2em;
}
.map-container {
    margin-top: 3em;
}
.map-placeholder img {
    border: var(--brutalist-border-width) solid var(--color-border-brutalist);
    box-shadow: var(--brutalist-shadow);
}


/* Legal Pages (Privacy, Terms) & Success Page */
/* Apply top padding to main content for these pages */
body[data-barba-namespace="privacy"] .main-content,
body[data-barba-namespace="terms"] .main-content {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
}

.legal-text h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--color-primary);
}
.legal-text h2:first-of-type {
    margin-top: 0;
}
.legal-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1.5em;
}
.legal-text ul li { margin-bottom: 0.5em; }
.legal-text strong { font-weight: 700; color: var(--color-text-dark); }


/* Success Page */
.success-message-section.section-padding { /* Ensure it takes full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 180px); /* Approx footer height, adjust if needed */
    text-align: center;
}
body[data-barba-namespace="success"] .main-content {
    padding-top: var(--header-height);
}

.success-icon .animated-icon-success {
    width: 80px;
    height: 80px;
    margin-bottom: 1em;
}
.success-message-section .text-link { /* For links within success message */
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: underline;
}
.success-message-section .text-link:hover {
    color: var(--color-primary);
}


/* About Page - Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 2em 0;
}
.team-member-card .card-image { height: 280px; } /* Larger for profile pics */
.team-member-title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: -0.5em; /* Pull up under name */
    margin-bottom: 0.8em;
}
.values-list {
    list-style: none;
    padding: 0;
    margin: 2em 0;
}
.values-list li {
    font-size: 1.05rem;
    margin-bottom: 0.8em;
    padding-left: 25px;
    position: relative;
}
.values-list li::before { /* Custom bullet */
    content: '✓'; /* Checkmark or other biomorphic shape */
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}


/* -------------------------------------------------------------------------
   10. Animations & Transitions (Scroll, Hover)
   ------------------------------------------------------------------------- */
/* Scroll Animations (JS will add .in-view class) */
.animate-on-scroll {
    /*opacity: 0;*/
    transition-property: opacity, transform;
    transition-duration: 0.8s; /* Slower for smoother appearance */
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Biomorphic easing */
}

/* Common animation types */
.animate-on-scroll[data-animation="fadeIn"] { transform: translateY(30px); }
.animate-on-scroll[data-animation="fadeInUp"] { transform: translateY(50px); }
.animate-on-scroll[data-animation="fadeInLeft"] { transform: translateX(-50px); }
.animate-on-scroll[data-animation="fadeInRight"] { transform: translateX(50px); }
.animate-on-scroll[data-animation="zoomIn"] { transform: scale(0.8); }
/* Add more as needed based on data-animation values */

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.barba-leave-to {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}
.barba-enter-from {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

/* -------------------------------------------------------------------------
   11. Utility Classes
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }

.highlight { /* General purpose text highlight */
    color: var(--color-secondary);
    font-weight: 700;
}
.text-white { color: var(--color-text-light) !important; }
.text-dark { color: var(--color-text-dark) !important; }


/* -------------------------------------------------------------------------
   12. Responsive Media Queries
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; } /* 40px */
    h2, .section-title { font-size: 2rem; } /* 32px */
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .main-nav .nav-list {
        position: absolute;
        top: var(--header-height); /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light); /* Solid background for mobile */
        flex-direction: column;
        align-items: center;
        padding: 1em 0;
        border-bottom: var(--brutalist-border-width) solid var(--color-border-brutalist);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%); /* Start off-screen */
        transition: transform var(--transition-speed) ease-in-out;
        z-index: 999; /* Below header content, but above page */
    }
    .main-nav.nav-open .nav-list {
        transform: translateY(0);
    }
    .main-nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1em;
        margin: 0.2em 0;
        border-bottom: 1px solid var(--color-background-medium);
    }
    .main-nav .nav-link:last-child { border-bottom: none; }
    .nav-toggle { display: block; }
}

@media (max-width: 767px) {
    .section-padding, .section-padding-alt {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    h1 { font-size: 2.2rem; }
    h2, .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .page-hero .page-title { font-size: 2.2rem; }

    .about-us-section .about-content {
        flex-direction: column; /* Stack text and image */
    }
    .contact-page-container {
        flex-direction: column;
    }
    .footer-nav-social {
        flex-direction: column;
        align-items: center; /* Center footer content on mobile */
        text-align: center;
    }
    .footer-logo-area, .footer-nav, .footer-social {
        flex-basis: auto; /* Reset flex basis */
        width: 100%;
        text-align: center; /* Center content within these blocks */
    }
    .footer-nav-list, .social-links-list {
        justify-content: center; /* Center nav and social links */
        flex-wrap: wrap; /* Allow wrapping if too many items */
    }
    .footer-social p { text-align: center; }
}

@media (max-width: 480px) {
    :root {
        --brutalist-border-width: 2px; /* Slightly thinner borders on small screens */
    }
    h1 { font-size: 2rem; }
    h2, .section-title { font-size: 1.6rem; }
    .hero-title { font-size: 2rem; }
    .btn, button[type="submit"] {
        padding: 0.7em 1.5em;
        font-size: 0.9rem;
    }
    .hero-section { min-height: 75vh; }
}