/* =============================================================================
   main.css — Lindholm Skadedyr Theme
   CSS custom properties (design tokens), reset, typography, global layout.
   ============================================================================= */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Colors */
    --color-dark:    #0e0e0e;
    --color-dark--highlight: #181818;
    --color-accent--dark:  #1a4000;
    --color-accent:  #30AA07;
    --color-accent-highlight:  #30AA07;
    --color-accent-hover: #50b92d;
    --color-text:    #1a1a1a;
    --color-muted:   #f4f4f2;
    --color-white:   #ffffff;
    --color-overlay: rgba(14, 26, 15, 0.65);
    --color-background: #F4F6F9;
    --color-blue: #F8F8FB;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --fs-h1:   clamp(2rem, 5vw, 3.25rem);
    --fs-h2:   clamp(1.5rem, 3.5vw, 2.25rem);
    --fs-h3:   clamp(1.2rem, 2.5vw, 1.6rem);
    --fs-body: 1rem;
    --fs-sm:   0.875rem;

    /* Spacing */
    --space-unit:    8px;
    --space-section: clamp(48px, 8vw, 80px);
    --space-gap:     24px;

    /* Layout */
    --max-width: 1200px;

    /* Borders */
    --radius-btn: 4px;
    --radius-card: 6px;
}

/* ── @font-face — Self-hosted ──────────────────────────────────────────────── */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/open-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans/open-sans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-id-4 .info-bar {
    display: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

.section {
    padding-top: 12px;
}

.section + .section {
    padding-top: 12px;
}

.section--muted {
    background-color: var(--color-muted);
}

.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-body);
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
    filter: brightness(0.9);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn--large,
.btn--lg {
    font-size: 0.7rem;
    padding: 4px 20px;
    border-radius: 13px;
    height: 38px;
    margin-bottom: 6px;
}

/* Explicit green variant (matches default .btn but semantic alias) */
.btn--green {
    background-color: var(--color-accent-highlight);
    color: var(--color-white);
    font-weight: 600;
    line-height: 2rem;
}

/* Outlined light — for dark backgrounds */
.btn--outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent-highlight);
    line-height: 2rem;
}

.btn--outline-light svg {
    display: inline-block;
    vertical-align: middle;
    color: var(--color-accent-highlight);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--color-accent-hover);
}

/* ── Screen reader utility ─────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
