/* ==========================================================================
   KUMO Transport — Investment page (redesign dle Figmy, frame "Investice" 1:1043)
   Tokeny: bg #F9F8F7, karta #F2F1EF, ink #330000, šedá #666, žlutá #FFBE00,
   radius 32px, font Clash Grotesk (lokálně, assets/fonts/)
   ========================================================================== */

:root {
  --inv-bg:     #F9F8F7;
  --inv-card:   #F2F1EF;
  --inv-ink:    #330000;
  --inv-gray:   #666666;
  --inv-yellow: #FFBE00;
  --inv-radius: 32px;
  --inv-font:   'Clash Grotesk', 'Segoe UI', sans-serif;
  --inv-content: 1143px;
}

html {
  background: var(--inv-bg);
}

body {
  color: var(--inv-ink);
  font-family: var(--inv-font);
  font-weight: 400;
  background: var(--inv-bg);
}

.invest-wrapper {
  padding-top: 210px;
}

/* ===== HEADER ===== */
.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: rgba(249, 248, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--inv-ink);
}

/* hlavička 1:1 jako na rootu (styles.css): plná šířka, padding 2rem 10rem, gap 2rem, 18px */
.header-container {
  margin: 0 auto;
  padding: 2rem 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.header-overlay nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-overlay nav a,
.header-overlay nav a:visited {
  font-family: 'Geist', 'Segoe UI', sans-serif;
  font-size: 18px;
  color: var(--inv-ink);
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-overlay nav a:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.header-overlay .logo {
  display: flex;
  align-items: center;
}

.header-overlay .logo img {
  height: 45px;
  width: auto;
}

.header-overlay .logo-lockup {
  color: var(--inv-ink);
}

.invest-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Geist', 'Segoe UI', sans-serif;
  font-weight: 500;
  margin-left: 0;
  color: var(--inv-ink);
  cursor: pointer;
}

/* globus dle návrhu (nahrazuje FA ikonu) */
.invest-language-switcher i {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0;
  background: url('../img/invest/icon-globe.svg') no-repeat center / contain;
}

.invest-language-switcher i::before {
  content: none;
}

/* ===== SEKCE PROGRAMU ===== */
.invest-section {
  padding: 0 24px;
}

.invest-container {
  max-width: var(--inv-content);
  margin: 0 auto;
}

.invest-container + .invest-container {
  margin-top: 128px;
}

.invest-program-title {
  font-family: var(--inv-font);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.3;
  color: var(--inv-ink);
  margin: 0 0 48px;
}

.invest-program-description {
  font-family: var(--inv-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-gray);
  margin-bottom: 48px;
}

/* ===== AKORDEON DOKUMENTŮ ===== */
.doc-section {
  background: var(--inv-card);
  border-radius: var(--inv-radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.doc-toggle {
  width: 100%;
  padding: 55px 76px 55px 72px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  font-family: var(--inv-font);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--inv-ink);
}

/* kulaté tlačítko se šipkou — přesná SVG z Figmy */
.chevron-circle {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: url('../img/invest/acc-circle-closed.svg') no-repeat center / contain;
  transition: transform 0.3s ease;
}

.doc-section.active .chevron-circle {
  background: url('../img/invest/acc-circle-open.svg') no-repeat center / contain;
}

.chevron-circle i {
  display: none;
}

.doc-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 76px 0 72px;
  transition: max-height 0.4s ease, padding-bottom 0.4s ease;
}

.doc-section.active .doc-content {
  max-height: 1200px;
  padding-bottom: 48px;
}

.invest-doc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.invest-doc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-bottom: none;
}

.invest-doc-list li > span {
  font-family: var(--inv-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-gray);
}

.invest-doc-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--inv-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-ink);
  text-decoration: none;
  white-space: nowrap;
}

/* ikona stažení dle návrhu (nahrazuje FA) */
.invest-doc-link i {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 0;
  background: url('../img/invest/icon-download.svg') no-repeat center / contain;
}

.invest-doc-link i::before {
  content: none;
}

