/* ============================================
   Quest Online — Escape Rooms Australia
   Vanilla CSS | Syne + DM Sans | Hero bg image
   ============================================ */

:root {
    --qo-gold: #D4A853;
    --qo-gold-bright: #E8C97A;
    --qo-gold-dark: #B8923F;
    --qo-white: #FFFFFF;
    --qo-bg: #0d1218;
    --qo-bg-elevated: #141c24;
    --qo-surface: rgba(20, 28, 36, 0.92);
    --qo-border: rgba(255, 255, 255, 0.08);
    --qo-border-strong: rgba(255, 255, 255, 0.14);
    --qo-text: #e8eaed;
    --qo-text-soft: #9aa0a6;
    --qo-font: 'DM Sans', system-ui, sans-serif;
    --qo-font-head: 'Syne', sans-serif;
    --qo-radius: 8px;
    --qo-radius-pill: 999px;
    --qo-ease: cubic-bezier(0.33, 1, 0.68, 1);
    --qo-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --qo-transition: 0.28s var(--qo-ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--qo-font);
    background: var(--qo-bg);
    color: var(--qo-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.qo-menu-open { overflow: hidden; }

/* ========== Background: hero image + overlay ========== */
.qo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.qo-bg__base {
    position: absolute;
    inset: 0;
    background: var(--qo-bg);
    background-image: url("../images/hero-bg.webp");
    background-size: cover;
    background-position: center;
}

.qo-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
        rgba(13, 18, 24, 0.92) 0%,
        rgba(20, 28, 36, 0.88) 50%,
        rgba(13, 18, 24, 0.94) 100%
    );
}

/* ========== Layout ========== */
.qo-header, .qo-section, .qo-footer, .qo-main { position: relative; z-index: 1; }

/* ========== Modals (age gate) ========== */
.qo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.qo-modal.is-open { opacity: 1; visibility: visible; }

.qo-modal__box {
    background: var(--qo-bg-elevated);
    border: 1px solid var(--qo-border-strong);
    border-left: 4px solid var(--qo-gold);
    border-radius: var(--qo-radius);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--qo-shadow);
    transform: scale(0.96);
    transition: transform 0.3s var(--qo-ease);
}

.qo-modal.is-open .qo-modal__box { transform: scale(1); }

.qo-modal__badge {
    display: inline-block;
    font-family: var(--qo-font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--qo-gold);
    margin-bottom: 0.5rem;
}

.qo-modal__title {
    font-family: var(--qo-font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--qo-white);
    margin-bottom: 0.6rem;
}

.qo-modal__text { color: var(--qo-text-soft); margin-bottom: 1.5rem; font-size: 0.95rem; }

.qo-modal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.qo-modal--success .qo-modal__box { max-width: 420px; }

.qo-modal__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    background: var(--qo-gold);
    color: var(--qo-bg);
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 50%;
}

/* ========== Buttons ========== */
.qo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--qo-font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--qo-radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.qo-btn:hover { transform: translateY(-1px); }

.qo-btn--primary {
    background: var(--qo-gold);
    color: var(--qo-bg);
}

.qo-btn--primary:hover {
    background: var(--qo-gold-bright);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.35);
}

.qo-btn--outline {
    background: transparent;
    color: var(--qo-text);
    border: 2px solid var(--qo-border-strong);
}

.qo-btn--outline:hover {
    border-color: var(--qo-gold);
    color: var(--qo-gold-bright);
}

.qo-btn--ghost {
    background: transparent;
    color: var(--qo-text-soft);
}

.qo-btn--ghost:hover { color: var(--qo-gold-bright); }

.qo-btn--lg { padding: 14px 32px; font-size: 1rem; }

/* ========== Cookie bar ========== */
.qo-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--qo-bg-elevated);
    border-top: 3px solid var(--qo-gold);
    transform: translateY(100%);
    transition: transform 0.35s var(--qo-ease);
}

.qo-cookie.is-visible { transform: translateY(0); }

.qo-cookie__text { font-size: 0.9rem; color: var(--qo-text-soft); flex: 1; min-width: 200px; }

.qo-cookie__text a { color: var(--qo-gold-bright); text-decoration: underline; }

.qo-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }

.qo-cookie__btn { flex-shrink: 0; }

/* ========== Header ========== */
.qo-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    background: var(--qo-bg-elevated);
    border-bottom: 1px solid var(--qo-border);
}

.qo-header::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--qo-gold);
}

