

/* === 1. ZÁKLADNÍ NASTAVENÍ A RESET === */
:root {
    font-size: 100%; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url("img/kuchyne/Stastnik/kuch2_2.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

/* Hlavní kontejner */
.row {
  max-width: 100rem; 
  width: 92%; 
  margin: 0 auto;
  position: relative;
}

/* === 2. HLAVIČKA (HEADER) A LOGO === */
header {
  background: transparent;
  min-height: 100vh; 
  position: relative;
  display: flex;
  flex-direction: column;
}

#logo {
    position: absolute;
    left: 1rem; 
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
}

#logo img {
    width: clamp(8rem, 12vw, 12rem);
    display: block;
} 

/* === 3. NAVIGACE === */
.nav-bar.row {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    max-width: 100%; 
    margin: 0;
    padding: 0;
    min-height: 6rem;
    z-index: 1000;
    background: transparent; 
}

.nav-bar nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-bar nav ul {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 3vw, 4rem); 
    list-style: none;
}

.nav-bar a,
.nav-bar .dropbtn {
  color: #fff;
  font-size: clamp(1.4rem, 1.8vw, 2.2rem);
  padding: 0.5rem 0;
  border-bottom: 0.15rem solid transparent;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-bar a:hover,
.nav-bar .dropbtn:hover {
  border-bottom: 0.15rem solid #dc4f00;
  color: #dc4f00;
}

.nav-bar .dropdown {
  position: relative;
}

.nav-bar .dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(35, 35, 35, 0.85);
  min-width: 7rem;
  z-index: 1000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.nav-bar .dropdown-content a {
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-size: clamp(1.1rem, 1.4vw, 1.6rem);
  text-align: center;
  border-bottom: none;
  white-space: nowrap;
}

.nav-bar .dropdown-content a:hover {
  background-color: #333;
  color: #dc4f00;
}

.nav-bar .dropdown:hover .dropdown-content {
  display: block;
}

/* === 4. GRID SYSTÉM PRO SEZNAMY === */
.page-seznam-projektu header {
    min-height: 40vh; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-seznam-projektu h1 {
    color: #f47008;
    font-size: clamp(2rem, 5vw, 4rem); 
    text-transform: uppercase;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.project-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
    gap: 2.5rem;
    width: 100%;
    align-items: start;
}

.project-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.5);
    background: #111; 
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 15rem; 
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.3s;
}

.project-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.project-item h2 {
    background: rgba(35, 35, 35, 0.85);
    color: #fff;
    padding: 1.2rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: normal;
    margin-top: auto; 
}

/* === 5. DETAIL PROJEKTU - OPRAVENÝ GRID LAYOUT === */
.page-detail-projektu header {
    min-height: auto; 
}

.detail-obsah {
    max-width: 120rem; 
    margin: 8rem auto 4rem auto; 
    padding: 0 5%;
    position: relative;

}

/* Tlačítko Zpět */
.back-button {
    display: inline-block;
    color: #f47008;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
    background: rgba(35, 35, 35, 0.85);
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(244, 112, 8, 0.5);
    margin-bottom: 3rem; 
}

.back-button:hover {
    color: #fff;
    transform: translateX(-5px);
    background: #f47008;
}


.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;     gap: 4rem;
    align-items: start;
}

.detail-texty {
    max-width: 100%; 
}

.detail-texty h1 {
    font-size: clamp(2rem, 3vw, 3.5rem); 
    color: #f47008;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-texty .cara-oranzova {
    width: 4rem;
    height: 3px;
    background-color: #f47008;
    margin-bottom: 2rem;
}

.detail-texty #detail-text {
    background: rgba(35, 35, 35, 0.85);
    padding: 2rem;
    border-left: 3px solid #f47008;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
}

.detail-texty #detail-text p {
    margin-bottom: 1rem;
}

/* Pravá strana: Galerie */
.detail-galerie {
    width: 100%;
}

.velky_img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10; 
    overflow: hidden;
    background: #000;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.6);
    margin-bottom: 1rem;
}

.velky_img img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.vic_img {
    display: flex;
    gap: 0.5rem;
}

.vic_img label {
    flex: 1;
    cursor: pointer;
}

.vic_img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 0.2rem solid transparent;
    opacity: 0.6;
    transition: 0.3s;
}

