/* ============================================================
   HD Aikido — styl
   Návrhové tokeny (design tokens) + rozvržení
   Barvy: washi papír, sumi inkoust, hakama indigo, střídmá červená
   ============================================================ */

:root {
  /* Barvy */
  --paper:      #faf8f5;   /* pozadí (washi) */
  --paper-alt:  #f2eee6;   /* střídavé sekce */
  --ink:        #1a1a1a;   /* text (sumi) */
  --ink-soft:   #4a4a46;   /* sekundární text */
  --indigo:     #2a3a5e;   /* hlavní akcent (hakama) */
  --indigo-dk:  #1f2c47;
  --red:        #b3333a;   /* jediný důrazný akcent */
  --line:       #e2ddd2;   /* jemné linky / rámečky */
  --card:       #ffffff;

  /* Typografie */
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rozvržení */
  --maxw: 1080px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26,26,26,.05), 0 8px 24px rgba(26,26,26,.06);
}

/* -------- Tmavý režim (podle nastavení prohlížeče) -------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #14161b;
    --paper-alt: #1b1e25;
    --ink:       #ece9e2;
    --ink-soft:  #b3afa6;
    --indigo:    #8fa6d6;
    --indigo-dk: #7d95c9;
    --red:       #e0777c;
    --line:      #2b2f38;
    --card:      #1f232b;
    --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

/* ==================== ZÁKLAD ==================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; font-weight: 600; }

a { color: inherit; }

img, svg { max-width: 100%; }

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

/* ==================== NAVIGACE ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  background: var(--indigo);
  color: #fff;
  border-radius: 6px;
  font-size: .8em;
}

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav__menu a:hover { color: var(--ink); }

.nav__cta {
  background: var(--indigo);
  color: #fff !important;
  padding: .5rem .9rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--indigo-dk); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== TLAČÍTKA ==================== */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #97282e; }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem var(--gap);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--indigo) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-alt));
}

/* Jemný "enso" kruh v pozadí */
.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  border: 2px solid color-mix(in srgb, var(--indigo) 18%, transparent);
  border-radius: 50%;
  border-right-color: transparent;
  rotate: -25deg;
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 720px; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--indigo);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0 0 1.25rem;
  letter-spacing: -.01em;
}

.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 auto 2.25rem;
  max-width: 40ch;
}

.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--ink-soft);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ==================== SEKCE ==================== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--paper-alt); }

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--indigo);
  margin: 0 0 .5rem;
}
.section__title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0 0 1.75rem;
}

.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); margin: 0 0 1rem; }
.prose strong { color: var(--ink); }

.link { color: var(--indigo); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-bottom-color: currentColor; }

/* ==================== KARTY (o aikidu) ==================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card__icon {
  font-family: var(--font-serif);
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  color: var(--indigo);
  border-radius: 8px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ==================== ROZVRH ==================== */
.schedule { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 720px) { .schedule { grid-template-columns: 1fr; } }

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule__table th, .schedule__table td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.schedule__table thead th {
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.schedule__table tbody tr:last-child td { border-bottom: 0; }
.schedule__table tbody tr:hover { background: var(--paper-alt); }

.schedule__note { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }

.place h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.place p { margin: 0 0 .75rem; color: var(--ink-soft); }
.place__tip {
  font-size: .92rem;
  background: color-mix(in srgb, var(--indigo) 8%, transparent);
  border-left: 3px solid var(--indigo);
  padding: .85rem 1rem;
  border-radius: 0 8px 8px 0;
}

/* ==================== TRENÉŘI ==================== */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}
.person { text-align: center; }
.person__photo {
  width: 130px; height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}
.person__photo svg { display: block; width: 100%; height: 100%; }
.person h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.person__meta { margin: 0 0 .75rem; font-size: .9rem; color: var(--indigo); font-weight: 500; }
.person p { color: var(--ink-soft); margin: 0; max-width: 34ch; margin-inline: auto; }

/* ==================== CENÍK ==================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.price {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
}
.price--featured { border-color: var(--indigo); border-width: 2px; }
.price__badge {
  position: absolute; top: -.75rem; left: 1.6rem;
  background: var(--indigo); color: #fff;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 999px;
}
.price h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.price__amount { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); margin: 0 0 .75rem; }
.price__amount span { font-family: var(--font-sans); font-size: .95rem; color: var(--ink-soft); font-weight: 400; }
.price p:last-child { margin: 0; color: var(--ink-soft); }

/* ==================== KONTAKT ==================== */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.contact__item {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .15s;
}
a.contact__item:hover { border-color: var(--indigo); transform: translateY(-2px); }
.contact__label {
  display: block;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-soft); margin-bottom: .35rem;
}
.contact__value { font-size: 1.1rem; font-weight: 500; color: var(--ink); }

/* ==================== PATIČKA ==================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 2.5rem 0;
}
.footer__inner { display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
.footer p { margin: 0; }
.footer .nav__mark { vertical-align: middle; margin-right: .3rem; }
.footer__small { font-size: .85rem; color: var(--ink-soft); }

/* ==================== ANIMACE ODHALENÍ ==================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================== RESPONZIVITA — MOBIL ==================== */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gap) 1.25rem;
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { display: block; padding: .9rem .25rem; font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: .75rem; }
}