.qo-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qo-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--qo-white);
    font-family: var(--qo-font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.qo-logo__icon { flex-shrink: 0; }

.qo-nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.qo-nav__link {
    color: var(--qo-text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.qo-nav__link:hover,
.qo-nav__link--active { color: var(--qo-gold-bright); }

.qo-nav__link:hover::after,
.qo-nav__link--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--qo-gold);
    border-radius: 1px;
}

.qo-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    color: var(--qo-text);
    cursor: pointer;
    padding: 8px;
}

.qo-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.qo-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.qo-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.qo-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.qo-header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--qo-bg-elevated);
    border-bottom: 1px solid var(--qo-border);
    flex-direction: column;
    gap: 8px;
}

.qo-header__dropdown.is-open { display: flex; }

.qo-header__dropdown a {
    color: var(--qo-text);
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--qo-border);
}

.qo-header__dropdown a:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .qo-nav { display: none; }
    .qo-burger { display: flex; }
}

/* ========== Hero ========== */
.qo-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 48px 24px 56px;
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.qo-hero__content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .qo-hero__content { text-align: left; margin: 0; }
}

.qo-hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border: 2px solid var(--qo-gold);
    border-radius: var(--qo-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--qo-gold-bright);
    margin-bottom: 1.25rem;
}

.qo-hero__title {
    font-family: var(--qo-font-head);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--qo-white);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.qo-hero__sub {
    font-size: 1.05rem;
    color: var(--qo-text-soft);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

@media (min-width: 900px) {
    .qo-hero__sub { margin-left: 0; }
}

.qo-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .qo-hero__ctas { justify-content: flex-start; }
}

.qo-hero__cta { flex-shrink: 0; }

.qo-hero__age {
    font-size: 0.85rem;
    color: var(--qo-text-soft);
}

/* ========== Section ========== */
.qo-section {
    padding: 56px 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.qo-section__head { text-align: center; margin-bottom: 36px; }

.qo-section__title {
    font-family: var(--qo-font-head);
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--qo-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.qo-section__sub { color: var(--qo-text-soft); font-size: 1rem; }

/* ========== About preview cards ========== */
.qo-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .qo-about-grid { grid-template-columns: repeat(3, 1fr); }
}

.qo-card {
    background: var(--qo-surface);
    border: 1px solid var(--qo-border);
    border-left: 4px solid var(--qo-gold);
    border-radius: var(--qo-radius);
    padding: 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.qo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--qo-shadow);
}

.qo-card__icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

.qo-card h3 {
    font-family: var(--qo-font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--qo-white);
    margin-bottom: 0.5rem;
}

.qo-card p { font-size: 0.95rem; color: var(--qo-text-soft); }

.qo-legal-line {
    text-align: center;
    font-size: 0.9rem;
    color: var(--qo-text-soft);
}

/* ========== CTA block ========== */
.qo-cta-block__inner {
    text-align: center;
    padding: 48px 24px;
    background: var(--qo-surface);
    border: 1px solid var(--qo-border);
    border-radius: var(--qo-radius);
}

.qo-cta-block__title {
    font-family: var(--qo-font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--qo-white);
    margin-bottom: 0.5rem;
}

.qo-cta-block__sub { color: var(--qo-text-soft); margin-bottom: 1.5rem; }

/* ========== Page hero (inner pages) ========== */
.qo-main--page { padding-bottom: 48px; }

.qo-page-hero {
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
}

.qo-page-hero__title {
    font-family: var(--qo-font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--qo-white);
    margin-bottom: 0.5rem;
}

.qo-page-hero__sub { color: var(--qo-text-soft); font-size: 1.05rem; }

/* ========== Rooms grid ========== */
.qo-rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .qo-rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .qo-rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

.qo-room-card {
    background: var(--qo-surface);
    border: 1px solid var(--qo-border);
    border-left: 4px solid var(--qo-gold);
    border-radius: var(--qo-radius);
    overflow: hidden;
    box-shadow: var(--qo-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.qo-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.qo-room-card__thumb {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    background: var(--qo-bg);
}

.qo-room-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qo-room-card__body { padding: 20px; }

.qo-room-card__title {
    font-family: var(--qo-font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qo-white);
    margin-bottom: 0.5rem;
}

.qo-room-card__desc { font-size: 0.9rem; color: var(--qo-text-soft); margin-bottom: 12px; }

.qo-room-card__meta {
    list-style: none;
    font-size: 0.85rem;
    color: var(--qo-text-soft);
    margin-bottom: 12px;
}

.qo-room-card__meta li { margin-bottom: 4px; }

.qo-room-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--qo-gold);
    margin-bottom: 14px;
}

.qo-room-card__book { width: 100%; }

/* ========== Watch live ========== */
.qo-watch-notice {
    background: var(--qo-surface);
    border: 1px solid var(--qo-border);
    border-left: 4px solid var(--qo-gold);
    border-radius: var(--qo-radius);
    padding: 28px;
    margin-bottom: 28px;
}

