@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
    --shadow-md: 0 4px 6px rgba(15,23,42,0.07);
    --shadow-lg: 0 10px 15px rgba(15,23,42,0.1);
    --shadow-xl: 0 20px 25px rgba(15,23,42,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-primary);
    padding: 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

/* Main Content */
.site-content {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    padding: 3.5rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: left;
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

/* Sections */
section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

section:hover {
    box-shadow: var(--shadow-lg);
}

section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.25px;
}

section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.metric-card {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.metric-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* List Styles */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

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

/* Map Container */
#giraffe-map {
    width: 100%;
    height: 560px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.map-info {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.map-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Table styles for better readability */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

thead th {
    text-align: left;
    background: var(--bg-tertiary);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-secondary);
}

@media (max-width: 480px) {
    thead th, tbody td {
        padding: 0.65rem;
    }
}

/* FAQ Section */
.faq-item {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.evidence-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.evidence-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.evidence-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.evidence-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: #f1f5f9;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        width: 100%;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .metric-grid,
    .evidence-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    #giraffe-map {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Leaflet overrides */
.leaflet-popup-content {
    font-family: inherit;
    color: var(--text-primary);
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}
