/* ═══════════════════════════════════════════════════════════════
   KENVERA — Base Styles
   Reset, Typography, Utilities, Focus Management
   ═══════════════════════════════════════════════════════════════ */

/* ── Modern Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  /* System cursor restored for accessibility — custom cursor is overlay only */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

table {
  border-collapse: collapse;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
}

/* ── Selection Color ── */
::selection {
  background: rgba(245, 130, 32, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(245, 130, 32, 0.2);
  color: var(--text-primary);
}

/* ── Focus Management (WCAG AA) ── */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to main content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-loader) + 1);
  padding: var(--space-3) var(--space-6);
  background: var(--orange);
  color: var(--white);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.skip-link:focus {
  top: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

strong, b {
  font-weight: var(--weight-bold);
}

small {
  font-size: var(--text-xs);
}

/* ── Section Titles (PRESERVED + upgraded) ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Legacy alias */
.slbl { 
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-3);
}

.slbl::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--navy);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.section-title span {
  color: var(--orange);
}

.section-title.white {
  color: var(--white);
}

/* Legacy alias */
.stit {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--navy);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.stit span { color: var(--orange); }
.stit.wh { color: var(--white); }

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 580px;
  margin-top: var(--space-4);
}

.section-subtitle.white {
  color: var(--text-on-dark-muted);
}

/* Legacy alias */
.ssub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 580px;
  margin-top: var(--space-4);
}

.ssub.wh { color: var(--text-on-dark-muted); }

/* ── Layout Utilities ── */
.text-center { text-align: center; }
.text-center .ssub,
.text-center .section-subtitle { margin: var(--space-4) auto 0; }

/* Legacy alias */
.tc { text-align: center; }
.tc .ssub { margin: var(--space-4) auto 0; }

section {
  padding: var(--section-py) 0;
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Legacy alias */
.con {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Visually Hidden (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-width: 0;
}


/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-orange-horizontal);
  z-index: calc(var(--z-topbar) + 1);
  transition: width 0.1s linear;
  will-change: width;
}

/* Legacy ID */
#sprog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-orange-horizontal);
  z-index: calc(var(--z-topbar) + 1);
  transition: width 0.1s linear;
  will-change: width;
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--gradient-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.out {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--white);
  letter-spacing: 8px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  margin: var(--space-2) 0 var(--space-10);
}

.loader__bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0;
  background: var(--white);
  border-radius: var(--radius-full);
  animation: loaderBar 2.2s ease forwards;
}

.loader__drops {
  display: flex;
  gap: 10px;
  margin-top: var(--space-8);
}

.loader__drop {
  width: 10px;
  height: 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: loaderDrop 1s ease infinite;
}

.loader__drop:nth-child(2) {
  animation-delay: 0.2s;
  background: rgba(255, 255, 255, 0.5);
}

.loader__drop:nth-child(3) {
  animation-delay: 0.4s;
}

/* Legacy aliases */
#loader { position: fixed; inset: 0; background: var(--gradient-orange); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: var(--z-loader); transition: opacity 0.6s, visibility 0.6s; }
#loader.out { opacity: 0; visibility: hidden; }
.ld-logo { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: var(--weight-black); color: var(--white); letter-spacing: 8px; animation: loaderPulse 1.5s ease-in-out infinite; }
.ld-sub { color: rgba(255,255,255,.7); font-size: var(--text-xs); letter-spacing: var(--tracking-mega); text-transform: uppercase; margin: var(--space-2) 0 var(--space-10); }
.ld-bar-wrap { width: 200px; height: 3px; background: rgba(255,255,255,.2); border-radius: var(--radius-full); overflow: hidden; }
.ld-bar { height: 100%; width: 0; background: var(--white); border-radius: var(--radius-full); animation: loaderBar 2.2s ease forwards; }
.ld-drops { display: flex; gap: 10px; margin-top: var(--space-8); }
.ld-drop { width: 10px; height: 14px; background: rgba(255,255,255,.8); border-radius: 50% 50% 50% 50%/60% 60% 40% 40%; animation: loaderDrop 1s ease infinite; }
.ld-drop:nth-child(2) { animation-delay: .2s; background: rgba(255,255,255,.5); }
.ld-drop:nth-child(3) { animation-delay: .4s; }

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

@keyframes loaderBar {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes loaderDrop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Legacy keyframes aliases */
@keyframes lpulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.8; transform:scale(.97); } }
@keyframes lbar { 0% { width:0; } 100% { width:100%; } }
@keyframes ldrop { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }

/* ── Page System (PRESERVED) ── */
.page { display: none; }
.page.active { display: block; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  position: absolute;
  top: calc(var(--topbar-height) + var(--navbar-height));
  left: 0;
  right: 0;
  z-index: 10;
  padding: var(--space-4) 0;
  background: transparent;
  border-bottom: none;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6) !important;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs__item::after {
  content: '›';
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 0.7;
}

.breadcrumbs__item:last-child::after {
  display: none;
}

.breadcrumbs__link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: var(--weight-semibold);
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--white) !important;
}

.breadcrumbs__current {
  color: rgba(255, 255, 255, 0.65) !important;
  font-weight: var(--weight-medium);
}
