/* =========================================================
   FLINSTONES 2.0
   Główny arkusz stylów
   Podejście: mobile first
   ========================================================= */


/* ---------------------------------------------------------
   ZMIENNE
   --------------------------------------------------------- */

:root {
    --color-bg: #2b190f;
    --color-bg-light: #3d2517;
    --color-panel: #4a2c1a;

    --color-gold: #ffd54a;
    --color-orange: #e87924;
    --color-red: #9f2f1f;

    --color-text: #fff8e8;
    --color-text-muted: #d9c7ad;

    --color-border: rgba(255, 213, 74, 0.25);

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 12px 32px rgba(0, 0, 0, 0.38);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;

    --page-width: 1100px;
}


/* ---------------------------------------------------------
   RESET / PODSTAWY
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#menu,
#godziny,
#kontakt {
    scroll-margin-top: 75px;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at top,
            #51301b 0%,
            var(--color-bg) 45%,
            #1e110b 100%
        );

    color: var(--color-text);

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    line-height: 1.5;

    /* miejsce dla dolnego menu na telefonie */
    padding-bottom: 74px;
}

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

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


/* ---------------------------------------------------------
   GÓRNY BANER
   --------------------------------------------------------- */

.site-header {
    position: relative;

    container-type: inline-size;

    width: min(100%, var(--page-width));
    margin: 0 auto;
    overflow: hidden;

    background: transparent;

    border-bottom:
        3px solid var(--color-orange);
}

.site-header__image {
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   NAWIGACJA DESKTOP / TABLET
   --------------------------------------------------------- */

.desktop-nav {
    display: none;
}


/* ---------------------------------------------------------
   GŁÓWNY OBSZAR STRONY
   --------------------------------------------------------- */

main {
    width: min(100%, var(--page-width));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 28px 20px 0px;

    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.hero__eyebrow {
    margin: 0 0 8px;

    color: var(--color-orange);

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    color: var(--color-gold);

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(2rem, 9vw, 3.6rem);
    line-height: 1.05;

    text-shadow:
        0 3px 0 #5f2717,
        0 6px 14px rgba(0, 0, 0, 0.4);
}

.hero__actions {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 20px;
}


/* ---------------------------------------------------------
   PRZYCISKI
   --------------------------------------------------------- */

.button {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 12px 22px;

    border-radius: var(--radius-medium);

    font-size: 1.05rem;
    font-weight: 800;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.button:active {
    transform: scale(0.97);
}

.button--primary {
    color: #2b190f;

    background:
        linear-gradient(
            180deg,
            #ffe66c,
            var(--color-gold)
        );

    box-shadow: var(--shadow-soft);
}

.button--secondary {
    color: var(--color-text);

    background:
        rgba(255, 255, 255, 0.07);

    border:
        2px solid var(--color-orange);
}


/* ---------------------------------------------------------
   FRED + BARNEY
   --------------------------------------------------------- */

.hero__characters {
    width: min(64%, 260px);
    height: auto;

    margin:
        22px auto
        -4px;

    filter:
        drop-shadow(
            0 12px 12px rgba(0, 0, 0, 0.28)
        );
}


/* ---------------------------------------------------------
   WSPÓLNE NAGŁÓWKI SEKCJI
   --------------------------------------------------------- */

.section-label {
    margin: 0 0 6px;

    color: var(--color-orange);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   GODZINY OTWARCIA
   --------------------------------------------------------- */

.opening-hours {
    position: relative;

    margin: 0 16px 30px;
    padding: 30px 20px 26px;

    text-align: center;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 213, 74, 0.08),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(232, 121, 36, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #6b3c20,
            #442516 70%
        );

    border: 1px solid rgba(255, 184, 48, 0.45);

    border-radius:
        30px 22px
        34px 20px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -5px 12px rgba(0, 0, 0, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.28);
}

.opening-hours h2 {
    margin: 0 0 24px;

    color: var(--color-gold);

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    font-size: 1.55rem;
    line-height: 1.15;

    text-shadow:
        0 2px 0 rgba(95, 39, 23, 0.8);
}

.opening-hours__grid {
    display: grid;

    gap: 12px;
}

.opening-hours__item {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 15px 12px;

    background:
        rgba(35, 18, 10, 0.42);

    border:
        1px solid rgba(255, 213, 74, 0.12);

    border-radius:
        14px 10px
        16px 11px;

    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.22);
}
.opening-hours__item span {
    color: var(--color-text-muted);

    font-size: 0.9rem;
}

.opening-hours__item strong {
    color: var(--color-gold);

    font-size: 1.3rem;
    font-weight: 800;
}

.opening-hours__note {
    margin: 20px 0 0;

    color: #ffe7a1;

    font-size: 0.95rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   KOSZTY DOSTAWY - SKRÓT
   --------------------------------------------------------- */

.delivery-preview {
    padding: 0 16px 4px;
}

.delivery-preview__card {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto;

    align-items: center;

    gap: 12px;

    min-height: 118px;

    padding:
        18px
        12px
        18px
        22px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(67, 37, 23, 0.94),
            rgba(42, 23, 15, 0.98)
        );

    border:
        1px solid rgba(255, 213, 74, 0.32);

    border-radius:
        24px 18px
        26px 17px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.22);
}

.delivery-preview__content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    min-width: 0;
}