.invest-doc-link:hover {
  text-decoration: underline;
}

/* ===== KONTAKTNÍ OSOBY ===== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--inv-content);
  margin: 0 auto;
  padding: 128px 24px;
  position: relative;
  z-index: 3;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 73px;
  text-align: left;
  max-width: none;
  transition: none;
}

.contact-person:hover {
  transform: none;
}

.contact-person img {
  width: 194px;
  height: 195px;
  border-radius: var(--inv-radius);
  object-fit: cover;
  margin-bottom: 0;
  box-shadow: none;
  flex: none;
}

.contact-person h3 {
  font-family: var(--inv-font);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--inv-ink);
  margin: 0 0 2px;
}

.contact-person p {
  font-family: var(--inv-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-gray);
  margin: 0;
}

/* role + mezera před telefonem */
.contact-person p:nth-of-type(1) {
  margin-bottom: 40px;
}

/* ===== KONTAKTNÍ KARTA + FORMULÁŘ ===== */
#contact2 {
  padding: 0 24px;
  margin-bottom: 140px;
}

#contact2 .section-container {
  max-width: calc(var(--inv-content) + 0px);
  margin: 0 auto;
}

#contact2 .contact-card {
  background: var(--inv-card) !important;
  border-radius: var(--inv-radius) !important;
  box-shadow: none;
  display: flex;
  overflow: hidden !important;
  min-height: 652px;
}

#contact2 .contact-left {
  flex: 0 0 49%;
  padding: 76px 71px !important;
  position: relative;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

/* dekorativní kruhový vzor (Figma Frame 102) */
#contact2 .contact-left::after {
  content: '';
  position: absolute;
  left: 153px;
  top: 245px;
  width: 421px;
  height: 421px;
  background: url('../img/invest/contact-decor.png') no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

#contact2 .grid-overlay {
  display: none;
}

#contact2 .section-label {
  font-family: var(--inv-font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 6px !important;
  text-transform: uppercase;
  color: var(--inv-ink) !important;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

#contact2 .section-headline {
  font-family: var(--inv-font);
  font-weight: 500 !important;
  font-size: 42px !important;
  line-height: 1.3;
  color: var(--inv-ink);
  margin: 0 0 0 !important;
  position: relative;
  z-index: 1;
}

#contact2 .contact-left > p {
  font-family: var(--inv-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-gray) !important;
  position: relative;
  z-index: 1;
}

/* adresa — dle návrhu sedí níž, nad dekorem */
#contact2 .contact-left > p:nth-of-type(2) {
  margin-top: 168px;
  margin-bottom: 0 !important;
  white-space: pre-line;
}

#contact2 .contact-right {
  flex: 1;
  background: #ffffff;
  padding: 76px 71px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#contact2 form {
  gap: 24px !important;
  max-width: 440px !important;
}

.contact-input {
  background: var(--inv-bg);
  border: none;
  padding: 15px 24px;
  font-family: var(--inv-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inv-ink);
  border-radius: 12px;
  box-shadow: none;
}

.contact-input::placeholder {
  color: var(--inv-ink);
  opacity: 1;
}

textarea.contact-input {
  min-height: 188px;
}

.contact-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--inv-yellow);
}

#contact2 label {
  font-family: var(--inv-font);
  color: var(--inv-gray) !important;
}

#contact2 label a {
  color: var(--inv-gray);
}

#contact2 .button-yellow.contact-form {
  background: var(--inv-yellow) !important;
  color: var(--inv-ink) !important;
  font-family: var(--inv-font);
  font-weight: 500 !important;
  font-size: 16px;
  line-height: 1.5;
  border: none;
  border-radius: 39px !important;
  padding: 15px 24px !important;
  cursor: pointer;
  transition: filter 0.2s ease;
}

#contact2 .button-yellow.contact-form:hover {
  filter: brightness(0.95);
}

/* patička 1:1 jako na rootu — font Geist (jinak dědí Clash z body) */
.footer,
.footer a {
  font-family: 'Geist', 'Segoe UI', sans-serif;
}

