html, body{
  height:100%;
}

body{
  display:flex;
  flex-direction:column;
}


/* =========================
   GLOBAL RESET & BASE
========================= */

*{
  box-sizing:border-box;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  margin:0;
  color:#1d2a3b;

  /* BACKGROUND */
  background-image:url("../img/bg-web.jpg");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  background-attachment:fixed;
}

img{
  max-width:100%;
  height:auto;
}


/* =========================
   LAYOUT
========================= */

.container{
  background:white;
  width:90%;
  max-width:1100px;
  margin:auto;
}


/* =========================
   HEADER
========================= */

header{
  background:white;
  border-bottom:1px solid #e6e6e6;
}

header .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
}

.logo img{
  height:120px;
  width:auto;
}


/* =========================
   NAVIGATION
========================= */

nav{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}

nav a{
  text-decoration:none;
  color:#0E274A;
  font-weight:600;
  padding:8px 0;
}

/* pokud bys někdy chtěl tlačítko, použij třídu .btn */
nav a.btn{
  background:#3DAA35;
  padding:8px 14px;
  border-radius:6px;
  color:white;
}



/* =========================
   HERO
========================= */

.hero{
  background:#F5F7FA;
  padding:70px 0;
  text-align:center;
}

.overlay{
  background:linear-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.25));
  color:white;
}

.btn-primary{
  background:#3DAA35;
  color:white;
  padding:12px 20px;
  text-decoration:none;
  border-radius:6px;
}


/* =========================
   SERVICES
========================= */

.services{
  padding-top: 1px;   /* bylo 40px */
  padding-bottom: 40px;
}



.services .grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  max-width:900px;
  margin:0 auto;
}


.card{
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);

  /* ZAROVNÁNÍ */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikálně */
  align-items: center;     /* horizontálně */
  text-align: center;      /* text na střed */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.services .card:nth-child(1){
  box-shadow:
    0 8px 28px rgba(61,170,53,0.25),
    inset 0 0 0 1px rgba(61,170,53,0.15);
}

.services .card:nth-child(2){
  box-shadow:
    0 8px 28px rgba(14,39,74,0.25),
    inset 0 0 0 1px rgba(14,39,74,0.15);
}

.services .card:nth-child(3){
  box-shadow:
    0 8px 28px rgba(61,170,53,0.18),
    0 8px 28px rgba(14,39,74,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.3);
}



.card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.12);
}



.card h3{
  font-size:20px;
  margin-bottom:10px;
  color:#0E274A;
}

.card p{
  font-size:15px;
  line-height:1.6;
  color:#4a5a6a;
}

@supports (backdrop-filter: blur(6px)) {
  .card{
    backdrop-filter: blur(6px);
  }
}


@media (max-width:900px){
  .services .grid{
    grid-template-columns:1fr;
  }

  .card{
    padding:25px 20px;
  }
}



/* =========================
   CTA
========================= */

.cta{
  background:#0E274A;
  color:white;
  text-align:center;
  padding:50px 0;
}


/* =========================
   FOOTER
========================= */

footer{
  background:rgba(14,39,74,0.15); /* lehce průhledná modrá */
  color:#0E274A;
  padding:15px 0;
  margin-top:30px;
}



/* =========================
   COOKIE BAR
========================= */

#cookieBar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:white;
  border-top:1px solid #ccc;
  padding:15px;
  text-align:center;
  display:none;
}

#cookieBar button{
  background:#3DAA35;
  color:white;
  border:none;
  padding:8px 14px;
  border-radius:5px;
  cursor:pointer;
}


/* =========================
   FORMS
========================= */

form{
  max-width:500px;
}

form label{
  font-weight:bold;
  display:block;
  margin-top:12px;
}

input,
textarea{
  width:100%;
  padding:10px;
  margin-top:5px;
  margin-bottom:10px;
  border:1px solid #ccc;
  border-radius:6px;
}

.gdpr-box{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
}

.gdpr-text{
  font-size:12px;
  color:#555;
  margin-bottom:12px;
}


/* =========================
   ADDRESS BLOCK
========================= */

.address{
  margin-bottom:18px;
}

.address p{
  margin:1px 0;
  line-height:1.5;
}


/* =========================
   DIVIDER LINE
========================= */

.green-line{
  border: none;
  height: 6px;
  border-radius: 6px;
  margin: 15px 0 25px 0;

  background: linear-gradient(
    90deg,
    #0E274A 0%,
    #6aaed6 25%,
    #6fcf97 75%,
    #3DAA35 100%
  );

  background-size: 300% 100%;
  animation: gradientMove 15s ease-in-out infinite;
}


