/*=========================================
  Proměnné
=========================================*/
:root {
  --primary:   #0077B6;
  --accent:    #20C4B1;
  --bg-light:  #F0F8FF;
  --text:      #023E8A;
  --white:     #ffffff;
  --header-h:  4rem;
}

/*=========================================
  Reset & základní styly
=========================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.5;
}

/*=========================================
  Override pozadí pro podstránky s modrým motivem
=========================================*/
body.page-primary {
  background: var(--primary);
  color: var(--white);
}

/*=========================================
  Header & navigace
=========================================*/
header {
  position: relative;
  height: var(--header-h);
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent) 40%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;          /* zajistí, že img sedí bez nechtěného whitespace */
  width: auto;
  /* pokud chcete zamezit textovým fallbackům: */
  font-size: 0;
}

.logo img {
  height: 100%;            /* výška podle headeru */
  max-height: calc(var(--header-h) - 2rem); /* odečte padding headeru */
  width: auto;             /* zachová proporce */
  display: block;
}

nav a {
  margin-left: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s;
}

nav a:hover,
nav a.active {
  opacity: .8;
}

/*=========================================
 Hamburger menu button
=========================================*/
.menu-toggle {
  display: none;              /* skryto na desktopu */
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;              /* nad ostatními prvky */
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/*=========================================
 Responzivita: mobilní zobrazení
=========================================*/
@media (max-width: 768px) {
  /* 1) Skrytí původní nav */
  nav#mainNav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  /* 2) Zobrazení po rozbalení */
  nav#mainNav.open {
    display: flex;
  }

  nav#mainNav a {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.125rem;
    color: var(--white);
  }

  /* 3) Zobraz hamburger tlačítko */
  .menu-toggle {
    display: flex;
  }

  /* 4) Uprav padding headeru, aby se nevešlo vedle loga */
  header {
    padding: 1rem;
  }
}


/*=========================================
  Plovoucí tlačítko „Sjednat schůzku“
=========================================*/
.btn-consult {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: var(--accent);
  color: var(--white);
  padding: .75rem 1.5rem;
  border: 2px solid var(--white);
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 1000;
}

.btn-consult:hover,
.btn-consult:focus {
  background: #1aa798;
  transform: translateY(-2px) scale(1.05);
}

/*=========================================
  Bannery
=========================================*/
.banner {
  position: relative;   /* umožní vrstvení absolutně pozicovaných prvků */
  overflow: hidden;     /* schová část loga vyčnívající za okraj kontejneru */
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  text-align: center;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.banner p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.banner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40vw;
  max-width: 400px;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
  z-index: 0;
  pointer-events: none;
}

/*=========================================
  Podstránkové bannery (přepsat accent na primary)
=========================================*/
.about-banner,
.services-banner,
.reference-banner,
.contact-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
}

.about-banner h2,
.services-banner h2,
.reference-banner h2,
.contact-banner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

/*=========================================
  Stripy: About / Cases
=========================================*/
.about-strip,
.cases-stripe {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem;
}

.about-strip h2,
.cases-stripe h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-strip p,
.cases-stripe p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
}

/*=========================================
  Procesní strip
=========================================*/
.process-strip {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 1rem 2rem;
}

.process-strip h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.process-strip p {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.process-strip .phase {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--white);
  padding: 2.5rem 0 1rem;
  text-align: center;
  margin-bottom: 1rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s ease-out;
}

.process-strip .phase.in-view {
  transform: scaleX(1);
}

