header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,244,.95); backdrop-filter: blur(8px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
header .logo img { height: 42px; width: auto; }
nav { display: flex; gap: 30px; font-weight: 600; color: var(--ink); }
nav a:hover { color: var(--brand); }
nav a[aria-current="page"] { color: var(--brand); }
.phone { background: var(--brand); color: #fff; padding: 11px 20px; border-radius: 999px; }
.phone:hover { background: var(--brand-dark); }
.menu-btn { display: none; }
.menu-btn .i-x, header:has(nav:popover-open) .menu-btn .i-menu { display: none; }
header:has(nav:popover-open) .menu-btn .i-x { display: block; }
/* The <nav> is a popover menu on mobile; on desktop it sits in the header row */
@media (min-width: 961px) {
  header nav[popover] { position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; width: auto; height: auto; color: var(--ink); }
}

.mbar { display: none; }

footer { background: #2A1233; color: rgba(255,255,255,.8); border-top: 4px solid var(--accent); padding: 56px 0 0; font-size: .95rem; }
footer :focus-visible { outline-color: var(--accent); }
footer .fgrid h2, footer .fcontact b { color: #fff; }
footer .fgrid a:hover { color: var(--accent); }
footer .fcontact svg { color: var(--accent); }
footer .fcontact small { color: rgba(255,255,255,.62); }
footer .fbrand img { background: var(--ground); padding: 10px 14px; border-radius: 12px; box-sizing: content-box; }
footer .fbrand .btn { background: var(--accent); color: var(--ink); }
footer .fbrand .btn:hover { background: #F0BB52; }
footer .fbottom { border-top-color: rgba(255,255,255,.14); }
.fgrid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 36px; }
.fgrid h2 { color: var(--ink); font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fgrid a:hover { color: var(--brand); text-decoration: underline; }
.fbrand img { height: 44px; width: auto; margin-bottom: 14px; }
.fbrand p { margin: 0 0 16px; max-width: 300px; }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.fcontact svg { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.fcontact small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fcontact b { color: var(--ink); font-weight: 600; }
.fbottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding: 18px 0; border-top: 1px solid var(--line-soft); font-size: .85rem; }
.flegal { display: flex; gap: 18px; font-weight: 500; }

@media (max-width: 960px) {
  header .wrap { gap: 12px; }
  header nav:not(:popover-open) { display: none; }
  header nav:popover-open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    inset: 72px 12px auto auto;
    margin: 0;
    width: min(260px, calc(100% - 24px));
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-pop);
  }
  header nav a { padding: 11px 14px; border-radius: 8px; }
  header nav a:hover { background: var(--soft); }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(30,20,36,.12);
  }
  .mbar .btn { justify-content: center; padding: 12px; }
  body { padding-bottom: 76px; }
  /* Hidden while the booking form is on screen (body.q-in) or the keyboard is open, so it never covers Next */
  body.q-in .mbar, body:has(:is(input, select, textarea):focus) .mbar { display: none; }
}

@media (max-width: 560px) {
  header .logo img { height: 34px; }
  .phone span { display: none; }
  .phone { padding: 11px; }
  .fgrid ul { gap: 0; }
  .fgrid ul a { display: inline-block; padding: 8px 0; }
  .fcontact ul { gap: 12px; }
  .fcontact ul a { padding: 0; }
  .fgrid { grid-template-columns: 1fr; gap: 28px; }
}
