/* ==========================================================================
   Rozvržení: kontejner, sekce se vzorovaným pozadím, hlavička, patička
   ========================================================================== */

/* ---------- kontejner ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

.container--wide {
    max-width: var(--container-wide);
}

/* ---------- sekce (s jemným vzorem na pozadí) ----------
   Vzor se nastavuje proměnnými; modifikátory .section--* vybírají obrázek. */

.section {
    position: relative;
    isolation: isolate;
    background-color: var(--bg);
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--pattern, none);
    background-repeat: var(--pattern-repeat, repeat);
    background-size: var(--pattern-size, auto);
    background-position: var(--pattern-position, 50% 50%);
    opacity: var(--pattern-opacity, .15);
}

.section--stars { --pattern: url('../images/bg-stars.png'); }
.section--sky { --pattern: url('../images/bg-sky.png'); --pattern-size: contain; --pattern-position: 0 0; --pattern-opacity: .22; }
.section--dots { --pattern: url('../images/bg-dots.png'); --pattern-position: 0 0; --pattern-opacity: .32; }
.section--tarot { --pattern: url('../images/bg-tarot.png'); --pattern-position: 0 0; --pattern-opacity: .05; }

/* ---------- stránka nenalezena (404) ---------- */

.notfound {
    padding: 180px 20px 140px;
    text-align: center;
}

.notfound__code {
    margin-bottom: 10px;
    color: var(--gold);
    font: 700 120px/1.1 var(--font-title);
}

.notfound p {
    margin-bottom: 20px;
    font-size: 20px;
}

/* ---------- hlavička ---------- */

.site-header {
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    z-index: 9;
    height: 79px;
    padding: 2px 16px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    height: 100%;
    margin-inline: auto;
}

.site-header__logo {
    display: block;
    margin: 10px 16px 0;
}

.site-header__logo img {
    width: 135px;
    height: 65px;
}

.site-nav__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #fff;
    font: 700 16px/19px var(--font-body);
    letter-spacing: 1px;
    text-decoration: none;
    transition: color .2s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
}

/* velké obrazovky: hlavička má větší okraje a logo se přisadí ke kraji obsahu */
@media (min-width: 1541px) {
    .site-header {
        padding-inline: 24px;
    }

    .site-header__logo {
        margin-inline: 0;
    }
}

/* užší okna (tablet, mobil): hlavička přes celou šířku, menu se rozbaluje přes celou obrazovku */
@media (max-width: 1199px) {
    .site-header__inner {
        display: contents;
    }

    .site-header {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        height: auto;
        padding: 16px;
        background: #000;
        border-bottom: 1px solid rgba(0, 0, 0, .04);
    }

    .site-header__logo {
        grid-column: 2;
        margin: 0;
    }

    .site-header__logo img {
        width: 85px;
        height: 41px;
    }

    .nav-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        display: flex;
        align-items: center;
        width: 52px;
        height: 41px;
        padding: 0 12px;
        border: 1px solid transparent;
        border-radius: 4px;
        background: none;
        cursor: pointer;
    }

    .nav-toggle__bars {
        position: relative;
        display: block;
        width: 26px;
        height: 17px;
    }

    .nav-toggle__bars span {
        position: absolute;
        left: 0;
        height: 2px;
        background: rgba(180, 151, 93, .72);
        transition: top .25s, width .25s, transform .25s;
    }

    .nav-toggle__bars span:nth-child(1) { top: 0; width: 26px; }
    .nav-toggle__bars span:nth-child(2) { top: 10px; width: 13px; }
    .nav-toggle__bars span:nth-child(3) { display: none; }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
    }

    .site-nav__list {
        flex-direction: column;
        padding: 6px 16px 323px;
    }

    .site-nav__link {
        padding: 16px 0;
        border-top: 1px solid var(--line);
    }

    /* rozbalené menu */
    .site-header.is-open {
        position: fixed;
        inset: 0;
        z-index: 999;
        overflow-y: auto;
        align-content: start;
    }

    .site-header.is-open .site-nav { display: block; }
    .site-header.is-open .nav-toggle__bars span:nth-child(1),
    .site-header.is-open .nav-toggle__bars span:nth-child(2) { width: 26px; }
    .site-header.is-open .nav-toggle__bars span:nth-child(1) { top: 3px; }
    .site-header.is-open .nav-toggle__bars span:nth-child(2) { top: 7px; }
}