.qo-watch-notice h2 {
    font-family: var(--qo-font-head);
    font-size: 1.35rem;
    color: var(--qo-white);
    margin-bottom: 12px;
}

.qo-watch-notice ul {
    margin: 12px 0;
    padding-left: 20px;
    color: var(--qo-text-soft);
}

.qo-watch-notice p { color: var(--qo-text-soft); margin-bottom: 0.5rem; }
.qo-watch-notice p:last-child { margin-bottom: 0; }

.qo-watch-placeholder {
    padding: 32px;
    text-align: center;
    background: var(--qo-surface);
    border-radius: var(--qo-radius);
    color: var(--qo-text-soft);
}

.qo-watch-placeholder a { color: var(--qo-gold-bright); text-decoration: underline; }

/* ========== About content ========== */
.qo-about-text {
    max-width: 720px;
    margin: 0 auto;
}

.qo-about-text h2 {
    font-family: var(--qo-font-head);
    font-size: 1.35rem;
    color: var(--qo-white);
    margin-top: 24px;
    margin-bottom: 12px;
}

.qo-about-text h2:first-child { margin-top: 0; }

.qo-about-text p { color: var(--qo-text-soft); margin-bottom: 1rem; }

.qo-about-age { font-size: 0.9rem; margin-top: 16px; }

/* ========== Legal pages ========== */
.qo-main--legal .qo-legal-content { max-width: 720px; margin: 0 auto; }

.qo-legal__title {
    font-family: var(--qo-font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--qo-white);
    margin-bottom: 24px;
}

.qo-legal__body h2 {
    font-family: var(--qo-font-head);
    font-size: 1.15rem;
    color: var(--qo-white);
    margin-top: 24px;
    margin-bottom: 8px;
}

.qo-legal__body p { color: var(--qo-text-soft); margin-bottom: 1rem; }

.qo-legal__body a { color: var(--qo-gold-bright); text-decoration: underline; }

/* ========== Booking form ========== */
.qo-book-form-wrap { padding-top: 0; }

.qo-book-form-inner {
    max-width: 520px;
    margin: 0 auto;
    background: var(--qo-surface);
    border: 1px solid var(--qo-border);
    border-left: 4px solid var(--qo-gold);
    border-radius: var(--qo-radius);
    padding: 32px;
}

.qo-book-form .qo-form-row { margin-bottom: 20px; }

.qo-form-label {
    display: block;
    font-weight: 600;
    color: var(--qo-text);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.qo-form-required { color: var(--qo-gold); }

.qo-form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--qo-font);
    font-size: 1rem;
    color: var(--qo-text);
    background: var(--qo-bg-elevated);
    border: 1px solid var(--qo-border-strong);
    border-radius: var(--qo-radius);
    transition: border-color 0.2s;
}

.qo-form-input::placeholder { color: var(--qo-text-soft); opacity: 0.8; }

.qo-form-input:focus {
    outline: none;
    border-color: var(--qo-gold);
}

.qo-form-input[aria-invalid="true"] { border-color: #c62828; }

.qo-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa0a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.qo-form-textarea { resize: vertical; min-height: 100px; }

.qo-form-actions { margin-top: 28px; }

.qo-form-actions .qo-btn { width: 100%; }

@media (max-width: 560px) {
    .qo-book-form-inner { padding: 24px 20px; }
}

/* ========== Footer ========== */
.qo-footer {
    margin-top: auto;
    padding: 0;
}

.qo-footer__stripe {
    height: 3px;
    background: var(--qo-gold);
}

.qo-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}

.qo-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .qo-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.qo-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--qo-white);
    font-family: var(--qo-font-head);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
}

.qo-footer__logo:hover { color: var(--qo-gold-bright); }

.qo-footer__slogan { font-size: 0.9rem; color: var(--qo-text-soft); }

.qo-footer__links-title {
    display: block;
    font-weight: 600;
    color: var(--qo-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.qo-footer__links a {
    display: block;
    color: var(--qo-text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
}

.qo-footer__links a:hover { color: var(--qo-gold-bright); }

.qo-footer__age p { font-size: 0.9rem; color: var(--qo-text-soft); }

.qo-footer__legal {
    padding: 20px 0;
    border-top: 1px solid var(--qo-border);
}

.qo-footer__legal p {
    font-size: 0.85rem;
    color: var(--qo-text-soft);
    line-height: 1.5;
}

.qo-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--qo-border);
}

.qo-footer__copy, .qo-footer__geo { font-size: 0.85rem; color: var(--qo-text-soft); }
