/* ==========================================================
   Закусвалня — основни стилове
   Цветове: златна коричка, мастилено синьо, бял фон
   ========================================================== */

:root {
    --gold: #F5B82E;
    --gold-deep: #E0A016;
    --ink: #23264A;
    --ink-soft: #4B4F78;
    --mist: #EEF0F7;
    --white: #FFFFFF;
    --tomato: #C8382A;
    --green: #2E7D4F;

    --nav-h: 76px;
    --font-display: "Unbounded", "Arial Black", sans-serif;
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 7vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; max-width: 62ch; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Навигация (статична, залепена горе) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 2px solid var(--ink);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(35, 38, 74, .12); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--nav-h);
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 54px; width: auto; }
.logo-placeholder {
    display: grid; place-items: center;
    width: 132px; height: 52px;
    border: 2px dashed var(--ink-soft);
    border-radius: 10px;
    font-size: .85rem; font-weight: 600;
    color: var(--ink-soft);
}

.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: block;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--gold); }

.nav-toggle {
    display: none;
    width: 48px; height: 48px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink);
    position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        padding: .75rem 1.25rem 1.25rem;
        background: var(--white);
        border-bottom: 2px solid var(--ink);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: .8rem 1rem; font-size: 1.1rem; }
}

/* ---------- Бутони ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .9rem 1.5rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font: 800 1rem var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(35, 38, 74, .08); }

/* ---------- Хедър на страниците с назъбен ръб ---------- */

.hero, .page-hero { background: var(--gold); position: relative; }
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }

.scallop::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -18px;
    height: 18px;
    background: radial-gradient(circle at 18px 0, var(--gold) 17px, transparent 18px) repeat-x;
    background-size: 36px 18px;
    z-index: 1;
}

.hero h1 { max-width: 11ch; }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.status {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--white);
    font-weight: 800; font-size: .95rem;
    margin-bottom: 1.5rem;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); }
.status.is-open .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 125, 79, .2); }

/* ---------- Секции ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-mist { background: var(--mist); }

.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Меню ---------- */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 3.5rem;
    margin-top: 2.5rem;
}
.menu-group h3 { padding-bottom: .7rem; border-bottom: 3px solid var(--gold); margin-bottom: .75rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; }
.menu-name { font-weight: 600; }
.menu-name small { display: block; color: var(--ink-soft); font-size: .88rem; font-weight: 400; }
.menu-item .dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(35, 38, 74, .3); }
.price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Работно време ---------- */

.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { padding: .45rem 0; text-align: left; border-bottom: 1px solid rgba(35, 38, 74, .15); }
.hours th { font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 800; }

/* ---------- За нас ---------- */

.about-figure { margin: 0; }
.about-figure img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.img-placeholder {
    display: grid; place-items: center; text-align: center;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    background: var(--mist);
    border: 2px dashed var(--ink-soft);
    color: var(--ink-soft); font-weight: 600;
}
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem 3rem;
    margin-top: 2rem;
}
.values > div { border-top: 3px solid var(--ink); padding-top: 1.25rem; }

/* ---------- Галерия ---------- */

.gallery-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}
.gallery-item {
    display: block; width: 100%; padding: 0; border: 0;
    border-radius: 14px; overflow: hidden; cursor: zoom-in;
    background: var(--mist);
}
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.tile-empty { aspect-ratio: 1; border-radius: 14px; background: var(--mist); }
.gallery-empty {
    padding: 1.5rem; margin-bottom: 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--white);
}
.gallery-empty p:last-child { margin-bottom: 0; }
code { background: var(--mist); padding: .1rem .4rem; border-radius: 6px; }

.lightbox {
    width: min(1000px, 94vw);
    max-height: 92vh;
    padding: 0; border: 0;
    background: transparent;
    overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 22, 44, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: .75rem; }
.lightbox button {
    position: absolute;
    width: 48px; height: 48px;
    border: 0; border-radius: 50%;
    background: var(--white); color: var(--ink);
    font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close { top: -56px; right: 0; }
.lb-prev  { left: -8px;  top: 40%; }
.lb-next  { right: -8px; top: 40%; }
@media (min-width: 1100px) { .lb-prev { left: -64px; } .lb-next { right: -64px; } }

/* ---------- Контакти ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--gold); }
.field [aria-invalid="true"] { border-color: var(--tomato); }
.field-error { color: var(--tomato); font-size: .92rem; font-weight: 600; margin: .35rem 0 0; }
.contact-form .btn { justify-self: start; }

.hp { position: absolute; left: -9999px; }

.alert { padding: 1rem 1.25rem; border-radius: 12px; margin: 1rem 0; font-weight: 600; }
.alert-success { background: #E3F2E8; color: #1D5535; }
.alert-error   { background: #FBE6E3; color: #8A2319; }

.contact-info dl { margin: 0 0 2rem; }
.contact-info dt { font-weight: 800; margin-top: 1rem; }
.contact-info dd { margin: 0; }

.map { margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: 20px; overflow: hidden; border: 2px solid var(--ink); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Футър ---------- */

.site-footer { background: var(--ink); color: var(--white); padding: 4rem 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--gold); }
.footer-title { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(255, 255, 255, .15); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 3rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