.vic_img img:hover {
    opacity: 1;
    border-color: #f47008;
}

/* --- Šipky v galerii --- */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
}

.gallery-arrow:hover {
    background: #f47008;
    color: #fff;
}

.arrow-left {
    left: 0;
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
}

.arrow-right {
    right: 0;
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

/* === 6. SPECIFICKÉ STRÁNKY === */

/* ÚVOD */
.page-uvod main,
.page-uvod footer {display: none;}

body.page-uvod {
    background: transparent !important;
}

.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #000;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
}

.bg-slide::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); 
}

.bg-slide.active {
    opacity: 1;
}

.page-uvod .main-title {
    position: absolute;
    top: 25%; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90rem;
    text-align: center;
    z-index: 10;
}

.page-uvod .main-title h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    color: #f47008;
    margin: 0 0 1.5rem 0;
}

.page-uvod .main-title p {
    color: #fff;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    margin: 0 auto 2.5rem auto; 
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    background-color: #f47008; 
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    text-transform: uppercase;
    font-weight: bold;
    border: 2px solid #f47008;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: transparent;
    color: #f47008;
    box-shadow: 0 6px 20px rgba(244, 112, 8, 0.6);
    transform: translateY(-3px); 
}

/* =========================================
   STRÁNKA SLUŽBY - NOVÝ GRID VZHLED
========================================= */
.page-sluzby header {
    min-height: auto; 
}

.sluzby-obsah {
    max-width: 80rem; 
    margin: 8rem auto 6rem auto; 
    padding: 0 5%;
    color: #fff;
}

.sluzby-obsah .main-title {
    position: relative;
    top: 0; left: 0; transform: none; 
    text-align: center;
    margin-bottom: 4rem;
}

.sluzby-obsah .main-title h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #f47008;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.sluzby-obsah .main-title p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.sluzby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); 
    gap: 2rem;
}

.sluzba-box {
    background: rgba(35, 35, 35, 0.85);
    padding: 2.5rem;
    border-top: 3px solid #f47008; 
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.sluzba-box:hover {
    transform: translateY(-5px); 
    background: rgba(35, 35, 35, 0.9); 
}

.sluzba-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.sluzba-box p {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =========================================
   STRÁNKA O NÁS - MODERNÍ A ČISTÝ VZHLED
========================================= */
.page-o-nas header {
    min-height: auto; 
}

.o-nas-obsah {
    max-width: 80rem; 
    margin: 8rem auto 6rem auto; 
    padding: 0 5%;
    color: #fff;
}

.o-nas-obsah .main-title {
    position: relative;
    top: 0; left: 0; transform: none; 
    text-align: center;
    margin-bottom: 4rem;
}

.o-nas-obsah .main-title h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #f47008; 
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.o-nas-obsah .main-title p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.cara-oranzova {
    width: 4rem;
    height: 3px;
    background-color: #f47008;
    margin: 0 auto 1.5rem auto;
}

/*srovnaná mřížka*/
.o-nas-grid-aligned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem; 
    align-items: stretch; 
}

.text-box {
    background: rgba(35, 35, 35, 0.85); 
    padding: 2.5rem;
    border-left: 3px solid #f47008; 
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.4);
    border-radius: 0.2rem;
}

.text-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.text-box p {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
}

.o-nas-img {
    width: 100%;
    height: 100%; 
    min-height: 15rem; 
    object-fit: cover; 
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 0.2rem;
}

.o-nas-img:hover {
    opacity: 1;
    transform: scale(1.02); 
}

/* =========================================
   STRÁNKA KONTAKT - NOVÝ DESIGN DLE PŘEDLOHY
========================================= */
.page-kontakt header {
    min-height: auto; 
}

.kontakt-obsah {
    max-width: 75rem; 
    margin: 8rem auto 4rem auto; 
    padding: 0 5%;
    display: flex;
    justify-content: center;
}

.kontakt-wrapper {
    background: rgba(35, 35, 35, 0.85);
    width: 100%;
    padding: 4rem;
    color: #fff;
    font-family: 'Arial', sans-serif; 
}

.kontakt-hlavicka {
    text-align: center;
    margin-bottom: 3.5rem;
}

