/* =========================================
   ZÁKLADNÍ PROMĚNNÉ & RESET
   ========================================= */
:root {
    /* Barevná paleta - tlumené zemitější/krémové tóny */
    --color-bg: #F9F6F0; /* Krémová */
    --color-surface: #FDFBF7; /* Jemně teplá bílá */
    --color-text: #3C322B; /* Tmavší zemitá hnědá pro text */
    --color-text-muted: #7E736A; /* Tlumená hnědošedá */
    --color-primary: #6D5E50; /* Zemitá tmavší pro tlačítka */
    --color-primary-hover: #4A3F36;
    --color-accent: #D6C0A4; /* Zemitá béžová / písečná */
    --color-border: #E2D9CD;
    
    /* Typografie */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Prostor & Stíny */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.04);
    --shadow-hover: 0 30px 60px rgba(0,0,0,0.08);
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAFIE
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
}

.logo {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--color-text);
    letter-spacing: 0.05em;
    transform: rotate(-2deg);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

h1 span {
    color: var(--color-text);
    position: relative;
    display: inline-block;
    z-index: 1;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -5px;
    right: -5px;
    height: 16px;
    background-color: var(--color-accent);
    z-index: -1;
    border-radius: 4px;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subtitle::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--color-text);
}

/* =========================================
   LAYOUY & KOMPONENTY
   ========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    position: relative;
}

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

/* Tlačítka */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    border-color: var(--color-text);
    background-color: var(--color-surface);
}

/* =========================================
   NAVIGACE (Header - Glassmorphism)
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    padding: 16px 0;
    background: rgba(252, 251, 249, 0.85); /* Semi-transparent bg */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo .dot {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

.btn-nav {
    padding: 10px 24px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text) !important;
}

.btn-nav:hover {
    border-color: var(--color-text);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SEkCE
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px; /* Offset for fixed nav */
}

.hero-content {
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    filter: brightness(0.95);
}

.badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--color-surface);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    animation: float 6s ease-in-out infinite;
}

.badge i {
    color: #FFB800; /* Star color */
    font-size: 1.5rem;
}

/* =========================================
   O NÁS
   ========================================= */
.about-section {
    background-color: var(--color-surface);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    position: relative;
    height: 600px;
}

.visual-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    /* For placeholder if no image */
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    box-shadow: var(--shadow-soft);
}

.visual-box.small-1 {
    top: auto;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background-color: var(--color-accent);
    z-index: 2;
    background-image: none;
}

/* =========================================
   SLUŽBY
   ========================================= */
.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.service-card {
    background: var(--color-surface);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 24px;
    width: 70px;
    height: 70px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* =========================================
   PORTFOLIO (YouTube)
   ========================================= */
.portfolio-section {
    background-color: var(--color-surface);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio pro Shorts/TikTok */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background-color: var(--color-bg);
    transition: var(--transition-smooth);
}

.video-wrapper:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   KONTAKT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    padding-right: 40px;
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.2rem;
    font-weight: 500;
}

.method i {
    font-size: 1.5rem;
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.social-links a:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}

.contact-form {
    background: var(--color-surface);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
    background-color: var(--color-surface);
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    margin-bottom: 0;
    display: none;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

footer .logo {
    margin-bottom: 16px;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* =========================================
   ANIMACE & RESPONSIVITA
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Scroll Animations */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .badge {
        left: 20px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .scroll-down-indicator { display: none !important; }
    .nav-links {
        display: none; /* schované dokud se neklikne */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        text-align: center;
        gap: 24px;
        z-index: 1000;
        border-top: 1px solid var(--color-border);
    }
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }
    .mobile-menu-btn {
        display: block;
    }
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        padding-right: 0;
    }
    .about-visual {
        height: 400px;
        margin-top: 40px;
    }
    .contact-form {
        padding: 30px;
    }
}

/* ====== Nové třídy z nedávné aktualizace ====== */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 32px 0;
}
.member h4 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.member p {
    font-size: 0.95rem;
    margin-bottom: 0px;
}
.headshot {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.placeholder-text {
    position: absolute;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 0;
}
.headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
    border-radius: var(--radius-lg);
}

/* ====== Tmavý režim (Dark Mode) ====== */
[data-theme="dark"] {
    --color-bg: #1B1814;
    --color-surface: #26221D;
    --color-text: #FDFBF7;
    --color-text-muted: #A39B91;
    --color-primary: #D6C0A4; 
    --color-primary-hover: #E2D1BC;
    --color-border: #3C352E;
}

