/* Modern Design System - PASA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #006d5b;
    /* Refreshing the existing green to a cleaner Teal/Emerald */
    --primary-dark: #005244;
    --primary-light: #e0f2f1;
    --secondary: #2c3e50;
    /* Deep Blue/Gray for text */
    --accent: #fda085;
    /* Subtle warmth for gradients if needed */
    --accent-gradient: linear-gradient(135deg, #006d5b 0%, #208e79 100%);

    /* Neutral Colors */
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* UI Tokens */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --container-max: 1200px;
    --nav-height: 80px;

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.text-gradient {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Page Headers (Internal Pages) */
.page-header {
    background-color: var(--secondary);
    padding: 8rem 0 4rem;
    /* More top padding to account for sticky nav */
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/img/about.jpg');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.team-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.team-card h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-card h5 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.team-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Logo Grid (Partners) */
.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 3rem;
}

.logo-item {
    max-width: 250px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
    filter: grayscale(100%);
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 109, 91, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 109, 91, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand img {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--secondary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-overlap {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

a.feature-card {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

a.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Content Showcase */
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.showcase-item.reversed {
    direction: rtl;
    /* Simple way to flip, but better to use order property or specific class logic */
}

.showcase-item.reversed .showcase-text {
    direction: ltr;
}

.showcase-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.showcase-text h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1.5rem;
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .showcase-item,
    .showcase-item.reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
        /* Reset direction for mobile */
    }

    .showcase-img {
        order: -1;
    }

    /* Image on top always on mobile */
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Needs JS to toggle, or simple mobile stacking */
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
}