* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #2e3236;
    /* PŘIDANÉ ŘÁDKY PRO FLEXBOX */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Zajistí, že body má výšku aspoň celé obrazovky */
    width: 100%;
}

}

/* LOGO */
.hero-left {
    padding: 20px;
}

.hero-left img {
    height: 60px;
}

/* MENU PROUŽEK */
.top-nav {
    background: linear-gradient(
        to right,
        #6b6f72 0%,     /* světlejší šedá (logo) */
        #4f5457 40%,    /* střední šedá */
        #2f3336 100%    /* tmavá šedá */
    );
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.top-nav a {
    color: #a8d5c0;                 /* světlejší zelená */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.top-nav a:hover {
    color: #ffffff;
}

/* HERO TEXT */
.hero-text {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* zarovnání doprava */
}

.hero-right p {
    font-size: 22px;
    margin-bottom: 12px;
}

.btn-main {
    display: inline-block;
    background: #0f3f2e;
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 20px;
}

.btn-main:hover {
    background: #0c3325;
}

/* DLAŽDICE */
.tiles {
	 width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;  /* mezera od spodního banneru */
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;                /* mezery mezi dlaždicemi */
}

.tile {
    position: relative;
    height: 360px;              /* vyšší dlaždice */
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.tile:hover .tile-overlay {
  /*  background: rgba(15, 63, 46, 0.85); */
}

.tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;

    color: white;
    font-size: 22px;
    font-weight: 600;
}

/* zelený pruh */
.tile-overlay::before {
    content: "";
    position: absolute;
    top: 30%;                  /* horní třetina */
    left: 0;
    width: 100%;
    height: 70px;

    background: rgba(15, 63, 46, 0.85); /* zelená DroTec */
    z-index: -1;
}

.tile-overlay span {
     position: absolute;
    top: calc(30% + 35px);   /* 30 % + polovina výšky pruhu */
    transform: translateY(-50%);
    left: 20px;
    z-index: 2;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

/* jemný zoom */
.tile:hover::before {
    transform: scale(1.06);
}

.tile:hover .tile-overlay::before {
    background: rgba(15, 63, 46, 0.95);
}

/* --- HOVER OBSAH POD ZELENÝM PRUHEM --- */

.tile-hover {
    position: absolute;
    left: 0;
    width: 100%;

    /* začíná pod horním pruhem */
    top: calc(30% + 70px);
    height: calc(100% - (30% + 70px));

    background: rgba(15, 63, 46, 0.92);
    color: white;

    padding: 25px;
    box-sizing: border-box;

    transform: translateY(100%);
    transition: transform 0.45s ease;

    z-index: 2;
}

/* vysunutí */
.tile:hover .tile-hover {
    transform: translateY(0);
}

/* styl seznamu */
.tile-hover ul {
    margin: 0;
    padding-left: 20px;
}

.tile-hover li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* FOOTER */
footer {
    flex-grow: 1;    
     /* Vnitřní zarovnání obsahu */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Vycentruje text patičky vertikálně v tom velkém prostoru */
    
    background: #126647; /* #2e3236;*/
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer-values {
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.footer-company {
    font-size: 15px;
    font-weight: 500;
    color: #bfc5c9;            /* světlejší šedá */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px 20px;
}

.container-even {
    background-color: #f4f6f8;
}

.container-odd {
	 background-color: #126647;
	 color: #f4f6f8;
}

.container-even h1 {
    border-left: 6px solid #126647;
    padding-left: 12px;
    color: #126647;
    font-size: 30px;
}

.container-odd h1 {
    border-left: 6px solid #f4f6f8;
    padding-left: 12px;
    color: #f4f6f8;
    font-size: 30px;
}

.overview {
	 font-size: 20px;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea, select {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background-color: #0f3f2e;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}
button:hover { background-color: #0c3325; }

/* ===== KONTAKT GRID ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-top: 40px;
}

/* FORMULÁŘ VLEVO */
.contact-form form {
    max-width: 100%;
    margin: 0; /* zruší centrování */
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #d0d5d9;
    border-radius: 4px;
    font-size: 15px;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #126647;
}

.contact-form button {
    background: #126647;
    color: white;
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-form button:hover {
    background: #0f5239;
}

/* KONTAKTNÍ KARTA VPRAVO */

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #126647;
    font-size: 20px;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-position {
    color: #6b6f72;
    margin-bottom: 20px;
}

.contact-phone,
.contact-mail {
    margin-bottom: 10px;
    font-size: 15px;
}

.section-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 40px;
}

/* TEXT */
.text-content {
    flex: 1;
}

/* GALERIE */
.stack-gallery {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
}

/* KARTY */
.stack-gallery .card {
    position: absolute;
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;

    transition:
        transform 0.45s ease,
        filter 0.45s ease,
        box-shadow 0.45s ease;

    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ROZMÍSTĚNÍ */
.stack-gallery .card:nth-child(1) {
    top: 20px;
    left: 20px;
    z-index: 4;
}

.stack-gallery .card:nth-child(2) {
    top: 70px;
    left: 120px;
    z-index: 3;
    transform: scale(0.92);
}

.stack-gallery .card:nth-child(3) {
    top: 140px;
    left: 40px;
    z-index: 2;
    transform: scale(0.88);
}

.stack-gallery .card:nth-child(4) {
    top: 180px;
    left: 160px;
    z-index: 1;
    transform: scale(0.84);
}

/* HOVER */
.stack-gallery:hover .card {
    transform: scale(0.82);
    filter: brightness(0.7);
}

.stack-gallery .card:hover {
    transform: scale(1.08) !important;
    z-index: 10 !important;
    filter: brightness(1);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

.lightbox.active {
    display: flex;
}

/* MOBIL */
@media (max-width: 900px) {

    .section-content {
        flex-direction: column;
    }

    .stack-gallery {
        width: 100%;
        height: 360px;
        margin: auto;
    }

    .stack-gallery .card {
        width: 220px;
        height: 220px;
    }
}

/* MOBIL */
@media (max-width: 900px) {

    .section-content {
        flex-direction: column;
    }

    .image-carousel {
        width: 100%;
        height: 280px;
    }

    .text-content {
        width: 100%;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-right {
        align-items: flex-start;  /* na mobilu zarovnat vlevo */
        width: 100%;
    }
        
    .hero-text {
        grid-template-columns: 1fr;
    }

    .tiles {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .tile {
        height: 640px;
    }

    .top-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .container {
    	width: 100%;
    }
    
    .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    }
}