[data-theme="dark"] .btn-primary {
    color: #1B1814; /* Tmavý text na světlém/zlatém tlačítku */
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-text);
}

[data-theme="dark"] #navbar.scrolled {
    background: rgba(27, 24, 20, 0.85); /* Tmavší sklo */
}

/* Fix svícení ikon ve tmě */
[data-theme="dark"] .service-card .icon {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

.theme-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}

/* ====== Koláž, ruční písmo a šipky ====== */
.collage {
    position: relative;
    height: 600px;
    width: 100%;
}
.photo-frame {
    position: absolute;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-radius: 12px;
    background-color: var(--color-surface);
    padding: 12px;
    padding-bottom: 24px; /* polaroid styl */
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), z-index 0s;
}
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-bg);
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.photo-sub-1 { /* Dáda */
    width: 200px;
    height: 250px;
    top: 50px;
    left: 0;
    transform: rotate(-6deg);
    z-index: 3;
}
.photo-main { /* Adam */
    width: 260px;
    height: 320px;
    top: 180px;
    left: 170px;
    transform: rotate(4deg);
    z-index: 4;
}
.photo-sub-2 { /* Společná */
    width: 220px;
    height: 220px;
    top: 30px;
    right: 0;
    transform: rotate(8deg);
    z-index: 1;
}

.photo-frame:hover {
    transform: scale(1.08) rotate(0deg);
    z-index: 10;
}

.handwritten-note {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}
.handwritten-note.note-1 {
    top: -50px;
    left: -20px;
    transform: rotate(-10deg);
}
.handwritten-note.note-2 {
    bottom: -60px;
    right: -40px;
    transform: rotate(8deg);
}
.arrow {
    width: 40px;
    height: 40px;
    stroke: var(--color-text);
}
@media (max-width: 768px) {
    .collage { height: 450px; margin-top: 60px; }
    .photo-main { width: 180px; height: 220px; left: 40%; top: 120px; }
    .photo-sub-1 { width: 140px; height: 180px; left: 5%; top: 30px; }
    .photo-sub-2 { display: none; } /* pro mobily třetí schováme ať to není přeplácané */
}

/* Třetí ruční poznámka v koláži */
.handwritten-note.note-3 {
    top: -30px;
    left: -120px;
    transform: rotate(-8deg);
}

/* =========================================
   KLIENTI (Marquee Nekonečný pás)
   ========================================= */
.clients-section {
    padding: 0 0 100px 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* Postupné ztmavení na krajích pásu */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

.marquee-track {
    display: flex;
    gap: 100px;
    align-items: center;
    /* Rychlost pásu je 20s (můžete zkrátit/prodloužit zadáním jiného čísla) */
    animation: scrollMarquee 25s linear infinite;
    padding: 0 50px;
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

/* Když uživatel najede myší na pás, zpomalí se */
.marquee-track:hover {
    animation-play-state: paused;
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-text);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 50px)); }
}

[data-theme="dark"] .client-logo { opacity: 0.2; }
[data-theme="dark"] .client-logo:hover { opacity: 0.8; }

/* Force client-logo img rules explicitly overrides inline heights */
img.client-logo {
    height: 70px !important;
    max-width: 250px;
    object-fit: contain;
    filter: grayscale(100%);
}
img.client-logo:hover {
    filter: grayscale(0%);
}

/* Přepsání tvaru pro social pill s textem */
.social-links a.social-btn {
    width: auto;
    padding: 0 20px;
    border-radius: 24px;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}
.social-links a.social-btn i {
    font-size: 1.4rem;
}

/* =========================================
   CUSTOM CURSOR (Kreativní "wow" efekt)
   ========================================= */
@media (pointer: fine) {
    /* Skryjeme původní kurzor tam, kde je myš */
    body, a, button, input, textarea, .theme-toggle, .service-card, iframe {
        cursor: none !important;
    }
    
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--color-primary);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        z-index: 10000;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: opacity 0.3s;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1.5px solid var(--color-primary);
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, opacity 0.3s;
    }

    /* Efekt po najetí na klikatelný prvek */
    .cursor-outline.hover {
        width: 70px;
        height: 70px;
        background-color: rgba(214, 192, 164, 0.2);
        border-color: transparent;
        backdrop-filter: blur(2px); /* jemné sklo */
    }
}

/* Animace pro kolečko myši (Scroll Indicator) */
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0; }
    51% { transform: translateY(-8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