@media (max-width: 575px) {
    .site-header {
        padding: 6px 16px;
    }
}

/* ---------- patička ---------- */

.site-footer {
    background: var(--bg);
}

/* dárkový poukaz */

.gift {
    padding: 30px 0 29px;
}

.gift__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.gift__text {
    display: flex;
    align-items: center;
    gap: 22px;
    font: 600 20px/30px var(--font-ui);
    color: #fff;
}

.gift__title {
    margin: 20px 0 14px;
}

.gift__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gold);
}

.gift__icon::before {
    content: "";
    width: 50px;
    height: 50px;
    background-color: #fff;
    -webkit-mask: url('../images/icons/star.svg') center / contain no-repeat;
    mask: url('../images/icons/star.svg') center / contain no-repeat;
}

.gift__inner > .button {
    justify-self: center;
}

/* kontakty, mapa a formulář */

.footer-main {
    padding: 10px 0 20px;
    background: var(--bg) url('../images/bg-circles.png') 100% 0 / 15% auto repeat-y;
}

.footer-main__panel {
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.footer-main__grid {
    display: grid;
    grid-template-columns: 23% 37.5% 39.2%;
    align-items: start;
}

.footer-main__column {
    display: flex;
    flex-direction: column;
    padding-block: 10px;
}

.footer-card {
    margin: 0 10px 20px;
    padding: 30px 10px;
    background: var(--bg);
    box-shadow: 0 4px 40px rgba(0, 0, 0, .05);
}

.footer-card--form {
    margin: 0 10px 0 20px;
    padding: 50px;
    color: #e0e0e0;
}

.footer-card__title {
    margin-bottom: 30px;
    color: #fff;
    font: 700 22px/27.5px var(--font-title);
}

.footer-card__title--tight {
    margin-bottom: 3px;
}

.footer-card .socials {
    justify-content: flex-start;
    padding-top: 9px;
}

.footer-map {
    margin: 0 10px;
    background: #fff;
    box-shadow: 0 4px 40px rgba(0, 0, 0, .05);
}

.footer-map__frame {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.toplist {
    display: block;
    margin-top: 7px;
    text-align: center;
}

.toplist img {
    display: block;
    margin-inline: auto;
}

/* tablet: karty pod sebou */
@media (max-width: 1024px) {
    .gift {
        display: flex;
        align-items: center;
        min-height: 159px;
        padding: 0;
    }

    .footer-main {
        padding-top: 40px;
    }

    .footer-main__grid {
        grid-template-columns: 1fr;
    }

    .footer-card--form {
        margin: 0 10px;
    }

    .footer-map {
        padding: 20px;
    }
}

/* úzký třetí sloupec patičky těsně nad tabletem: pod tlačítkem odeslání zůstává místo (viz .form v components.css) */
@media (min-width: 1025px) and (max-width: 1085px) {
    .footer-card--form .form {
        padding-bottom: 31px;
    }
}

/* mobil */
@media (max-width: 767px) {
    .gift {
        display: block;
        min-height: 0;
    }

    .gift__inner {
        grid-template-columns: 1fr;
    }

    .gift__text {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .footer-main {
        padding: 20px 10px;
    }

    .footer-main__column:first-child {
        padding-bottom: 0;
    }

    .footer-card,
    .footer-card--form {
        margin-bottom: 0;
        padding: 40px 30px;
    }

    .footer-card--contact {
        padding-top: 10px;
    }

    .footer-card__title,
    .footer-card__title--tight {
        margin-bottom: 20px;
        font-size: 20px;
        line-height: 25px;
        letter-spacing: .2px;
    }

    .footer-map {
        margin: 10px 20px;
        padding: 30px 20px;
    }
}
