/* =========================================
   STYLE 2: PREMIUM RECONSTRUCTION (Tailwind-like)
   ========================================= */

/* --- 1. ZMIENNE I BAZA (Odwzorowanie palety Tailwind) --- */
:root {
    /* Kolory - Blue Theme (zgodnie z życzeniem) */
    --c-primary: #0f172a;       /* Slate 900 */
    --c-secondary: #1e293b;     /* Slate 800 */
    --c-text-body: #475569;     /* Slate 600 */
    --c-text-light: #94a3b8;    /* Slate 400 */
    
    --c-accent: #3b82f6;        /* Blue 500 */
    --c-accent-hover: #2563eb;  /* Blue 600 */
    --c-bg-page: #f8fafc;       /* Slate 50 */
    
    /* Cienie jak w Tailwind */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Zaokrąglenia */
    --radius-xl: 1rem;      /* rounded-2xl */
    --radius-2xl: 1.5rem;   /* rounded-3xl */
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body.bg-sand {
    background-color: #fdfdfc; /* Bardzo jasny piaskowy/biały */
    color: var(--c-primary);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--c-primary);
    line-height: 1.2;
}

p {
    font-family: var(--font-sans);
    color: var(--c-text-body);
    line-height: 1.6;
}

/* =========================================
   2. HERO SECTION (Naprawione: Biały tekst, overlay)
   ========================================= */
.hero-small {
    position: relative;
    /* Wysokość i tło */
    height: 30vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center3;
    margin-bottom: 4rem;
    padding-top: 60px; /* Offset na navbar */
}

.hero-content-small {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
    color: white; /* Wymuszamy biel */
}

/* Link powrotu - Glassmorphism */
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700;
    margin-bottom: 2rem; 
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    text-decoration: none;
}
.back-link:hover { background: rgba(255,255,255,0.25); color: white; transform: translateY(-2px); }

/* Badges w Hero */
.hero-badges { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.badge-glass {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    padding: 0.35rem 1rem; border-radius: 99px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.25); color: white;
}

