/* ── Hållbarhetssida – h.css ── */

/* SDG-färger (officiella FN-färger) */
:root {
    --sdg-8: #a21942;
    --sdg-9: #fd6925;
    --sdg-12: #bf8b2e;
    --sdg-16: #00689d;
}

/* ── Nav ── */
.h-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary, #fff);
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.h-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary, #111);
}

.h-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.h-nav-back {
    color: var(--text-secondary, #666);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.h-nav-back:hover {
    color: var(--text-primary, #111);
}

/* ── Container ── */
.h-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Hero ── */
.h-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.h-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sdg-9);
    margin-bottom: 1.2rem;
}

.h-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary, #111);
    margin: 0 0 1.2rem;
}

.h-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    max-width: 650px;
    margin: 0 auto;
}

/* ── Sektioner ── */
.h-intro,
.h-sdg,
.h-infra {
    padding: 4rem 0;
}

.h-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 0.6rem;
}

.h-section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #555);
    margin: 0 0 2.5rem;
    line-height: 1.6;
}

/* ── Intro ── */
.h-intro-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary, #444);
    margin: 0 0 1rem;
}
.h-intro-text p:last-child {
    margin-bottom: 0;
}

/* ── SDG-kort ── */
.h-sdg-grid {
    display: grid;
    gap: 2rem;
}

.h-sdg-card {
    background: var(--bg-secondary, #f8f8f8);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}
.h-sdg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.h-sdg-card[data-goal="8"]  { border-left-color: var(--sdg-8); }
.h-sdg-card[data-goal="9"]  { border-left-color: var(--sdg-9); }
.h-sdg-card[data-goal="12"] { border-left-color: var(--sdg-12); }
.h-sdg-card[data-goal="16"] { border-left-color: var(--sdg-16); }

.h-sdg-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.h-sdg-number {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.h-sdg-card[data-goal="8"]  .h-sdg-number { background: var(--sdg-8); }
.h-sdg-card[data-goal="9"]  .h-sdg-number { background: var(--sdg-9); }
.h-sdg-card[data-goal="12"] .h-sdg-number { background: var(--sdg-12); }
.h-sdg-card[data-goal="16"] .h-sdg-number { background: var(--sdg-16); }

.h-sdg-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #111);
    margin: 0;
    line-height: 1.3;
}

.h-sdg-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    margin: 0 0 1rem;
}

.h-sdg-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.h-sdg-items li {
    font-size: 0.9rem;
    color: var(--text-secondary, #555);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}

.h-sdg-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted, #aaa);
}

.h-sdg-card[data-goal="8"]  .h-sdg-items li::before { background: var(--sdg-8); }
.h-sdg-card[data-goal="9"]  .h-sdg-items li::before { background: var(--sdg-9); }
.h-sdg-card[data-goal="12"] .h-sdg-items li::before { background: var(--sdg-12); }
.h-sdg-card[data-goal="16"] .h-sdg-items li::before { background: var(--sdg-16); }

/* ── Infrastruktur ── */
.h-infra-block {
    background: var(--bg-secondary, #f8f8f8);
    border-radius: 12px;
    padding: 2.5rem;
}

.h-infra-block p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    margin: 0.8rem 0 1rem;
}

.h-infra-link {
    color: var(--sdg-9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.h-infra-link:hover {
    opacity: 0.8;
}

/* ── CTA ── */
.h-cta {
    padding: 5rem 0;
    text-align: center;
}

.h-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary, #111);
    margin: 0 0 0.8rem;
}

.h-cta-text {
    font-size: 1.05rem;
    color: var(--text-secondary, #555);
    margin: 0 0 2rem;
    line-height: 1.6;
}

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

.h-btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--sdg-9);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s;
}
.h-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.h-btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-secondary, #555);
    border: 1px solid var(--border, rgba(0,0,0,0.15));
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.h-btn-secondary:hover {
    background: var(--bg-secondary, #f5f5f5);
}

/* ── Animering: fade in vid scroll ── */
.h-sdg-card,
.h-infra-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.h-sdg-card.h-visible,
.h-infra-block.h-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsivt ── */
@media (max-width: 600px) {
    .h-hero {
        padding: 7rem 0 3rem;
    }
    .h-sdg-card {
        padding: 1.5rem;
    }
    .h-sdg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .h-infra-block {
        padding: 1.5rem;
    }
    .h-nav-back {
        display: none;
    }
}