/* ═══════════════════════════════════════════
   GLOBAL — N&K Webdesign v2
═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
}

/* ── LAYOUT ── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--text {
  max-width: calc(var(--max-w-text) + var(--gutter) * 2);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--c-brand-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(45, 59, 224, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border-2);
}
.btn-secondary:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  padding-inline: var(--sp-4);
}
.btn-ghost:hover { color: var(--c-text); }

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

/* ── SECTION LABELS ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: var(--sp-5);
}

.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-brand);
  flex-shrink: 0;
}

/* ── SECTION HEADINGS ── */
.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  margin-bottom: var(--sp-5);
}

.section-title em {
  font-style: italic;
  color: var(--c-brand);
}

.section-body {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--c-text-2);
  max-width: 52ch;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

/* ── SR-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;
}

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── SELECTION ── */
::selection {
  background: var(--c-brand-mid);
  color: var(--c-text);
}

/* ── FORM BASE ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-soft);
}

.form-input.invalid,
.form-textarea.invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-error {
  font-size: var(--fs-xs);
  color: var(--c-error);
}

.form-status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.form-status--success { background: var(--c-success-bg); color: var(--c-success); }
.form-status--error   { background: var(--c-error-bg);   color: var(--c-error); }

/* ── BACK TO TOP ── */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  cursor: pointer;
  transition: color var(--t-fast);
}
.back-to-top:hover { color: var(--c-text); }

/* ── PRINT ── */
@media print {
  .nav, footer, .btn, #cookie-banner { display: none !important; }
  body { background: white; color: black; }
}
