/* ============================================================
   Kavárna Živa — Stylesheet
   Palette: espresso brown / forest green / warm cream
   Fonts: Playfair Display · Dancing Script · Lora
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --espresso:      #2c1608;
    --brown-mid:     #5a3018;
    --green:         #5c7a18;
    --green-light:   #789a22;
    --cream:         #f5f0e8;
    --cream-alt:     #ece5d6;
    --muted:         #8a7060;
    --border:        rgba(92, 122, 24, 0.18);

    --font-display:  'Playfair Display', Georgia, serif;
    --font-script:   'Dancing Script', cursive;
    --font-body:     'Lora', Georgia, serif;

    --max-w:         720px;
    --gap-section:   5rem;
}

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

html {
    scroll-behavior: smooth;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--espresso);
    background: var(--cream);
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.75rem;
}

/* ── Section Heading ───────────────────────────────────────── */
h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--espresso);
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 2.25rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 2px;
    background: var(--green);
}

/* ============================================================
   HERO ANIMATION
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 580px;
    background-image: url('img/cover.jpg');
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark gradient overlay for legibility */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 8, 2, 0.15) 0%,
        rgba(18, 8, 2, 0.52) 45%,
        rgba(18, 8, 2, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 0;
}

/* "Kavárna" in script – absolutely placed so it overlays the top-right of Živa,
   beside the háček on Ž and the dot on i rather than floating above them. */
.kavarna-script {
    position: absolute;
    top: -0.1em;
    right: -0.5em;
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    color: #d4c5a0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    animation: fadeUp 0.5s cubic-bezier(0.22, 0.6, 0.36, 1) 0.2s both;
}

/* "Živa" large display */
.ziva-display {
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 20vw, 12rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 0.88;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 36px rgba(0, 0, 0, 0.5);
    animation: fadeDown 0.5s cubic-bezier(0.22, 0.6, 0.36, 1) 0.1s both;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.775rem, 1.8vw, 0.95rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
    animation: fadeUp 0.7s cubic-bezier(0.22, 0.6, 0.36, 1) 0.65s both;
}

/* Contact / status pills in the hero */
.hero-contact {
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    animation: fadeUp 0.7s cubic-bezier(0.22, 0.6, 0.36, 1) 0.85s both;
}

/* Shared pill base – applies to both the status div and the phone anchor */
.hero-contact a,
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.35rem;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-family: var(--font-body);
    font-size: clamp(0.825rem, 1.8vw, 0.975rem);
    letter-spacing: 0.05em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-contact a {
    color: rgba(255, 255, 255, 0.92);
}

.hero-contact a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.75);
}

/* Status pill internals */
.status-word {
    font-weight: 600;
    letter-spacing: 0.07em;
}

.is-open .status-word  { color: #a8d060; }
.is-closed .status-word { color: rgba(255, 255, 255, 0.55); }

.status-pipe {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
    font-size: 0.8em;
}

.status-detail {
    color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
    padding: var(--gap-section) 0;
    background: var(--cream);
    text-align: center;
}

.section-about p {
    font-style: italic;
    color: var(--muted);
    font-size: 1.075rem;
    line-height: 1.95;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   HOURS + MAP (two-column)
   ============================================================ */
.section-hours-map {
    background: var(--cream-alt);
}

.hours-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    max-width: 980px;
    margin: 0 auto;
}

/* Left: opening hours */
.hours-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--gap-section) 3.5rem;
}

.hours-list {
    width: 100%;
    max-width: 360px;
    list-style: none;
    border-top: 1px solid var(--border);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.9rem 0.3rem;
    border-bottom: 1px solid var(--border);
}

.hours-row dt {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--espresso);
    letter-spacing: 0.01em;
}

.hours-row dd {
    font-family: var(--font-body);
    font-size: 0.975rem;
    color: var(--green);
    font-weight: 500;
}

/* Closed row */
.hours-row.closed dt,
.hours-row.closed dd {
    color: var(--muted);
    font-style: italic;
    font-weight: 400;
}

/* Weekend rows */
.hours-row.weekend dd {
    color: var(--green-light);
    font-weight: 600;
}

/* Right: map */
.map-panel {
    display: flex;
    padding: var(--gap-section) 0;
}

.map-panel iframe {
    flex: 1;
    border: none;
    display: block;
    min-height: 320px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--espresso);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 1.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.825rem;
    letter-spacing: 0.06em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hours-map-grid {
        grid-template-columns: 1fr;
    }

    .hours-panel {
        padding: var(--gap-section) 1.75rem 1.5rem;
    }

    .map-panel {
        padding: 0;
    }

    .map-panel iframe {
        min-height: 360px;
    }
}

@media (max-width: 520px) {
    :root {
        --gap-section: 3.5rem;
    }

    .ziva-display {
        font-size: 5rem;
    }

    .kavarna-script {
        font-size: 1.85rem;
    }

    .hero-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-contact a[href^="tel"] {
        order: -1;
    }

    .hours-row {
        padding: 0.75rem 0.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ziva-display,
    .kavarna-script,
    .hero-tagline,
    .hero-contact {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
