/* ==========================================================================
   1. PROMĚNNÉ A ZÁKLADNÍ STYLY
   ========================================================================== */
:root {
    --color-bg: #F5F2E9;
    --color-bg-alt: #DFD7C5;
    --color-surface: #FBFAF5;
    --color-surface-alt: #EAE4D6;

    --color-text-main: #2A2A28;
    --color-text-muted: #4F5749;

    --color-primary: #303A35;
    --color-primary-hover: #202A25;
    --color-accent: #53643D;
    --color-accent-hover: #3F4F2D;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 4px 12px rgba(42, 42, 40, 0.03);
    --shadow-md: 0 10px 30px rgba(42, 42, 40, 0.05);
    --shadow-lg: 0 20px 40px rgba(42, 42, 40, 0.06);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}

/* Krátký úvod: 0,7 s objevení loga + 0,7 s společné vytrácení. */
.site-intro {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 1.5rem;
    place-items: center;
    background-color: var(--color-bg-alt);
}

.intro-active .site-intro {
    display: grid;
    animation: intro-fade-out 0.7s ease-in-out 0.7s forwards;
}

.site-intro-logo {
    display: block;
    width: clamp(180px, 40vw, 285px);
    max-width: 100%;
    height: auto;
}

.intro-active .site-intro-logo {
    animation: intro-logo-in 0.7s ease-out both;
}

@keyframes intro-logo-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes intro-fade-out {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-active .site-intro {
        display: none;
        animation: none;
    }

    .intro-active .site-intro-logo {
        animation: none;
    }
}

/* Typografie */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-main);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    text-align: center;
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FBFAF5;
    box-shadow: 0 4px 14px rgba(48, 58, 53, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(48, 58, 53, 0.35);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #FBFAF5;
    box-shadow: 0 4px 14px rgba(83, 100, 61, 0.25);
}

.btn-accent:hover, .btn-accent:focus-visible {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(83, 100, 61, 0.35);
}

/* Odsazení sekcí */
section {
    padding: 5rem 1.5rem;
    scroll-margin-top: 80px;
}

@media (min-width: 768px) {
    section {
        padding: 7rem 2rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   2. NAVIGACE
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 242, 233, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: auto;
    height: 64px;
}

@media (max-width: 868px) {
    .logo-image {
        height: 56px;
    }
}

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

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

.nav-link:hover, .nav-link:focus-visible {
    color: var(--color-primary);
}

@media (min-width: 869px) {
    .nav-menu {
        display: flex;
        align-items: center;
    }
    .header-cta {
        margin-left: 2.5rem;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Menu */
@media (max-width: 868px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: var(--color-surface);
        box-shadow: -10px 0 30px rgba(42, 42, 40, 0.1);
        padding: 6rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    }
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .header-cta {
        width: 100%;
        margin-top: 1rem;
        margin-left: 0;
    }
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   3. ÚVODNÍ SEKCE (HERO)
   ========================================================================== */
.hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 650px;
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.hero-content {
    position: relative;
    padding: 4rem 1.5rem;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 5.5rem 3rem;
    }
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../images/ranni-kava.jpeg') center/cover no-repeat;
    filter: blur(15px);
    z-index: -2;
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(48, 58, 53, 0.86);
    z-index: -1;
}

.hero-content h1 {
    color: #FBFAF5;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #DFD7C5;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-style: italic;
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
    color: rgba(223, 215, 197, 0.95);
}

.hero-text {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(251, 250, 245, 0.98);
}

/* ==========================================================================
   4. PŘEDSTAVENÍ UBYTOVÁNÍ
   ========================================================================== */
.about-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 3.5rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 650px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-item {
    background-color: var(--color-surface);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.highlight-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.4;
}

/* ==========================================================================
   5. KOMFORT UPROSTŘED PŘÍRODY
   ========================================================================== */
.comfort-section {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (min-width: 650px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amenity-card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.amenity-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.amenity-icon {
    width: 22px;
    height: 22px;
}

.amenity-title {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.3;
}

/* ==========================================================================
   6. MÍSTO PRO SPOLEČNÉ CHVÍLE
   ========================================================================== */
.moments-card {
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-lg);
    padding: 4rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .moments-card {
        padding: 5.5rem 4rem;
    }
}

.moments-text {
    max-width: 750px;
    margin: 0 auto;
}

.moments-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-style: italic;
    color: var(--color-primary);
    margin-top: 2rem;
    padding-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.moments-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    opacity: 0.3;
}

/* ==========================================================================
   7. FOTOGALERIE
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

@media (min-width: 550px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
    border: none;
    padding: 0;
    width: 100%;
    display: block;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(48, 58, 53, 0.66);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FBFAF5;
}

.gallery-overlay-icon {
    width: 32px;
    height: 32px;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-img,
.gallery-item:focus-visible .gallery-img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay-icon,
.gallery-item:focus-visible .gallery-overlay-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(42, 42, 40, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(42, 42, 40, 0.5);
    user-select: none;
}

.lightbox-counter {
    color: #FBFAF5;
    font-size: 0.9rem;
    margin-top: 1rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    font-weight: 500;
}

.lightbox-btn {
    position: absolute;
    background: rgba(48, 58, 53, 0.96);
    border: 1px solid rgba(223, 215, 197, 0.65);
    color: #FBFAF5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2010;
}

.lightbox-btn:hover, .lightbox-btn:focus-visible {
    background: rgba(83, 100, 61, 0.98);
    transform: scale(1.05);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-btn { width: 40px; height: 40px; }
}

/* ==========================================================================
   8. ZÁVĚREČNÁ VÝZVA K REZERVACI (CTA)
   ========================================================================== */
.cta-section {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    padding: 4rem 2rem;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 5rem 4rem;
    }
}

.contact-name {
    margin: -2rem 0 2.5rem;
    font-size: 1.575rem;
    font-weight: 700;
}

.phone-display {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.5rem 0 2.5rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.phone-display:hover, .phone-display:focus-visible {
    color: var(--color-accent);
    transform: scale(1.02);
}

/* ==========================================================================
   9. PEVNÉ TLAČÍTKO PRO MOBILY (STICKY BOTTOM)
   ========================================================================== */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(245, 242, 233, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    box-shadow: 0 -4px 30px rgba(42, 42, 40, 0.08);
    z-index: 990;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }
    body {
        padding-bottom: 75px;
    }
}

.mobile-sticky-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* ==========================================================================
   10. PATIČKA
   ========================================================================== */
.footer {
    padding: 4rem 1.5rem;
    text-align: center;
    background-color: var(--color-bg-alt);
}

.footer-logo {
    display: block;
    width: clamp(180px, 24vw, 220px);
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.25rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text-main);
    margin: 0;
}

.footer-phone {
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition);
    display: inline-block;
}

.footer-phone:hover, .footer-phone:focus-visible {
    color: var(--color-primary);
}
