/*
 * GEOSAN INVESTIČNÍ front styles — ported from the old site's assets/css/style.css,
 * remapped onto the base layout's semantic classes (site-header, site-nav, site-main, site-footer).
 */

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

:root {
  --front-max-width: 1198px;
  --front-text: #323030;
  --front-muted: #676767;
  --front-bg: #fff;
  --front-accent: #00377d;
  --front-border: #dde1e4;
  --front-section-bg: #f1eeee;
  /* Below this, the nav switches to the burger menu (read by nav.js too). */
  --nav-breakpoint: 1050px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--front-text);
  background: var(--front-bg);
  font-family: Arial, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--front-accent);
  text-decoration: underline;
}

a:hover {
  color: #000;
}

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

.container {
  width: 100%;
  max-width: var(--front-max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header + navigation */
.site-header {
  border-bottom: none;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.site-header__brand {
  display: block;
  font-weight: 700;
  color: var(--front-text);
  text-decoration: none;
}

.site-header__brand img {
  display: block;
}

/* Menus — shared markup from the {menuList} block (class="menu" / "submenu") */
.menu,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu {
  display: flex;
  flex-wrap: wrap;
}

.site-nav .menu > li {
  position: relative;
  border-right: 1px solid var(--front-border);
}

.site-nav .menu > li > a,
.site-nav .menu > li > span {
  display: block;
  height: 84px;
  line-height: 84px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  color: #2a2a28;
  text-decoration: none;
}

.site-nav .menu > li.is-active > a {
  background-color: #000;
  color: #fff;
}

.site-nav .menu > li > a:hover,
.site-nav .menu > li:hover {
  background-color: #f7f5f4;
}

.site-nav .menu > li.is-active > a:hover {
  background-color: #000;
  color: #fff;
}

.site-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 100%;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--front-border);
  white-space: nowrap;
}

.site-nav .menu > li:hover .submenu {
  display: flex;
}

.site-nav .submenu a,
.site-nav .submenu span {
  display: block;
  padding: 0.5rem 1rem;
  line-height: 1.4;
  height: auto;
  font-weight: 400;
  font-size: 0.9375rem;
}

/* Nav burger — icon animation ported from geosan-group-web's .hamburgerCross */
.nav-opener {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.hamburger-cross {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 1rem;
}

.hamburger-cross span,
.hamburger-cross::before,
.hamburger-cross::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: top 0.08s ease-in-out, transform 0.12s ease-in-out, opacity 0s 0.08s linear;
}

.hamburger-cross::before {
  top: 0;
}

.hamburger-cross span {
  top: 0.4375rem;
}

.hamburger-cross::after {
  top: 0.875rem;
}

.nav-opener.is-active .hamburger-cross::before {
  top: 0.4375rem;
  transform: rotate(-45deg);
}

.nav-opener.is-active .hamburger-cross span {
  opacity: 0;
}

.nav-opener.is-active .hamburger-cross::after {
  top: 0.4375rem;
  transform: rotate(45deg);
}

/* Mobile nav — below --nav-breakpoint the menu collapses into a burger-opened panel */
@media (max-width: 1050px) {
  .site-header__inner {
    position: relative;
  }

  .nav-opener {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--front-border);
    border-top: none;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0s;
  }

  .site-nav .menu {
    flex-direction: column;
  }

  .site-nav .menu > li {
    border-right: none;
    border-bottom: 1px solid var(--front-border);
  }

  .site-nav .menu > li > a,
  .site-nav .menu > li > span {
    height: auto;
    line-height: 1.4;
    padding: 0.875rem 1.25rem;
  }

  /* No hover on touch — submenus stay statically expanded under their parent */
  .site-nav .submenu {
    position: static;
    display: flex;
    min-width: 0;
    border: none;
    background: #f7f5f4;
  }
}

/* Main */
.site-main {
  background-color: var(--front-section-bg);
  padding-block: 40px 60px;
}

/* Error pages */
.error-page {
  padding-block: 3rem;
  text-align: center;
}

.error-page__code {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  color: var(--front-muted);
  line-height: 1;
}

.error-page__title {
  margin-top: 0.5rem;
}

.page__title {
  margin-top: 0;
  margin-bottom: 34px;
  font-size: 35px;
  line-height: 40px;
}

.page__body {
  font-size: 16px;
  line-height: 25px;
}

.page__body > *:first-child {
  margin-top: 0;
}

.page__body p {
  margin: 16px 0;
}

.page__body img {
  max-width: 100%;
  height: auto;
}

.page__body img[align="left"],
.page__body img[style*="float: left"],
.page__body img[style*="float:left"] {
  margin: 0 20px 10px 0;
}

.page__body img[align="right"],
.page__body img[style*="float: right"],
.page__body img[style*="float:right"] {
  margin: 0 0 10px 20px;
}

.page__body ul {
  margin: 23px;
  padding: 0;
}

.page__body ul > li {
  list-style: none;
  background: url(images/list.png) left 10px no-repeat;
  padding-left: 25px;
  line-height: 25px;
  margin-bottom: 5px;
}

.document-list {
  margin: 23px 0 0;
  padding: 0;
}

.document-list__item {
  list-style: none;
  background: url(images/list.png) left 10px no-repeat;
  padding-left: 25px;
  line-height: 25px;
  font-size: 16px;
  margin-bottom: 5px;
}

.page__body table {
  border-collapse: collapse;
  width: 100%;
}

.page__body th,
.page__body td {
  border: 1px solid var(--front-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

/* CTA button, e.g. "read more" links inside page content */
.btn-more {
  display: inline-block;
  background: var(--front-accent) url(images/more.png) right top no-repeat;
  padding: 0 71px 0 24px;
  height: 41px;
  line-height: 41px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.btn-more:hover {
  background-color: #0656bb;
  background-position: right bottom;
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--front-border);
  color: var(--front-muted);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__credit {
  margin-left: auto;
}

.site-footer-nav .menu,
.site-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #000;
  text-decoration: none;
}

/* footer submenus: flatten inline, they rarely make sense in a footer */
.site-footer-nav .submenu {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-left: 0.75rem;
}
