/* Câmpinenii - Main Stylesheet */
/* Eco-conscious design for a livable city initiative */

:root {
    --forest-green: #2D5A3D;
    --sage-green: #7D9B76;
    --light-sage: #E8EFE6;
    --warm-earth: #8B6F4E;
    --terracotta: #C17F59;
    --charcoal: #2C3E3A;
    --light-gray: #F4F6F5;
    --warning-yellow: #FFF5D6;
    --white: #FFFFFF;
    --shadow: rgba(45, 90, 61, 0.1);
    --shadow-hover: rgba(45, 90, 61, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--forest-green);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--forest-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--terracotta); }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: var(--light-sage);
    border-radius: 20px;
}

.lang-switch a {
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switch a.active {
    background: var(--forest-green);
    color: var(--white);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest-green);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Map Hero */
.map-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
}

.map-hero iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-light { background: var(--white); }
.section-sage { background: var(--light-sage); }
.section-dark {
    background: var(--charcoal);
    color: var(--light-gray);
}
.section-dark h2, .section-dark h3 { color: var(--light-sage); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px 4px 12px 4px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.value-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: var(--light-sage);
    border-radius: 50%;
}

/* Disclaimer Box */
.disclaimer-box {
    background: var(--warning-yellow);
    border-left: 4px solid var(--warm-earth);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.disclaimer-box h4 {
    color: var(--warm-earth);
    margin-bottom: 0.5rem;
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: var(--forest-green);
    color: var(--white);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Merriweather Sans', sans-serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Legal Banner */
.legal-banner {
    background: var(--light-sage);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.legal-banner svg {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* Use Cases */
.use-case-card {
    position: relative;
    overflow: hidden;
}

.use-case-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-sage);
    line-height: 1;
}

/* Opportunity Cards */
.opportunity-card {
    border-left: 4px solid var(--sage-green);
}

.missed-opportunity-card {
    border-left: 4px solid var(--terracotta);
    background: linear-gradient(135deg, #FDF8F5 0%, #FAF0EB 100%);
    position: relative;
    overflow: hidden;
}

.missed-opportunity-card h3 {
    color: #8B4513;
}

.missed-opportunity-card p {
    color: #4A3728;
}

.missed-opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    opacity: 0.1;
    border-radius: 0 12px 0 40px;
}

/* Improved section-dark styling for missed opportunities */
.section-dark .missed-opportunity-card {
    background: linear-gradient(135deg, rgba(193, 127, 89, 0.15) 0%, rgba(193, 127, 89, 0.1) 100%);
}

.section-dark .missed-opportunity-card h3 {
    color: #FFDAB3;
}

.section-dark .missed-opportunity-card p {
    color: #E8D4C4;
}

/* Resources */
.resource-card {
    display: flex;
    gap: 1.5rem;
}

.resource-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.video-card .video-thumb {
    aspect-ratio: 16/9;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card .video-info {
    padding: 1rem;
}

/* Case Study Cards */
.case-study-card {
    overflow: hidden;
    padding: 0;
}

.case-study-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-card .card-content {
    padding: 1.5rem;
}

/* Pull Quote */
.pull-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--forest-green);
    border-left: 4px solid var(--terracotta);
    padding-left: 2rem;
    margin: 3rem 0;
    max-width: 800px;
}

.pull-quote cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: var(--warm-earth);
    margin-top: 1rem;
}

/* Wave Divider */
.wave-divider {
    height: 60px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.wave-divider-top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath fill='%23E8EFE6' d='M0,60 C200,20 400,40 600,30 C800,20 1000,40 1200,20 L1200,60 Z'/%3E%3C/svg%3E");
}

.wave-divider-bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath fill='%23FFFFFF' d='M0,0 C200,40 400,20 600,30 C800,40 1000,20 1200,40 L1200,0 Z'/%3E%3C/svg%3E");
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--charcoal) 100%);
    color: var(--white);
}

.cta-section h2 { color: var(--white); }

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--warm-earth);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--forest-green);
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    color: var(--light-gray);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--light-sage);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--light-gray);
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--terracotta);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }

    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 10px 20px var(--shadow);
        display: none;
    }

    .main-nav.active { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--light-sage);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

    .hero h1 { font-size: 2rem; }

    .stats-banner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number { font-size: 2.5rem; }

    .legal-banner {
        flex-direction: column;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Infographic styles */
.infographic {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.fifteen-min-city {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.fifteen-min-item {
    padding: 1rem;
}

.fifteen-min-item svg {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

/* Reading list */
.reading-list {
    list-style: none;
}

.reading-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-sage);
}

.reading-list .book-title {
    font-weight: 600;
    color: var(--forest-green);
}

.reading-list .book-author {
    color: var(--warm-earth);
    font-size: 0.9rem;
}
