/*
 * brand.css — kawalek.uk Brand Design System
 * CSS custom properties + global base styles
 * Reference: docs/business/branding_of_kawalek_uk §5, §6, §8, §13
 */

/* ── Custom Properties ──────────────────────────────────────────────────── */

:root {
  /* Colour */
  --c-void:         #08080A;
  --c-surface:      #0F0F13;
  --c-lifted:       #161619;
  --c-border:       #1E1E24;
  --c-muted:        #52525E;
  --c-body:         #C4C4CC;
  --c-high:         #EAEAEF;
  --c-pure:         #FFFFFF;
  --c-phosphor:     #39FF8F;
  --c-phosphor-80:  rgba(57, 255, 143, 0.80);
  --c-phosphor-20:  rgba(57, 255, 143, 0.20);
  --c-phosphor-10:  rgba(57, 255, 143, 0.10);
  --c-phosphor-06:  rgba(57, 255, 143, 0.06);
  --c-success:      #22C55E;
  --c-warning:      #F59E0B;
  --c-danger:       #EF4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Type scale */
  --t-xs:    0.75rem;
  --t-sm:    0.875rem;
  --t-base:  1rem;
  --t-lg:    1.125rem;
  --t-xl:    1.25rem;
  --t-2xl:   1.5rem;
  --t-3xl:   2rem;
  --t-4xl:   2.5rem;
  --t-hero:  clamp(2.5rem, 5vw, 5rem);

  /* Spacing (4px grid) */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:   12px;
  --s-4:   16px;
  --s-6:   24px;
  --s-8:   32px;
  --s-12:  48px;
  --s-16:  64px;
  --s-24:  96px;
  --s-32:  128px;

  /* Border radius */
  --r-sm:   3px;
  --r-base: 4px;
  --r-md:   6px;

  /* Override Bootstrap dark theme base */
  --bs-body-bg:    var(--c-void);
  --bs-body-color: var(--c-body);
  --bs-border-color: var(--c-border);
}


/* ── Reset & Base ───────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* sticky nav 56px + 16px breathing room */
  background-color: var(--c-void);
  color: var(--c-body);
}

body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  background-color: var(--c-void);
  color: var(--c-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-void); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }


/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--c-high);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--t-hero); letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: var(--t-4xl); }
h3 { font-size: var(--t-3xl); }
h4 { font-size: var(--t-2xl); }
h5 { font-size: var(--t-xl); }
h6 { font-size: var(--t-lg); }

p {
  max-width: 65ch;
  margin-bottom: 1rem;
}

a {
  color: var(--c-phosphor);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

code,
pre,
.font-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  background: var(--c-lifted);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-phosphor-20);
  border-radius: var(--r-base);
  padding: var(--s-6);
  color: var(--c-body);
  overflow-x: auto;
}

.text-muted-brand { color: var(--c-muted); }
.text-high         { color: var(--c-high); }
.text-phosphor     { color: var(--c-phosphor); }
.text-mono         { font-family: var(--font-mono); font-size: var(--t-sm); }


/* ── Section ────────────────────────────────────────────────────────────── */

.brand-section {
  padding-top: var(--s-24);
  padding-bottom: var(--s-24);
}

@media (max-width: 768px) {
  .brand-section {
    padding-top: var(--s-16);
    padding-bottom: var(--s-16);
  }
}

.brand-section__label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--s-3);
}

.brand-section__headline {
  color: var(--c-high);
  margin-bottom: var(--s-4);
}

.brand-section__sub {
  font-size: var(--t-lg);
  color: var(--c-body);
  max-width: 60ch;
  margin-bottom: var(--s-8);
}

hr.brand-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}
