/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-bg: #000000;
    --color-bg-mid: #111111;
    --color-bg-light: #1a1a1a;
    --color-text: #f0f0f0;
    --color-text-muted: #888888;
    --color-accent: #c9a050;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 3px;
}

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

a:hover {
    color: var(--color-accent);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =====================
   HEADER
   ===================== */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid #1c1c1c;
    position: sticky;
    top: 0;
    z-index: 200;
    transition: border-color 0.3s;
}

/* Logo: centrované záhlaví */
.header-logo {
    text-align: center;
    padding: 28px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-height: 330px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.header.scrolled .header-logo {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

/* Mini logo v navigaci */
.nav-logo {
    display: none;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.header.scrolled .nav-logo {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.logo {
    margin-bottom: 6px;
}

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

.logo-mo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--color-text);
}

.logo-tattoo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 10px;
    color: var(--color-text-muted);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

/* =====================
   NAVIGACE
   ===================== */
.nav {
    border-top: 1px solid #1c1c1c;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text);
    transition: all 0.3s;
    display: block;
}

/* Levá část: stránkové odkazy */
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 14px 0;
    display: block;
    color: var(--color-text-muted);
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

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

/* Pravá část: kontakt + ikony */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-contact-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-contact-link:hover {
    color: var(--color-accent);
}

.nav-social {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav-social a {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-social a:hover {
    color: var(--color-accent);
}

/* =====================
   HERO: scrollovací pás
   ===================== */
.hero {
    overflow: hidden;
    background: var(--color-bg);
    line-height: 0;
}

.hero-strip-wrapper {
    overflow: hidden;
    width: 100%;
}

.hero-track {
    display: flex;
    will-change: transform;
}

.hero-track img {
    height: 380px;
    width: auto;
    flex-shrink: 0;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

/* Animace marquee spuštěna přes JS */
.hero-track.animating {
    animation: hero-scroll linear infinite;
}

@keyframes hero-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================
   DVOUSLOUPCOVÉ SEKCE
   (Návrhy, Ateliér, O mně)
   ===================== */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Alternativní sekce (Ateliér): tmavší pozadí */
.section-split--alt {
    background-color: var(--color-bg-mid);
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 60px;
    gap: 30px;
}

.split-text p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 420px;
}

/* "Ondra :-)" – větší, osobitý text */
.split-text--name p {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--color-text);
    line-height: 1.2;
}

.split-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

/* =====================
   SLIDESHOW (Návrhy)
   ===================== */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slideshow img.active {
    opacity: 1;
}

/* =====================
   GALERIE NÁVRHŮ – modal
   ===================== */
.designs-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.designs-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.designs-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.designs-modal-content {
    position: relative;
    width: 94vw;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 40px 40px;
    z-index: 1;
}

.designs-modal-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.4rem;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    transition: color 0.3s;
}

.designs-modal-close:hover {
    color: var(--color-accent);
}

.designs-modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 36px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.designs-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.designs-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.designs-grid-item:hover img {
    transform: scale(1.03);
}

.designs-grid-item .designs-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: 1px;
}

/* =====================
   INFORMACE / CENÍK
   ===================== */
.informace {
    padding: 80px 0;
    background-color: var(--color-bg);
    text-align: center;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.price-note {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* Tlačítko CTA */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 40px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    background-color: #d4a84a;
    color: #000;
    transform: translateY(-2px);
}

/* =====================
   KONTAKT
   ===================== */
.kontakt {
    padding: 80px 0;
    background-color: var(--color-bg-mid);
    text-align: center;
}

.kontakt h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 28px;
}

.kontakt-address {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.kontakt-note {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.kontakt-email,
.kontakt-phone {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.kontakt-email a,
.kontakt-phone a {
    color: var(--color-text);
    transition: color 0.3s;
}

.kontakt-email a:hover,
.kontakt-phone a:hover {
    color: var(--color-accent);
}

.kontakt-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* =====================
   MAPA
   ===================== */
.mapa {
    width: 100%;
    aspect-ratio: 6 / 1;
    overflow: hidden;
    line-height: 0;
    filter: grayscale(100%) contrast(0.9) brightness(0.85);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* =====================
   ZÁPATÍ
   ===================== */
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid #1c1c1c;
    padding: 22px 20px;
    text-align: center;
}

.footer p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

/* =====================
   MODÁLNÍ OKNO
   ===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.modal-box {
    position: relative;
    z-index: 1;
    background: var(--color-bg-light);
    border: 1px solid #2a2a2a;
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    margin: 16px;
}

.modal-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--color-text);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    padding: 4px 8px;
}

.modal-close:hover {
    color: var(--color-text);
}

/* Formulář v modálu */
.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid #2a2a2a;
    border-radius: 0;
    transition: border-color 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 8px;
    width: 100%;
}

.form-status {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 0;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #1a3a1a;
    border: 1px solid #2e7d32;
    color: #81c784;
}

.form-status.error {
    display: block;
    background-color: #3a1a1a;
    border: 1px solid #c62828;
    color: #ef9a9a;
}

/* =====================
   RESPONSIVITA
   ===================== */
@media (max-width: 900px) {
    .section-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Na mobilu: u alt sekce (Ateliér) obrázek nahoře, text dole */
    .section-split--alt .split-image {
        order: -1;
    }

    .split-text {
        padding: 50px 30px;
    }

    .split-text p {
        max-width: 100%;
    }

    .split-image {
        min-height: 280px;
    }

    .split-image img {
        height: 280px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-logo {
        padding: 20px 16px 14px;
    }

    .logo-mo {
        font-size: 2.2rem;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding: 0;
    }

    .nav-toggle {
        display: flex;
        padding: 12px 20px;
        margin: 0 auto;
    }

    /* Scrolled: logo vlevo, hamburger vpravo, na jednom řádku */
    .header.scrolled .nav-inner {
        justify-content: space-between;
        align-items: center;
    }

    .header.scrolled .nav-logo {
        position: static;
        transform: none;
        padding: 6px 20px;
    }

    .header.scrolled .nav-toggle {
        margin: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--color-bg-mid);
        padding: 10px 0;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 24px;
        display: block;
        text-align: center;
        border-bottom: none;
    }

    .nav-contact {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 16px 0 20px;
        gap: 10px;
        background: var(--color-bg-mid);
        width: 100%;
    }

    .nav-contact.active {
        display: flex;
    }

    .nav-toggle-wrap {
        display: flex;
        justify-content: center;
        padding: 10px 0;
    }

    .hero-track img {
        height: 220px;
    }

    .split-text--name p {
        font-size: 1.6rem;
    }

    .price-main {
        font-size: 1.25rem;
    }

    .mapa {
        aspect-ratio: 3 / 1;
    }

    .modal-box {
        padding: 36px 24px 28px;
    }
}

@media (max-width: 480px) {
    .logo-mo {
        font-size: 1.8rem;
    }

    .split-text {
        padding: 40px 20px;
    }

    .informace {
        padding: 60px 0;
    }

    .kontakt {
        padding: 60px 0;
    }

    .mapa {
        aspect-ratio: 2.5 / 1;
    }
}