/*=========================================
  Případové studie – tlačítka
=========================================*/
.cases-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cases-buttons a {
  padding: .75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.cases-buttons a:hover {
  background: var(--accent);
}

/*=========================================
  Služby
=========================================*/
.services-strip {
  width: 100%;
  padding: 2rem 1rem 4rem;
}

.services-strip .service {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: var(--white);
}

/*=========================================
  Reference & Kontakt – bílé karty
=========================================*/
.reference-strip,
.contact-strip {
  width: 100%;
  padding: 2rem 1rem 4rem;
}

.reference-strip .case,
.contact-strip .case {
  background: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: var(--text);
}

.reference-strip .case h3 {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: .5rem;
}


/*=========================================
  Hlavní obsah (.content) – formát podle vzoru
=========================================*/
.content {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/*=========================================
  Kontaktní formulář
=========================================*/
.contact-strip .case form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-strip .case form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-strip .case form .field {
  flex: 1;
  min-width: 150px;
  text-align: left;
}

.contact-strip .case form .field.full {
  flex: 1 1 100%;
}

.contact-strip .case form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.contact-strip .case form input,
.contact-strip .case form textarea {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-strip .case form textarea {
  height: 150px;
  resize: vertical;
  margin-top: 0;
}

.contact-strip .case form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.contact-strip .case form button:hover {
  background: #1aa798;
  transform: translateY(-2px) scale(1.05);
}

/*=========================================
  Chat-okno pro sjednání schůzky
=========================================*/
.chat-modal {
  display: none;
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  box-sizing: border-box;
  width: calc(100vw - 3rem);
  max-width: 340px;
  max-height: 80vh;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-direction: column;
  z-index: 1100;
}

.chat-modal.is-active {
  display: flex;
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-form {
  display: flex;
  flex-direction: column;
  padding: .75rem;
  gap: .5rem;
  overflow-y: auto;
  flex: 1;

  /* nově: zruší výchozí stretch a všechny flex-itemy (kromě těch s width:100%) se
     zalepí k levému okraji obsahu (.chat-form padding) */
  align-items: flex-start;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.chat-form label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 0;
  padding: 0;
  color: var(--text);       /* sjednoceno na modrou barvu */
  white-space: nowrap;      /* text v jednom řádku */
  font-size: 0.75rem; /* zmenšíme na ~14 px */
}

.chat-form input[type="checkbox"] {
  /* zůstane maličký a díky align-items: flex-start a paddingu chat-form
     sedí přesně 0.75rem od levého okraje */
  width: auto;
  margin: 0;
}

.chat-form button[type="submit"] {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: .75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: .5rem;
}
section.content > .section-title {
  text-align: center;
  margin-top: 3rem !important;
  padding-top: 1px;
  margin-bottom: 1rem;
}
.section-title {
  text-align: center;
  font-size: 1.5rem;        /* zvětší velikost písma; upravte dle chuti */
  margin: 3rem 0 2rem;    /* 3rem nahoře, 2rem dole */
  font-weight: 600;       /* pokud chcete tučnější řez */
  color: var(--white);    /* případně změňte barvu */
}
/*=========================================
  Vycentrování tlačítka Odeslat
=========================================*/
.submit-row {
  text-align: center;
  margin-top: 1rem;
}
/*=========================================
  Footer s třemi sloupci
=========================================*/
.footer-strip {
  background: linear-gradient(135deg, var(--accent) 40%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 200px;
  margin: 1rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-col p {
  line-height: 1.6;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s;
}

.footer-col a:hover {
  opacity: .8;
}

/* Responsivně pod sebou na mobilu */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-col {
    width: 100%;
    margin: 0.5rem 0;
  }
}
/* --------------------------------------------------
   Link na Podmínky zpracování osobních údajů
   -------------------------------------------------- */
.contact-strip .gdpr-info {
  margin-top: 0.5rem;
  text-align: left !important;       /* nebo center, pokud chcete odkaz vystředit */
  font-size: 0.75rem;    /* ~14px */
}

.contact-strip .gdpr-info a {
  color: var(--text);
  text-decoration: underline;
  transition: opacity .2s;
}

.contact-strip .gdpr-info a:hover {
  opacity: 0.8;
}
/* GDPR link v chat-boxu */
.chat-form .gdpr-info {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.75rem;       /* ~14px */
  color: var(--text);
}

.chat-form .gdpr-info a {
  color: var(--text);
  text-decoration: underline;
  transition: opacity .2s;
}

.chat-form .gdpr-info a:hover {
  opacity: 0.8;
}
/* 1) Akční řádek zarovnat vlevo */
.contact-strip .case form .action-row {
  display: block !important;
  text-align: left !important;
}

/* 2) Label jako inline-flex kontejner, děti na jednom řádku */
.contact-strip .case form .action-row > label.checkbox {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  max-width: 100%;
}

/* 3) Checkbox-text se smí zalomit uvnitř sebe (nikoli mezi checkboxem a něj) */
.contact-strip .case form .action-row > label.checkbox .checkbox-text {
  flex: 1 1 0;              /* vezme zbývající prostor */
  min-width: 0;             /* nutné, aby se skutečně smrskl pod text */
  white-space: normal;
  overflow-wrap: break-word;
}

/* 4) Checkbox zůstane pevné velikosti vedle textu */
.contact-strip .case form .action-row > label.checkbox input[type="checkbox"] {
  flex: 0 100 !important;
  margin: 0 !important;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .contact-strip .case form .action-row > label.checkbox {
    flex-wrap: nowrap;      /* celý input+text na jedné lince */
  }
  .contact-strip .case form .action-row > label.checkbox .checkbox-text {
    white-space: nowrap;    /* už se neláme uvnitř span */
    overflow-wrap: normal;
  }
}

