/* ==========================================================================
   LDS Lorencova – statická HTML/CSS verze webu lds.nwt.cz
   ========================================================================== */

:root {
  --color-text: #404040;
  --color-heading: #000;
  --color-link: #0074db;
  --color-bg: #fff;
  --color-bg-alt: #f4f4f4;
  --color-header: #000;
  --color-icon-bg: #333;

  --container: 1120px;
  --section-padding-y: 75px;
  --gap: 20px;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-link); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.6;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2147483647;
  padding: 10px 20px;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------- hlavička -- */

.site-header {
  position: relative;
  width: 100%;
  background-color: var(--color-header);
  z-index: 1000;
}

/* Sticky chování jako na původním webu: po odrolování se hlavička přilepí. */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  animation: header-fade-in .3s ease;
}

@keyframes header-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.site-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li { white-space: nowrap; }
.nav-list > li:not(:last-child) { margin-right: 30px; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease-in-out;
}

.nav-list a:hover,
.nav-list a:focus-visible { border-bottom-color: currentColor; }

/* Přepínače mobilního menu – na desktopu skryté */
.nav-toggle,
.nav-close {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #fff;
  cursor: pointer;
}

.nav-toggle { text-transform: uppercase; }

.nav-toggle__icon,
.nav-close__icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* --------------------------------------------------------------- sekce -- */

.section {
  width: 100%;
  background-color: transparent;
}

.section--grey { background-color: var(--color-bg-alt); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-padding-y) 20px;
}

.container--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Sekce s mapou má na původním webu jen minimální horní a nulový spodní pad. */
.container--map { padding-top: 5px; padding-bottom: 0; }

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lead,
.text-block { margin-top: 20px; }

.map-image { width: 284px; }

/* --------------------------------------------------------------- mřížka -- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: var(--gap);
  margin-top: 20px;
}

/* -------------------------------------------------------------- karty -- */

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px;
  background-color: #fff;
}

.card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card__title {
  margin-left: 15px;
  font-size: 20px;
  font-weight: 400;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--color-icon-bg);
  border-radius: 50%;
  background-color: var(--color-icon-bg);
  color: #fff;
}

.icon-circle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.doc-link {
  display: block;
  margin-top: 15px;
  text-decoration: underline;
}

.doc-link:hover,
.doc-link:focus-visible { text-decoration: none; }

/* ------------------------------------------------------------ kontakty -- */

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background-color: var(--color-bg-alt);
}

.icon-plain { display: flex; color: var(--color-text); }

.icon-plain svg {
  width: 55px;
  height: 55px;
  fill: currentColor;
}

.contact-card__title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

.contact-card__value {
  font-size: 3rem;
  font-weight: 200;
  line-height: 1.6;
}

.contact-card__value a { color: inherit; }
.contact-card__value a:hover,
.contact-card__value a:focus-visible { text-decoration: underline; }

/* -------------------------------------------------------- formátovaný text -- */

.rich-text { margin-top: 20px; }
.rich-text p { margin: 0 0 16px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul { margin: 16px 0; padding-left: 40px; }

/* -------------------------------------------------------------- patička -- */

.site-footer { background-color: var(--color-bg-alt); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
}

.footer-col a:hover,
.footer-col a:focus-visible { text-decoration: underline; }

.mt-25 { margin-top: 25px; }
.mt-15 { margin-top: 15px; }

.text-block--small { margin-top: 0; font-size: 15px; }

/* ------------------------------------------------------------ responzivita -- */

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2147483642;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: #000;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }

  .site-nav.is-open { visibility: visible; opacity: 1; }

  .site-nav.is-open .nav-close {
    display: inline-flex;
    position: absolute;
    top: 28px;
    right: 20px;
    font-weight: 300;
  }

  .nav-list {
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
    min-height: 32px;
    text-align: center;
  }

  .nav-list > li:not(:last-child) { margin-right: 0; }

  .nav-list a {
    width: 100%;
    justify-content: center;
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
  .grid-2 { grid-template-columns: repeat(1, minmax(200px, 1fr)); }

  .site-nav { background-color: #fff; }
  .site-nav .nav-close { color: #000; }
  .nav-list a { color: #000; font-size: 18px; padding-bottom: 10px; }
  .nav-list a:hover,
  .nav-list a:focus-visible { color: #111; }
}

@media (max-width: 479px) {
  h1 { font-size: 30px; }
  .contact-card__value { font-size: 2rem; }
  .icon-plain svg { width: 40px; height: 40px; }
}
