:root {
    --brand-green: #2f6b57;
    --deep-black: #0d0d0d;
    --text-gray: #666;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
    scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVIGÁCIA ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--deep-black);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--brand-green);
}

.logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.logo-img { height: 50px;max-width: 30vw; width: auto; display: block; }
.logo-text { font-weight: bold; font-size: 1.6rem; letter-spacing: 1px; }

.nav-btn {
    border: 1px solid var(--brand-green);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 999px;
}
.nav-btn:hover { background: var(--brand-green); color: white; }

/* Header tlačítko – bílé s černým textem */
nav .nav-btn {
    background: #fff;
    color: var(--deep-black);
    border-color: #fff;
}
nav .nav-btn:hover {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

/* ── HERO SEKCIA ── */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background: #fdfdfd;
    min-height: 500px;
    gap: 60px;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.05;
    margin: 0;
    color: var(--deep-black);
    font-weight: 800;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin: 30px 0 45px 0;
    line-height: 1.6;
}

.hero-image {
    flex: 1.3;
    height: 500px;
    background-position: center;
    background-size: cover;
    position: relative;
    box-shadow: 45px 45px 0 var(--brand-green);
}

/* ── PORTFÓLIO ── */
.portfolio { padding: 100px 8%; background: #fff; }
.section-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
    border-left: 8px solid var(--brand-green);
    padding-left: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    color: var(--deep-black);
    @media(max-width:767px) {
        font-size:1.6rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.card {
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    border: 1px solid #eee;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 70px rgba(0,0,0,0.12);
    border-color: var(--brand-green);
}

.img-container {
    height: 320px;
    overflow: hidden;
    position: relative;
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.card:hover img { transform: scale(1.08); }

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-green);
    color: white;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-info { padding: 35px; }
.card-info .loc {
    color: var(--brand-green);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}
.card-info h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--deep-black);
    font-weight: 700;
}

/* ── PROJEKT DETAIL ── */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 8% 80px;
}
.back-link {
    display: inline-block;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.back-link:hover { opacity: 0.7; }
.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}
.detail-title-row h1 {
    font-size: 2.8rem;
    margin: 0 0 6px;
    color: var(--deep-black);
    font-weight: 800;
    line-height: 1.1;
}
.detail-location {
    color: var(--brand-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.detail-title-row .status-badge {
    position: static;
    flex-shrink: 0;
    margin-top: 8px;
}

/* Slider */
.detail-slider {
    margin-bottom: 50px;
    overflow: hidden;
}
.detail-slider .slide { padding: 0 8px; }
.detail-slider .slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.detail-slider .slick-prev,
.detail-slider .slick-next {
    z-index: 10;
    width: 44px;
    height: 44px;
}
.detail-slider .slick-prev { left: 15px; }
.detail-slider .slick-next { right: 15px; }
.detail-slider .slick-dots {
    bottom: 15px;
}
.detail-slider .slick-dots li button:before {
    color: #fff;
    font-size: 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Content */
.detail-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 50px;
}
.detail-content h2, .detail-content h3 { color: var(--deep-black); margin-top: 30px; }
.detail-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0; }
.detail-content ul, .detail-content ol { padding-left: 24px; }

/* CTA */
.detail-cta {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    padding-bottom: 20px;
}
.detail-btn {
    display: inline-block;
    background: var(--brand-green);
    border: none;
    padding: 18px 50px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
}
.detail-btn:hover {
    background: #46795a;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .hero {
        display: block;
        text-align: center;
        padding: 40px 5%;
    }
    .hero-image {
        width: 90%;
        margin:0 auto;
        height: 300px;
        box-shadow: 20px 20px 0 var(--brand-green);
    }
    .hero-content{
        margin-bottom:40px;
    }
    .hero-content h1 { font-size: 2.4rem; }
    .portfolio { padding: 60px 5%; }
    .detail-title-row { flex-direction: column; }
    .detail-title-row h1 { font-size: 2rem; }
    .detail-slider .slide img { height: 280px; }
    .project-detail { padding: 30px 5% 60px; }
}

