
/* ZÁKLADNÍ NASTAVENÍ */

:root {
    --cream: #f2ede4;
    --cream-light: #faf7f1;
    --brown: #594536;
    --brown-dark: #35291f;
    --text: #29251f;
    --muted: #766c61;
    --white: #ffffff;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

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

a {
    color: inherit;
}


/* ÚVODNÍ HLAVIČKA */

.hero {
    min-height: 440px;
    background:
        linear-gradient(rgba(30, 24, 19, 0.25), rgba(30, 24, 19, 0.25)),
        url("images/header-posters.jpg") center 45% / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.hero-box {
    width: min(100%, 540px);
    background: var(--white);
    padding: 38px 42px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.14);
}

.hero-box h1 {
    margin: 0 0 18px;
    color: var(--brown-dark);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero-box p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}


/* SEKCE A NADPISY */

.offers-section {
    padding: 52px 0 36px;
    background: var(--cream);
}

.section-heading {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 64px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
    color: var(--brown-dark);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}


/* KARUSEL */

.carousel {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.carousel-window {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 0.4s ease;
    will-change: transform;
}


/* KARTY NABÍDEK */

.offer-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 280px;
    min-width: 0;
    background: #f7f1e7;
    border: 1px solid rgba(89, 69, 54, 0.12);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offer-card > img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    background: #f7f1e7;
}

.offer-info {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.offer-category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brown);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.offer-info h3,
.add-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.offer-info p,
.add-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* DOPLŇUJÍCÍ INFORMACE */
.offer-details {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    border-top: 1px solid rgba(89, 69, 54, 0.15);
    width: 100%;
}

.offer-details li {
    padding: 3px 0;
    color: var(--brown);
    font-size: 0.85rem;
    line-height: 1.45;
}

.offer-link {
    margin-top: auto;
    color: var(--brown);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.offer-link:hover {
    text-decoration: underline;
}


/* KARTA PRO PŘIDÁNÍ NABÍDKY */

.add-card {
    padding: 24px;
    justify-content: center;
    background: #644e3c;
    border: 1px solid #594536;
    color: #faf7f1;
}

.add-card h3 {
    color: #faf7f1;
}

.add-card p {
    color: #d2c6b8;
}

.add-card .add-symbol {
    border-color: #c9bba9;
    color: #f2ede4;
}

.add-card .offer-link {
    color: #e4d4c0;
}

.add-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--brown);
    border-radius: 50%;
    color: var(--brown);
    font-size: 1.7rem;
    line-height: 1;
}


/* BOČNÍ TLAČÍTKA */

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(89, 69, 54, 0.3);
    border-radius: 50%;
    background: var(--cream-light);
    color: var(--brown-dark);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s;
}

.carousel-button:hover {
    background: var(--brown);
    color: var(--white);
}

.carousel-button.prev {
    left: 12px;
}

.carousel-button.next {
    right: 12px;
}

.carousel-button:focus-visible,
.offer-link:focus-visible {
    outline: 3px solid #98724d;
    outline-offset: 3px;
}


/* PATIČKA */

.site-footer {
    padding: 24px 20px;
    text-align: center;
    background: var(--brown-dark);
    color: var(--cream-light);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}


/* MOBILNÍ ZOBRAZENÍ */

@media (max-width: 650px) {
    .hero {
        min-height: 380px;
        padding: 28px 18px;
    }

    .hero-box {
        padding: 30px 22px;
    }

    .hero-box h1 {
        letter-spacing: -0.8px;
    }

    .offers-section {
        padding: 36px 0 24px;
    }

    .section-heading {
        padding: 0 20px;
        margin-bottom: 18px;
    }

    .carousel {
        padding: 0 20px;
    }

    .carousel-track {
        gap: 14px;
    }

    .offer-card {
        flex-basis: min(78vw, 280px);
    }

    .offer-card > img {
        height: 160px;
    }

    /* Na mobilu se nabídky posouvají prstem. */
    .carousel-button {
        display: none;
    }
}

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

    .carousel-track {
        transition: none;
    }
}


/* =====================================
   NEUTRÁLNÍ ŠABLONY NABÍDEK
===================================== */

/* Dekorativní barevné tvary na pozadí */
/* Základ dekorativních tvarů – pouze grafické šablony */
.offer-card.template-pohyb::before,
.offer-card.template-pohyb::after,
.offer-card.template-nabidka::before,
.offer-card.template-nabidka::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

/* První tvar */
.offer-card.template-pohyb::before,
.offer-card.template-nabidka::before {
    top: -45px;
    left: -35px;
    width: var(--shape-one-width, 170px);
    height: var(--shape-one-height, 150px);
    background: var(--color-one);
}

/* Druhý tvar */
.offer-card.template-pohyb::after,
.offer-card.template-nabidka::after {
    bottom: -65px;
    right: -35px;
    width: var(--shape-two-width, 230px);
    height: var(--shape-two-height, 150px);
    background: var(--color-two);
}

/* Když nabídka nemá vlastní obrázek */
.offer-card:not(.add-card):not(:has(img)) {
    min-height: 300px;
}


