/* ═══════════════════════════════════════════
   In Time – Modernised Design System
   Paleta: #7E4F9B | #837D8C | #333
   Fonty:  Righteous (nadpisy) | Open Sans (text)
   ═══════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Righteous&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");

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

:root {
  --purple: #7e4f9b;
  --purple-dark: #5c3572;
  --purple-light: #f3eef8;
  --purple-mid: #a97fc3;
  --purple-glass: rgba(126, 79, 155, 0.05);
  --grey: #837d8c;
  --dark: #2d1d3a;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --border: #e2d9f0;
  --bg: #faf8fc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow-sm: 0 2px 8px rgba(126, 79, 155, 0.08);
  --shadow-md: 0 8px 24px rgba(126, 79, 155, 0.12);
  --shadow-lg: 0 12px 32px rgba(126, 79, 155, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Kotvy – kompenzace sticky headeru ── */
section[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ── HEADER / NAV ── */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--purple);
  height: var(--header-h);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.nav-logo img {
  height: 48px;
  display: block;
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

nav {
  margin-left: auto;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}
nav > ul > li {
  position: relative;
}

nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

nav > ul > li > a:hover {
  color: var(--purple);
  background: var(--purple-light);
}

nav > ul > li > a.active {
  color: var(--purple);
  position: relative;
}

nav > ul > li > a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

/* dropdown */
nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  list-style: none;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

nav ul li:hover > ul {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

nav ul ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav ul ul li a:hover {
  background: var(--purple-light);
  color: var(--purple);
}

/* ── Zpět tlačítko ── */
.nav-back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border: 2px solid var(--purple);
  border-radius: 30px;
  transition: var(--transition);
}

.nav-back:hover {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(126, 79, 155, 0.25);
}

/* hamburger */
#hamburger {
  display: flex;
  margin-left: auto; /* Push to right in flex container */
  position: relative;
  z-index: 1200;
}
@media (min-width: 993px) {
  #hamburger {
    display: none;
  }
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--purple-light);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--purple-mid);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(
    135deg,
    var(--purple-dark) 0%,
    var(--purple) 50%,
    #a97fc3 100%
  );
  padding: 140px 24px 120px;
  text-align: center;
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="white" fill-opacity="0.05" fill-rule="evenodd"><circle cx="3" cy="3" r="3"/><circle cx="13" cy="13" r="3"/></g></svg>');
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: "Righteous", sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  opacity: 0.9;
  font-style: italic;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(
    120deg,
    var(--purple-dark) 0%,
    var(--purple) 100%
  );
  padding: 60px 24px;
  color: var(--white);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.page-hero h1 {
  font-family: "Righteous", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
section.page-section {
  padding: 100px 0;
}
section.page-section:nth-child(even) {
  background: var(--purple-glass);
}

/* ── NADPISY ── */
h2.section-title {
  font-family: "Righteous", sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--purple);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--purple-mid);
  border-radius: 2px;
}

h3.sub-title {
  font-family: "Righteous", sans-serif;
  font-size: 22px;
  color: var(--dark);
  margin: 40px 0 20px;
}

h2.eduklip-group-title {
  margin-bottom: 1rem;
}

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.info-cell {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.info-cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-mid);
}

.info-cell .label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 12px;
}

.info-cell .value {
  font-size: 16px;
  color: var(--dark);
  font-weight: 500;
}

/* ── ANOTACE ── */
.anotace {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.anotace::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: var(--purple);
}

.anotace h3 {
  font-family: "Righteous", sans-serif;
  font-size: 20px;
  color: var(--purple);
  margin-bottom: 20px;
}

/* ── TLAČÍTKA ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(126, 79, 155, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13.5px;
}

h3,
h4 {
  margin-bottom: 1rem;
}

.text-muted {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── TÝM ── */
.team-section {
  margin-top: 48px;
  margin-bottom: 56px;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.team-pill {
  background: var(--purple-light);
  color: var(--purple-dark);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-pill:hover {
  background: var(--purple-mid);
  color: var(--white);
  border-color: var(--purple-mid);
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-mid);
}

.card h3 {
  font-family: "Righteous", sans-serif;
  font-size: 20px;
  color: var(--purple);
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 24px;
}

/* ── WORKSHOP LIST ── */
.ws-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.ws-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-size: 16px;
}

.ws-list li::before {
  content: "✦";
  color: var(--purple);
  font-size: 20px;
  line-height: 1;
}

/* ── UPOZORNĚNÍ ── */
.notice {
  background: #fdf6ff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--purple-mid);
  padding: 24px 32px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  color: var(--dark);
  font-weight: 500;
}

/* ── TEMATICKÉ SEKCE ── */
.theme-block {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.theme-block-header {
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-mid) 100%);
  padding: 24px 32px;
  color: var(--white);
}

.theme-block-header h2 {
  font-family: "Righteous", sans-serif;
  font-size: 24px;
}

.theme-block-body {
  padding: 32px;
}

.material-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--purple-glass);
}

.material-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.material-label {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.material-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── EDUKLIPY ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-mid);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-card-title {
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

/* ── PROPAGACE ── */
.prop-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ── EDUKAČNÍ MATERIÁLY (přehled) ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.edu-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.edu-card-icon {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.edu-card-body {
  padding: 24px;
}
.edu-card-body strong {
  font-family: "Righteous", sans-serif;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
}

/* ── KONTAKT ── */
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border);
}

.contact-box .name {
  font-family: "Righteous", sans-serif;
  font-size: 24px;
  color: var(--purple);
  margin-bottom: 20px;
}

.contact-box a {
  color: var(--text);
  text-decoration: none;
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.contact-box a:hover {
  color: var(--purple);
}

/* ── PATIČKA ── */
footer {
  background: #1a1125;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logos-wrap {
  background: var(--white);
  padding: 60px 24px;
}

.footer-logos {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 48px;
}

.footer-logos img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(10%);
  transition: var(--transition);
}

.footer-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.footer-note {
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* ── RESPONZIVITA ── */
@media (max-width: 992px) {
  :root {
    --header-h: 64px;
  }
  .nav-inner {
    padding: 0 16px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 40px;
    z-index: 1100;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0;
    overflow-y: auto;
  }

  nav.active {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav > ul > li {
    width: 100%;
    margin-bottom: 8px;
  }

  nav > ul > li > a {
    font-size: 24px;
    font-weight: 700;
    padding: 20px;
    text-align: center;
    width: 100%;
    border-bottom: none;
  }

  nav > ul > li > a.active::after {
    left: 25%;
    right: 25%;
    bottom: 10px;
  }

  nav ul ul {
    position: static;
    display: block; /* Always visible on mobile */
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  nav ul ul li a {
    font-size: 18px;
    padding: 10px 12px;
    color: var(--purple-mid);
    opacity: 0.8;
  }

  /* Hierarchical marker for sub-items */
  nav ul ul li a::before {
    content: "↳";
    margin-right: 8px;
    font-size: 0.9em;
  }

  nav ul li.active > a {
    color: var(--purple);
  }
  nav ul li.open > a {
    color: var(--purple);
  }

  .hamburger {
    display: flex;
  }

  .info-grid,
  .card-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .hero {
    padding: 100px 24px 80px;
  }
  section.page-section {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .footer-logos {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}
