/* 
   ZEDŘEVA - Hlavní stylopis
   Design: Warm Organic / Cultural
*/

:root {
    --color-bg: #F9F7F2;
    --color-ink: #2D2A26;
    --color-wood: #8B5E3C;
    --color-wood-light: #A67C52;
    --color-border: rgba(45, 42, 38, 0.1);
    --color-white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-ink);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--color-ink);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5rem;
}

/* Header & Nav */
header {
    background-color: var(--color-ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-desktop ul {
    display: flex;
    gap: 3rem;
}

.nav-desktop ul li a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    color: var(--color-white);
}

.nav-desktop ul li a:hover,
.nav-desktop ul li a.active {
    opacity: 1;
    color: var(--color-wood-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    height: 44px;
    width: 44px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle.open span {
    background-color: var(--color-ink);
}

.nav-mobile {
    display: none;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 4rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 40px 60px rgba(0,0,0,0.05);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.nav-mobile ul li a {
    font-weight: 600;
    font-size: 0.85rem; /* Smaller text on mobile */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-ink);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.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;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(249, 247, 242, 1) 0%, rgba(249, 247, 242, 0.8) 40%, rgba(249, 247, 242, 0) 100%);
    z-index: 2;
}

.hero-content-overlay {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text-box {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-wood);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-text-box h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.hero-text-box p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Sections & Spacing */
.section {
    padding: 6rem 0;
}

.section-title {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-badge {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-wood);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    line-height: 1.1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-wood);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-wood-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 94, 60, 0.3);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-ink);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-wood);
    color: var(--color-wood);
    transform: translateY(-3px);
}

/* Grids & Cards */
.experience-grid, .why-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.exp-card, .why-item, .service-card {
    background: white;
    padding: 3.5rem;
    border: 1px solid var(--color-border);
    border-radius: 32px;
    transition: var(--transition);
}

.exp-card:hover, .why-item:hover, .service-card:hover {
    border-color: var(--color-wood-light);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-icon {
    width: 60px;
    height: 2px;
    background: var(--color-wood);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-wood);
}

/* O nás - Side by side */
.about-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Experiences - Points style */
.row-content {
    display: flex;
    gap: 6rem;
}

.row-title {
    flex: 1;
    max-width: 400px;
}

.points-list {
    flex: 2;
}

.point-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.point-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-wood);
    font-weight: 700;
    line-height: 1;
    opacity: 0.3;
}

.point-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.point-text p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Why Us - Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 94, 60, 0.05);
    border-color: var(--color-wood);
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: rgba(139, 94, 60, 0.1);
    color: var(--color-wood);
    border-radius: 12px;
    margin: 0 auto 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Services Alt */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-list-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    text-align: center;
}

.service-item-simple {
    flex: 0 1 350px;
}

.item-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.item-head .dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-wood);
    border-radius: 50%;
}

.service-item-simple h3 {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.service-item-simple p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.7;
}

/* Gallery Intro */
.gallery-intro {
    padding: 6rem 0 0;
}

.gallery-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.gallery-intro p {
    font-size: 1.25rem;
    opacity: 0.6;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-ink);
}

.filter-btn:hover {
    border-color: var(--color-wood);
    color: var(--color-wood);
}

.filter-btn.active {
    background-color: var(--color-wood);
    color: white;
    border-color: var(--color-wood);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2010;
    line-height: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 3.5rem;
    padding: 2rem;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition);
    z-index: 2015;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav button:hover {
    opacity: 1;
    color: var(--color-wood-light);
}

@media (max-width: 768px) {
    .lightbox-nav button {
        display: none; /* Hide arrows on mobile, use swipe instead */
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* Call to Action */
.cta {
    background-color: white;
    text-align: center;
    padding: 10rem 0;
    border-top: 1px solid var(--color-border);
}

.cta h2 {
    font-size: 4rem;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    padding: 5rem 0 3rem;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-info {
    display: flex;
    gap: 4rem;
}

.contact-info div {
    font-size: 0.95rem;
    opacity: 0.7;
}

.contact-info span {
    display: block;
    margin-top: 0.3rem;
    font-weight: 700;
    color: var(--color-wood);
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    font-size: 0.85rem;
}

.credit-link {
    transition: var(--transition);
}

.credit-link:hover {
    color: var(--color-ink);
    opacity: 1;
    text-decoration: underline;
}

/* Responsive updates for About side-by-side */
@media (max-width: 1024px) {
    .about-flex {
        gap: 3rem;
    }
    .row-content {
        flex-direction: column;
        gap: 4rem;
    }
    .row-title {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 850px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .services-header {
        margin-bottom: 2rem;
    }
    .services-list-simple {
        flex-direction: column;
        gap: 1rem;
    }
    .service-item-simple {
        padding: 0.5rem 0;
        flex: none;
    }
    .nav-mobile ul li a {
        font-size: 0.8rem; /* Even smaller if needed */
        letter-spacing: 0.2em;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-nav button {
        display: none; /* Hide arrows on mobile, use swipe instead */
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text-box h1 {
        font-size: 2.8rem;
    }
    .hero-btns {
        gap: 0.8rem;
    }
    .hero-btns .btn {
        padding: 1rem 1.2rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: 2.4rem;
    }
    .cta {
        padding: 4rem 0;
    }
    .cta h2 {
        font-size: 1.8rem;
    }
    .contact-info {
        display: grid;
        grid-template-columns: auto auto;
        gap: 0.8rem 1.5rem;
        justify-content: center;
        text-align: left;
    }
    .contact-info div:nth-child(1) { grid-row: 1; grid-column: 1; } /* Email */
    .contact-info div:nth-child(3) { grid-row: 1; grid-column: 2; } /* Působnost */
    .contact-info div:nth-child(2) { grid-row: 2; grid-column: 1; } /* Tel */

    .contact-info div {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    .contact-info span {
        font-size: 0.75rem;
        display: inline;
        margin-left: 0.1rem;
        font-weight: 700;
    }
    .container {
        padding: 0 1.5rem;
    }
}
