/*
Theme Name: KHX Starter Theme
Description: KHX-tech – Teknologi der virker.
Author: KHX
Version: 1.0
*/

/* ============================================================
   KHX-TECH UI FRAMEWORK – GLOBAL BASE
   ============================================================ */

:root {
    --khx-primary: #0073aa;
    --khx-secondary: #222222;
    --khx-bg-light: #f7f9fc;
    --khx-bg-dark: #111;
    --khx-text-dark: #222;
    --khx-text-light: #fff;
    --khx-radius: 8px;
    --khx-transition: 0.25s ease;
    --khx-max-width: 1200px;
}

/* Reset */
body, h1, h2, h3, h4, h5, h6, p, ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    color: var(--khx-text-dark);
    background: #fff;
    line-height: 1.6;
}

/* ============================================================
   HEADER + STICKY ANIMATION
   ============================================================ */

.site-header {
    width: 100%;
    background: var(--khx-bg-light);
    border-bottom: 1px solid #e5e5e5;
    transition: var(--khx-transition);
}

.site-header-inner {
    max-width: var(--khx-max-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.scrolled .site-header {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #fff;
}

/* Branding */
.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--khx-primary);
    text-decoration: none;
}

.khx-tagline {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================================
   NAVIGATION + MOBILMENU
   ============================================================ */

.primary-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.primary-menu a {
    text-decoration: none;
    color: var(--khx-secondary);
    font-weight: 500;
    transition: var(--khx-transition);
}

.primary-menu a:hover {
    color: var(--khx-primary);
}

/* Mobilmenu */
.khx-hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.khx-hamburger span {
    display: block;
    height: 3px;
    background: var(--khx-secondary);
    border-radius: 3px;
    transition: var(--khx-transition);
}

.khx-mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #eee;
}

.khx-mobile-menu a {
    padding: 10px 0;
    display: block;
}

/* Mobil breakpoint */
@media (max-width: 900px) {
    .primary-menu {
        display: none;
    }
    .khx-hamburger {
        display: flex;
    }
    .khx-mobile-menu.active {
        display: flex;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.khx-hero {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--khx-primary), #005f8a);
    color: var(--khx-text-light);
}

.khx-hero-inner {
    max-width: var(--khx-max-width);
    margin: 0 auto;
}

.khx-hero-title {
    font-size: 3rem;
    font-weight: 800;
}

.khx-hero-tagline {
    font-size: 1.3rem;
    margin-top: 10px;
    opacity: 0.9;
}

.khx-hero-text {
    max-width: 700px;
    margin: 20px auto;
    font-size: 1.1rem;
    opacity: 0.95;
}

.khx-hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.khx-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--khx-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--khx-transition);
}

.khx-btn-primary {
    background: var(--khx-text-light);
    color: var(--khx-primary);
}

.khx-btn-primary:hover {
    background: #e9e9e9;
}

.khx-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--khx-text-light);
}

.khx-btn-secondary:hover {
    background: rgba(255,255,255,0.35);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.khx-section {
    padding: 80px 20px;
}

.khx-section-light {
    background: var(--khx-bg-light);
}

.khx-section-dark {
    background: var(--khx-bg-dark);
    color: var(--khx-text-light);
}

.khx-section-inner {
    max-width: var(--khx-max-width);
    margin: 0 auto;
    text-align: center;
}

.khx-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */

.khx-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.khx-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .khx-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CARDS
   ============================================================ */

.khx-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--khx-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: left;
}

.khx-card-outline {
    border: 1px solid #ddd;
    background: transparent;
    color: inherit;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.khx-page-layout {
    max-width: var(--khx-max-width);
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    gap: 40px;
}

.khx-sidebar-right {
    grid-template-columns: 2fr 1fr;
}

.khx-sidebar-left {
    grid-template-columns: 1fr 2fr;
}

.khx-sidebar-none {
    grid-template-columns: 1fr;
}

.khx-main {
    min-width: 0;
}

.khx-sidebar {
    min-width: 0;
}

.khx-page-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--khx-bg-dark);
    color: var(--khx-text-light);
    padding: 40px 20px;
    text-align: center;
}

.site-footer-inner {
    max-width: var(--khx-max-width);
    margin: 0 auto;
}

.khx-footer-text {
    opacity: 0.8;
}
