/* =========================================================
   Il Caminetto — Trattoria & Pizzeria, Konin
   Nowoczesna strona one-page
   ========================================================= */

:root {
    --cream: #f6f0e7;
    --cream-2: #fbf7f0;
    --stone: #e9ded0;
    --terracotta: #b1643f;
    --brick: #8a4a2b;
    --brick-dark: #6f3a20;
    --olive: #355534;
    --midnight: #1f1b16;
    --ink: #2b2620;
    --muted: #6b5f52;
    --gold: #d9b77a;
    --gold-deep: #c39a52;

    --it-green: #009246;
    --it-red: #ce2b37;

    --maxw: 1180px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 6px 18px rgba(31, 27, 22, 0.08);
    --shadow: 0 16px 40px rgba(31, 27, 22, 0.14);
    --shadow-lg: 0 28px 70px rgba(31, 27, 22, 0.22);

    --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.12; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.eyebrow {
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--terracotta);
}

/* ---------- Italian flag ribbon ---------- */
.flag-ribbon {
    height: 5px;
    background: linear-gradient(90deg,
        var(--it-green) 0 33.33%,
        #ffffff 33.33% 66.66%,
        var(--it-red) 66.66% 100%);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--brick);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 22px rgba(138, 74, 43, 0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(138, 74, 43, 0.34); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn.ghost {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    backdrop-filter: blur(2px);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

.btn.outline {
    --btn-bg: transparent;
    --btn-fg: var(--brick);
    border-color: var(--brick);
    box-shadow: none;
}
.btn.outline:hover { background: var(--brick); color: #fff; }

.btn.gold {
    --btn-bg: var(--gold);
    --btn-fg: var(--midnight);
    box-shadow: 0 10px 22px rgba(195, 154, 82, 0.4);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(246, 240, 231, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(138, 74, 43, 0.12);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(246, 240, 231, 0.95); }

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo img { height: 42px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    position: relative;
    padding: 0.25rem 0;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--terracotta);
    transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone { font-weight: 700; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none; background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}
.nav-toggle span {
    display: block; height: 2.5px; width: 100%;
    background: var(--brick); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 0 3rem;
    color: #fff;
    isolation: isolate;
}
.hero {
    background: #1f1b16 url('assets/hero-poster.jpg') center/cover no-repeat;
}
.hero-video {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(0.7) saturate(1.05);
}
.hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(31,27,22,0.72) 0%, rgba(31,27,22,0.4) 42%, rgba(31,27,22,0.05) 72%),
        linear-gradient(180deg, rgba(31,27,22,0.5) 0%, rgba(31,27,22,0.25) 40%, rgba(31,27,22,0.75) 100%),
        radial-gradient(1000px 500px at 25% 30%, rgba(138,74,43,0.3), transparent);
}
.hero-content { max-width: 640px; animation: riseIn 0.9s ease-out both; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    margin: 0.5rem 0 0.4rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.65);
}
.hero .lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: #f2e9dd;
    max-width: 34ch;
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.hero .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-info {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    background: rgba(31, 27, 22, 0.4);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    font-size: 0.92rem;
}
.hero-info .pill-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-info strong { color: var(--gold); font-weight: 700; }
.hero-info .dot { color: var(--gold); }

.scroll-hint {
    position: absolute;
    bottom: 1.4rem; left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    animation: bob 2s ease-in-out infinite;
}
.scroll-hint span { width: 1px; height: 26px; background: rgba(255,255,255,0.6); }

/* ---------- Section basics ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--brick);
    margin: 0.35rem 0 0.6rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- About / Smaki Ligurii ---------- */
.about {
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
    isolation: isolate;
}
.about-liguria {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}
.about-liguria img { width: 100%; height: 100%; object-fit: cover; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.about-text p { color: var(--ink); font-size: 1.06rem; margin-bottom: 1rem; }
.about-text p.first::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    float: left;
    line-height: 0.8;
    padding: 0.35rem 0.6rem 0.1rem 0;
    color: var(--terracotta);
}
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: #fff;
    border: 1px solid rgba(138,74,43,0.16);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--brick);
    box-shadow: var(--shadow-sm);
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.gallery figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 1.4rem 1rem 0.9rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(31,27,22,0.8));
}

