/* =====================================================================
   CALISME.eu — statický onepage
   Foundation: design tokeny z Figmy (font Space Grotesk, barvy, typo, spacing)
   ===================================================================== */

/* ---- Font (self-hosted, Space Grotesk) ---- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 300; font-display: swap;
  src: url("/static/fonts/space-grotesk-300.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/space-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---- Design tokeny ---- */
:root {
  /* barvy */
  --color-white: #ffffff;
  --color-ink: #0f0f0f;
  --color-brand-blue: #070a14;   /* tmavá navy (hero, footer) */
  --color-accent-cyan: #22e0e6;  /* akcent */
  --color-lavender: #8aa0ff;
  --color-background: #cdcdcd;

  /* radius */
  --radius-pill: 999px;

  /* spacing škála (px) */
  --sp-4: 4px;   --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px;
  --sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px;
  --sp-56: 56px; --sp-64: 64px; --sp-80: 80px; --sp-96: 96px;
  --sp-112: 112px; --sp-128: 128px; --sp-184: 184px;

  /* layout */
  --container: 1280px;
  --gutter: 56px;   /* jednotný boční okraj všech sekcí, aby linie navazovaly */
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* motion (dle Figma prototype: Smart animate 300ms, custom bezier) */
  --ease-smart: cubic-bezier(0, 0.6, 0.3, 1);
  --dur-smart: 300ms;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-32);
}

/* ---- Typografická škála (Figma text styles) ---- */
.t-h1   { font-weight: 700; font-size: 180px; line-height: 0.86; letter-spacing: -0.03em; }
.t-h2   { font-weight: 700; font-size: 120px; line-height: 0.90; letter-spacing: -0.03em; }
.t-h3   { font-weight: 700; font-size: 56px;  line-height: 1.10; letter-spacing: -0.02em; }
.t-h4   { font-weight: 700; font-size: 26px;  line-height: 1.05; letter-spacing: 0; }
.t-lead { font-weight: 300; font-size: 40px;  line-height: 1.08; letter-spacing: -0.01em; }
.t-body-l    { font-weight: 400; font-size: 18px;   line-height: 1.60; }
.t-body      { font-weight: 400; font-size: 15px;   line-height: 1.62; }
.t-body-bold { font-weight: 700; font-size: 15px;   line-height: 1.30; }
.t-caption   { font-weight: 400; font-size: 13.5px; line-height: 1.00; }


/* =====================================================================
   KOMPONENTY (dle Figma stránky Components)
   ===================================================================== */

/* ---- Button (cyan pill CTA, default/hover) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-32);
  background: var(--color-accent-cyan);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: box-shadow var(--dur-smart) var(--ease-smart);
}
.btn:hover { box-shadow: 0 8px 24px -8px rgba(34, 224, 230, .5); }

/* icon: jedna ↗ šipka, na hoveru rotace o 45° po směru hodin (Smart animate) */
.btn__icon {
  display: inline-flex;
  height: 11px;
  transition: transform var(--dur-smart) var(--ease-smart);
}
.btn__icon svg { height: 11px; width: auto; }
.btn:hover .btn__icon { transform: rotate(45deg); }

/* ---- Nav Link (bold 15, 80% bílá -> bílá + podtržení na hover) ---- */
.nav-link {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-cyan);
  text-underline-offset: 3px;
}


/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  background: var(--color-brand-blue);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-inline: var(--gutter);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-24);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
}
.brand__logo {
  width: 32.43px;
  height: 33.6px;
  object-fit: contain;
}
.brand__name {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  color: var(--color-white);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}


/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  background: var(--color-brand-blue);
  border-bottom: 10px solid var(--color-accent-cyan);
  padding: var(--sp-112) var(--gutter) var(--sp-128);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
}
.hero__content {
  width: 1280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-64);
}
.hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  text-align: center;
}
.hero__subtitle {
  max-width: 826px;
}

/* avatar video */
.hero__media {
  position: relative;
  width: 1001.735px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__sound,
.hero__toggle {
  position: absolute;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(7, 10, 20, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-smart) var(--ease-smart),
              transform var(--dur-smart) var(--ease-smart),
              color var(--dur-smart) var(--ease-smart);
}
.hero__sound { right: 16px; }
.hero__toggle { left: 16px; }
.hero__sound:hover,
.hero__toggle:hover {
  background: var(--color-accent-cyan);
  border-color: transparent;
  color: var(--color-ink);
  transform: scale(1.06);
}
.hero__sound svg,
.hero__toggle svg { width: 20px; height: 20px; }
.hero__sound .hero__sound-on { display: none; }
.hero__sound.is-on .hero__sound-off { display: none; }
.hero__sound.is-on .hero__sound-on { display: block; }
.hero__toggle .hero__icon-play { display: none; }
.hero__toggle.is-paused .hero__icon-play { display: block; }
.hero__toggle.is-paused .hero__icon-pause { display: none; }

/* scroll indicator */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-white);
  cursor: pointer;
  transition: opacity var(--dur-smart) var(--ease-smart);
}
.hero__scroll:hover { opacity: .75; }
.hero__scroll:hover .hero__scroll-icon { transform: translateY(4px); }
.hero__scroll-text { width: 128px; }
.hero__scroll-text--l { text-align: right; }
.hero__scroll-text--r { text-align: left; }
.hero__scroll-icon {
  display: inline-flex;
  width: 40.743px;
  height: 63px;
  transition: transform var(--dur-smart) var(--ease-smart);
}
.hero__scroll-icon svg { width: 100%; height: 100%; }


