/* KLES SHPK — one stylesheet, hand written, no build step.
   Palette sampled from work/logo.png: #000000, #CF2428, #FFFFFF. */

/* ---------------------------------------------------------------- fonts */
/* Both families are variable fonts, so one file per subset covers every
   weight used. Latin covers ë and ç; latin-ext covers Latin Extended-A. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens */

:root {
  --black: #000000;
  --signal: #CF2428;       /* sampled from the logo; accents, rules, borders */
  --signal-ink: #C22126;   /* link text: AA on both paper and zinc */
  --steel: #5F656A;        /* secondary text; darkened from #6E7479 for AA on zinc */
  --zinc: #E8EAEC;
  --paper: #FFFFFF;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --rhythm: clamp(2.5rem, 7vw, 5rem);
  /* A page heading and the content under it are one unit, not two sections,
     so they sit closer than the full rhythm. ~20-30px. */
  --rhythm-tight: clamp(1.25rem, 2.5vw, 1.875rem);
}

/* ----------------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 70ch; }

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

a { color: var(--signal-ink); }
a:hover { color: var(--black); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--black);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; top: 0; }

main:focus { outline: none; }

/* ----------------------------------------------------------------- slat */
/* The recurring structural device: thin repeating rules echoing a shutter
   profile. At most two uses per page. */

.slat {
  height: 10px;
  background: repeating-linear-gradient(
    to bottom,
    var(--black) 0 2px,
    transparent 2px 4px
  );
}

.slat--light {
  background: repeating-linear-gradient(
    to bottom,
    var(--steel) 0 2px,
    transparent 2px 4px
  );
}

/* --------------------------------------------------------------- header */

.header { background: var(--zinc); }

.header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}

.header__logo { display: block; margin-inline-end: auto; }
.header__logo img { width: 156px; height: 40px; }

/* --------------------------------------------------------------- nav */

.nav {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}

/* One reset for every list used as layout rather than as prose. */
.nav__list,
.lang,
.footer__list,
.gallery,
.brands {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list,
.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.nav__list { margin-inline-end: auto; }

.nav__link,
.lang__link {
  display: inline-block;
  padding-block: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav__link:hover,
.lang__link:hover { color: var(--signal-ink); }

.nav__link.is-current,
.lang__link.is-current {
  color: var(--signal-ink);
  border-bottom-color: var(--signal);
}

.lang { font-size: 0.875rem; }
.lang__link { font-weight: 400; color: var(--steel); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--black);
  background: var(--paper);
  color: var(--black);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
}

.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

/* The drawer's own close control. Never shown on desktop, and never without
   JavaScript, since neither case has a drawer to close. */
.nav__close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  background: var(--paper);
  color: var(--black);
  cursor: pointer;
}

.nav__close:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

.nav__close svg { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Enhanced state. Without JavaScript the toggle stays [hidden] and the nav is a
   plain link list. The toggle exists only at drawer widths: above the
   breakpoint the full nav is on screen, so a button that opens it is noise. */
@media (max-width: 47.99em) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__close { display: flex; }

  .js .nav {
    position: fixed;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem var(--gutter) 2rem;
    background: var(--paper);
    border-top: 10px solid var(--black);
    overflow-y: auto;
  }

  .js .nav[hidden] { display: none; }

  .js .nav__list,
  .js .lang { flex-direction: column; gap: 0; }

  .js .nav__link {
    font-size: 1.25rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--zinc);
  }

  .js .nav__link.is-current { border-bottom-color: var(--signal); }

  .js .lang { margin-top: 1.5rem; flex-direction: row; gap: 1.5rem; }
}

@media (min-width: 48em) {
  .header__bar { padding-block: 1.25rem; }
  .nav { flex-basis: auto; }
  .nav__list { gap: 0.25rem 2rem; }
}

/* -------------------------------------------------------------- content */

/* No bottom padding: the spacing below is owned by whatever follows, so the
   two do not stack into a gap of nearly 180px. */
.intro { padding-block: var(--rhythm) 0; }

.intro > :last-child { margin-bottom: 0; }

/* The block immediately after a page intro keeps the tight gap. Sibling
   sections further down still get the full rhythm between them. */
.intro + .section,
.intro + .prose,
.intro + .panels { padding-block-start: var(--rhythm-tight); }

/* The tile grids and definition lists carry a top margin to separate them from
   a heading above. Leading a section, that margin stacks on the section's own
   padding, so drop it. */
.section > :first-child,
.prose > :first-child { margin-top: 0; }

.intro__heading { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }

.intro__lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--steel);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--black);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--black);
}

.button:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

/* Copy still owed by the client. Outlined in development, plain in production. */
.placeholder--dev {
  outline: 1px dashed var(--signal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- footer */

.footer {
  margin-top: var(--rhythm);
  background: var(--black);
  color: var(--paper);
}

.footer .slat { margin-bottom: var(--rhythm); }

.footer a { color: var(--paper); }
.footer a:hover { color: var(--signal); }

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25em;
}

.footer__tagline { color: var(--zinc); }

.footer__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--signal);
  margin-bottom: 0.25em;
}

.footer__block p:not(.footer__label) { margin-bottom: 1rem; color: var(--zinc); }

.footer__link { display: inline-block; padding-block: 0.25rem; text-decoration: none; }

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--steel);
  max-width: none;
}

@media (min-width: 40em) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64em) {
  .footer__grid { grid-template-columns: 2fr 1.5fr 1.5fr 1fr; }
}

/* ----------------------------------------------------------------- hero */
/* A static composition, not a carousel. Nothing here moves or animates. */

.hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) 0; }

.hero__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.hero__lead { position: relative; }

