:root {
    --qh-maroon: #4a1518;
    --qh-maroon-dark: #2e0d0f;
    --qh-maroon-light: #6e2226;
    --qh-gold: #cda45e;
    --qh-gold-light: #e6c789;
    --qh-forest: #2f4a3a;
    --qh-cream: #faf6ee;
    --qh-cream-dark: #f0e8d8;
    --qh-charcoal: #2b2622;
    --font-heading: 'Almendra', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--qh-cream);
    color: var(--qh-charcoal);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ---------------------------------------------------------------------
   Navbar - transparent over the hero, solidifies on scroll
--------------------------------------------------------------------- */

.navbar-qh {
    background-color: var(--qh-maroon-dark);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Only the homepage (which has a dark hero directly beneath the navbar)
   starts transparent - every other page keeps a solid, readable navbar. */
.navbar-qh.navbar-transparent {
    background-color: transparent;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    box-shadow: none;
}

.navbar-qh.is-scrolled,
.navbar-qh.navbar-transparent.is-scrolled {
    background-color: var(--qh-maroon-dark);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.navbar-qh .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.navbar-qh .navbar-brand,
.navbar-qh .nav-link {
    color: var(--qh-cream) !important;
}

.navbar-qh .nav-link {
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    margin: 0 0.35rem;
    padding-bottom: 0.15rem !important;
}

.navbar-qh .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--qh-gold);
    transition: width 0.3s ease;
}

.navbar-qh .nav-link:hover::after,
.navbar-qh .nav-link.active::after {
    width: 100%;
}

.navbar-qh .nav-link:hover,
.navbar-qh .nav-link.active {
    color: var(--qh-gold-light) !important;
}

/* ---------------------------------------------------------------------
   Cinematic hero - pure CSS (no external image/video dependency), with
   a slow Ken Burns drift and drifting warm "bokeh" lights for a premium,
   almost-video feel. Drop a real <video> element in to replace it later
   (see index.php - the markup is ready, just uncomment).
--------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 20%, var(--qh-maroon-light) 0%, var(--qh-maroon) 45%, var(--qh-maroon-dark) 100%);
    color: var(--qh-cream);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 60px);
    animation: heroDrift 40s linear infinite;
}

@keyframes heroDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-2%, 1%) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero-bokeh {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bokeh span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205,164,94,0.55) 0%, rgba(205,164,94,0) 70%);
    animation: bokehFloat 14s ease-in-out infinite;
}

.hero-bokeh span:nth-child(1) { width: 140px; height: 140px; left: 8%;  top: 65%; animation-duration: 16s; }
.hero-bokeh span:nth-child(2) { width: 90px;  height: 90px;  left: 22%; top: 20%; animation-duration: 12s; animation-delay: -3s; }
.hero-bokeh span:nth-child(3) { width: 180px; height: 180px; left: 78%; top: 55%; animation-duration: 18s; animation-delay: -6s; }
.hero-bokeh span:nth-child(4) { width: 70px;  height: 70px;  left: 60%; top: 15%; animation-duration: 11s; animation-delay: -2s; }
.hero-bokeh span:nth-child(5) { width: 110px; height: 110px; left: 40%; top: 75%; animation-duration: 15s; animation-delay: -8s; }

@keyframes bokehFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%      { transform: translate(3%, -6%) scale(1.15); opacity: 1; }
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46,13,15,0.55) 0%, rgba(46,13,15,0.72) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--qh-gold-light);
    margin-bottom: 1.1rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.1s forwards;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.3s forwards;
}

.hero .lead {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--qh-cream-dark);
    opacity: 0;
    animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-status-wrap {
    opacity: 0;
    animation: fadeUp 0.9s ease 0.7s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1.1em;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(2px);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-open { background-color: rgba(46,125,50,0.25); color: #d9f2da; }
.status-open .status-dot { background-color: #59d15f; box-shadow: 0 0 0 rgba(89,209,95,0.6); animation: pulseDot 2s infinite; }
.status-closed { background-color: rgba(255,255,255,0.08); color: #e7e2da; }
.status-closed .status-dot { background-color: #b0aaa2; }

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(89,209,95,0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(89,209,95,0); }
    100% { box-shadow: 0 0 0 0 rgba(89,209,95,0); }
}

/* ---------------------------------------------------------------------
   Scroll-reveal utility
--------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------------------
   Section styling
--------------------------------------------------------------------- */

