/* =====================================================================================
   Light theme: the colours themselves are the shared variables in site.css (:root).
   This file handles what the variables cannot: the header and footer, sections that sit on top
   of photos (they keep white text), and a few fixed colours that assumed a dark page.
   ===================================================================================== */

:root { color-scheme: light; }

body { background-color: var(--eerie-black-1); color: var(--white); }

/* ---- Loading splash ------------------------------------------------------------- */
.preload { background-color: var(--eerie-black-1); }

/* ---- Top bar and header: light, solid at all times ------------------------------- */
.topbar { background-color: var(--smoky-black-3); border-bottom: 1px solid var(--white-alpha-10); color: var(--white); }
.header,
.header.active {
    background-color: var(--eerie-black-2) !important;
    border-block-end: 1px solid var(--white-alpha-10);
    box-shadow: 0 2px 14px rgba(60, 45, 20, 0.08);
    backdrop-filter: none;
}
.header { padding-block: 14px; }
.header.active { padding-block: 10px; box-shadow: 0 6px 22px rgba(60, 45, 20, 0.12); }
@media (max-width: 1199.98px) {
    .header.active { background-color: var(--eerie-black-2) !important; }
}

/* ---- Sections on top of photos keep white text and the light gold ------------------ */
.hero,
.testi {
    --white: hsl(0, 0%, 100%);
    --gold-crayola: hsl(38, 61%, 73%);
    --on-gold: hsla(40, 12%, 5%, 1);
    --quick-silver: hsla(0, 0%, 80%, 1);
    --white-alpha-10: hsla(0, 0%, 100%, 0.1);
    --white-alpha-20: hsla(0, 0%, 100%, 0.2);
    color: var(--white);
}

/* ---- Footer: light, without the dark photo --------------------------------------- */
.footer {
    background-image: none !important;
    background-color: var(--smoky-black-3);
    border-top: 1px solid var(--white-alpha-10);
}

/* ---- Tables (Bootstrap) ---------------------------------------------------------- */
.table {
    --bs-table-striped-bg: rgba(60, 45, 20, 0.035);
    --bs-table-hover-bg: rgba(60, 45, 20, 0.06);
}

/* ---- Status colours that were picked for a dark page ------------------------------ */
.admin-badge-ok { color: #2e7d32; }
.admin-badge-bad { color: #c62828; }
.service-confirmation { border-color: #2e7d32; background: rgba(46, 125, 50, 0.08); }
.test-ok h2 { color: #2e7d32; }
.test-bad h2 { color: #c62828; }
.oc-remove:hover, .oc-remove:focus-visible { color: #c62828; }
.staff-alert { color: #8c2f1f; background: #fdecea; }
.rc-success { background: #e8f5e9; color: #1b5e20; border-color: #2e7d32; }
.ticket-late .ticket-wait, .ticket-cancelled, .tools-danger h3 { color: #c62828; }
.tools-history span { color: var(--white); }
.tbl-busy { border-color: #c9a45c; background: #fbf1de; }
.method-opt:has(input:checked) { background: #fbf1de; }
.tb-row.is-off { background: rgba(60, 45, 20, 0.04); }
.recent-paid > summary:hover { background: rgba(60, 45, 20, 0.04); }
.ic-pop { box-shadow: 0 12px 34px rgba(60, 45, 20, 0.25); }

/* ---- The printed-style receipt is white paper: give it an edge on a light page ------ */
.rc-paper { border: 1px solid var(--white-alpha-20); box-shadow: 0 8px 24px rgba(60, 45, 20, 0.15); }

/* ---- Cards and panels get a light edge instead of relying on a dark contrast -------- */
.checkout-panel, .tb-card, .res-card, .sale-card, .manage-card, .sales-tile, .oc-summary, .staff-row, .recent-paid, .tab-tools,
.order-line, .menu-cat, .ticket, .bill-box, .rc-collected, .rc-email, .test-result, .tb-list {
    box-shadow: 0 1px 2px rgba(60, 45, 20, 0.05);
}

/* ---- Print: always plain black on white ------------------------------------------ */
@media print {
    body, .staff-body { background: #fff !important; color: #000 !important; }
}

/* Gold buttons: white text on the deeper gold */
.btn-secondary { color: var(--on-gold); }

/* Footer contact card: plain white instead of the dark textured panel */
.footer-brand { background-image: none; background-color: var(--eerie-black-2); box-shadow: 0 1px 3px rgba(60, 45, 20, 0.1); }
.footer-brand::before, .footer-brand::after { opacity: 0.6; }

.admin-badge-warn { color: #8a5a00; }

.cart-page .headline-1, .checkout-page .headline-1 { text-shadow: none; }

/* Decorative line-art doodles: very faint and behind the text, so they never fight with it */
img.shape { opacity: 0.07; z-index: -1; pointer-events: none; }

/* Contact section: no overlap onto the photo above, and a plain panel instead of the busy pattern */
.reservation-form { margin-block-start: 0; }
.reservation { padding-block-start: 70px; }
.form-right { background-image: none !important; background-color: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.form-left { background-color: var(--eerie-black-2); border: 1px solid var(--white-alpha-10); }
.form-left .input-field, .form-left textarea { background-color: var(--eerie-black-1); }

/* Home page: the floating doodles drift down the whole page, behind the sections */
.home-page, .menu-page { position: relative; }
.home-page > section:not(.hero):not(.testi) { background: transparent; }
.home-page > section { position: relative; z-index: 1; }
.home-page .page-shapes, .menu-page .page-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-page .page-shapes img.shape, .menu-page .page-shapes img.shape { display: block; position: absolute; opacity: 0.12; z-index: 0; width: 420px; height: auto; max-width: 420px; }
.home-page .page-shapes .ps-l, .menu-page .page-shapes .ps-l { left: -60px; }
.home-page .page-shapes .ps-r, .menu-page .page-shapes .ps-r { right: -60px; }
@media (max-width: 767.98px) { .home-page .page-shapes img.shape, .menu-page .page-shapes img.shape { width: 220px; max-width: 220px; opacity: 0.1; } }
.menu-page .menuContent { position: relative; z-index: 1; }
.home-page .testi { padding-block-end: 120px; }

/* Footer: without the social links column, keep the contact card centred on wide screens */
@media (min-width: 992px) {
    .footer-top.grid-list .footer-list { order: 0; }
    .footer-top.grid-list::after { content: ""; order: 2; }
}

/* Admin screens (Orders, Sales, Manage and so on): use the whole width of a desktop window */
.admin-page .container { max-width: none; width: 100%; padding-inline: clamp(16px, 3vw, 56px); }

/* ---- Top bar: always one line, so it never grows taller than the 51px the header sits below --- */
@media (min-width: 768px) {
    .topbar { height: 51px; padding-block: 0; display: flex; align-items: center; overflow: hidden; }
    .topbar .container { flex-wrap: nowrap; gap: 22px; width: 100%; }
    .topbar-item { flex: 0 0 auto; gap: 6px; }
    .topbar-item .span, .topbar-item address { white-space: nowrap; font-size: 1.3rem; }
    .topbar .item-2 { margin-inline-end: 0; }
    .topbar .separator { display: none; }
    .topbar .container { justify-content: space-between; }
}
/* Narrower desktops: drop the least important items instead of squeezing them */
@media (max-width: 1499.98px) { .topbar address.topbar-item { display: none; } }
@media (max-width: 1249.98px) { .topbar .topbar-item.item-2 + .topbar-item.item-2 { display: none; } }
