﻿/* ========== LAYOUT ========== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: white;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

.alert {
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  z-index: 9999;
  position: relative;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: transparent;
  transition: color 0.4s ease;
  background-color: rgba(255, 255, 255, 0.1); /* jemná bílá průhlednost */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* pro Safari */
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* volitelně */
  color: white;
}

.header-container {
  margin: 0 auto;
  padding: 2rem 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

  .header-container .logo img {
    transition: transform 0.3s ease;
    cursor: pointer;
  }

    .header-container .logo img:hover {
      transform: scale(1.05);
    }


  .header-overlay.scrolled {
    background-color: white;
    color: black;
  }

    .header-overlay.scrolled nav a {
      color: black;
    }

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


    .header-overlay .logo img {
      height: 45px;
      width: auto;
      transition: filter 0.3s ease, opacity 0.3s ease;
    }


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

    .header-overlay nav a {
      transition: color 0.4s ease;
      text-decoration: none;
      font-size: 18px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }


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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

  .language-switcher i {
    font-size: 1rem;
  }

/* defaultní (horní průhledná varianta) */
.header-overlay .language-switcher {
  color: white;
}

  .header-overlay .language-switcher i {
    color: white;
  }

/* po scrollnutí dolů */
.header-overlay.scrolled .language-switcher {
  color: black;
}

  .header-overlay.scrolled .language-switcher i {
    color: black;
  }



@media (max-width: 768px) {
  .header-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

    .header-overlay nav {
      flex-wrap: wrap;
      justify-content: flex-start;
    }
}

.home-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(60, 30, 20, 0.85);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.home-overlay-filter {
  text-align: center;
  font-weight: 600;
  color: #ffcc00;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.home-overlay-logo {
  height: 36px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.end-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffcc00;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}




.section {
  padding: 5rem 2rem;
}

.section-container {
  position:relative;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 2rem;
  background: #f8f8f8;
  overflow: hidden;
  z-index: 2;
}

.split-section {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background-color: #f8f8f8;
  border-radius: 2rem;
  overflow: hidden;
}

/* Media query: allow wrap for smaller screens */
@media (max-width: 900px) {
  .split-section {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .split-half {
    width: 100%;
  }
}


.split-half {
  flex: 1 1 50%;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-image {
  padding: 0;
  flex: 1 1 50%;
  position: relative;
  min-height: 400px;
}

  .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== TYPOGRAPHY ========== */
.section-label {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  color: #5c2c2c;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1rem;
}

.section-headline {
  font-size: 2rem;
  font-weight: bold;
  color: #3b0b0b;
  margin-bottom: 1.5rem;
}

.section-paragraph {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

/* ========== BUTTONS ========== */
.button-yellow {
  background-color: #ffcc00;
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  width:fit-content;

}

.button-yellow.contact-form {
  width: auto;
}

  .button-yellow:hover {
    background-color: #e6b800;
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

/* ========== HOME ========== */
.home-section {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.home-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.globe-video {
  width: 100%;
  height: 100%;
  object-fit:contain;
  display: block;
}


body.with-overlay .home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(60, 30, 20, 0.85);
  z-index: 1;
}

.home-content {
  z-index: 2;
}

body.with-overlay .home-content,
body.with-overlay{
  z-index: 2;
}



.home-content {
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

  .home-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .home-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

.ups-intro {
  font-size: 0.875rem;
  color: #ffcc00;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.home-content a {
  background-color: #ffcc00;
  color: black;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
}


/* ========== GRID ========== */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-card {
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  min-height: 180px;
}

  .grid-card h2,
  .grid-card h3 {
    margin-bottom: 0.5rem;
    color: #3b0b0b;
  }

  .grid-card p {
    color: #333;
  }

.split-image.relative {
  position: relative;
}

.invest-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  grid-template-rows: repeat(16, 1fr);
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.invest-dot {
  width: 18px;
  height: 18px;
  background-color: #ffcc00;
  place-self: center;
  animation: blinkDot 6s infinite ease-in-out;
  transition: transform 0.3s ease;
}

  .invest-dot:hover {
    transform: scale(1.4);
  }

@keyframes blinkDot {
  0%, 100% {
    opacity: 0;
  }

  10%, 90% {
    opacity: 1;
  }
}



@keyframes blinkDot {
  0%, 100% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }
}

@keyframes blinkInvestDot {
  0%, 100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  60% {
    opacity: 1;
  }
}


/* ========== CONTACT ========== */

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30rem; /* zvětšeno z 4rem */
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position:relative;
  z-index:3;
}

.contact-person {
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease;
}

  .contact-person:hover {
    transform: scale(1.05);
  }

  .contact-person img {
    width: 220px;
    height: 220px;
    border-radius: 20%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }

  .contact-person h3 {
    font-size: 1.75rem;
    margin-bottom: 0.3rem;
  }

  .contact-person p {
    font-size: 1.1rem;
    color: #444;
    margin: 0.2rem 0;
  }

.contact-right {
  padding: 3rem;
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.contact-card {
  box-shadow: 0 0 20px rgba(0,0,0,0.03);
}

.contact-input {
  background: #f9f8f7;
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px #ddd;
}

  .contact-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #ffcc00;
  }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 204, 0, 0.4) 2px, transparent 1px), linear-gradient(to bottom, rgba(255, 204, 0, 0.4) 2px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  /* Viditelnost zespodu přes masku */
  mask-image: linear-gradient(315deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask-image: linear-gradient(315deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Tečky – větší a rychlejší */
.dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #ffcc00;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.9;
}

.dot1 {
  bottom: 13%;
  right: 16.25%;
  animation: moveDot1 12s infinite alternate ease-in-out;
}

.dot2 {
  bottom: 24%;
  right: 24%;
  animation: moveDot2 14s infinite alternate ease-in-out;
}

@keyframes moveDot1 {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(60px, 0); /* 1 krok doprava */
  }

  50% {
    transform: translate(60px, 60px); /* 1 dolů */
  }

  75% {
    transform: translate(0, 60px); /* zpět doleva */
  }

  100% {
    transform: translate(0, 0); /* zpět nahoru */
  }
}

@keyframes moveDot2 {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-60px, 0); /* vlevo */
  }

  40% {
    transform: translate(-60px, -60px); /* nahoru */
  }

  60% {
    transform: translate(0, -60px); /* doprava */
  }

  80% {
    transform: translate(0, 0); /* zpět dolů */
  }

  100% {
    transform: translate(0, 0);
  }
}







/* ========== FOOTER ========== */
.footer {
  background-color: #ffcc00;
  padding: 4rem 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
  margin-right: 1.5rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

  .footer-menu a:hover {
    transform: scale(1.03);
  }

.footer-copyright {
  font-size: 0.9rem;
  color: #333;
  margin: 0.3rem 0;
}

  .services-4-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.grid-item {
  background: white;
  border-radius: 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

  .grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
  }


/* Obrázkové dlaždice */
.image-tile {
/*  position:relative;
  z-index:2;*/
  background-size: cover;
  background-position: center;
  color: white;
  padding: 0;
}

  .image-tile .image-label {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 2rem;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-weight: 600;
  }

.image-label {
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

  .image-label:hover {
    transform: scale(1.05);
    opacity: 0.7;
  }

/* Specifické obrázky (můžeš nastavit z modelu jako inline background) */
.image-tile-1 {
  background-image: url('/uploads/img/statImg1.png');
}

.image-tile-2 {
  background-image: url('/uploads/img/services1Img.png');
}

/* Čísla + text */
.number-tile .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #300000;
}

.number-tile .description {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #333;
}

/* UPS logo dlaždice */
.logo-tile {
  background-color: #300000;
  color: #FFD100;
  font-weight: 600;
  font-size: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Žlutá dlaždice */
.text-yellow {
  background-color: #FFD100;
  color: #300000;
}

  .text-yellow .title {
    font-weight: 800;
    font-size: 1.5rem;
  }

  .text-yellow .description {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

.header-mobile {
  display: none;
}

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

.menu-toggle {
  display: none; /* defaultně skryté na desktopu */
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

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

/* Když je menu otevřené */
.mobile-menu.show {
  display: flex;
  z-index: 999;
}

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

.privacy-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 2rem;
  overflow-y: auto;
}

.privacy-content {
  background: #fff;
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
}




.footer-link {
  color: #333 !important;
}











/* Zobrazit jen na desktop */
@media (min-width: 769px) {
  .mobile-topbar {
    display: none;
  }

  .header-container {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .logo.mobile-only {
    display: none;
  }
}



@media (max-width: 768px) {

  .desktop-only {
    display: none !important;
  }

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

  .header-container {
    justify-content: space-between;
    align-items: center;
  }

  .logo.mobile-only {
    order: 2;
    margin: 0 auto;
  }

  .language-switcher.mobile-only {
    order: 1;
  }

  .menu-toggle.mobile-only {
    order: 3;
  }

  .header-container {
    display: flex;
    gap: 0.5rem;
  }

  .header-mobile {
    display: block;
    background: white;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .mobile-left,
  .mobile-center,
  .mobile-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-left {
    justify-content: flex-start;
  }

  .mobile-right {
    justify-content: flex-end;
  }

  .mobile-logo {
    height: 30px;
  }


  .mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 1rem;
  }


    .mobile-menu.show {
      margin-top: 18px;
      display: flex;
      z-index: 10;
      background-color: transparent;
      transition: color 0.4s ease;
      background-color: rgba(255, 255, 255, 0.1); /* jemná bílá průhlednost */
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px); /* pro Safari */
      border-top: 1px solid rgba(255, 255, 255, 0.2); /* volitelně */
      color: white;
    }



  .menu-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: block;
  }

    .mobile-menu a {
      color: white;
      text-decoration: none;
      margin: 0.5rem 0;
      font-size: 1.1rem;
    }

  .logo-center img {
    height: 32px;
  }

  .lang-switch {
    font-weight: bold;
  }

  .hamburger {
    font-size: 24px;
    cursor: pointer;
  }

  .header-overlay {
    display: block;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

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

    .header-container nav {
      display: none;
    }

  .language-switcher {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }

  .home-content h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .home-content p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .button-yellow {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* HOME */
  .home-content h1 {
    font-size: 2rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  /* SECTION GENERIC */
  .section-container {
    flex-direction: column;
  }

  .section {
    padding: 15px;
  }

  .split-section {
    flex-direction: column !important;
    padding: 10px 10px;
    text-align:center;
  }

  .split-half {
    all: unset;
    padding-top:15px;
  }
  .split-image {
    min-height: auto;
  }
    .split-image img{
      border-radius:5%;
    }

    .split-image img, .split-image video {
      height: auto;
    }

    

  /* GRID SEKCÍ (services-4) */
  .services-grid {
    grid-template-columns: 1fr;
/*    grid-auto-rows: auto;
*/    padding: 1rem;
  }

  .grid-item {
    padding: 1rem;
    min-height:auto;
  }

  /* KONTAKTNÍ OSOBY */

  .contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1rem 0;
  }

  .contact-image {
    flex: 0 0 100px;
    height: auto;
  }

  .contact-info {
    flex: 1;
  }

    .contact-info h4 {
      margin: 0;
      font-size: 1rem;
    }

    .contact-info p {
      margin: 0.2rem 0;
      font-size: 0.85rem;
    }

  .contact-container {
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .contact-person img {
    width: 100px;
    height: 100px;
    border-radius: 9999px;
  }

  .contact-right {
    padding: 10px;
  }

  .footer {
    padding: 8px;
  }

  .footer-menu{
    display: flex;
  }
  /* FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

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