.section-pad { padding: 5rem 0; }

.section-eyebrow {
    display: block;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--qh-maroon);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 700;
    color: var(--qh-maroon);
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--qh-gold), transparent);
    margin-top: 0.6rem;
}

.section-title.mx-auto-underline::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------------------
   Cards
--------------------------------------------------------------------- */

.card-news {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(46,13,15,0.08);
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background-color: #fff;
}

.card-news:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(46,13,15,0.16);
}

.card-news .card-img-top {
    height: 210px;
    object-fit: cover;
}

.card-news .card-img-placeholder {
    height: 210px;
    background: linear-gradient(135deg, var(--qh-maroon-light), var(--qh-maroon));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-heading);
    font-style: italic;
}

.card-news .card-title {
    font-family: var(--font-heading);
    color: var(--qh-maroon);
}

.card-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(46,13,15,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.card-menu:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(46,13,15,0.16);
}

.card-menu .card-title {
    font-family: var(--font-heading);
    color: var(--qh-maroon);
}

/* ---------------------------------------------------------------------
   Sliding card carousel (news) - CSS scroll-snap, no JS library needed
--------------------------------------------------------------------- */

.slider-wrap {
    position: relative;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: none;
}

.slider-track::-webkit-scrollbar { display: none; }

.slider-track .slider-item {
    flex: 0 0 auto;
    width: min(340px, 85vw);
    scroll-snap-align: start;
}

.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.slider-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--qh-maroon);
    background: transparent;
    color: var(--qh-maroon);
    font-size: 1.1rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.slider-nav button:hover {
    background-color: var(--qh-maroon);
    color: var(--qh-cream);
}

/* ---------------------------------------------------------------------
   Opening hours - elegant list rather than a plain table
--------------------------------------------------------------------- */

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px dashed rgba(74,21,24,0.15);
    font-size: 1.02rem;
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day-name {
    font-family: var(--font-heading);
    color: var(--qh-charcoal);
}

.hours-list li.today {
    color: var(--qh-maroon);
}

.hours-list li.today .day-name {
    font-weight: 700;
}

.hours-list li.today .day-name::after {
    content: "\2022 today";
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qh-gold);
    margin-left: 0.6rem;
    font-weight: 600;
}

.exception-banner {
    background-color: #fdf3e2;
    border: 1px solid #ecd6a8;
    color: #6b4f22;
    padding: 1rem 1.4rem;
    border-radius: 12px;
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */

.btn-qh {
    background-color: var(--qh-maroon);
    color: var(--qh-cream);
    border: 1px solid var(--qh-maroon);
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-qh:hover {
    background-color: var(--qh-maroon-dark);
    color: var(--qh-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46,13,15,0.25);
}

.btn-qh-outline {
    background-color: transparent;
    color: var(--qh-cream);
    border: 1px solid rgba(250,246,238,0.6);
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 50rem;
    transition: all 0.3s ease;
}

.btn-qh-outline:hover {
    background-color: var(--qh-cream);
    color: var(--qh-maroon);
    border-color: var(--qh-cream);
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */

.footer-qh {
    background-color: var(--qh-maroon-dark);
    color: var(--qh-cream);
    padding: 3.5rem 1rem 2rem;
    margin-top: 3rem;
    position: relative;
}

.footer-qh::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--qh-gold), transparent);
}

.footer-qh h5 {
    font-family: var(--font-heading);
    color: var(--qh-gold-light);
    margin-bottom: 1rem;
}

.footer-qh a.link-light {
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-qh a.link-light:hover {
    opacity: 1;
    color: var(--qh-gold-light) !important;
}

/* ---------------------------------------------------------------------
   Admin dashboard (unchanged palette, kept simple/functional for staff)
--------------------------------------------------------------------- */

.admin-sidebar {
    background-color: var(--qh-maroon-dark);
    min-height: 100vh;
}

.admin-sidebar a {
    color: var(--qh-cream);
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-left: 4px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: rgba(255,255,255,0.08);
    border-left-color: var(--qh-gold);
    color: #fff;
}

.thumb-preview {
    max-width: 160px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-eyebrow, .hero h1, .hero .lead, .hero-status-wrap {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero::before, .hero-bokeh span { animation: none !important; }
}
