/* ============================================================
   IT Konsult — Base styles
   Precision engineering meets Scandinavian clarity. Dark slate
   primary, vibrant cyan accents, geometric dot-grid patterns,
   Syne geometric headings, Outfit clean body text.
   ============================================================ */

/* --- Reset --- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: color-mix(in srgb, var(--color-accent) 70%, #000);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

address {
    font-style: normal;
}

/* --- Skip link (a11y) --- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Container --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    font-family: var(--font-body), system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: color-mix(in srgb, var(--color-accent) 85%, #000);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(0,0,0,0.15);
}

.btn-outline-dark:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
}

.btn-lg {
    padding: 0.9375rem 2.5rem;
    font-size: 0.9375rem;
}

/* --- Sections (shared) --- */

.section {
    padding: 4.5rem 0;
}

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

.section-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 0.75rem;
    border-radius: 2px;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
    .section-title {
        font-size: 2.25rem;
    }
}

/* --- Page Hero (subpages) --- */

.page-hero {
    background-color: var(--color-primary);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(6,182,212,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 800;
    position: relative;
}

.page-hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    max-width: 600px;
    position: relative;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 5.5rem 0 5rem;
    }
    .page-hero h1 {
        font-size: 3rem;
    }
}

/* --- CTA Block: dark with dot-grid pattern --- */

.section-cta-block {
    background-color: var(--color-primary);
    text-align: center;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(6,182,212,0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255,255,255,0.55);
    font-size: 1.0625rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

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

@media (min-width: 768px) {
    .section-cta-block {
        padding: 6rem 0;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
