/* ============================================================
   Melbourne Restobar & Lounge — Main Stylesheet
   Consolidated, deduplicated, fully authoritative.
   ============================================================ */

/* ── Variables ── */
:root {
    --green: #082f1f;
    --deep: #04140d;
    --gold: #d6c28a;
    --cream: #f6f1d8;
    --soft: #fbf8e8;
    --text: #f8f3df;
    --muted: rgba(248, 243, 223, .72);
    --card: rgba(255,255,255,.08);
    --border: rgba(255,255,255,.14);
    --shadow: 0 24px 70px rgba(0,0,0,.28);
    --max-site: 1180px;
}

[data-theme="light"] {
    --green: #0a3a27;
    --deep: #f7f2d9;
    --gold: #8f6d22;
    --cream: #0a3a27;
    --soft: #fffdf1;
    --text: #062416;
    --muted: #315744;
    --card: #fff9df;
    --border: rgba(6,36,22,.18);
    --shadow: 0 20px 50px rgba(6,36,22,.12);
}

/* ── Reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(214,194,138,.15), transparent 38%), var(--deep);
}
[data-theme="light"] body { background: #f8f4df; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 14px;
    z-index: 100;
    width: min(94%, 1240px);
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(4, 20, 13, .72);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}
[data-theme="light"] .site-header { background: rgba(255,253,241,.86); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a, .site-nav button {
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}
.site-nav a:hover, .site-nav button:hover,
.site-nav .active, .nav-cta {
    background: var(--gold) !important;
    color: #07160f !important;
}
.nav-dropdown { position: relative; }
.submenu {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--deep);
    box-shadow: var(--shadow);
    display: none;
}
[data-theme="light"] .submenu { background: #fff9df; }
.nav-dropdown:hover .submenu, .nav-dropdown.open .submenu { display: grid; }
.nav-toggle { display: none; }

/* ── Layout ── */
.section, .page-hero, .video-section {
    width: min(92%, var(--max-site));
    margin-inline: auto;
}
.section { padding: 74px 0; }
.compact-section { width: min(92%, var(--max-site)); margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 28px; }

/* ── Hero ── */
.page-hero {
    min-height: 72vh;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    margin-top: 24px;
    padding: 86px 7%;
    background-image: linear-gradient(90deg, rgba(4,20,13,.9), rgba(4,20,13,.42)), var(--hero-img);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}
[data-theme="light"] .page-hero {
    background-image: linear-gradient(90deg, rgba(247,242,217,.94), rgba(247,242,217,.5)), var(--hero-img);
}
.hero-content { max-width: 780px; }

/* ── Typography ── */
.eyebrow { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 6.4rem); line-height: .96; margin: 14px 0; }
h2 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.8rem); margin: 0 0 12px; }
h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.75; }
[data-theme="light"] p { color: #264d37; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
[data-theme="light"] .muted { color: #264d37; }

/* ── Buttons ── */
.hero-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 21px;
    background: var(--gold);
    color: #07160f;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
[data-theme="light"] .btn.ghost { color: #062416; border-color: rgba(6,36,22,.22); }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.danger { background: #b91c1c; color: #fff; }
.btn:hover { opacity: .88; }

/* ── Grids & Cards ── */
.grid, .cards, .menu-grid, .blog-grid, .gallery-grid, .team-grid, .stats-grid, .home-feature-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.menu-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .menu-card, .blog-card, .event-card, .gallery-card, .team-card, .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow);
}
[data-theme="light"] .card,
[data-theme="light"] .menu-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .event-card,
[data-theme="light"] .gallery-card,
[data-theme="light"] .team-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .admin-card { background: #fff9df; color: #082c19; border-color: rgba(5,55,28,.16); }

.hover-lift { overflow: hidden; position: relative; transition: transform .45s ease, box-shadow .45s ease; }
.hover-lift img { transition: transform .6s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.hover-lift:hover img { transform: scale(1.05); }
.card-image { height: 250px; width: 100%; object-fit: cover; border-radius: 20px; margin-bottom: 16px; }

/* ── Menu card ── */
.menu-card { padding: 14px; border-radius: 22px; }
.menu-card .card-image { height: 220px; }
.menu-card .content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 4px 4px;
    min-height: 180px;
}
.menu-card .content h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.menu-card .content p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; }
.menu-card .badge { font-size: 11px; padding: 4px 8px; }
.price { color: var(--gold); font-size: 20px; font-weight: 900; margin-top: auto; }

/* ── Badge ── */
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(214,194,138,.18); color: var(--gold); font-weight: 800; font-size: 12px; }