/* ---------- Menu ---------- */
.menu { background: var(--cream); }
.menu-tabs {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.85rem 0;
    margin-bottom: 2.5rem;
    background: rgba(246,240,231,0.9);
    backdrop-filter: blur(10px);
    -ms-overflow-style: none; scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a {
    flex: 0 0 auto;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brick);
    background: #fff;
    border: 1px solid rgba(138,74,43,0.18);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}
.menu-tabs a:hover { background: var(--brick); color: #fff; transform: translateY(-1px); }

.menu-cat { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--nav-h) + 70px); }
.menu-cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    margin-bottom: 1.6rem;
    border-bottom: 2px solid rgba(138,74,43,0.16);
}
.menu-cat-head h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--brick); }
.menu-cat-head .note { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.subcat { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--olive); margin: 2rem 0 1rem; }
.subcat .size-hint { font-family: 'Work Sans', sans-serif; font-size: 0.82rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 3rem; }
.dish {
    padding: 0.9rem 0;
    border-bottom: 1px dashed rgba(138,74,43,0.18);
}
.dish-head { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-num { color: var(--gold-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.dish-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
}
.dish-dots { flex: 1; border-bottom: 1px dotted rgba(107,95,82,0.4); transform: translateY(-4px); min-width: 12px; }
.dish-price { font-weight: 700; color: var(--brick); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-desc { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.chef { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--olive); }
.spicy { color: var(--it-red); }

.menu-extras {
    display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem;
    margin-top: 1.6rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(138,74,43,0.14);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}
.menu-extras .x { display: inline-flex; gap: 0.4rem; align-items: baseline; }
.menu-extras strong { color: var(--brick); }
.menu-extras .sep { color: rgba(138,74,43,0.3); }

.lunch-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.6rem 1.5rem;
    text-align: center;
    margin: 0 auto 2.5rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--olive), #2b442a);
    color: #f4f0e6;
    box-shadow: var(--shadow-sm);
}
.lunch-banner strong { color: var(--gold); }

/* ---------- Contact / Map ---------- */
.contact { background: var(--midnight); color: #f2e9dd; }
.contact .section-head h2 { color: #f6cfa0; }
.contact .section-head p { color: #cbbfae; }
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-ic {
    flex: 0 0 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(217,183,122,0.14);
    color: var(--gold);
}
.info-row .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.info-row .value { font-size: 1.05rem; color: #f4ede2; }
.info-row .value a:hover { color: var(--gold); }
.hours-list { display: grid; gap: 0.3rem; margin-top: 0.3rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 380px; font-size: 0.95rem; }
.hours-list .day { color: #cbbfae; white-space: nowrap; }
.hours-list .hrs { font-weight: 600; color: #f4ede2; font-variant-numeric: tabular-nums; white-space: nowrap; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-btn {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f2e9dd;
    transition: transform 0.18s ease, background 0.18s ease;
}
.social-btn:hover { transform: translateY(-2px); background: rgba(217,183,122,0.2); color: var(--gold); }

.map-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    background: var(--stone);
    border: 1px solid rgba(217,183,122,0.25);
    box-shadow: var(--shadow-lg);
}
.map-fallback {
    position: absolute; inset: 0; z-index: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--brick);
    background:
        radial-gradient(700px 300px at 50% 40%, rgba(255,255,255,0.6), transparent),
        repeating-linear-gradient(45deg, rgba(138,74,43,0.05) 0 12px, rgba(138,74,43,0.09) 12px 24px);
}
.map-fallback span { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.map-fallback small { color: var(--muted); font-size: 0.85rem; }
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.95); background: transparent; }

/* ---------- Footer ---------- */
.footer {
    background: #171410;
    color: #b8ac9c;
    padding: 2.5rem 0;
}
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1) opacity(0.85); }
.footer-brand span { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #e7ddcd; }
.footer a:hover { color: var(--gold); }
.footer-meta { font-size: 0.85rem; text-align: right; }

/* ---------- Animations ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-liguria { aspect-ratio: 16 / 10; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .menu-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-links, .nav-phone-label { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(246,240,231,0.98);
        backdrop-filter: blur(14px);
        padding: 0.5rem 6% 1.25rem;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0; pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav.open .nav-links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(138,74,43,0.12); }
    .nav-links a::after { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
}

@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr 1fr; }
    .hero-info { width: 100%; }
    .btn { padding: 0.8rem 1.25rem; font-size: 0.92rem; }
    .hours-list div { max-width: 100%; font-size: 0.85rem; gap: 0.6rem; }
}