/* =====================================================================
   CORE PILLARS
   ===================================================================== */
.pillars {
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
}
.pillars__inner {
  width: 100%;
  max-width: var(--container);
  border-bottom: 1px solid var(--color-background);
  border-left: 1px solid var(--color-background);
  border-right: 1px solid var(--color-background);
  padding: var(--sp-128) var(--sp-32) var(--sp-96);
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
}
.pillars__title { color: var(--color-ink); }

.pillars__cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}
.pillar-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px dashed var(--color-background);
}

/* two-column pillar row */
.pillar { display: flex; flex-direction: column; gap: var(--sp-32); }
.pillar-row { display: flex; gap: var(--sp-16); align-items: flex-start; }
.pillar-row > * { flex: 1 1 0; min-width: 0; }
.pillar__heading { color: var(--color-ink); }

.pillar__body { display: flex; flex-direction: column; gap: var(--sp-12); }
.pillar__body p,
.pillar__text,
.grant-item p { font-size: 15px; line-height: 1.62; color: var(--color-ink); }

/* research media grid */
.pillar-media { display: flex; gap: var(--sp-16); }
.pillar-media > * { flex: 1 1 0; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; }

/* cookieless YouTube facade */
.media-video { position: relative; }
.media-video__btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.media-video__btn img {
  transition: transform var(--dur-smart) var(--ease-smart), filter var(--dur-smart) var(--ease-smart);
}
.media-video__btn:hover img { transform: scale(1.03); filter: brightness(1.06); }
.media-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* cyber security content */
.pillar__content { display: flex; flex-direction: column; gap: var(--sp-48); }
.pillar__content--grant { gap: var(--sp-40); }
.cyber-text { display: flex; flex-direction: column; gap: var(--sp-24); }

.iso-tags {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.iso-tag {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
}
.iso-tag__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--color-lavender);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iso-tag__icon svg { width: auto; height: 100%; }
.iso-tag__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.iso-tag__label {
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #000;
}
.iso-pill {
  flex: 0 0 auto;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-pill);
  padding: var(--sp-4) var(--sp-8);
  font-size: 13.5px;
  line-height: 1;
  color: var(--color-ink);
  white-space: nowrap;
}
.pillar__note {
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-brand-blue);
}
.pillar__note strong { font-weight: 700; }

/* grant items */
.grant-items { display: flex; flex-direction: column; gap: var(--sp-32); }
.grant-item { display: flex; flex-direction: column; gap: var(--sp-12); }
.grant-item h4 { color: var(--color-ink); }


/* =====================================================================
   TEAM
   ===================================================================== */
.team {
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
}
.team__inner {
  width: 100%;
  max-width: var(--container);
  border-left: 1px solid var(--color-background);
  border-right: 1px solid var(--color-background);
  padding: var(--sp-80) var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
}
.team__title { color: var(--color-ink); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 184px;
}
.member {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
}
.member__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  overflow: hidden;
  background: #f8f8f8;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.member__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  text-align: center;
}
.member__name {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  color: var(--color-ink);
}
.member__role {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--color-lavender);
}


/* =====================================================================
   RECOGNITION (tmavá sekce)
   ===================================================================== */
.recognition {
  background: var(--color-brand-blue);
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
}
.recognition__card {
  width: 100%;
  max-width: var(--container);
  border-left: 1px solid rgba(255, 255, 255, .25);
  border-right: 1px solid rgba(255, 255, 255, .25);
  padding: var(--sp-80) var(--sp-32) var(--sp-80) 0;
  display: flex;
  gap: var(--sp-48);
  align-items: center;
}
.recognition__photo {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 642 / 495;
  overflow: hidden;
}
.recognition__photo img { width: 100%; height: 100%; object-fit: cover; }
.recognition__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  color: var(--color-white);
}
.recognition__text h3 { color: var(--color-white); }
.recognition__text p { font-size: 18px; line-height: 1.6; color: var(--color-white); }


/* =====================================================================
   FOOTER (tmavá sekce)
   ===================================================================== */