.delivery-preview__label {
    color: var(--color-orange);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.delivery-preview__title {
    margin-top: 2px;

    color: var(--color-gold);

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    font-size: 1.45rem;
    line-height: 1.1;
}

.delivery-preview__text {
    margin-top: 4px;

    color: var(--color-text-muted);

    font-size: 0.88rem;
}

.delivery-preview__action {
    margin-top: 8px;

    color: var(--color-text);

    font-size: 0.85rem;
    font-weight: 800;
}

.delivery-preview__image {
    width: 82px;
    height: auto;

    flex-shrink: 0;

    filter:
        drop-shadow(
            0 8px 8px rgba(0, 0, 0, 0.28)
        );
}


/* ---------------------------------------------------------
   PODGLĄD MENU
   --------------------------------------------------------- */

.menu-preview {
    padding: 38px 16px 42px;
}

.menu-preview > .section-label,
.menu-preview > h2 {
    text-align: center;
}

.menu-preview h2 {
    margin: 0 0 28px;

    color: var(--color-gold);

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    font-size: 1.6rem;
    line-height: 1.15;

    text-shadow:
        0 2px 0 rgba(95, 39, 23, 0.8);
}

.menu-categories {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}

.menu-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 116px;

    padding: 20px 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 24%,
            rgba(255, 223, 154, 0.16),
            transparent 27%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(87, 43, 21, 0.28),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #b18a58,
            #8a633c 55%,
            #6f492c
        );

    color: #28160d;

    border:
        2px solid rgba(67, 36, 19, 0.8);

    border-radius:
        30px 18px
        28px 16px;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -6px 10px rgba(58, 30, 15, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.3);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.menu-card::before {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 10px;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(64, 33, 17, 0.38),
            transparent
        );

    border-radius: 50%;
}

.menu-card::after {
    content: "";

    position: absolute;

    top: -34px;
    right: -22px;

    width: 105px;
    height: 88px;

    border-radius:
        46% 54%
        58% 42%;

    background:
        rgba(80, 42, 22, 0.14);

    transform: rotate(-12deg);
}

.menu-card__title {
    position: relative;
    z-index: 1;

    color: #3a1d10;

    font-family:
        "Comic Sans MS",
        "Trebuchet MS",
        sans-serif;

    font-size: 1.65rem;
    font-weight: 800;

    text-shadow:
        0 1px 0 rgba(255, 238, 190, 0.35);
}

