/* =============================================
   Envirapack — base.css
   Reset, variabler, typografi, knappar, container
   ============================================= */

/* --- Fonter via SENZAI CDN --- */
@font-face {
    font-family: 'Inter';
    src: url('https://cdn.senzai.se/fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://cdn.senzai.se/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://cdn.senzai.se/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('https://cdn.senzai.se/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Variabler --- */
:root {
    --primary: #24615F;
    --primary-light: #23635F;
    --primary-dark: #1B4D4D;
    --accent: #C4833B;
    --accent-hover: #A86E2F;
    --bg: #FAF8F5;
    --bg-alt: #F0EDE8;
    --bg-card: #FFFFFF;
    --text: #2C2C2A;
    --text-light: #6B6B67;
    --text-on-dark: #F5F3F0;
    --text-on-dark-muted: #B8C4C4;
    --border: #E0DDD8;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1400px;
    --header-height: 60px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    min-width: 320px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Knappar --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: var(--text-on-dark);
    background: transparent;
}
.btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

/* --- Sektionstitlar (återanvänds överallt) --- */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* =============================================
   Responsiv — base
   ============================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .section-title {
        font-size: clamp(24px, 5.5vw, 28px);
    }
    .section-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 13px 24px;
        font-size: 15px;
        min-height: 48px;
    }
}