.footer {
  background: var(--color-brand-blue);
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
}
.footer__inner {
  width: 100%;
  max-width: var(--container);
  border-left: 1px solid rgba(255, 255, 255, .25);
  border-right: 1px solid rgba(255, 255, 255, .25);
  padding: var(--sp-96) var(--sp-32) var(--sp-56);
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
  color: var(--color-white);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-16); }
.footer__logo { color: var(--color-white); }
.footer__slogan { font-size: 15px; line-height: 1.62; color: var(--color-white); }

.footer__columns { display: flex; gap: var(--sp-56); align-items: flex-start; }
.footer__list { display: flex; flex-direction: column; gap: var(--sp-8); width: 368px; }

.footer-link,
.social-link {
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  width: max-content;
}
.footer-link:hover,
.social-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent-cyan);
  text-underline-offset: 3px;
}
.social-link span { font-size: 13px; }

.footer__legal { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-8); }
.footer__contact {
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-white);
  width: max-content;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-cyan);
  text-underline-offset: 2px;
}
.footer__copyright { font-size: 13.5px; line-height: 1; opacity: .5; }


/* =====================================================================
   HAMBURGER (mobil) — skrytý na desktopu
   ===================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--dur-smart) var(--ease-smart), opacity .15s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* ---- Tablet (≤1024) ---- */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }

  .t-h1 { font-size: 120px; }
  .t-h2 { font-size: 84px; }
  .t-h3 { font-size: 44px; }
  .t-lead { font-size: 32px; }

  .hero { padding: 88px var(--gutter) 96px; }
  .pillars__inner { padding: 96px 28px 72px; }
  .team__inner { padding: 72px 28px; }
  .footer__inner { padding: 80px 28px 48px; }

  /* dvousloupcové pilíře -> pod sebe */
  .pillar-row { flex-direction: column; gap: var(--sp-24); }

  /* Recognition -> pod sebe */
  .recognition__card {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-32);
    padding: 64px 28px;
  }
  .recognition__photo,
  .recognition__text { flex: 0 0 auto; }

  .team__grid { column-gap: 56px; }

  /* footer sloupce zalamují už od tabletu (jinak pod ~1000px přetéká) */
  .footer__columns { flex-wrap: wrap; gap: 40px; }
  .footer__list { width: auto; min-width: 40%; }
  .footer__legal { flex: 1 1 100%; }
}

/* ---- Tablet na výšku (≤768) ---- */
@media (max-width: 768px) {
  :root { --gutter: 28px; }

  .t-h1 { font-size: 84px; }
  .t-h2 { font-size: 58px; }
  .t-h3 { font-size: 34px; }
  .t-h4 { font-size: 22px; }
  .t-lead { font-size: 26px; }
  .pillar__body p,
  .pillar__text,
  .pillar__note,
  .grant-item p,
  .recognition__text p,
  .footer__slogan { font-size: 16px; }

  .hero { padding: 72px var(--gutter) 80px; }
  .hero__content { gap: 48px; }
  .pillars__inner { padding: 72px 24px 56px; }
  .team__inner { padding: 64px 24px; }
  .footer__inner { padding: 64px 24px 40px; }

  /* research media -> pod sebe */
  .pillar-media { flex-direction: column; }
  .pillar-media > * { flex: 0 0 auto; height: auto; aspect-ratio: 16 / 9; }

  /* ISO tagy: ikona zůstává vlevo, zalomí se jen přetékající text (ne celé pod ikonu) */
  .iso-tag__content { flex-wrap: wrap; align-items: flex-start; }

  /* tým: menší mezery */
  .team__grid { column-gap: 40px; row-gap: 48px; }
}

/* ---- Mobil (≤560) ---- */
@media (max-width: 560px) {
  :root { --gutter: 16px; }

  .t-h1 { font-size: 56px; }
  .t-h2 { font-size: 40px; }
  .t-h3 { font-size: 28px; }
  .t-lead { font-size: 21px; }

  /* sticky header + hamburger */
  .site-header { position: sticky; top: 0; z-index: 100; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-20, 20px);
    padding: 20px 20px 28px;
    background: var(--color-brand-blue);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 4px; }

  .site-header__inner { padding-block: 16px; }

  /* hero */
  .hero { padding: 48px var(--gutter) 56px; }
  .hero__content { gap: 36px; }
  .hero__scroll { font-size: 15px; gap: 12px; }
  .hero__scroll-text { width: auto; }

  /* sekce paddingy */
  .pillars__inner { padding: 56px 20px 48px; }
  .team__inner { padding: 56px 20px; }
  .footer__inner { padding: 56px 20px 36px; }
  .recognition__card { padding: 48px 20px; }

  /* tým -> 1 sloupec */
  .team__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .member__photo { max-width: 240px; margin-inline: auto; }

  /* footer -> pod sebe */
  .footer__columns { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 32px; }
  .footer__list,
  .footer__legal { width: 100%; min-width: 0; flex: 0 0 auto; }
}
