/**
 * Secondbay - Duurzaamheid Page Styles
 * 
 * Sustainability page styling for secondbay.be
 * Version: 1.0.0
 * Last updated: 2026-01-17
 */

/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8b8ba7;
    --border: #e4e4ed;
    --border-light: #f4f4f8;
    --bg: #f8f8fc;
    --surface: #ffffff;
    --primary: #5b4cdb;
    --primary-light: #ededfc;
    --primary-dark: #4a3cb8;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #7c6fe3 100%);
    --gradient-shine: linear-gradient(135deg, var(--primary) 0%, #8b7ff0 50%, var(--primary) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 24px rgba(91, 76, 219, 0.25);
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 700;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Selection styling */
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
main { flex: 1; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    padding: 80px 24px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(91, 76, 219, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(91, 76, 219, 0.2);
    border: 1px solid rgba(91, 76, 219, 0.4);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-icon svg {
    width: 40px;
    height: 40px;
    color: #a5b4fc;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(16px, 2vw, 18px);
    color: #b4b4c8;
    line-height: 1.7;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ===== STATS ===== */
.eco-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: -80px auto 48px;
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
}

.eco-stat {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.eco-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.eco-stat-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.eco-stat-icon svg {
    width: 28px;
    height: 28px;
}

.eco-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.eco-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.content-section h2 svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.content-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.benefit-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== PROCESS GRID ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 24px;
    padding: 0 8px;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg);
    border-radius: 16px;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.process-step::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.process-step:last-child::after {
    display: none;
}

.process-step-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--primary);
}

.process-step-icon svg {
    width: 24px;
    height: 24px;
}

.process-step h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.process-step p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== COMPARISON ===== */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.comparison-card {
    padding: 28px;
    border-radius: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.comparison-card.traditional {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-card.secondbay {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comparison-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.comparison-card.traditional h4 {
    color: var(--danger);
}

.comparison-card.secondbay h4 {
    color: var(--success);
}

.comparison-card h4 svg {
    width: 22px;
    height: 22px;
    color: inherit;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-card li:last-child {
    margin-bottom: 0;
}

.comparison-card li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.comparison-card.traditional li svg {
    color: var(--danger);
}

.comparison-card.secondbay li svg {
    color: var(--success);
}

/* ===== QUOTE ===== */
.eco-quote {
    background: var(--gradient);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.eco-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.eco-quote blockquote {
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
}

.eco-quote cite {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
}

/* ===== CTA SECTION ===== */
.cta-section {
    margin-top: 48px;
}

.cta-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(91, 76, 219, 0.5);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-primary:active {
    box-shadow: 0 4px 15px rgba(91, 76, 219, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .eco-stats {
        grid-template-columns: 1fr;
        margin-top: -60px;
        padding: 0 16px;
    }
    
    .eco-stat {
        padding: 24px 20px;
    }
    
    .main-content {
        padding: 40px 16px 60px;
    }
    
    .content-section {
        padding: 28px 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .eco-quote {
        padding: 32px 24px;
    }
    
    .eco-quote blockquote {
        font-size: 20px;
    }
    
    .cta-card {
        padding: 32px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRINT ===== */
@media print {
    .hero {
        background: var(--primary) !important;
        padding: 40px 24px;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .eco-stats {
        margin-top: 0;
    }
    
    .cta-section {
        display: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .eco-stat,
    .benefit-item,
    .process-step,
    .comparison-card {
        transition: none;
    }
    
    .btn-primary::before {
        display: none;
    }
}
