:root {
    --primary-color: #8c6239; /* Tmavší hnědá z loga */
    --primary-light: #d4b996; /* Světlejší hnědá z loga */
    --secondary-color: #5d4037; /* Velmi tmavá hnědá / akcent */
    --accent-color: #a67c52;
    --text-color: #2c2c2c;
    --light-bg: #fdfaf5; /* Krémové pozadí pro rustikální nádech */
    --white: #ffffff;
    --black: #1a1a1a;
    --font-main: 'Instrument Sans', sans-serif;
    --font-heading: 'Jost', sans-serif;
    --container-width: 1100px;
    --section-padding: 100px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7; /* Zlepšení čitelnosti */
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--black);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2.text-center::after, h2:not(.text-center)::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

h2.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

h2:not(.text-center)::after {
    left: 0;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px; /* Zvýšeno pro lepší start/end padding na větších displejích */
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    font-weight: bold;
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
}

.btn-contact:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    display: block;
}

/* Sections alternating backgrounds */
section:nth-of-type(even) {
    background-color: var(--light-bg);
}

section:nth-of-type(odd) {
    background-color: var(--white);
}

.about {
    background-color: transparent; /* Reset explicit background to allow nth-of-type */
}

/* Specific section overrides if needed */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('../assets/hero-image.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.page-header {
    background: var(--primary-light) !important;
    color: var(--black);
}

.contact-promo {
    background-color: var(--secondary-color) !important;
    color: var(--white);
}

.contact-promo h2 {
    color: var(--white);
}

.contact-promo p {
    color: var(--white);
}

.contact-promo h2::after {
    background: var(--primary-light);
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero h1 strong {
    display: block;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.about {
    background-color: var(--light-bg);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: 0.4s;
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card img {
    border-radius: 12px;
    border: 1px solid rgba(140, 98, 57, 0.1);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.service-card h3 {
    color: var(--primary-color);
}

/* Realizations & Gallery */
.gallery-preview, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-preview img, .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 5px; /* Méně kulaté pro modernější vzhled */
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 98, 57, 0.2);
}

/* Why us */
.check-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-promo {
    background-color: var(--secondary-color) !important;
    color: var(--white);
    padding: 80px 0;
}

.contact-promo p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.contact-promo h2 {
    color: var(--white);
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.contact-promo h2::after {
    display: none;
}

.contact-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.contact-link-item i {
    font-size: 2rem;
    background: var(--white);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-link-item:hover i {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-links p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Spacers */
.section-divider {
    height: 80px;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-small {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-light);
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: #333;
    margin: 0 auto 30px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(140, 98, 57, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(140, 98, 57, 0.9);
}

.slider-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slider-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin: 0;
}

.footer-logo-container .logo-name,
.footer-logo-container .logo-subtitle {
    color: var(--white);
}

footer .footer-divider {
    background: var(--primary-color);
    opacity: 0.5;
}

.footer-logo-container .logo-name {
    font-size: 1.1rem;
}

.footer-logo-container .logo-subtitle {
    font-size: 0.9rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.small {
    font-size: 0.8rem;
    color: #777;
}

.large-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.contact-info-large h2 {
    margin-bottom: 2.5rem;
}

.contact-map {
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

.contact-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-large {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.page-header {
    background: var(--primary-light);
    padding: 60px 0;
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.page-header p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(140, 98, 57, 0.3);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2010;
    transition: 0.3s;
    border-radius: 4px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        padding: 15px;
        font-size: 1.2rem;
        background: rgba(140, 98, 57, 0.5);
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 20px; /* Standardní padding pro mobilní zařízení */
    }

    .section-divider {
        height: 40px;
    }

    .grid, .services-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: 30px;
    }

    .hero {
        text-align: center;
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 strong {
        display: inline;
    }
    
    h2 {
        font-size: 2rem;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .footer-logo-container {
        justify-content: center;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    
    .footer-logo {
        height: 35px;
    }
}