.menu-card__action {
    position: relative;
    z-index: 1;

    margin-top: 8px;

    color: #5a311c;

    font-size: 0.92rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   TELEFON / ODBIÓR OSOBISTY
   --------------------------------------------------------- */

.quick-info {
    display: grid;
    grid-template-columns: 100px 1fr;

    align-items: stretch;

    gap: 12px;

    padding: 16px;
    margin-bottom: 34px;
}

.quick-info__character {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;

    cursor: pointer;
}

.quick-info__image {
    display: block;

    width: 100%;
    max-width: 100px;
    height: auto;
}

.quick-info__cards {
    display: grid;
    grid-template-columns: 1fr;

    gap: 12px;

    min-width: 0;
}

.quick-info__item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 100px;
    padding: 16px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(67, 37, 23, 0.92),
            rgba(42, 23, 15, 0.96)
        );

    border:
        1px solid rgba(255, 213, 74, 0.32);

    border-radius:
        24px 18px
        26px 17px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.22);
}

.quick-info__item span {
    color: var(--color-orange);

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quick-info__item strong {
    color: var(--color-text);

    font-size: 1.25rem;
    line-height: 1.35;
}

.quick-info__payment {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.quick-info__item[href^="tel:"] strong {
    color: var(--color-gold);

    font-size: 1.5rem;

    letter-spacing: 0.04em;
}

.quick-info__item:focus {
    outline: none;
}

.quick-info__item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   STOPKA
   --------------------------------------------------------- */

.site-footer {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    padding: 34px 20px 105px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(31, 17, 10, 0.35),
            rgba(20, 11, 7, 0.72)
        );

    border-top:
        1px solid rgba(255, 213, 74, 0.18);
}

.site-footer::before {
    content: "";

    width: min(180px, 55%);
    height: 2px;

    margin-bottom: 14px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-orange),
            transparent
        );

    opacity: 0.7;
}

/* NOWE LOGO W STOPCE */
.site-footer__logo {
    display: block;

    width: 180px;
    max-width: 70%;

    height: auto;

    margin: 0 auto 10px;
}

.site-footer__city {
    color: var(--color-orange);

    font-size: 0.85rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer__note {
    margin: 8px 0 0;

    color: var(--color-text-muted);

    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   DOLNY PASEK MOBILNY
   --------------------------------------------------------- */

.mobile-bar {
    position: fixed;

    left: 10px;
    right: 10px;

    bottom: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));

    z-index: 1000;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    overflow: hidden;

    background:
        rgba(35, 19, 11, 0.72);

    border:
        1px solid rgba(255, 213, 74, 0.24);

    border-radius: 18px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28);

    backdrop-filter:
        blur(10px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(10px)
        saturate(120%);
}

.mobile-bar a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 8px;

    color: var(--color-text);

    font-size: 0.88rem;
    font-weight: 800;

    border-right:
        1px solid rgba(255, 255, 255, 0.08);
}

.mobile-bar a:first-child {
    color: var(--color-gold);
}

.mobile-bar a:last-child {
    border-right: 0;
}


/* ---------------------------------------------------------
   WYSUWANE MENU MOBILNE
   --------------------------------------------------------- */