.kontakt-hlavicka h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cara {
    width: 4rem;
    height: 3px;
    background-color: #f47008; 
    margin: 0 auto 1.5rem auto;
}

.kontakt-hlavicka p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.kontakt-sloupce {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.kontakt-info {
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 2.5rem;
    background: transparent;
}

.kontakt-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-odstavec {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #ccc;
    font-size: 1rem;
}

.info-odstavec p {
    margin-bottom: 0.5rem;
}

.info-odstavec strong {
    color: #fff;
}

.zvyrazneno a {
    display: inline;
    color: #f47008; 
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.zvyrazneno a:hover {
    color: #fff;
}

.pozn {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: 2rem;
}

.kontakt-info .soc_site img {
    width: 2.5rem;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.kontakt-info .soc_site img:hover {
    transform: scale(1.1);
}

.kontakt-formular h3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.kontakt-formular .cara {
    margin: 0 0 2rem 0; 
}

.kontakt-formular form {
    display: flex;
    flex-direction: column;
}

.kontakt-formular input,
.kontakt-formular textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(35, 35, 35, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: -1px; 
}

.kontakt-formular input[name="jmeno"] {
    border-top-left-radius: 0.2rem;
    border-top-right-radius: 0.2rem;
}

.kontakt-formular textarea {
    border-bottom-left-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
    margin-bottom: 1rem;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    outline: none;
    border-color: #aaa;
    position: relative;
    z-index: 2;
}

.kontakt-formular button {
    background-color: #f47008; 
    color: #fff;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kontakt-formular button:hover {
    background-color: #d15d04;
}

/* === 7. HAMBURGER MENU (PRO JAVASCRIPT) === */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
    z-index: 2000;
}
.menu-icon span {
    width: 2rem;
    height: 0.25rem;
    background-color: #fff;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* === 8. RESPONZIVITA (MOBILY A TABLETY) === */
@media screen and (max-width: 60rem) {
    .nav-bar nav {
        position: static;
        transform: none;
    }
    
    .menu-icon { display: flex; }

    .nav-bar nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 6rem;
        right: 0;
        width: 100%;
        background-color: rgba(35, 35, 35, 0.85);
        padding: 2rem 0;
        z-index: 1500;
        text-align: center;
        margin-right: 0;
    }
    
    .nav-bar nav ul.active { display: flex; }

    .nav-bar .dropdown-content {
        position: relative;
        background: transparent;
        box-shadow: none;
        text-align: center;
        top: 0;
    }
    .nav-bar .dropdown-content a { color: #ccc; text-align: center; }

    .menu-icon.open span:nth-child(1) { transform: rotate(45deg) translate(0.4rem, 0.5rem); }
    .menu-icon.open span:nth-child(2) { opacity: 0; }
    .menu-icon.open span:nth-child(3) { transform: rotate(-45deg) translate(0.4rem, -0.5rem); }

    /* Responzivita Detail projektu */
    .detail-grid {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .detail-texty {
        max-width: 100%;
    }

    /* Responzivita Kontakt */
    .kontakt-wrapper {
        padding: 2rem;
    }
    .kontakt-sloupce {
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
    .kontakt-info {
        padding: 1.5rem;
    }
    .kontakt-hlavicka p {
        display: none; 
    }
    
    .o-nas-grid-aligned {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .o-nas-img {
        display: none; 
    }
  
    .project-grid-container {
        grid-template-columns: 1fr; 
    }
}

/* =========================================
   JEDNODUCHÁ ANIMACE ZESPODA PŘI NAČTENÍ
========================================= */
@keyframes vyjetiZespoda {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vyjetiZespodaUvod {
    0% {
        opacity: 0;
        transform: translate(-50%, 40px); 
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


body:not(.page-uvod) .main-title,
.project-grid-container,
.detail-grid,
.sluzby-grid,
.o-nas-grid-aligned,
.kontakt-wrapper,
.back-button {
    animation: vyjetiZespoda 0.8s ease-out forwards;
}


.page-uvod .main-title {
    animation: vyjetiZespodaUvod 0.8s ease-out forwards;
}

.test-provoz {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6); 
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 100;
    text-align: center;
    width: 100%;
    animation: vyjetiZespodaUvod 1s ease-out forwards; 
}