/* =========================
   GALLERY
========================= */

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery img{
  width: 100%;
  height: 220px;              /* pevná výška náhledu */
  object-fit: cover;          /* KLÍČOVÉ */
  object-position: center;    /* ořez ze středu */
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease;
}


.gallery img:hover{
  transform:scale(1.03);
}


/* =========================
   LIGHTBOX
========================= */

#lightbox{
  display:none;
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  z-index:999;
  text-align:center;
  padding-top:40px;
}

#lightbox img{
  max-width:80%;
  max-height:80%;
  border-radius:10px;
}

.close{
  position:absolute;
  top:10px;
  right:20px;
  font-size:40px;
  color:white;
  cursor:pointer;
}

.prev,
.next{
  position:absolute;
  top:50%;
  font-size:40px;
  color:white;
  cursor:pointer;
  user-select:none;
}

.prev{left:30px;}
.next{right:30px;}

/* =========================
   GALLERY LOGOS (REFERENCES)
========================= */

.gallery2{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:30px;
  margin-top:20px;
}

.gallery2 a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:200px;
}

.gallery2 img{
  max-width:90%;
  max-height:160px;
  object-fit:contain;
  background:white;
  border-radius:10px;
  padding:10px;
  box-shadow:0 0 6px rgba(0,0,0,0.1);
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width:800px){

  header .container{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .logo img{
    height:70px;
  }

  .services .grid{
    grid-template-columns:1fr;
  }

  .gallery{
    grid-template-columns:1fr;
  }

  .gallery2{
    grid-template-columns:1fr;
  }
}
footer .container{
  background: transparent;
  box-shadow: none;
}
.page-content{
  flex:1;
}

.hero-claim{
  text-align:center;
  max-width:900px;
  margin: 1px auto 20px; /* bylo 80px */
  padding:0 20px;
}


.claim{
  font-size:42px;
  font-weight:700;
  margin-bottom:25px;
  white-space:normal; /* claim v jednom řádku */
}

.claim-sub{
  font-size:17px;
  line-height:1.7;
  color:#4a5a6a;
  margin-bottom:18px;
}


.hero-claim-inner {
  max-width: 800px;
  padding: 10px 20px;
  margin: 0 auto;   /* ← KLÍČOVÉ */
}


.hero-claim h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0E274A;
  margin-bottom: 1px;
}

.hero-subtitle {
  font-size: 20px;
  color: #4a5d73;
}

@media (max-width: 1000px){
  .hero-claim h1{
    font-size: 32px;
  }
}

@media (max-width: 700px){
  .hero-claim h1{
    font-size: 24px;
  }
}

.highlight-anim{
  background: linear-gradient(
    90deg,
    #1d2a3b 0%,
    #3DAA35 50%,
    #1d2a3b 100%
  );
  background-size: 200% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: greenFlow 20s ease-in-out infinite;
  font-weight:700;
}

@keyframes greenFlow{
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 30%; }
  100% { background-position: 0% 30%; }
}

.services{
  background: transparent;
}

.services .container{
  background: transparent;
}

.card-wide{
  max-width: 700px;
  margin: 30px auto 0 auto;
  background: transparent;
  border-radius: 20px;
  padding: 30px;
}

.card-wide{
  background: transparent;
  }

.card-wide:hover{
  box-shadow:
    0 14px 36px rgba(61,170,53,0.25);
}

.collab-form{
  display:none;
  padding:40px 0 60px;
}

.collab-form.active{
  display:block;
}

.section,
.services {
  background: transparent;
}

/* ===== CTA SECTION FIX ===== */

.cta-section{
  width:100%;
  background:transparent;
  padding:60px 0 80px;
}

.cta-box{
  display:block;
  max-width:720px;
  margin:0 auto;
  background:rgba(255,255,255,0.88);
  border-radius:22px;
  padding:45px 40px;
  text-align:center;
  font-size:26px;
  font-weight:600;
  color:#0E274A;
  text-decoration:none;
  cursor: pointer;

  box-shadow:0 20px 45px rgba(0,0,0,0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3 ease;
}

/* HOVER efekt – stejný styl jako horní karty */
.cta-box:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 60px rgba(61,170,53,0.35);
  background:rgba(255,255,255,0.95);
}

/* skrytý formulář */
.collab-form{
  max-width:700px;
  margin:40px auto 0 auto;
  opacity:0;
  max-height:0;
  overflow:hidden;
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease;
}

/* aktivní stav */
.collab-form.active{
  opacity:1;
  max-height:1000px;
}

#collabBox{
  outline:2px solid rgba(53, 170, 61, 0.25);
}