.hero__lead img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* A subtle dark gradient behind the overlaid heading, so the text holds its
   contrast over a photograph of unknown brightness. */
.hero__heading {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  color: var(--paper);
  font-size: clamp(1.375rem, 0.9rem + 2.2vw, 2.75rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

/* Count-agnostic: a row beneath the lead on mobile, a column beside it above
   the breakpoint. grid-auto-rows does the work, so two cells split the column
   in half and three or four stack. */
.hero__cells {
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.hero__cell {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--black);
}

.hero__cell img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  background: var(--black);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.7rem + 0.4vw, 1rem);
}

.hero__cell:hover .hero__label { background: var(--signal); }

@media (min-width: 64em) {
  .hero__grid { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }

  .hero__cells {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
  }

  /* Square cells stack taller than a 3:2 lead, and the lead is stretched to the
     row height to match. Without this the image keeps its 3:2 box and the
     heading panel — anchored to the bottom of the stretched container — hangs
     below the photograph onto bare background. object-fit crops the extra. */
  .hero__lead img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* -------------------------------------------------------------- sections */

.section { padding-block: var(--rhythm) 0; }

.section__heading { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); }

.section__intro { color: var(--steel); }

.prose { padding-block: var(--rhythm) 0; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.75rem); margin-top: 1.5em; }
.prose ul { padding-left: 1.25rem; max-width: 70ch; }
.prose li { margin-bottom: 0.5em; }

/* -------------------------------------------------------------- gallery */

/* Both tile grids differ only in track width. */
.gallery,
.brands {
  display: grid;
  gap: 12px;
  margin-top: 1.5rem;
}

.gallery { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.gallery__link {
  display: block;
  background: var(--zinc);
}

/* A fixed 4:3 thumbnail so mixed aspect ratios still grid cleanly. */
.gallery__link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__link:focus-visible { outline-offset: 4px; }

/* --------------------------------------------------------------- brands */

.brands { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }

.brands__item {
  padding: 1rem 1.25rem;
  background: var(--zinc);
  border-left: 3px solid var(--signal);
  font-family: var(--display);
  font-weight: 600;
}

/* -------------------------------------------------------------- contact */

.contact {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.25rem 2rem;
  grid-template-columns: 1fr;
}

.contact__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--steel);
}

.contact__value { margin: 0 0 1.25rem; }

/* Neutral block at the right shape until a confirmed address gives us a map. */
.contact__map,
.img-missing {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--zinc);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(110, 116, 121, 0.16) 10px 11px
  );
}

.contact__map { max-width: 560px; margin-top: 1rem; }

@media (min-width: 40em) {
  .contact {
    grid-template-columns: max-content 1fr;
  }

  .contact__label { text-align: right; padding-top: 0.15rem; }
  .contact__value { margin-bottom: 1rem; }
}

/* ------------------------------------------------------------- lightbox */
/* Enhancement only: without JavaScript no overlay exists and every tile stays
   an ordinary link to the full-size file. Nothing here animates. */

.lightbox {
  --lb-pad: clamp(1rem, 4vw, 3rem);
  /* Extra room below the image, where the narrow layout parks prev/next. */
  --lb-bottom: var(--lb-pad);

  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lb-pad);
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  max-width: 100%;
  max-height: 100%;
}

/* The script sets max-width and max-height inline, each a min() of the source's
   natural size and the free viewport. Capping BOTH axes is what makes a
   portrait photograph behave: capping width alone lets a tall image run off the
   bottom of the screen. The image never stretches past 100% of the source. */
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
}

.lightbox__button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--paper);
  background: var(--black);
  color: var(--paper);
  cursor: pointer;
}

.lightbox__button:hover:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
}

.lightbox__button:disabled { opacity: 0.35; cursor: default; }

.lightbox__button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.lightbox__button--close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }

/* Anchored to the viewport, not to the image: without an explicit top these
   take their static position and drift with the photograph's height. */
.lightbox__button--prev,
.lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__button--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__button--next { right: clamp(0.5rem, 2vw, 2rem); }

/* Narrow screens have no room beside the photograph, so the arrows would sit on
   top of it. Park them beneath instead and shorten the image to suit. */
@media (max-width: 39.99em) {
  .lightbox { --lb-bottom: calc(var(--lb-pad) + 64px); }

  .lightbox__button--prev,
  .lightbox__button--next {
    top: auto;
    bottom: var(--lb-pad);
    transform: none;
  }

  .lightbox__button--prev { left: calc(50% - 54px); }
  .lightbox__button--next { right: calc(50% - 54px); }
}

/* --------------------------------------------------------------- panels */
/* Two distinct objects beneath the hero, not a card grid: same zinc field and
   signal edge as the brands list, so they read as part of one system. */

/* auto-fit, not auto-fill: an empty track collapses, so the row stays even
   whether the certification panel is present or dropped. */
.panels {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  padding-block: var(--rhythm) 0;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--zinc);
  border-left: 3px solid var(--signal);
}

.panel__heading {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  margin-bottom: 0.4em;
}

.panel__text { color: var(--steel); margin-bottom: 1rem; }

.panel__link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}

.panel__link:hover { color: var(--black); border-bottom-color: var(--black); }


/* ----------------------------------------------------------- legal pages */

.notice {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--signal);
  background: var(--zinc);
  color: var(--black);
  font-size: 0.9375rem;
  max-width: 70ch;
}

/* The container owns the spacing rather than the copyright line, so the rule
   sits a consistent distance above both it and the legal links. The border
   follows the content width, matching everything else on the page. */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem var(--rhythm);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer__legal { font-size: 0.875rem; }