/* ── Split / video ── */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.video-section video, .video-frame {
    width: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.video-embed-frame { background: var(--card); padding: 0; overflow: hidden; min-height: 420px; }
.video-embed-frame iframe { width: 100%; height: 520px; border: 0; display: block; border-radius: 28px; }
.home-video-card {
    min-height: 420px;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    background: #04140d;
    box-shadow: var(--shadow);
}
.home-video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.home-video-card .video-caption { position: relative; z-index: 2; text-align: center; max-width: 680px; padding: 32px; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
input, select, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text);
    background: rgba(255,255,255,.06);
    outline: none;
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea { background: #fffdf5; color: #0a2a1c; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px; border-bottom: 1px solid var(--border); text-align: left; }

/* ── Alerts ── */
.alert { padding: 13px 18px; border-radius: 14px; font-weight: 700; margin-bottom: 12px; }
.alert.success { background: rgba(22,163,74,.15); color: #16a34a; border: 1px solid rgba(22,163,74,.3); }
.alert.danger  { background: rgba(185,28,28,.15); color: #b91c1c; border: 1px solid rgba(185,28,28,.3); }
[data-theme="light"] .alert.success { background: #dcfce7; color: #15803d; }
[data-theme="light"] .alert.danger  { background: #fee2e2; color: #b91c1c; }

/* ── Scroll-reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Scroll-to-top ── */
.scroll-top { position: fixed; right: 22px; bottom: 24px; z-index: 120; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--gold); color: #06150e; font-weight: 900; cursor: pointer; display: none; box-shadow: var(--shadow); }
.scroll-top.show { display: grid; place-items: center; }

/* ── Theme icons ── */
[data-theme="light"] .theme-icon-dark { display: none !important; }
[data-theme="light"] .theme-icon-light { display: inline !important; }
[data-theme="dark"]  .theme-icon-light { display: none !important; }
[data-theme="dark"]  .theme-icon-dark  { display: inline !important; }

/* ── Footer ── */
.footer { margin-top: 90px; padding: 92px 0 28px; background: #031109; color: #fff7dc; }
[data-theme="light"] .footer { background: #062416; color: #fff7dc; }
.footer-inner { width: min(92%, var(--max-site)); margin: auto; display: grid; grid-template-columns: 1.25fr .75fr .9fr 1fr; gap: 32px; align-items: start; }
.footer img { width: 74px; height: 74px; object-fit: cover; border-radius: 50%; }
.footer a, .footer p { display: block; color: rgba(255,247,220,.82); margin: 8px 0; }
.footer a:hover { color: var(--gold) !important; }
.footer h2, .footer h3 { color: #fff8df; }
.footer-brand-title { font-family: Georgia, serif; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.05; margin: 14px 0 0; color: #fff8df !important; }
.footer-dropcap { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.footer-dropcap img { width: 80px !important; height: 80px !important; border-radius: 50% !important; border: 1px solid rgba(214,194,138,.4); flex-shrink: 0; }

.socials { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.socials a { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--gold); color: #06150e; font-weight: 900; font-size: 13px; }
.footer-bottom { width: min(92%, var(--max-site)); margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links-inline { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.footer-links-inline .divider { opacity: .6; }

/* Newsletter */
.newsletter h3 { color: #fff8df; }
.newsletter-wrap { position: relative; width: 100%; max-width: 440px; margin-top: 12px; }
.newsletter-wrap input { width: 100%; height: 54px; padding: 0 130px 0 18px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff7dc; outline: none; }
.newsletter-wrap input::placeholder { color: rgba(255,247,220,.5); }
.newsletter-btn { position: absolute; top: 5px; right: 5px; height: 44px; padding: 0 20px; border: none; border-radius: 100px; background: var(--gold); color: #06150e; font-weight: 900; cursor: pointer; }
[data-theme="light"] .newsletter-wrap input { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }

/* ── Order page ── */
.order-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start; }
.order-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-top: 22px; }
.order-item-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--border); padding: 12px; transition: border-color .3s; }
.order-item-card:has([data-item-check]:checked), .order-item-card.preselected { outline: 2px solid var(--gold); }
.order-item-card img { height: 140px; object-fit: cover; border-radius: 14px; }
.order-item-card h3 { margin: 0; font-size: 15px; }
.item-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.item-controls input[type="number"] { width: 70px; }
.order-summary-panel { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
[data-theme="light"] .order-summary-panel { background: #fff9df; }
.menu-tools { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 14px; margin-top: 18px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; font-size: 20px; font-weight: 900; }
.confirmation-card, .payment-card { margin-bottom: 24px; }

/* ── FAQ ── */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 20px; background: var(--card); overflow: hidden; }
.faq-question { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question span:nth-child(2) { flex: 1; }
.faq-cat { flex-shrink: 0; }
.faq-icon { font-size: 22px; color: var(--gold); font-weight: 400; transition: transform .3s; flex-shrink: 0; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; border-top: 1px solid var(--border); }
.faq-answer p { margin-top: 14px; }

/* ── Map ── */
.map-frame { width: 100%; height: 280px; border: 0; border-radius: 22px; margin-top: 18px; }

/* ── Loyalty / auth ── */
.auth-card { max-width: 560px; margin-inline: auto; }

/* ── Opening hours note ── */
.opening-hours-note { margin-top: 10px; font-size: 15px; color: var(--gold); font-weight: 700; }
.opening-hours-note a { color: inherit; text-decoration: underline; }

/* ── Mini chart (admin dashboard) ── */
.mini-chart { display: flex; align-items: flex-end; gap: 12px; min-height: 210px; padding-top: 20px; }
.mini-chart > div { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.mini-chart span {
    width: 100%;
    max-width: 42px;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, var(--gold), #8a6417);
    position: relative;
    cursor: default;
}
.mini-chart > div:hover::before {
    content: attr(title);
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #06150e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}
.mini-chart small { font-size: 12px; color: var(--muted); }

/* ── Admin ── */
.admin-body { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px; background: #031109; border-right: 1px solid var(--border); }
.admin-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; margin-bottom: 24px; }
.admin-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar a { padding: 12px 14px; border-radius: 14px; color: #fff4d2; }
.admin-sidebar a:hover { background: rgba(214,194,138,.18); }
.admin-shell { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--deep); border-bottom: 1px solid var(--border); }
.admin-topbar span { display: block; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-actions button { border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); padding: 10px 12px; cursor: pointer; }
.admin-user { position: relative; }
.admin-user-menu { display: none; position: absolute; right: 0; top: 45px; min-width: 220px; background: var(--deep); border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
[data-theme="light"] .admin-user-menu { background: #fff9df; }
.admin-user.open .admin-user-menu { display: block; }
.admin-content { padding: 28px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.admin-grid.two { grid-template-columns: repeat(2, 1fr); }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.thumb-small { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.admin-icon-link { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); font-size: 18px; }
.admin-icon-link:hover { background: var(--gold); color: #06150e; }
.admin-actions .view-site-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--gold); color: #06150e !important; padding: 10px 14px; font-weight: 900; white-space: nowrap; }

/* ── POS ── */
.pos-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 24px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 16px; }
.pos-card { padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; min-height: 280px; transition: border-color .3s, box-shadow .3s; }
.pos-card.selected { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(214,194,138,.18), var(--shadow); }
[data-theme="light"] .pos-card.selected { background: #fff4c9; }
.pos-card img { height: 120px; width: 100%; object-fit: cover; border-radius: 14px; }
.pos-card h3 { font-size: 15px; margin: 6px 0 4px; }
.pos-card .price { font-size: 17px; }
.pos-card .pos-actions { margin-top: auto; display: grid; gap: 8px; }
.pos-card button { width: 100%; cursor: pointer; }
.pos-cart-panel { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
[data-theme="light"] .pos-cart-panel { background: #fff9df; }
.qty-row { display: grid; grid-template-columns: 1fr 78px; gap: 8px; align-items: center; margin: 8px 0; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line strong, .cart-line small { display: block; }
.cart-line small { color: var(--muted); margin-top: 3px; }
.selected-badge { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #06150e; font-size: 12px; font-weight: 900; }

/* ── Login ── */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(440px, 100%); }

/* ── Responsive ── */
@media (max-width: 920px) {
    .nav-toggle { display: block; border: 0; background: var(--gold); color: #06150e; padding: 10px 13px; border-radius: 12px; }
    .site-header { border-radius: 24px; align-items: flex-start; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; margin: auto; width: 100%; padding: 14px; background: var(--deep); border: 1px solid var(--border); border-radius: 24px; flex-direction: column; align-items: stretch; }
    .site-nav.open { display: flex; }
    .submenu { position: static; width: 100%; margin-top: 8px; }
    .split, .footer-inner { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .page-hero { min-height: 60vh; border-radius: 26px; padding: 70px 24px; }
    .section { padding: 54px 0; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .admin-topbar { flex-wrap: wrap; gap: 12px; }
    .admin-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .pos-layout, .order-layout { grid-template-columns: 1fr; }
    .pos-cart-panel, .order-summary-panel { position: static; max-height: none; }
    .menu-tools { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-dropcap { gap: 12px; }
    .footer-dropcap img { width: 60px !important; height: 60px !important; }
    .mini-cards { grid-template-columns: 1fr; }
    .menu-card .content { min-height: auto; }
}

/* Disable hover submenu on touch — JS .open handles it */
@media (hover: none) {
    .nav-dropdown:hover .submenu { display: none; }
    .nav-dropdown.open .submenu { display: grid; }
}

/* Lazy-load fade */
img[loading="lazy"] { transition: opacity .4s; }