/* Tooltip u kurzoru */
.cursor-tooltip{
  position: fixed;
  padding: 6px 10px;
  font-size: 20px;
  background: rgba(14,39,74,0.9);
  color: white;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transform: translate(10px, 10px);
  transition: opacity 0.15s ease;
}

.text-block{
   font-size:17px;
  line-height:1.7;
  color:#4a5a6a;
  margin-bottom:18px;
  text-align: justify;
  hyphens: auto;
}

.hp{
  display:none;
}

.text-section{
  padding:1px 0 60px;
}

.claim-sub,
.text-section p{
  text-align: justify;
  hyphens: auto;
}

.hero-claim {padding-bottom: 1px;
  }

  .text-section .claim-sub:first-child{
  margin-top: 0;
}

.page-o-nas .text-section .claim-sub:last-child{
  text-align: center;
}

.page-projekty .text-section .claim-sub:last-child{
  text-align: left;
}

/* podstránky – menší hero */
.page-content .hero-claim{
  padding-top: 30px;
  padding-bottom: 10px;
}

.container.transparent{
  background: transparent !important;
}

input[readonly]{
  background:#f3f3f3;
  color:#666;
  cursor:not-allowed;
}

.hero-claim{
  text-align: center;
}

.gdpr-info{
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  line-height: 1.4;
}

/* HOME ICON IN MENU */
.home-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  background:rgba(14,39,74,0.08);
  transition:all 0.25s ease;
}

.home-link svg{
  width:20px;
  height:20px;
  fill:#0E274A;
}

/* hover efekt */
.home-link:hover{
  background:#3DAA35;
}

.home-link:hover svg{
  fill:white;
}

@keyframes gradientMove {
  0%   { background-position: 0% 20%; }
  50%  { background-position: 100% 20%; }
  100% { background-position: 0% 20%; }
}

/* ===== HERO CLAIM – MOBILE FIX ===== */
@media (max-width: 800px){

  .hero-claim-inner{
    max-width: 100%;
    padding: 0 15px;
  }

  .claim{
    font-size: 28px;      /* zmenšení hlavního claimu */
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtitle{
    font-size: 16px;
    margin-top: 8px;
  }
}

/* ===== CTA MODELÁŘENÍ ===== */

.cta-wrapper{
  margin-top: 5px;
  text-align: center;
}

.cta-model{
  position: relative;
  display: inline-block;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
  color: #0E274A;
  text-decoration: none;
  border-radius: 12px;

  background: linear-gradient(
    90deg,
    rgba(14,39,74,0.15),
    rgba(61,170,53,0.15)
  );

  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);

  transition: all 0.3s ease;
}

/* hover efekt tlačítka */
.cta-model:hover{
  color: white;
  background: linear-gradient(
    90deg,
    #0E274A,
    #3DAA35
  );
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== TOOLTIP ===== */

.cta-tooltip{
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  white-space: nowrap;

  background: rgba(14,39,74,0.9);
  color: white;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* zobrazení tooltipu */
.cta-model:hover .cta-tooltip{
  opacity: 1;
  transform: translate(6px, -50%);
}

.center-only{
  text-align: center;
}

.claim-sub.center-only{
  text-align: center;
}

/* ===== TEXT LINK + TOOLTIP ===== */

.tooltip-wrap{
  position: relative;
  display: inline-block;
}

.text-link{
  color:#3DAA35;
  font-weight:600;
  text-decoration:none;
}

.text-link:hover{
  text-decoration:underline;
}

/* tooltip */
.text-tooltip{
  position:absolute;
  top:50%;
  left:110%;
  transform:translateY(-50%);
  white-space:nowrap;

  background:rgba(14,39,74,0.9);
  color:white;
  font-size:13px;
  padding:6px 10px;
  border-radius:6px;

  opacity:0;
  pointer-events:none;
  transition:opacity 0.25s ease, transform 0.25s ease;
}

/* zobrazení při hoveru */
.tooltip-wrap:hover .text-tooltip{
  opacity:1;
  transform:translate(6px, -50%);
}

.logo-gradient{
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.logo-gradient img{
  display: block;
  transition: transform 0.35s ease;
}

.logo-gradient::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    rgba(14,39,74,0.0) 30%,
    rgba(14,39,74,0.25) 45%,
    rgba(61,170,53,0.35) 55%,
    rgba(61,170,53,0.0) 70%
  );
  transform: translateX(-100%);
  transition: transform 1.6s ease;
  pointer-events:none;
}

.logo-gradient:hover::after{
  transform: translateX(100%);
}

.logo-gradient:hover img{
  transform: scale(1.04);
}