.mobile-menu-panel {
    position: fixed;

    left: 22px;
    right: 22px;

    bottom: 82px;
    bottom:
        calc(
            max(10px, env(safe-area-inset-bottom))
            + 72px
        );

    z-index: 990;

    display: grid;
    grid-template-columns: 1fr;

    gap: 6px;

    padding: 8px;

    background:
        rgba(35, 19, 11, 0.88);

    border:
        1px solid rgba(255, 213, 74, 0.28);

    border-radius:
        18px 14px
        20px 15px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35);

    backdrop-filter:
        blur(12px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(12px)
        saturate(120%);

    opacity: 0;

    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(14px)
        scale(0.98);

    transform-origin:
        bottom center;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.mobile-menu-panel.is-open {
    opacity: 1;

    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

.mobile-menu-panel a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 8px 16px;

    color: var(--color-text);

    font-size: 1rem;
    font-weight: 800;

    background:
        rgba(87, 47, 26, 0.62);

    border:
        1px solid rgba(255, 213, 74, 0.14);

    border-radius:
        12px 9px
        13px 10px;
}

.mobile-menu-panel a:active {
    background:
        rgba(115, 64, 33, 0.78);
}

.mobile-menu-toggle {
    min-width: 0;

    padding: 0 10px;

    color: var(--color-text);

    font: inherit;
    font-weight: 800;

    background: transparent;

    border: 0;
    border-left:
        1px solid rgba(255, 255, 255, 0.08);

    cursor: pointer;
}

.mobile-menu-toggle[aria-expanded="true"] {
    color: var(--color-gold);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 600px) {

    .hero {
        padding:
            50px
            36px
            20px;
    }

    .hero__actions {
        grid-template-columns:
            repeat(2, minmax(0, 220px));

        justify-content: center;
    }

    .opening-hours__grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

   .menu-categories {
        grid-template-columns:
            repeat(2, 1fr);

        max-width: 900px;

        margin:
            0 auto;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    body {
        padding-bottom: 0;
    }

    .desktop-nav {
        position: sticky;
        top: 0;

        z-index: 900;

        display: flex;
        align-items: center;
        justify-content: center;

        width: min(100%, var(--page-width));

        margin: 0 auto;

        background:
            rgba(35, 19, 11, 0.92);

        border-bottom:
            1px solid rgba(255, 213, 74, 0.28);

        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.18);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .desktop-nav a {
        position: relative;

        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 54px;

        padding: 0 30px;

        color: var(--color-text);

        font-size: 0.95rem;
        font-weight: 800;

        transition:
            color 0.18s ease,
            background-color 0.18s ease;
    }

    .desktop-nav a::after {
        content: "";

        position: absolute;

        left: 30px;
        right: 30px;
        bottom: 8px;

        height: 2px;

        background: var(--color-orange);

        transform: scaleX(0);

        transition:
            transform 0.18s ease;
    }

    .desktop-nav a:hover {
        color: var(--color-gold);

        background:
            rgba(255, 255, 255, 0.035);
    }

    .desktop-nav a:hover::after {
        transform: scaleX(1);
    }

    .site-header__image {
        width: 100%;
        height: auto;
    }

    .hero {
        min-height: 470px;

        display: grid;

        grid-template-columns:
            1.15fr
            0.85fr;

        align-items: center;

        padding:
            60px
            60px
            30px;
    }

    .hero__content {
        text-align: left;
    }

    .hero__actions {
        justify-content: start;
    }

    .hero__characters {
        width: min(100%, 400px);

        margin: 0 auto;
    }

    .opening-hours {
        margin:
            10px
            40px
            35px;

        padding: 34px;
    }

        .delivery-preview {
        padding:
            0
            40px
            10px;
    }

    .delivery-preview__card {
        min-height: 132px;

        padding:
            20px
            24px
            20px
            30px;
    }

    .delivery-preview__image {
        width: 135px;
    }

    .delivery-preview__title {
        font-size: 1.65rem;
    }

    .menu-preview {
        padding:
            45px
            40px;
    }

    .menu-preview h2 {
    font-size: 1.8rem;
}

    .menu-card {
    min-height: 132px;
    padding: 24px 26px;
    }

    .quick-info {
        grid-template-columns: 180px 1fr;

        gap: 24px;

        padding:
            20px
            40px
            50px;
    }

    .quick-info__image {
        max-width: 150px;
    }

    .quick-info__cards {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 18px;

        align-content: center;
    }

    .mobile-bar {
        display: none;
    }

    .mobile-menu-panel {
        display: none;
    }

    .site-footer {
        padding:
            34px
            20px;
    }

}


/* =========================================================
   URZĄDZENIA Z MYSZĄ
   ========================================================= */

@media (hover: hover) {

    .button:hover {
        transform:
            translateY(-2px);

        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.3);
    }

    .menu-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -6px 10px rgba(58, 30, 15, 0.22),
        0 12px 24px rgba(0, 0, 0, 0.38);
}

}