/* ===== MOBILNÍ MENU (mechanika zachována) ===== */
.desktop-only {
  display: flex;
  align-items: center;
}

.mobile-only {
  display: none;
}

.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.header-mobile,
.mobile-topbar,
.mobile-menu {
  display: none;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
}

.mobile-menu.show {
  display: flex;
  z-index: 999;
  text-align: center;
}

.menu-overlay.show {
  display: block;
}

@media (min-width: 1200px) {
  .mobile-topbar,
  .mobile-menu,
  .menu-toggle,
  .logo.mobile-only {
    display: none;
  }
}

/* ===== MOBIL ===== */
@media (max-width: 1199px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .invest-wrapper {
    padding-top: 120px;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .header-container nav {
    display: none;
  }

  /* mobil: logo vlevo, vpravo jazyky a za nimi hamburger */
  .logo.mobile-only {
    order: 1;
    margin: 0;
  }

  .header-overlay .logo img {
    height: 36px;
  }

  .invest-language-switcher.mobile-only {
    order: 2;
    margin-left: auto;
    display: flex !important;
  }

  .menu-toggle.mobile-only {
    order: 3;
    margin-left: 0.9rem;
    font-size: 24px;
    color: var(--inv-ink);
    cursor: pointer;
    display: block !important;
  }

  body.menu-settled .header-overlay {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; /* přesnou hodnotu nastavuje JS dle výšky headeru — bez mezery */
    left: 0;
    right: 0;
    z-index: 9; /* pod headerem (z-index 10) — slide vyjíždí zpod něj */
    padding: 0.5rem 1rem 1.5rem;
    /* stejné sklo jako navbar — jeden souvislý panel */
    background-color: rgba(249, 248, 247, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-105%);
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-menu a {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu.show a { opacity: 1; transform: none; }
  .mobile-menu.show a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.show a:nth-child(2) { transition-delay: 0.1s; }
  .mobile-menu.show a:nth-child(3) { transition-delay: 0.15s; }
  .mobile-menu.show a:nth-child(4) { transition-delay: 0.2s; }

  .mobile-menu a {
    font-family: var(--inv-font);
    font-weight: 500;
    color: var(--inv-ink);
    text-decoration: none;
    margin: 0.5rem 0;
    font-size: 1.1rem;
  }

  .invest-section {
    padding: 0 16px;
  }

  .invest-program-title {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .invest-program-description {
    margin-bottom: 32px;
  }

  .doc-section {
    border-radius: 24px;
    margin-bottom: 20px;
  }

  .doc-toggle {
    padding: 24px;
    font-size: 18px;
  }

  .doc-content {
    padding: 0 24px;
  }

  .doc-section.active .doc-content {
    padding-bottom: 24px;
  }

  .invest-doc-list li {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
  }

  /* KONTAKTY */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 16px;
  }

  .contact-person {
    gap: 24px;
  }

  .contact-person img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
  }

  .contact-person h3 {
    font-size: 20px;
  }

  .contact-person p:nth-of-type(1) {
    margin-bottom: 16px;
  }

  /* KONTAKTNÍ KARTA */
  #contact2 {
    padding: 0 16px;
    margin-bottom: 64px;
  }

  #contact2 .contact-card {
    flex-direction: column;
    min-height: 0;
    border-radius: 24px !important;
  }

  #contact2 .contact-left {
    flex: none;
    padding: 32px 24px !important;
  }

  #contact2 .contact-left::after {
    display: none;
  }

  #contact2 .section-headline {
    font-size: 30px !important;
  }

  #contact2 .contact-left > p:nth-of-type(2) {
    margin-top: 32px;
  }

  #contact2 .contact-right {
    padding: 32px 24px;
  }

  /* FOOTER */
  .footer {
    padding: 8px;
  }

  .footer-menu {
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-menu a {
    margin: 0.5rem;
  }
}


/* hamburger -> krizek (plynula rotace) */
.menu-toggle i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.menu-toggle.is-open i {
  transform: rotate(180deg);
}
