/* ============================================================
   Restauracja Mierzeja - styl strony glownej
   ============================================================ */

:root {
    --color-navy: #0e2433;
    --color-navy-light: #173c52;
    --color-navy-dark: #081722;
    --color-gold: #c79a4b;
    --color-gold-dark: #a87f37;
    --color-gold-light: #e4c179;
    --color-cream: #f8f4ec;
    --color-cream-dark: #efe7d6;
    --color-white: #ffffff;
    --color-text: #28323a;
    --color-text-light: #5b6770;
    --color-border: #e3ddd0;
    --color-success: #2e7d4f;
    --color-error: #b3382c;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container-width: 1200px;
    --radius: 6px;
    --shadow: 0 8px 24px rgba(14, 36, 51, 0.10);
    --shadow-strong: 0 16px 40px rgba(14, 36, 51, 0.18);
    --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
    color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    background: none;
}
.btn-gold {
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border-color: var(--color-gold);
}
.btn-gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); transform: translateY(-1px); }
.btn-outline {
    border-color: var(--color-navy);
    color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }
.btn-outline-light {
    border-color: rgba(255,255,255,0.7);
    color: var(--color-white);
}
.btn-outline-light:hover { background: var(--color-white); color: var(--color-navy); }
.btn-full { width: 100%; }
.btn-small { padding: 7px 14px; font-size: 0.8rem; border-radius: 6px; }
.btn-tab {
    border-color: var(--color-border);
    color: var(--color-text-light);
    padding: 10px 22px;
}
.btn-tab.active, .btn-tab:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo img { height: 48px; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
}
.main-nav ul {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--color-gold-dark);
    border-bottom-color: var(--color-gold);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cta { padding: 10px 22px; font-size: 0.88rem; }
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--color-white);
    min-height: 86vh;
    display: flex;
    align-items: center;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,23,34,0.55) 0%, rgba(8,23,34,0.75) 100%);
}
.hero-content { padding-top: 100px; padding-bottom: 100px; max-width: 760px; }
.hero-content h1 { color: var(--color-white); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-gold-light);
    margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections (generic) ---------- */
.section { padding: 88px 0; }
.section-dark {
    background: var(--color-navy);
    color: rgba(255,255,255,0.88);
}
.section-dark h2, .section-title-light { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.78); }
.eyebrow {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-gold-dark);
    font-size: 1.05rem;
    margin-bottom: 0.4em;
}
.eyebrow-light { color: var(--color-gold-light); }
.section-lead { max-width: 640px; }
.section-cta { text-align: center; margin-top: 48px; }
.empty-state {
    color: var(--color-text-light);
    background: var(--color-cream);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Dish grid ---------- */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}
.dish-card {
    background: var(--color-navy-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.dish-card:hover { transform: translateY(-4px); }
.dish-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.dish-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dish-card-body { padding: 20px; }
.dish-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish-card-top h3 { color: var(--color-white); margin-bottom: 0.2em; }
.dish-price { color: var(--color-gold-light); font-weight: 600; white-space: nowrap; }
.dish-category {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold-light);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--color-white);
}
.badge-new { background: var(--color-success); }
.badge-bestseller { background: var(--color-gold-dark); }
.badge-featured { background: var(--color-navy); }
.badge-unavailable { background: var(--color-error); }
.badge-archive { background: var(--color-text-light); margin-bottom: 12px; }
.badge-status-published { background: var(--color-success); }
.badge-status-draft { background: var(--color-text-light); }

/* ---------- Events ---------- */
.events-toolbar { display: flex; gap: 12px; margin-bottom: 40px; }
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.event-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.event-card-featured { grid-column: span 2; }
@media (max-width: 900px) { .event-card-featured { grid-column: span 1; } }
.event-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-gold);
    color: var(--color-navy-dark);
    border-radius: var(--radius);
    padding: 8px 12px;
    text-align: center;
    line-height: 1.1;
}
.event-day { display: block; font-size: 1.3rem; font-weight: 700; }
.event-month { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.event-artist { color: var(--color-gold-dark); font-weight: 600; margin-bottom: 0.2em; }
.event-artist-hero { color: var(--color-gold-light); }
.event-meta { color: var(--color-text-light); font-size: 0.9rem; }
.event-meta-hero { color: rgba(255,255,255,0.85); }
.event-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Music ---------- */
.section-music { background: var(--color-navy-dark); text-align: center; }
.music-grid { display: flex; justify-content: center; }
.music-text { max-width: 640px; }
.music-hours { font-weight: 600; color: var(--color-gold); font-size: 1.1rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.album-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--color-white);
}
.album-card-img { aspect-ratio: 4/3; overflow: hidden; }
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.album-card:hover .album-card-img img { transform: scale(1.05); }
.album-card-body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; }
.album-card-body span { color: var(--color-text-light); font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 23, 34, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox-overlay img { max-width: 92vw; max-height: 82vh; border-radius: 4px; }
.lightbox-caption { color: var(--color-white); text-align: center; margin-top: 14px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--color-white);
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
}
.contact-list li { margin-bottom: 12px; }
.contact-list a:hover { color: var(--color-gold-dark); }
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a {
    font-weight: 500;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-gold);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: none; border-radius: var(--radius); }
.contact-map { min-height: 320px; }

.contact-form-wrap { background: var(--color-cream); padding: 36px; border-radius: var(--radius); }
.contact-form .form-row, .admin-form .form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row input[type="datetime-local"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row input[type="search"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-white);
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(199, 154, 75, 0.18);
}
.form-row-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.form-checkbox label, .form-checkbox-group label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.form-checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-dark); color: rgba(255,255,255,0.78); padding-top: 64px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 1em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-logo { height: 44px; margin-bottom: 14px; }
.footer-logo-text { color: var(--color-white); font-size: 1.4rem; }
.footer-contact a { color: rgba(255,255,255,0.78); }
.footer-hours { white-space: pre-line; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--color-gold-light); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.9);
    z-index: 900;
    padding: 18px 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; max-width: 720px; font-size: 0.9rem; }
.cookie-inner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; }
.page-hero-plain {
    background: var(--color-cream);
    padding: 64px 0;
}
.page-hero-img { position: relative; height: 46vh; min-height: 320px; overflow: hidden; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,23,34,0.25) 0%, rgba(8,23,34,0.75) 100%);
}
.page-hero-img + .container {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
.page-hero-title-over { color: var(--color-white); margin-bottom: 0.3em; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--color-navy); font-weight: 500; }
.back-link:hover { color: var(--color-gold-dark); }

/* ---------- Content page (WYSIWYG output) ---------- */
.content-page { max-width: 760px; margin: 0 auto; }
.content-page h2 { margin-top: 1.6em; }
.content-page img { border-radius: var(--radius); margin: 1.2em 0; }
.content-page a { color: var(--color-gold-dark); text-decoration: underline; }
.content-page ul, .content-page ol { padding-left: 1.4em; margin-bottom: 1em; }

/* ---------- News ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.news-card-img { aspect-ratio: 16/10; overflow: hidden; display: block; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; }
.news-date { color: var(--color-text-light); font-size: 0.82rem; margin-bottom: 0.4em; }
.news-date-hero { color: rgba(255,255,255,0.85); }
.link-more { color: var(--color-gold-dark); font-weight: 600; }
.link-more:hover { text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-weight: 500;
}
.pagination a.active, .pagination a:hover { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }

/* ---------- Menu page ---------- */
.menu-toolbar { margin-bottom: 28px; }
.menu-search input {
    width: 100%;
    max-width: 420px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-family: inherit;
}
.menu-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.menu-tab {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.menu-tab.active, .menu-tab:hover { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.menu-empty-message { text-align: center; color: var(--color-text-light); padding: 40px 0; }
.menu-category-block { margin-bottom: 56px; }
.menu-category-title {
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.menu-items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.menu-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
}
.menu-item.is-unavailable { opacity: 0.55; }
.menu-item-img { width: 88px; height: 88px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { flex: 1; }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-item-top h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.menu-item-price { color: var(--color-gold-dark); font-weight: 600; white-space: nowrap; }
.menu-item-price small { color: var(--color-text-light); font-weight: 400; }
.menu-item-desc { color: var(--color-text-light); font-size: 0.9rem; margin: 0.3em 0; }

/* ---------- Alerts ---------- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.92rem;
}
.alert ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.alert-success { background: #e6f4ea; color: var(--color-success); border: 1px solid #b9dfc6; }
.alert-error { background: #fbeae7; color: var(--color-error); border: 1px solid #f0c4bd; }

/* ============================================================
   Responsywnosc
   ============================================================ */
@media (max-width: 980px) {
    .dish-grid, .event-grid, .news-grid, .album-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .menu-items-list { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        padding: 24px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 400;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--color-border); }
    .hamburger { display: flex; }
    .header-cta { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .dish-grid, .event-grid, .news-grid, .album-grid, .gallery-grid { grid-template-columns: 1fr; }
    .event-card-featured { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { min-height: 70vh; }
    .form-row-group { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
