/* CS Whooooo Istru — jujutsucluj.ro
   Palette: aka (red) and ao (blue) are the two competitor colours on the tatami,
   set against ai-zome indigo and clean paper. */
:root {
  --ink: #0E1630;
  --ink-2: #17224A;
  --ink-3: #24315F;
  --aka: #D3141B;
  --aka-d: #A80E14;
  --ao: #1F5BC6;
  --ao-l: #6E9BEA;
  --paper: #FFFFFF;
  --mist: #ECEFF5;
  --line: #CED4E2;
  --text: #0E1630;
  --muted: #4A5372;
  --on-ink: #F2F4FA;
  --on-ink-muted: #A9B2CF;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --k: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 140px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.25rem);
  font-stretch: 118%;
  font-weight: 850;
  text-wrap: balance;
}
h3 { font-size: 1.375rem; font-stretch: 110%; }
p { margin: 0 0 1em; max-width: 64ch; }
.big { font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.5; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }

:focus-visible { outline: 3px solid var(--ao-l); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--aka); color: #fff; padding: 10px 16px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 700 1rem/1 var(--f); font-stretch: 112%;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--aka { background: var(--aka); color: #fff; }
.btn--aka:hover { background: var(--aka-d); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* Header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.bar.is-solid { background: rgba(14,22,48,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.bar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bar__logo img { width: clamp(150px, 15vw, 206px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a {
  color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--aka); }
.nav a.is-here { border-color: var(--ao-l); }
.nav .nav__cta { background: var(--aka); padding: 10px 18px; border-radius: var(--r); border: 0; }
.nav .nav__cta:hover { background: var(--aka-d); }
.burger { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; color: #fff; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; background: var(--ink);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,22,48,.92) 0%, rgba(14,22,48,.7) 40%, rgba(14,22,48,.45) 70%, rgba(14,22,48,.7) 100%),
    linear-gradient(0deg, rgba(14,22,48,.85) 0%, rgba(14,22,48,0) 32%);
}
.hero__in {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 140px var(--gut) 40px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 5.4rem);
  font-stretch: 125%; font-weight: 900; line-height: .92; letter-spacing: -0.02em;
}
.hero h1 .nw { white-space: nowrap; }
.hero__lead { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #DCE2F2; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.kanji { margin: 0; justify-self: end; display: grid; gap: 6px; max-width: 330px; }
.kanji__row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.kanji__glyph {
  font-family: var(--k); font-size: clamp(5.5rem, 11vw, 10rem); line-height: 1;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.kanji__row:first-child .kanji__glyph { color: var(--aka); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.kanji__row p { margin: 0; font-size: .95rem; color: #C9D1EA; line-height: 1.35; }
.kanji__row b { display: block; color: #fff; font-size: 1.25rem; font-stretch: 115%; }
.kanji figcaption {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25);
  font-size: .95rem; color: #DCE2F2; max-width: 30ch;
}

.hero__week {
  position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 20px var(--gut) 28px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.hero__week p { margin: 0; color: #C9D1EA; }
.hero__week strong { color: #fff; font-size: 1.15rem; margin-right: 12px; font-stretch: 112%; }
.week { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.week li {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r);
}
.week li.on { background: var(--aka); border-color: var(--aka); color: #fff; }

/* Brush reveal: the single orchestrated motion moment */
@media (prefers-reduced-motion: no-preference) {
  .kanji__glyph { animation: brush 1.1s cubic-bezier(.7,0,.2,1) both; }
  .kanji__row:nth-child(2) .kanji__glyph { animation-delay: .45s; }
  .kanji__row p, .kanji figcaption { animation: fade .6s ease-out both; animation-delay: 1.2s; }
  @keyframes brush { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Values ribbon */
.values { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.values p {
  max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gut);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px;
  font-size: clamp(1.25rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 122%; letter-spacing: -0.01em;
}
.values i { width: 12px; height: 12px; display: inline-block; transform: rotate(45deg); }
.values i.aka { background: var(--aka); }
.values i.ao { background: var(--ao); }

/* Club */
.club__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.club__text h2 { margin-bottom: 32px; }
.club__text p:not(.big) { color: var(--muted); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; display: grid; gap: 2px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px;
  background: var(--paper); border: 2px solid var(--ao); transform: rotate(45deg);
}
.timeline li:nth-child(2)::before { background: var(--aka); border-color: var(--aka); }
.timeline b { font-size: 1.6rem; font-stretch: 120%; font-weight: 850; line-height: 1.1; }
.timeline span { color: var(--muted); }
.club__photos {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  height: clamp(420px, 52vw, 640px);
}
.ph { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall { grid-row: 1 / 3; }

/* Why */
.why { background: var(--mist); }
.why__title { margin-bottom: clamp(40px, 6vw, 72px); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillar { border-top: 2px solid var(--ink); padding-top: 22px; }
.pillar__k { display: block; font-family: var(--k); font-size: 5.5rem; line-height: 1; margin-bottom: 18px; }
.ao-t { color: var(--ao); }
.aka-t { color: var(--aka); }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--muted); }

/* Training */
.training__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.training__head p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prog { background: var(--ink); color: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.prog img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prog__body { padding: 22px 22px 26px; }
.prog h3 { display: table; padding-bottom: 6px; margin-bottom: 12px; border-bottom: 3px solid var(--aka); }
.prog:nth-child(even) h3 { border-color: var(--ao); }
.prog p { margin: 0; color: var(--on-ink-muted); font-size: 1rem; }

/* Sensei */
.sensei { background: var(--ink); color: var(--on-ink); }
.sensei__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.sensei__photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.sensei__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sensei h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.grades { margin: 14px 0 24px; font-weight: 700; font-stretch: 115%; font-size: 1.15rem; color: var(--ao-l); }
.grades span { color: var(--on-ink-muted); margin: 0 6px; }
.sensei__text > p:not(.grades) { color: var(--on-ink-muted); }
.book { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.book img { width: 96px; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.book p { margin: 0; color: var(--on-ink-muted); font-size: .98rem; }
.book cite { font-style: normal; color: #fff; font-weight: 700; }
.senpai { margin-top: 48px; }
.senpai figure { margin: 0; display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.senpai img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.senpai figcaption { color: var(--on-ink-muted); max-width: 46ch; }
.senpai figcaption b { display: block; color: #fff; font-size: 1.25rem; font-stretch: 112%; margin-bottom: 4px; }

/* Martial Arts Open */
.mao { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: var(--on-ink); }
.mao__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.mao__ed {
  display: inline-block; margin: 20px 0 24px; padding: 8px 14px;
  background: var(--ao); color: #fff; font-weight: 700; border-radius: var(--r);
}
.mao__text p:not(.mao__ed) { color: var(--on-ink-muted); }
.mao__thanks { color: #fff !important; font-weight: 600; }
.mao__poster { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(1.5deg); }
.mao__videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(48px, 7vw, 88px); }
.mao__videos figure { margin: 0; }
.mao__videos video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); }
.mao__videos figcaption { margin-top: 10px; color: var(--on-ink-muted); font-size: .95rem; }
.mao__strip {
  list-style: none; margin: 16px 0 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.mao__strip li { scroll-snap-align: start; }
.mao__strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }

/* Gallery */
.gal__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gal__head p { margin: 0; color: var(--muted); }
.gal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; }
.gal__grid li { border-radius: var(--r); overflow: hidden; background: var(--mist); }
.gal__grid .w2 { grid-column: span 2; grid-row: span 2; }
.gal__grid .wide { grid-column: span 2; }
.gal__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
.gallery a:hover img { transform: scale(1.03); }

/* Vouchers */
.vouch { background: var(--mist); }
.vouch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.vouch__grid p:not(.big) { color: var(--muted); }
.vouch .btn { margin-top: 8px; }

/* Contact */
.contact { padding-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__info h2 { margin-bottom: 36px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.contact dt { font-weight: 700; font-size: .9rem; color: var(--ao); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 1.1rem; }
.contact dd a { text-decoration-color: var(--aka); text-underline-offset: 4px; }
.contact__quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.form { background: var(--ink); color: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--r); display: grid; gap: 16px; }
.form h3 { font-size: 1.75rem; }
.form__note { margin: -6px 0 6px; color: var(--on-ink-muted); font-size: .95rem; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--f); color: var(--text); background: #fff;
  border: 2px solid transparent; border-radius: var(--r); padding: 12px 14px; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ao-l); }
.form__err { margin: 0; color: #FF9A9E; font-weight: 600; }
.form .btn { justify-self: start; }
.map { margin-top: var(--sec); height: 420px; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 48px; }
.foot__grid { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
.foot__emblem { width: 160px; height: auto; background: #fff; border-radius: 50%; padding: 14px; }
.foot__logo { width: 220px; height: auto; margin-bottom: 18px; }
.foot__meta { font-size: .9rem; margin: 0; }
.foot__meta a { color: #fff; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(8,12,26,.94); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: var(--r); }
.lb p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #DCE2F2; margin: 0 auto; padding: 0 64px; }
.lb button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer; font: 400 2rem/1 var(--f); width: 52px; height: 52px; border-radius: 50%; }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb__x { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: .9rem; }
  .programs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .burger {
    display: grid; gap: 6px; place-content: center; width: 48px; height: 48px;
    background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r); cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 72px 0 auto; background: var(--ink); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gut) 24px; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav__cta { margin-top: 16px; text-align: center; }
  .bar { background: rgba(14,22,48,.96); }

  .hero__in { grid-template-columns: 1fr; padding-top: 120px; }
  .kanji { justify-self: start; grid-template-columns: 1fr 1fr; max-width: none; column-gap: 24px; }
  .kanji figcaption { grid-column: 1 / -1; }
  .kanji__glyph { font-size: 4.5rem; }
  .club__grid, .sensei__grid, .mao__grid, .vouch__grid, .contact__grid, .training__head { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .mao__poster { transform: none; max-width: 560px; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .values p { justify-content: flex-start; }
  .club__photos { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px; height: auto; }
  .ph--tall { grid-row: auto; grid-column: 1 / -1; }
  .programs { grid-template-columns: 1fr; }
  .prog img { aspect-ratio: 16 / 9; }
  .hero h1 .nw { white-space: normal; }
  .mao__videos { grid-template-columns: 1fr; }
  .senpai figure { grid-template-columns: 1fr; }
  .contact dl { grid-template-columns: 1fr; }
  .gal__grid { grid-auto-rows: 150px; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .week li { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
