@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Colors */
    --primary: #E53935;
    --primary-dark: #C62828;
    --secondary: #6B7280;
    --bg-main: #F3EEE7;
    --bg-white: #FFFFFF;
    --text-main: #333333;
    --text-light: #F9F9F9;
    
    /* Layout */
    --container-width: 85%;
    --container-max: 1280px;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows & Glassmorphism */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.0625rem; /* ~17px */
    overflow-x: hidden;
}

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

/* Typography Scale using clamp for responsiveness */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; }

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

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

/* UTILITIES */
.container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-title { text-align: center; margin-bottom: 3rem; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-white);
}

/* GLASSMORPHISM CARD */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(243, 238, 231, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo img, .footer-logo {
    display: none !important;
}

.logo-text {
    display: block !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 3px;
    font-family: 'Lato', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
}

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

.nav-links .btn-nav {
    background-color: var(--text-main);
    color: var(--bg-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.nav-links .btn-nav:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* SECTION PADDING */
section {
    padding: 6rem 0;
}

/* HERO SECTION */
.hero {
    min-height: calc(100vh - 80px);
    margin-top: 80px; /* Pushes the hero section below the fixed navbar */
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: 95% top; /* Aligns the top of the photo to the top of the hero container so the head is never cropped, and shifts the person to the right */
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: block;
}

.hero-content {
    max-width: 550px; /* Limit text width */
    background: transparent; /* Completely transparent */
    backdrop-filter: none; /* Removed glass effect */
    -webkit-backdrop-filter: none;
    border: none;
    color: var(--bg-white);
    padding: 2rem 0; /* Flush left */
    text-align: left;
    border-radius: 0;
    box-shadow: none;
}

.hero-content h1 {
    color: var(--bg-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* For better legibility without strong glass box */
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero-content .trust-element {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* BENTO GRID (4 columns max, usually 2 or 3) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.bento-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

/* MARQUEE CAROUSEL FOR TESTIMONIALS */
.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Break out of container to full screen */
    overflow: hidden;
    position: relative;
    padding: 1rem 0 3rem 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    padding: 0 1rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    width: 350px;
    flex-shrink: 0;
    white-space: normal;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* Shift by exactly half the track width (assuming content is duplicated) */
}

/* VALUE PROP SECTION */
.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* EMPATHY SECTION */
.empathy-section {
    position: relative;
    background-size: cover;
    background-position: center top; /* Keeps the top part of the image (head) visible */
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.empathy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.empathy-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 750px;
    margin-left: auto; /* Push card to the right side for variation */
}

.empathy-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.empathy-content h2 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.empathy-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* ABOUT PREVIEW */
.about-preview {
    background-color: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Odstraní případné okraje a sjednotí kompozici */
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

/* SERVICES OVERVIEW */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.service-card:hover .service-link {
    gap: 0.8rem;
}

/* PROCESS SECTION */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.process-step h3 {
    margin-top: 1rem;
}

/* TRANSPARENCY SECTION */
.transparency-container {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}

.transparency-content {
    max-width: 800px;
    margin: 0 auto;
}

/* LEAD MAGNET */
.lead-magnet {
    position: relative;
    background-size: cover;
    background-position: center top; /* Keeps the top part of the image (head) visible */
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.lead-magnet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.lead-magnet-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 750px;
    margin-right: auto;
}

.lead-magnet-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.lead-magnet-content h2 {
    color: var(--bg-white);
}

.lead-magnet-content p {
    color: rgba(255, 255, 255, 0.9);
}

.checklist-items {
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary);
    margin-bottom: 2.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* CONTACT CTA */
.contact-cta-section {
    padding: 8rem 0;
}

.contact-cta-section h2 {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* FOOTER */
.footer {
    background-color: var(--bg-white);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer nav a {
    color: var(--secondary);
}

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

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.legal-text {
    font-size: 0.85rem;
    color: var(--secondary);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* MEDIA QUERIES (Mobile First adaptations) */
@media (max-width: 1024px) {
    .hero-container,
    .empathy-container,
    .lead-magnet-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content, .empathy-content, .lead-magnet-content {
        text-align: center;
    }
    
    .hero {
        min-height: calc(100vh - 70px);
        margin-top: 70px; /* Slightly smaller offset for mobile navbar */
        background-position: 75% top; /* Keep top of photo visible on mobile too */
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.4) 100%) !important;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta-group {
        align-items: center;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .empathy-image, .about-image {
        order: 1;
    }
    
    .empathy-content, .about-content {
        order: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 90%;
    }
    
    section { padding: 4rem 0; }
    
    .card {
        padding: 1.75rem;
    }
    
    /* Mobile Menu */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .lead-magnet-container,
    .empathy-container {
        padding: 0;
    }

    .lead-magnet-content,
    .empathy-content {
        padding: 1.75rem 1.25rem;
    }
    
    .transparency-container {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.grid-col-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .grid-col-span-2 {
        grid-column: span 1;
    }
}

.zoom-image-hover:hover img {
    transform: scale(1.05);
}

.referencni-list-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .referencni-list-card {
        flex-direction: column;
        align-items: stretch;
    }
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    z-index: 10000;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* COOKIE BANNER STYLE */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.cookie-banner.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content h4 {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-content h4 i {
    color: var(--primary);
}

.cookie-banner-content p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--secondary);
    margin: 0;
}

.cookie-banner-content p a {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-content p a:hover {
    color: var(--primary);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.cookie-banner-buttons .btn-cookie {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.cookie-banner-buttons .btn-accept {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.cookie-banner-buttons .btn-accept:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.cookie-banner-buttons .btn-reject {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-banner-buttons .btn-reject:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* Re-open settings tab */
.cookie-settings-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    color: var(--secondary);
    transition: var(--transition);
    opacity: 0.7;
    border: none;
}

.cookie-settings-trigger:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 1.2rem;
    }
    
    .cookie-settings-trigger {
        bottom: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
    }
}

