/* ==================================================================
   Variables
   ================================================================== */

:root {
  /* Color Palette - Industrial & Energy-Efficient */
  --color-background: #050711; /* deep, technical background */
  --color-surface: #0d1019;    /* elevated panels/cards */
  --color-surface-soft: #141824;

  --color-text: #f5f7ff;
  --color-text-muted: #9ca4c1;

  --color-primary: #35e3b2;      /* energy-efficient teal/green */
  --color-primary-soft: rgba(53, 227, 178, 0.15);
  --color-primary-strong: #11c997;

  --color-success: #46d38a;
  --color-warning: #f9b44d;
  --color-danger: #ff5c7a;

  /* Neutral Grays (cool, technical) */
  --gray-50: #0b0d17;
  --gray-100: #141824;
  --gray-200: #1d2232;
  --gray-300: #262c3e;
  --gray-400: #3a4258;
  --gray-500: #4f5873;
  --gray-600: #6d7591;
  --gray-700: #8a91aa;
  --gray-800: #a8aec2;
  --gray-900: #d2d6e6;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font Sizes (rem-based) */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-md: 1rem;      /* 16px */
  --fs-lg: 1.125rem;  /* 18px */
  --fs-xl: 1.25rem;   /* 20px */
  --fs-2xl: 1.5rem;   /* 24px */
  --fs-3xl: 1.875rem; /* 30px */
  --fs-4xl: 2.25rem;  /* 36px */
  --fs-5xl: 3rem;     /* 48px */

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spacing Scale (px -> rem, base 16px) */
  --space-0: 0;
  --space-4: 0.25rem;   /* 4px */
  --space-8: 0.5rem;    /* 8px */
  --space-12: 0.75rem;  /* 12px */
  --space-16: 1rem;     /* 16px */
  --space-20: 1.25rem;  /* 20px */
  --space-24: 1.5rem;   /* 24px */
  --space-32: 2rem;     /* 32px */
  --space-40: 2.5rem;   /* 40px */
  --space-48: 3rem;     /* 48px */
  --space-56: 3.5rem;   /* 56px */
  --space-64: 4rem;     /* 64px */
  --space-80: 5rem;     /* 80px */
  --space-96: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - subtle, modern glow */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-outline-primary: 0 0 0 2px rgba(53, 227, 178, 0.4);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* ==================================================================
   Reset / Normalize
   ================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

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

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Remove default link underlines; handled in Base section */

/* ==================================================================
   Base Styles
   ================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  margin-bottom: var(--space-16);
}

h2 {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  margin-bottom: var(--space-12);
}

h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
}

a:active {
  opacity: 0.8;
}

::selection {
  background-color: var(--color-primary-soft);
  color: var(--color-text);
}

code,
pre {
  font-family: var(--font-mono);
}

/* ==================================================================
   Accessibility & Motion
   ================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* ==================================================================
   Utilities
   ================================================================== */

/* Layout */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1200px;
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.section--tight {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

/* Flex helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.gap-24 {
  gap: var(--space-24);
}

/* Grid helpers */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (margin-bottom) */

.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }
.mb-24 { margin-bottom: var(--space-24) !important; }
.mb-32 { margin-bottom: var(--space-32) !important; }
.mb-40 { margin-bottom: var(--space-40) !important; }

/* Text utilities */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* Screen reader only */

.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;
}

/* ==================================================================
   Components
   ================================================================== */

/* Buttons - primary action: vraag een lichtaudit aan, etc. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #020308;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 16px 35px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  color: #020308;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(53, 227, 178, 0.6);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  box-shadow: var(--shadow-outline-primary);
}

/* Form Inputs - consistent industrial style */

.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-400);
  background-color: rgba(11, 13, 23, 0.9);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--gray-600);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-outline-primary);
  background-color: rgba(13, 16, 25, 1);
}

.input[disabled],
textarea[disabled],
select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--gray-800);
}

/* Cards - for service blocks (lichtaudit, LED-upgrades, etc.) */

.card {
  background: radial-gradient(circle at top left, rgba(53, 227, 178, 0.06), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
}

.card--soft {
  background: var(--color-surface-soft);
  box-shadow: none;
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
}

.card__subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

/* Tag / Pill - for labels like "Industrieel", "Kas", "LED" */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(53, 227, 178, 0.4);
  color: var(--color-primary);
  background-color: rgba(7, 10, 18, 0.9);
}

/* Hero visual emphasis (for homepage lighting imagery) */

.hero-glow {
  position: relative;
  overflow: hidden;
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, rgba(53, 227, 178, 0.22), transparent 55%),
              radial-gradient(circle at 80% 100%, rgba(104, 176, 255, 0.22), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-glow > * {
  position: relative;
}

/* Simple badges for energy savings percentages */

.badge-saving {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: rgba(53, 227, 178, 0.1);
  color: var(--color-primary);
  font-size: var(--fs-xs);
}

/* Tables (for comparing verbruik / besparing) */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

th {
  color: var(--gray-900);
  font-weight: 500;
  background-color: rgba(20, 24, 36, 0.8);
}

tr:nth-child(even) td {
  background-color: rgba(13, 16, 25, 0.4);
}

/* Chips for filters: "Industrie", "Glasopstanden", "LED retrofit" */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  background-color: var(--gray-200);
  color: var(--gray-900);
}

.chip--active {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}
