
/*
Theme Name: Steelhaus
Theme URI: https://steelhaus.dk
Author: Steelhaus
Author URI: https://steelhaus.dk
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steelhaus
Description: Custom theme for Steelhaus - Skræddersyede ståldøre og glasvægge i New York-stil.
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   Scandinavian Design: Light, Airy, Generous Whitespace
   ========================================================================== */

:root {
    /* Colors — Scandinavian Palette */
    --color-black: #1C1C1C;
    --color-white: #FAFAF8;
    --color-gray-light: #E8E8E6;
    --color-gray: #5C5C5C;
    --color-gray-dark: #2A2A2A;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes — Fluid Scale */
    --font-size-sm: 0.875rem;        /* 14px */
    --font-size-base: 1.125rem;      /* 18px */
    --font-size-lg: 1.25rem;         /* 20px */
    --font-size-xl: 1.5rem;          /* 24px */
    --font-size-2xl: 2rem;           /* 32px */
    --font-size-3xl: 2.5rem;         /* 40px */
    --font-size-4xl: 3.5rem;         /* 56px */
    --font-size-5xl: 4.5rem;         /* 72px */
    
    /* Line Heights */
    --line-height-tight: 1.1;
    --line-height-snug: 1.3;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing — Generous "Air" for Scandinavian Feel */
    --space-2xs: 0.25rem;            /* 4px */
    --space-xs: 0.5rem;              /* 8px */
    --space-sm: 1rem;                /* 16px */
    --space-md: 1.5rem;              /* 24px */
    --space-lg: 2.5rem;              /* 40px */
    --space-xl: 4rem;                /* 64px */
    --space-2xl: 6rem;               /* 96px */
    --space-3xl: 8rem;               /* 128px */
    --space-4xl: 10rem;              /* 160px */
    
    /* Section Padding (Airy) */
    --section-padding-y: var(--space-3xl);
    --section-padding-y-mobile: var(--space-2xl);
    
    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --container-padding: var(--space-md);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows — Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-black);
    background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-black);
}

h1 {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gray);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Selection */
::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Focus States — Accessibility */
:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

/* Section Base */
.section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

@media (max-width: 768px) {
    .section {
        padding-top: var(--section-padding-y-mobile);
        padding-bottom: var(--section-padding-y-mobile);
    }
}

/* Section Backgrounds */
.section--white {
    background-color: var(--color-white);
}

.section--light {
    background-color: var(--color-gray-light);
}

.section--dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
