/* ===========================================================
   BANDITE — artivism
   Static site styles
   =========================================================== */

/* ---------- brand fonts ---------- */
@font-face {
  font-family: "Handelson Five";
  src: url("../fonts/handelson-five.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Handelson Five", "Brush Script MT", cursive;
  --font-head: "Barlow Condensed", "DM Sans", system-ui, sans-serif;
  --bg: #fafafa;
  --fg: #292724;
  --muted: #6b665f;
  --line: #e2ddd6;
  --accent: #e62b1a;
  --amber: #fcb900;
  --white: #ffffff;
  --maxw: 1180px;
  --readw: 760px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { margin: 0 0 .6em; }
h1 {
  font-family: var(--font-head);
  font-weight: 300; line-height: 1.08; letter-spacing: .01em;
  font-size: clamp(2.6rem, 6vw, 4rem);
}
h2, h3 {
  font-family: var(--font-head);
  font-weight: 300; line-height: 1.1; letter-spacing: .02em;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.4rem; font-weight: 400; }

p { margin: 0 0 1.2em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.lang-switch {
  display: inline-flex; gap: 9px; margin-left: 18px; padding-left: 18px;
  border-left: 1px solid var(--line);
}
.lang-switch a {
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.lang-switch a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--fg); margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(420px, 78vh, 760px);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: 56px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem); letter-spacing: .01em;
  text-transform: none; font-weight: 400; line-height: 1; margin: 0; color: #fff;
}
.hero__tag {
  font-size: clamp(1rem, 2.5vw, 1.4rem); letter-spacing: .35em;
  text-transform: uppercase; color: var(--amber); margin: .4em 0 0; font-weight: 500;
}
.hero--page { min-height: clamp(300px, 48vh, 460px); }
.hero--page .hero__title { font-family: var(--font-head); font-weight: 300; font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: .02em; }
/* homepage hero is image-only (no text) */
.hero--home::after { background: none; }

.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;
}

/* ---------- page intro (no image) ---------- */
.page-head { padding: 64px 0 8px; }
.page-head .kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
}
.page-head h1 { margin-bottom: 0; }
.page-head .sub { color: var(--muted); margin-top: 10px; }

/* ---------- prose ---------- */
.prose { font-size: 1.02rem; }
.prose.justify p { text-align: justify; }
.prose em { font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.credits {
  font-size: .92rem; color: var(--muted); line-height: 1.8;
  border-top: 1px solid var(--line); padding-top: 1.4em; margin-top: 2.4em;
}
.credits em { color: var(--fg); font-style: normal; font-weight: 500; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--fg); border-radius: 40px;
  padding: 11px 26px; font-size: .9rem; font-weight: 500;
  letter-spacing: .03em; color: var(--fg); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- works list ---------- */
.work-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.work-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  background: var(--bg); padding: 26px 28px; transition: background .2s;
}
.work-item:hover { background: var(--white); }
.work-item h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.work-item .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.work-item .arrow { color: var(--accent); font-size: 1.2rem; }

/* ---------- gallery / slideshow ---------- */
.gallery { margin: 2.6em 0; }
.slides { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.slides__track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: clamp(300px, 60vh, 620px); object-fit: cover; }
.slides__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.slides__btn:hover { background: rgba(0,0,0,.7); }
.slides__btn--prev { left: 14px; }
.slides__btn--next { right: 14px; }
.slides__dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.slides__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.slides__dots button[aria-selected="true"] { background: var(--accent); }

/* ---------- logos grid ---------- */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: center; margin: 2em 0; }
.logos figure { margin: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.logos img { max-height: 110px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logos figure:hover img { filter: none; opacity: 1; }

/* ---------- press list ---------- */
.press { display: grid; gap: 14px; margin-top: 1em; }
.press a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px;
  background: var(--white); transition: border-color .2s, transform .15s;
}
.press a:hover { border-color: var(--accent); transform: translateY(-1px); }
.press .src { font-weight: 600; color: var(--fg); }
.press .who { color: var(--muted); font-size: .9rem; }
.press .dl { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* ---------- news (homepage) — drawer/accordion ---------- */
.news-heading { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .5em; }
.news-list { border-top: 1.5px solid var(--fg); }
.news-item { border-bottom: 1px solid var(--line); }
.news-summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 190px 1fr 24px; gap: 30px; align-items: center;
  padding: 24px 0;
}
.news-summary::-webkit-details-marker { display: none; }
.news-summary:hover .news-title { color: var(--accent); }
.news-static .news-summary { cursor: default; }
.news-static:hover .news-title { color: var(--fg); }
.news-date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-title {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.12; transition: color .15s;
}
/* +/− toggle */
.news-toggle { position: relative; width: 22px; height: 22px; flex: none; justify-self: end; }
.news-toggle::before, .news-toggle::after {
  content: ""; position: absolute; background: var(--fg); transition: transform .25s, opacity .25s, background .2s;
}
.news-toggle::before { top: 10px; left: 1px; right: 1px; height: 2px; }
.news-toggle::after { left: 10px; top: 1px; bottom: 1px; width: 2px; }
.news-item[open] .news-toggle::after { transform: scaleY(0); opacity: 0; }
.news-item[open] .news-toggle::before { background: var(--accent); }
.news-content { padding: 0 0 26px; margin-left: 220px; max-width: 66ch; animation: news-open .25s ease; }
.news-text { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.65; }
.news-text em { color: var(--fg); }
@keyframes news-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .news-summary { grid-template-columns: 1fr 24px; grid-template-areas: "date toggle" "title toggle"; gap: 4px 16px; }
  .news-date { grid-area: date; }
  .news-title { grid-area: title; }
  .news-toggle { grid-area: toggle; align-self: center; }
  .news-content { margin-left: 0; }
}

/* ---------- image figure ---------- */
.figure { margin: 2.2em 0; }
.figure img { border-radius: 12px; width: 100%; }
.figure--center { display: flex; justify-content: center; }
.figure--center img { max-width: 520px; }

/* ---------- brand emblem ---------- */
.emblem { margin: 8px auto 4px; display: flex; justify-content: center; }
.emblem img { width: 100%; max-width: 380px; height: auto; }

/* ---------- contacts ---------- */
.contact-big { font-size: clamp(1.5rem, 5vw, 2.6rem); font-weight: 600; letter-spacing: -.01em; }
.contact-big a { color: var(--fg); }
.contact-big a:hover { color: var(--accent); }
.contact-meta { color: var(--muted); margin-top: 1em; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 48px 0; font-size: .9rem; color: var(--muted);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .fbrand { height: 50px; width: auto; display: block; }
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-120%);
    transition: transform .3s ease; box-shadow: 0 14px 30px rgba(0,0,0,.07);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 0; font-size: .95rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); }
  .lang-switch { margin: 10px 0 0; padding: 14px 0 4px; border-left: 0; border-top: 1px solid var(--line); width: 100%; gap: 18px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .work-item { flex-direction: column; gap: 6px; }
  .section { padding: 56px 0; }
}
