/* =========================================================
   Úvodní stránka (index.php) – styly jen pro tuto stránku.
   Společné styly (menu, tlačítka, sekce, patička) jsou
   v style.css.
   ========================================================= */

/* Video Section */
.video-hero {
    width: 100%;
    margin-top: 0;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--deep-cream) 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Desktop verze: Drží tvůj upravený filmový poměr stran bez pruhů */
.video-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    padding-bottom: 42%; /* Filmový ořez pro desktop */
    height: 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: fadeIn 1s ease-out;
}

.video-container iframe {
    width: 100%;
    height: 130%;
    position: absolute;
    top: -15%;
    left: 0;
    border: 0;
}

.video-placeholder {
    text-align: center;
    color: rgba(160, 82, 45, 0.3);
    z-index: 1;
}

.video-placeholder p {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(160, 82, 45, 0.5);
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* Hero - Content Section */
.hero {
    width: 100%;
    margin-top: 80px; /* místo pod pevným menu */
    background: var(--deep-cream);
    padding: 6rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInDown 1.2s ease-out;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--burnt-sienna);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
}

/* Gallery Preview Section */
.gallery-preview-section {
    padding: 6rem 4rem;
    max-width: 1800px;
    margin: 0 auto;
}

/* Společný vnější obal pro galerii */
.gallery-slider-container {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 20px;  
    box-sizing: border-box;
}

/* ── NOVÝ KVADRANTOVÝ GRID (2x2) ── */
.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dva sloupce vedle sebe */
    grid-template-rows: repeat(2, 1fr);    /* Dva řádky pod sebou */
    gap: 15px;                             /* Mezera mezi obrazy */
    width: 100%;
    aspect-ratio: 4/3;                     /* Udrží stabilní obdélníkový poměr stran */
    text-decoration: none;
}

/* Dlaždice = samostatný odkaz na detail obrazu (odkaz se nastavuje v JS) */
.quadrant-slot {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #1e1e1e;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Jemný zoom při najetí myší na konkrétní obraz */
.quadrant-slot:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Vrstva s obrazem – každá dlaždice má dvě a střídají se.
   Nová vrstva se roztáhne ze středu přes tu starou. */
.q-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    transform: scale(0);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.q-layer.current  { z-index: 1; }

.q-layer.incoming { z-index: 2; }

.q-layer.show     { transform: scale(1); }

/* Rozmazané pozadí z téhož obrazu vyplní prostor kolem celého obrazu */
.q-blur {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.7);
}

/* Obraz je vidět celý (bez ořezu) */
.q-layer img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-view-btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* Expandable Content */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable-content.active {
    max-height: 2000px;
}

.service-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* ---------------------------------------------------------
   NOVÉ: řádek tlačítek pod videem a pod náhledem galerie
   --------------------------------------------------------- */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 2rem 1rem;
}

.gallery-view-btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 40px;
}

/* Blok „O autorce" nahoře: o něco menší odsazení než ostatní sekce */
.about-intro {
    padding-bottom: 2rem;
}

.about-intro .featured-item {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Responzivita – jen pro úvodní stránku
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 2rem 2rem 0;
    }

    .gallery-view-btn-container {
        flex-direction: column;
    }

    .gallery-preview-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .gallery-slider-container {
        padding: 0 10px;
    }

    .quadrant-grid {
        gap: 8px;
        aspect-ratio: 1/1; /* čtvercová mřížka pro pohodlné scrollování */
    }

    /* Video: standardní poměr 16:9, aby bylo vidět ovládání zvuku */
    .video-container {
        padding-bottom: 56.25%;
    }

    .video-container iframe {
        height: 100%;
        top: 0;
    }
}

/* ---------------------------------------------------------
   Tlačítka Objednat termín na úvodní stránce
   --------------------------------------------------------- */
.hero-actions {
    margin-top: 2.5rem;
}

.cta-band {
    margin-top: 6rem;
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--deep-cream) 100%);
}

.cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.cta-band p {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .cta-band { margin-top: 4rem; padding: 3.5rem 1.5rem; }
    .cta-band h2 { font-size: 1.9rem; }
}

.cta-band + .newsletter {
    margin-top: 0;
}

/* Odkazy na zakázkové obrazy a repliky v galerii */
.zakazky-odkazy {
    margin-top: 1.5rem;
}

.zakazky-odkazy .hero-cta {
    margin-left: 0;
}

@media (max-width: 768px) {
    .zakazky-odkazy .hero-cta { margin: 0.5rem 0; }
}


/* ---------------------------------------------------------
   Hero: podnadpis (bezpatkové písmo) pod hlavním nadpisem
   --------------------------------------------------------- */
.hero-tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.9;
}

.hero-tagline span {
    display: inline-block;
}

.hero-tagline .tagline-dot {
    margin: 0 0.9rem;
    color: var(--gold);
}

/* ---------------------------------------------------------
   Medailonek (Mgr. Dita Nováková)
   --------------------------------------------------------- */
.medailon {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4rem 4rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.medailon-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.medailon-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--charcoal);
    margin-bottom: 0.8rem;
}

.medailon-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--burnt-sienna);
}

.medailon-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 4rem;
    align-items: center;
}

.medailon-foto {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--soft-tan) 0%, var(--warm-beige) 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.medailon-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.medailon-text blockquote {
    margin: 0;
}

.medailon-text p {
    font-size: 1.3rem;
    line-height: 1.85;
    font-style: italic;
    color: #444;
    margin-bottom: 1.2rem;
}

.medailon-text strong {
    font-weight: 700;
    color: var(--charcoal);
}

/* Podpis: zarovnaný vpravo pod textem */
.medailon-text .podpis {
    display: block;
    width: 220px;
    max-width: 60%;
    height: auto;
    margin: 1.5rem 0 0 auto;
}

@media (max-width: 1200px) {
    .medailon { padding: 5rem 2rem 3rem; }
    .medailon-grid { gap: 2.5rem; }
}

@media (max-width: 900px) {
    .medailon-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .medailon-foto {
        max-width: 340px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* Na mobilu je každá fráze na vlastním řádku, tečky se skryjí */
    .hero-tagline span {
        display: block;
    }

    .hero-tagline .tagline-dot {
        display: none;
    }

    .medailon-header h2 { font-size: 2.3rem; }
    .medailon-sub { font-size: 1.25rem; }
    .medailon-text p { font-size: 1.15rem; }
    .medailon-text .podpis { width: 190px; }
}

/* ---------------------------------------------------------
   Video ve smyčce (vlastní soubor)
   --------------------------------------------------------- */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Odkaz v textu */
.text-odkaz {
    color: var(--burnt-sienna);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color 0.3s ease;
}

.text-odkaz:hover {
    color: var(--gold);
}

.repliky-radek {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: #555;
}

/* Pokud je nad úvodem pruh s aktualitou, hero už nepotřebuje odsazení od menu */
.hero.hero-pod-pruhem {
    margin-top: 0;
}
