/* ==========================================================================
   KS FACTOR — base.css
   Variablat e dizajnit, reset, tipografia dhe klasat ndihmëse.
   Përdoret nga TË GJITHA faqet.
   ========================================================================== */

:root {
  /* Ngjyrat */
  --c-accent: #B8322A;
  --c-accent-dark: #962620;
  --c-green: #13342A;
  --c-green-900: #0E2620;
  --c-green-700: #1E4436;
  --c-green-500: #2F6650;
  --c-green-100: #E3EEE8;
  --c-green-50: #F0F4EF;
  --c-ink: #10201B;
  --c-text: #33433D;
  --c-muted: #4A5A54;
  --c-muted-2: #56655F;
  --c-bg: #F4F5F1;
  --c-white: #FFFFFF;
  --c-line: #E1E5DF;
  --c-line-2: #DCE1DA;
  --c-input: #C9D1C8;

  /* Ngjyrat e fushave të projekteve */
  --cat-pun: #1E4A6B;
  --cat-rin: #2F6650;
  --cat-kul: #7A4A2E;
  --cat-tur: #2D5563;
  --cat-gra: #6B3553;
  --cat-kom: #5C6B2E;

  /* Tipografia */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Hapësirat dhe format */
  --container: 1280px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 112px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --header-h: 76px;
  --shadow-sm: 0 2px 8px rgba(16, 32, 27, .06);
  --shadow: 0 12px 30px rgba(16, 32, 27, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

a { color: var(--c-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }

:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow--light { color: #CFE3D8; }

.title-xl {
  font-weight: 900;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: .96;
  letter-spacing: -.025em;
}
.title-lg {
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.title-md {
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--c-text);
}
.lead p + p { margin-top: 18px; }
.muted { color: var(--c-muted); }

/* ---------- Kontejnerët dhe seksionet ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--c-white); }
.section--dark { background: var(--c-green-900); color: var(--c-white); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .title-lg { margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--c-muted); }
.section-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

/* ---------- Ndihmëse ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--c-green);
  color: var(--c-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: var(--c-white); }

/* Animacion i butë kur elementet hyjnë në ekran (aktivizohet nga main.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