.badge-solid {
    background: var(--c-accent); color: white;
    padding: 0.35rem 1rem; border-radius: 99px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hero-title-small {
    font-size: 2.25rem; font-weight: 500;
    color: white; /* Kluczowe! */
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 0;
}
@media(min-width: 768px) { .hero-title-small { font-size: 3.5rem; } }

.hero-desc-small {
    margin-top: 1rem; font-size: 1.1rem; color: #cbd5e1; font-weight: 300; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* =========================================
   3. LAYOUT GŁÓWNY (Sidebar Grid)
   ========================================= */
.section { padding: 0 0 4rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.layout-sidebar {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem;
}
@media (min-width: 1024px) {
    /* Proporcje 2/3 do 1/3 */
    .layout-sidebar { grid-template-columns: 8fr 4fr; gap: 4rem; }
}

/* =========================================
   4. CONTENT (Main Column)
   ========================================= */

/* Zdjęcie główne podstrony */
.visual-header {
    height: 350px; width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden; margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}
.visual-header img { width: 100%; height: 100%; object-fit: cover; }

/* Karta z treścią (Project Overview) */
.content-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    margin-bottom: 3rem;
}

.box-title {
    font-size: 1.875rem; color: var(--c-primary); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.75rem; font-weight: 600;
}
.box-title i { color: var(--c-accent); }

.text-body p { margin-bottom: 1.25rem; text-align: justify; font-size: 1.05rem; }

/* Cytat */
.quote-block {
    background-color: #f0f9ff; /* Light Blue tint */
    padding: 1.5rem;
    border-left: 4px solid var(--c-accent);
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 2rem 0;
}
.quote-block p {
    font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; font-weight: 500;
    color: #1e40af; margin: 0; text-align: left;
}

/* Status Grid (Process) */
.status-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem;
}
@media (min-width: 768px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }

.status-item {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem;
    padding: 1.5rem 1rem; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.2s;
}
.status-item.active { background: #f0fdf4; border-color: #86efac; } /* Green tint */

.icon-circle {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: #e2e8f0; color: #94a3b8;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.status-item.active .icon-circle { background: #dcfce7; color: #16a34a; }

.status-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; color: #64748b; margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.status-value { font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; gap: 0.25rem; }
.text-danger { color: #ef4444; }
.text-success { color: #16a34a; }

/* Ecosystem Services */
.service-card {
    background: white; padding: 1.5rem; border-radius: 1rem;
    border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.service-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-md); }

.service-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.icon-sm { width: 3rem; height: 3rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.icon-sm.blue { background: #eff6ff; color: var(--c-accent); }
.icon-sm.green { background: #f0fdf4; color: #22c55e; }

.check-list li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.check-list i { color: var(--c-accent); margin-top: 3px; }


/* Issues & Solutions */
.text-h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; font-family: var(--font-serif); }

.issue-item {
    display: flex; gap: 1rem; padding: 1rem; margin-bottom: 1rem;
    background: #fef2f2; border: 1px solid #fee2e2; border-radius: 0.75rem;
}
.issue-icon { font-size: 1.5rem; color: #ef4444; }
.bg-red-50 { background: #fef2f2; }
.border-red-100 { border-color: #fee2e2; }

.solutions-timeline { padding-left: 2rem; border-left: 2px solid #e2e8f0; display: flex; flex-direction: column; gap: 2rem; margin-left: 0.5rem; }
.sol-item { position: relative; }
.sol-icon {
    position: absolute; left: -2.9rem; top: 0;
    width: 2rem; height: 2rem; background: var(--c-accent); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    border: 4px solid white; box-shadow: 0 0 0 1px #e2e8f0;
}
.sol-item h4 { font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.sol-item p { font-size: 0.9rem; color: var(--c-text-body); margin: 0; }

/* =========================================
   5. SIDEBAR (Right Column)
   ========================================= */
.sidebar-col { 
    display: flex; flex-direction: column; gap: 2rem; 
}
.sticky-widget { position: sticky; top: 2rem; }

/* Widget Styles - Common */
.map-widget, .climate-widget, .contact-widget {
    background: white; border-radius: 1rem; 
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md); /* Większy cień jak w tailwind */
    overflow: hidden;
}

/* Map */
.map-widget { position: relative; height: 16rem; }
.map-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.map-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.btn-map {
    background: white; color: var(--c-primary);
    padding: 0.5rem 1.25rem; border-radius: 99px;
    font-weight: 700; font-size: 0.75rem; border: none; cursor: pointer;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.5rem;
    transition: transform 0.2s;
}
.btn-map:hover { transform: scale(1.05); }

.map-info {
    padding: 0.75rem 0.5rem 0 0.5rem; display: flex; justify-content: space-between; 
    font-size: 0.8rem; color: var(--c-text-body); font-weight: 500;
}

/* Climate */
.climate-header {
    background: #f1f5f9; padding: 1rem; text-align: center;
    font-size: 0.7rem; font-weight: 800; uppercase; letter-spacing: 0.1em; color: var(--c-text-body);
}
.climate-stats { display: flex; justify-content: space-around; padding: 1.5rem 0; align-items: center; }
.stat { text-align: center; }
.stat i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.stat .val { font-size: 1.25rem; font-weight: 700; color: #1e3a8a; display: block; }
.stat .unit { font-size: 0.6rem; font-weight: 700; uppercase; color: var(--c-accent); }
.v-sep { width: 1px; height: 2.5rem; background: #e2e8f0; }

.climate-details { padding: 0 1.5rem 1.5rem; font-size: 0.8rem; color: #334155; }
.climate-details div { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }

/* Contact */
.contact-widget { padding: 1.5rem; margin-top: 1.5rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1rem; }
.avatar {
    width: 2.5rem; height: 2.5rem; background: #e2e8f0; color: #475569;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
    flex-shrink: 0;
}
.email-btn {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.7rem; font-weight: 700; color: var(--c-accent); border: 1px solid #bfdbfe;
    padding: 0.25rem 0.75rem; border-radius: 4px; text-decoration: none; transition: all 0.2s;
}
.email-btn:hover { background: #eff6ff; }

/* Buttons */
.btn-download {
    display: block; width: 100%; text-align: center; padding: 0.75rem; 
    background: var(--c-primary); color: white; border-radius: 0.5rem;
    font-size: 0.75rem; font-weight: 700; text-decoration: none; margin-bottom: 0.5rem;
    transition: opacity 0.2s;
}
.btn-download:hover { opacity: 0.9; }

.btn-print {
    display: block; width: 100%; text-align: center; padding: 0.75rem;
    background: white; border: 1px solid #e2e8f0; color: var(--c-text-body);
    border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; text-decoration: none;
}
.btn-print:hover { background: #f8fafc; }


/* =========================================
   6. SOCIAL-ECOLOGICAL (Dark Section)
   ========================================= */
.section-dark {
    background-color: #020617; /* Slate 950 */
    color: white;
    padding: 4rem 3rem;
    border-radius: var(--radius-2xl); /* rounded-3xl */
    margin-top: 5rem; margin-bottom: 5rem;
    box-shadow: var(--shadow-xl);
    position: relative; overflow: hidden;
    /* Subtelny gradient w tle */
    background-image: radial-gradient(circle at top right, #1e3a8a 0%, transparent 40%);
}

.section-dark h3 { font-family: var(--font-serif); font-size: 2.25rem; margin-bottom: 0.5rem; color: white; }
.section-dark p { color: #94a3b8; font-weight: 300; }

/* Grid wewnątrz Dark Section */
.grid.lg\:grid-cols-2 { display: grid; gap: 4rem; }
@media(min-width: 1024px) { .grid.lg\:grid-cols-2 { grid-template-columns: 1fr 1fr; } }

/* Progress Bars */
.progress-wrap { margin-bottom: 1.5rem; }
.label-flex { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 500; color: #e2e8f0; }
.progress-bg { height: 0.5rem; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }

/* Kolory pasków */
.fill-blue { background-color: #3b82f6; }
.fill-green { background-color: #22c55e; }
.fill-yellow { background-color: #eab308; }
.fill-purple { background-color: #a855f7; }

/* Glass Boxy (Stakeholders) */
.glass-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.glass-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #64748b; display: block; margin-bottom: 1rem; letter-spacing: 0.1em; }

.tag-pill {
    display: inline-block; padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1); border-radius: 99px;
    font-size: 0.75rem; color: #cbd5e1; margin: 0 0.5rem 0.5rem 0;
}


/* =========================================
   7. LIST PAGE SPECIFICS (Filter & Cards)
   ========================================= */

/* Filter Bar */
.filter-bar {
    background: white; padding: 1.5rem 2rem;
border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    margin-top: -3rem; margin-bottom: 3rem; position: relative; z-index: 20;
    display: flex; flex-direction: column; gap: 1rem;
}
@media(min-width: 768px) { .filter-bar { flex-direction: row; justify-content: space-between; align-items: center; } }

.text-h2 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 0.25rem; }
.custom-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem; border-radius: 0.5rem; border: 1px solid #cbd5e1;
    background-color: #f8fafc; font-weight: 600; font-size: 0.9rem; appearance: none;
    cursor: pointer; min-width: 220px;
}
.select-wrapper { position: relative; }
.select-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* Cards */
.demosite-card {
    background: white; border-radius: 0.75rem; overflow: hidden;
    border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; transition: all 0.3s;
}
.demosite-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: #cbd5e1; }

.demosite-img-wrap { height: 14rem; position: relative; overflow: hidden; }
.demosite-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.demosite-card:hover img { transform: scale(1.05); }

.badge-flag {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255,255,255,0.95); padding: 0.25rem 0.75rem; border-radius: 99px;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: var(--c-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 0.4rem;
}

.demosite-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; font-family: var(--font-serif); }
.card-desc { font-size: 0.85rem; color: #64748b; margin-bottom: 1.5rem; flex-grow: 1; }
.card-list { padding-left: 1rem; font-size: 0.8rem; margin-top: 0.5rem; }

.demosite-footer { border-top: 1px solid #f1f5f9; padding-top: 1rem; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.link-eco { color: var(--c-accent); font-weight: 600; font-size: 0.8rem; text-decoration: none; }
.btn-details { 
    background: var(--c-accent); color: white; padding: 0.4rem 1rem; border-radius: 0.25rem; 
    font-size: 0.75rem; font-weight: 700; text-decoration: none; transition: background 0.2s;
}
.btn-details:hover { background: var(--c-accent-hover); }

.btn-load {
    background: white; border: 1px solid #e2e8f0; color: #475569;
    padding: 0.75rem 2rem; border-radius: 2rem; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.3s;
}
.btn-load:hover { border-color: var(--c-accent); color: var(--c-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }