:root {
    --bg: #fafbfc;
    --text: #1f2328;
    --muted: #6b7280;
    --brand: #1e2124;
    --brand-2: #36393e;
    --accent: #eab308;
    --card: #ffffff;
    --shadow: 0 6px 30px rgba(0,0,0,.08);
    --radius: 12px;
    --footer-height: 72px;
}
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0 0 calc(var(--footer-height) + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
}

/* Layout helpers and typography */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: .25rem 0 1.2rem; }
.subtitle { color: var(--muted); margin-top: -.5rem; }
.group-offer-section { background:
    radial-gradient(circle at top left, rgba(234,179,8,.12), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}
.group-offer {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1.5rem;
    text-align: left;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(250,250,249,.96));
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,.08);
    padding: 1.75rem;
    overflow: hidden;
}
.group-offer-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-right: 1rem;
}
.group-offer-eyebrow {
    margin: 0 0 .9rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(234,179,8,.14);
    color: #92400e;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.group-offer-intro {
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 .85rem;
    max-width: 14ch;
}
.group-offer-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 52ch;
}
.group-offer-button { margin-top: .25rem; }
.group-offer-details {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.group-offer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .8rem;
}
.group-offer-list li {
    position: relative;
    padding: .85rem .95rem .85rem 2.8rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e7ecf2;
    font-weight: 600;
    line-height: 1.45;
}
.group-offer-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(22,101,52,.12);
    color: #166534;
    font-size: .8rem;
    font-weight: 800;
}
.group-offer-block {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eef1f4;
}
.group-offer-block h3 {
    margin: 0 0 .8rem;
    font-size: 1rem;
    color: var(--brand);
}
.group-offer-options {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.group-offer-options span {
    display: inline-flex;
    align-items: center;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(30,33,36,.06);
    color: var(--text);
    font-weight: 600;
}
.group-offer-cta {
    margin: 1.2rem 0 0;
    color: var(--brand);
    font-weight: 700;
    line-height: 1.5;
}

header {
    color: var(--text);
    padding: 0.75em 0;
}

nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    margin: 0;
    list-style: none;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}
body.scrolled nav ul { background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(0,0,0,.06); }

nav .logo {
    margin-left: 1em;
}

nav .nav-items {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav .nav-items ul {
    display: flex;
    gap: 1.25em;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav .nav-items li {
    margin: 0 1em;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}
nav ul li a { position: relative; }
nav ul li a::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px; background: transparent; transition: background .2s ease, transform .2s ease; transform: scaleX(0); transform-origin: left; }
nav ul li a:hover::after { background: var(--accent); transform: scaleX(1); }
nav ul li a.active { color: var(--brand-2); }
nav ul li a.active::after { background: var(--accent); transform: scaleX(1); }

.section-muted { background: #f6f7f9; }
section { padding: 3.5em 1.25em; text-align: center; }
.section--alt { background: #f6f7f9; }
/* Ensure anchored sections account for sticky header */
section { scroll-margin-top: 76px; }
/* Subtle separators between sections */
.section + .section, .section + .section--alt, .section--alt + .section, .section--alt + .section--alt { border-top: 1px solid #eef1f4; }
.section--alt { background: #f6f7f9; }

#home {
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('pildid/restaurant.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    height: 60vh;
    display: grid;
    place-items: center;
}
#home .hero { text-align: center; }
#home .hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5rem; }
#home .hero p { color: #e5e7eb; margin: 0 0 1rem; }
.cta { display: inline-flex; gap: .5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--accent); color: #111; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn:hover { filter: brightness(1.02); transform: translateY(-1px); transition: transform .12s ease, filter .12s ease; }
.shape-divider { position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; overflow: hidden; line-height: 0; }
.shape-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.shape-divider .shape-fill { fill: #ffffff; }

#menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.menu-item {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 0 0 1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform .12s ease, box-shadow .12s ease;
}
.menu-item:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0,0,0,.12); }

.menu-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.menu-item h3 { margin: .75rem .75rem .25rem; font-size: 1.1rem; }
.price-badge { position: absolute; top: .5rem; right: .5rem; background: var(--brand); color: #fff; padding: .3rem .6rem; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.fade-up { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }

/* Contact */
.contact-section { text-align: left; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; max-width: 1100px; margin: 0 auto; }
.contact-card { background: var(--card); border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { margin-top: 0; }
.contact-card p { margin: 0.25rem 0; }
.contact-meta { display: grid; gap: .75rem; margin-top: 1rem; }
.contact-meta strong { display: block; color: var(--brand); margin-bottom: .25rem; }
.contact-card .btn { margin-top: 1rem; }
.contact-form { display: grid; gap: .75rem; margin-top: 1rem; }
.contact-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; }
.contact-form input,
.contact-form textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; box-sizing: border-box; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.contact-form-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.contact-form-actions .btn { margin-top: 0; border: none; cursor: pointer; }
.contact-form-status { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-form-status.is-error { color: #b91c1c; }
.contact-form-status.is-success { color: #166534; }
.contact-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Reviews */
.reviews-header {
    margin: 0 auto 0.5rem;
    max-width: 800px;
    color: var(--muted);
    font-weight: 600;
}
#google-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.review {
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    text-align: left;
}
.review-head { display: flex; justify-content: space-between; align-items: baseline; }
.review-author { font-weight: 700; }
.review-rating { color: #f59e0b; letter-spacing: 1px; }
.review-date { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.review-text { margin: 0.5rem 0 0; }

/* Map embed */
.map-section {
    padding-top: 0;
}
.map-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}
.map-embed iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.map-actions { margin-top: 0.75rem; }
.map-actions a { color: #2563eb; text-decoration: none; font-weight: 600; }
.map-actions a:hover { text-decoration: underline; }

/* Gallery grid shared with admin */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; max-width: 1000px; margin: 0 auto; }
.gallery-grid .thumb { border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; background: #f8fafc; box-shadow: var(--shadow); cursor: zoom-in; display: grid; place-items: center; padding: .5rem; }
.gallery-grid .thumb img { width: 100%; height: 180px; object-fit: contain; object-position: center; display: block; background: #f8fafc; }
.gallery-page-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-page-grid .thumb img { height: 240px; }
.gallery-cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; }
.gallery-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.gallery-dark-ghost { color: var(--text); border-color: #d1d5db; background: #fff; }

/* Catering contact quick block */
.contact-quick { margin-top: 1rem; text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; }
.contact-quick .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; }
.contact-quick input, .contact-quick textarea, .contact-quick button { font: inherit; padding: .5rem .6rem; border: 1px solid #d1d5db; border-radius: 8px; }
.contact-quick textarea { resize: vertical; }
.contact-quick button { background: var(--accent); color: #111; border: none; font-weight: 700; cursor: pointer; }
.contact-quick a { color: #2563eb; text-decoration: none; }
.contact-quick a:hover { text-decoration: underline; }

/* In modal, let the notes span the full modal width */
.modal .contact-quick { max-width: none; margin-left: 0; margin-right: 0; }
.modal .contact-quick textarea { width: 100%; display: block; }
.modal .contact-quick button { margin-top: .6rem; }

/* Modal styles */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.open { display: flex; animation: fadeBg .18s ease both; }
.modal { background: var(--card); color: var(--text); width: min(720px, 92vw); border-radius: 14px; box-shadow: 0 40px 80px rgba(0,0,0,.25); transform: translateY(8px) scale(.98); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.modal.in { transform: translateY(0) scale(1); opacity: 1; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid #eef1f4; }
.modal-content { padding: 1rem; }
.modal-close { background: transparent; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes fadeBg { from { opacity: 0 } to { opacity: 1 } }

.lightbox-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .82); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 110; }
.lightbox-overlay.open { display: flex; animation: fadeBg .18s ease both; }
.lightbox-dialog { position: relative; width: min(96vw, 1200px); max-height: 92vh; display: grid; place-items: center; }
.lightbox-image { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); background: #fff; transition: opacity .18s ease, transform .18s ease; }
.lightbox-image.is-switching { opacity: .35; transform: scale(.985); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border: none; border-radius: 999px; background: rgba(255,255,255,.92); color: #111827; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: grid; place-items: center; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-close { position: absolute; top: -0.5rem; right: -0.5rem; width: 2.5rem; height: 2.5rem; border: none; border-radius: 999px; background: rgba(255,255,255,.92); color: #111827; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

@media (max-width: 640px) {
    .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
    .lightbox-prev { left: .5rem; }
    .lightbox-next { right: .5rem; }
}

/* Footer: fixed, auto-hide, with handle */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(0%);
    transition: transform .35s ease;
    will-change: transform;
    z-index: 20;
}
.site-footer.footer-hidden { transform: translateY(100%); }
.site-footer p { margin: 0; font-size: 0.95rem; }

/* Footer layout with contact info */
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: center; }
.footer-inner h3 { margin: 0 0 .25rem; font-size: 1rem; }
.footer-contact { text-align: left; }
.footer-contact a { color: #e5e7eb; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact #contact-content br { display: none; }
.footer-contact #contact-content p { display: flex; gap: .6rem 1rem; align-items: baseline; flex-wrap: wrap; margin: .25rem 0 0; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: .35rem; }
.footer-meta > div { white-space: nowrap; }
.footer-brand { text-align: right; opacity: .95; font-weight: 700; }
.footer-brand small { display:block; color: rgba(255,255,255,.7); font-weight: 500; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-brand { text-align: center; } .footer-contact { text-align: center; } }

/* Mobile tweaks */
@media (max-width: 640px) {
    .group-offer { grid-template-columns: 1fr; padding: 1.1rem; border-radius: 20px; }
    .group-offer-copy { padding-right: 0; }
    .group-offer-intro { max-width: none; font-size: 1.6rem; }
    .group-offer-details { padding: 1rem; }
    .group-offer-list li { padding: .8rem .85rem .8rem 2.6rem; }
    .group-offer-options { gap: .5rem; }
    nav .nav-items ul { flex-wrap: wrap; gap: 0.75em; justify-content: center; }
    nav ul { padding: 0.5rem 0.75rem; }
    nav ul li a { font-size: 0.95rem; }
    .gallery-cta-strip { flex-direction: column; text-align: center; }
    .gallery-cta-actions { justify-content: center; }
}

/* Mobile nav (hamburger) */
.nav-toggle { display: none; background: transparent; border: 1px solid #e5e7eb; border-radius: 8px; padding: .4rem .5rem; }
.nav-toggle span { display:block; width:22px; height:2px; background:#111; margin:4px 0; }
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  nav .nav-items { justify-content: flex-end; }
  nav .nav-items ul { display: none; position: absolute; right: 1rem; top: 56px; background:#fff; border:1px solid #e5e7eb; border-radius: 12px; padding:.5rem; box-shadow: 0 20px 40px rgba(0,0,0,.12); }
  body.nav-open nav .nav-items ul { display: flex; flex-direction: column; gap:.25rem; }
  nav ul { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer { transition: none; }
}
