/* =================================================================
   Fonty hostované u nás (staženo z Google Fonts, subsetováno na
   latin + latin-ext). Žádný požadavek na fonts.googleapis.com ani
   fonts.gstatic.com – rychlejší a bez odesílání IP návštěvníka Googlu.
   Inter a Bricolage jsou variabilní: jeden soubor = všechny váhy.
   ================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plexmono-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =================================================================
   The MarketingIn – společné styly webu (hlavička + patička).
   Prefix: site-  (fragmenty nástrojů používají tmi- , nesmí se to bít)

   Proměnné jsou schválně NE na :root, ale na .site-header / .site-footer,
   aby nemohly přetéct do fragmentů, které si vlastní --teal/--gold
   definují samy na .tmi.
   ================================================================= */

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2B2B2B;
  background: #F0EADD;
  -webkit-font-smoothing: antialiased;
}

.site-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #C49A5E;
  color: #123A33;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.site-skip:focus { left: 0; }

/* ---------------------------------------------------------------- HLAVIČKA */

.site-header {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-cream: #F0EADD;
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;

  position: relative;
  z-index: 50;
  background: var(--site-teal-deep);
  color: var(--site-cream);
  font-family: var(--site-body);
}

.site-header__bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--site-disp);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: #FFFFFF; }
.site-logo__in { color: var(--site-gold); }
.site-logo:focus-visible,
.site-nav__link:focus-visible,
.site-burger:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(240, 234, 221, 0.88);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.site-nav__link:hover {
  color: #FFFFFF;
  background: rgba(240, 234, 221, 0.09);
}
.site-nav__link[aria-current="page"] { color: var(--site-gold); }

.site-nav__link--cta {
  margin-left: 6px;
  background: var(--site-gold);
  color: var(--site-teal-deep);
  font-weight: 600;
  white-space: nowrap;
}
.site-nav__link--cta:hover {
  background: #D8B985;
  color: var(--site-teal-deep);
}

/* hamburger – schovaný na desktopu */
.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(240, 234, 221, 0.28);
  border-radius: 9px;
  background: transparent;
  color: var(--site-cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.site-burger__ic { display: block; width: 22px; height: 22px; }
.site-burger__ic line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}
.site-header.is-open .site-burger__ic .l1 { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .site-burger__ic .l2 { opacity: 0; }
.site-header.is-open .site-burger__ic .l3 { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 780px) {
  .site-burger { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    background: var(--site-teal-deep);
    border-top: 1px solid rgba(240, 234, 221, 0.14);
    box-shadow: 0 18px 34px rgba(18, 58, 51, 0.28);

    /* zavřeno: nepřístupné klávesnicí, ale animovatelné */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }

  .site-nav__link {
    padding: 13px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .site-nav__link--cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}

/* Když uživatel nemá JS, menu ať je pořád dostupné (jen zabalené pod sebe). */
@media (max-width: 780px) {
  .site-header.no-js .site-burger { display: none; }
  .site-header.no-js .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0 0 14px;
    background: transparent;
    border-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-header.no-js .site-header__bar {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding-top: 14px;
    gap: 6px;
  }
}

/* ---------------------------------------------------------------- PATIČKA */

.site-footer {
  --site-teal: #1A4A42;
  --site-teal-deep: #123A33;
  --site-gold: #C49A5E;
  --site-cream: #F0EADD;
  --site-disp: 'Bricolage Grotesque', -apple-system, sans-serif;
  --site-body: 'Inter', -apple-system, sans-serif;
  --site-mono: 'IBM Plex Mono', monospace;

  background: var(--site-teal-deep);
  color: rgba(240, 234, 221, 0.78);
  font-family: var(--site-body);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(240, 234, 221, 0.14);
}
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__wrap { padding-top: 44px; }
}

.site-footer .site-logo { font-size: 1.3rem; }

.site-footer__tagline {
  margin: 12px 0 0;
  max-width: 34ch;
  color: rgba(240, 234, 221, 0.62);
}

.site-footer__h {
  margin: 0 0 14px;
  font-family: var(--site-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-gold);
}

.site-footer address {
  font-style: normal;
  margin: 0;
}

.site-footer a {
  color: rgba(240, 234, 221, 0.82);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer a:hover { color: var(--site-gold); }
.site-footer a:focus-visible {
  outline: 2px solid var(--site-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__link--strong {
  color: #FFFFFF;
  font-weight: 600;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__list li { margin-bottom: 6px; }

/* řádek s odkazy na všech 13 nástrojů */
.site-footer__tools { padding: 28px 0 24px; }

.site-footer__tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__tools-links li { display: inline-flex; align-items: center; }
.site-footer__tools-links li::after {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: rgba(240, 234, 221, 0.26);
}
.site-footer__tools-links li:last-child::after { display: none; }
.site-footer__tools-links a { font-size: 0.87rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 234, 221, 0.14);
  font-size: 0.78rem;
  color: rgba(240, 234, 221, 0.5);
}
.site-footer__bottom p { margin: 0; }
