/* ===================================
   CSS Variables & Base Styles
   =================================== */
:root {
    --primary-color: #0f4b80;
    --accent-color: #e67e22;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #ffffff;
    --bg-subtle: #f8f9fa;
    --border-color: #e0e0e0;

    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Montserrat", sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1400px;
    --header-height: 100px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;

    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.25);

    --section-padding: 6rem 2rem;
    --card-padding: 2.5rem;
    --container-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 3.5rem;
}

/* ===================================
   Header Styles
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.brand-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ===================================
   Main Content Styles
   =================================== */
/* ===================================
   Main Content Styles
   =================================== */
.hero-container {
    background: var(--bg-subtle) no-repeat center;
    background-size: cover;
}

/* WebP background pro moderní prohlížeče */
@supports (background-image: url(test.webp)) {
    .hero-container {
        background-image: url(images/hero-background.webp);
    }
}

/* Fallback JPG pro staré prohlížeče */
@supports not (background-image: url(test.webp)) {
    .hero-container {
        background-image: url(images/hero-background.jpg);
    }
}

.hero {
    min-height: 85vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    /* CSS animace místo statického transform - prevence CLS */
    animation: heroSlideUp 0.8s ease-out forwards;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.hero h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease-out;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    transition: var(--transition);
}

.hero-content:hover .hero-description {
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: #cf6c1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(15, 75, 128, 0.3);
}

.section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section:nth-child(even) {
    background: var(--bg-subtle);
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section:nth-child(even) > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.about-content a:hover {
    color: var(--primary-color);
}

.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.gallery-category {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--bg-subtle);
}

.gallery-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.gallery-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: var(--transition);
}

.gallery-category:hover::before {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-category:hover .category-image {
    transform: scale(1.1);
}

.category-title {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    transition: var(--transition);
    transform: translateY(20px);
}

.gallery-category:hover .category-title {
    opacity: 1;
    transform: translateY(0);
}

.category-title h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.category-count {
    color: white;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.pricing-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ===================================
   Contact Styles
   =================================== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.contact-item {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--accent-color);
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.social-link:hover svg {
    fill: white;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(15, 75, 128, 0.3);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* ===================================
   Footer Styles
   =================================== */
.footer {
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer p {
    font-size: 0.95rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        min-width: 150px;
        width: 30%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h2 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .gallery-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h2 {
        font-size: 2rem;
    }

    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .brand-text h1 {
        font-size: 1.4rem;
    }

    .brand-text p {
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        gap: 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .category-title h3 {
        font-size: 1.8rem;
    }
}

/* ===================================
   Performance Optimizations
   =================================== */
/* Fade-in animace pro Intersection Observer */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Will-change hint pro lepší GPU acceleration */
.hero-content,
.gallery-category,
.btn {
    will-change: transform;
}

/* Respektování preferencí uživatele pro redukované animace */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
