/* --- css/core/design-tokens.css --- */
/**
 * css/core/design-tokens.css
 * ===========================
 * SINGLE SOURCE OF TRUTH for spacing, colour, radius, and layout tokens.
 *
 * LOADING ORDER:
 *   1. css/core/design-tokens.css   ← this file (base values)
 *   2. css/themes/{brand}-theme.css ← maps brand colours onto --theme-* slots
 *   3. css/pages/{page}.css         ← page-specific layout
 *
 * USAGE:
 *   Engine components and pages consume tokens from this file.
 *   Theme files override only the --theme-* colour slots.
 *   Never hardcode hex values or pixel measurements in page CSS -- use tokens.
 *
 * MULTI-BRAND:
 *   To deploy a new brand, create css/themes/{new-brand}.css that overrides
 *   the --theme-* colour tokens below. Spacing, radius, and layout tokens
 *   are brand-neutral and inherit from this file unchanged.
 */

:root {

    /* -- Brand colour slots ---------------------------------------------------
       These are the only tokens a theme file needs to override.
       Default values match the Quy Nhon Sports Bar brand.
    ------------------------------------------------------------------------ */

    --theme-primary:          #00843D;   /* Main brand colour (buttons, borders, accents) */
    --theme-primary-hover:    #006b31;   /* Darkened primary for hover states */
    --theme-secondary:        #FFCD00;   /* Accent / highlight colour */
    --theme-secondary-hover:  #e6b800;   /* Darkened secondary for hover states */
    --theme-accent:           #FFCD00;   /* Alias for secondary -- used in badges, highlights */

    /* -- Surface & background colours ----------------------------------------
       Brand-neutral by default; theme files may override if needed.
    ------------------------------------------------------------------------ */

    --theme-bg:               #FFFFFF;   /* Page background */
    --theme-bg-alt:           #F5F5F5;   /* Alternating section background */
    --theme-surface:          #FFFFFF;   /* Card / panel background */
    --theme-border:           #E0E0E0;   /* Default border colour */

    /* -- Text colours ------------------------------------------------------- */

    --theme-text:             #1A1A1A;   /* Primary body text */
    --theme-text-muted:       #555555;   /* Secondary / helper text */
    --theme-text-light:       #888888;   /* Placeholder / disabled text */

    /* -- Typography --------------------------------------------------------- */

    --theme-font-display:     'Barlow Condensed', 'Arial Narrow', sans-serif;
    --theme-font-sans:        'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* -- Spacing scale ------------------------------------------------------ */

    --space-xs:   0.5rem;    /*  8px */
    --space-sm:   1rem;      /* 16px */
    --space-md:   1.5rem;    /* 24px */
    --space-lg:   2.5rem;    /* 40px */
    --space-xl:   4rem;      /* 64px */
    --space-2xl:  5.5rem;    /* 88px */

    /* -- Border radius ------------------------------------------------------ */

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  16px;

    /* -- Shadows ------------------------------------------------------------ */

    --shadow-sm:  0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);

    /* -- Layout ------------------------------------------------------------- */

    --grid-gap:               var(--space-lg);  /* Default grid gap -- override in theme to tighten cards */
    --container-width:        1200px;
    --nav-height:             72px;
    --nav-link-gap:           0.25rem;

    /* -- Section rhythm ----------------------------------------------------
       Controls vertical padding on .section / .layout-section wrappers.
       Override in theme or page CSS for tighter/looser pages.
    ------------------------------------------------------------------------ */
    --section-spacing:        5rem;   /* 80px -- comfortable desktop rhythm */

    /* -- Card visual tokens ------------------------------------------------
       Named aliases for the card chrome values.
       Themes override these to restyle all cards from one place.
    ------------------------------------------------------------------------ */
    --card-border:            1px solid var(--theme-border);
    --card-shadow:            var(--shadow-sm);

    /* -- Tile tokens -------------------------------------------------------
       Aliases that let themes tighten/loosen tile grids independently
       of the card chrome tokens above.
    ------------------------------------------------------------------------ */
    --tile-gap:               var(--grid-gap);
    --tile-radius:            var(--radius-md);  /* 12px */

    /* -- Transitions -------------------------------------------------------- */

    --transition-fast:        all 0.15s ease;
    --transition-base:        all 0.2s ease;
    --transition-smooth:      all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}


/* --- css/core/reset.css --- */
/**
 * css/core/reset.css
 * ==================
 * Minimal browser reset and base HTML/body defaults.
 * Engine-level -- applies to every page, every brand.
 * Do NOT put brand colours or fonts here; use design-tokens.css.
 */

/* -- Box model ------------------------------------------------------------- */

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

/* -- Root defaults --------------------------------------------------------- */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -- Media defaults -------------------------------------------------------- */

img,
video {
    max-width: 100%;
    display: block;
}

/* -- List reset ------------------------------------------------------------ */

ul,
ol {
    list-style: none;
}

/* -- Link reset ------------------------------------------------------------ */

a {
    color: inherit;
    text-decoration: none;
}

/* -- Accessibility --------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--theme-primary);
    color: #FFFFFF;
    padding: 1rem;
    text-decoration: none;
    z-index: 10000;
    font-family: var(--theme-font-sans);
}

.skip-link:focus {
    top: 0;
}


/* --- css/core/layout.css --- */
/**
 * css/core/layout.css
 * ====================
 * Structural layout classes -- container, section rhythm, grid utilities.
 * Engine-level -- applies to every page, every brand.
 * Values come from design-tokens.css via var(--space-*) etc.
 */

/* -- Container ------------------------------------------------------------- */

.container,
.layout-container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container,
    .layout-container {
        padding: 0 1.25rem;
    }
}

/* -- Sections -------------------------------------------------------------- */

/*
 * .layout-section -- legacy name, kept for backward compatibility
 * .section       -- preferred name going forward
 * Both consume --section-spacing so themes override from one place.
 */
.layout-section {
    padding: var(--layout-section-padding, 5rem 0);
}

.section {
    padding: var(--section-spacing, 5rem) 0;
}

section {
    background-color: var(--theme-bg);
}

section:nth-child(even) {
    background-color: var(--theme-bg-alt);
}

.section-title {
    font-family: var(--theme-font-display);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-text);
}

.section-subtitle {
    color: var(--theme-text-muted);
}

/* -- Grid utilities -------------------------------------------------------- */
/*
 * .grid is a base class -- display + gap only, no column definition.
 * .grid-2/3/4 are standalone: they own display, gap, and column definition.
 * Using both (e.g. class="grid grid-3") is valid -- properties are identical.
 */

.grid {
    display: grid;
    gap: var(--grid-gap, 2.5rem);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap, 2.5rem);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap, 2.5rem);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap, 2.5rem);
}

/* Responsive -- mid: 3/4-col grids become 2-col */
@media (max-width: 1024px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive -- mobile: all grids become single column */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flexible tile grid -- auto-fills columns, min 260px each */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--grid-gap, 2.5rem);
}

/* -- Media frame utility --------------------------------------------------- */

.frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-square {
    aspect-ratio: 1 / 1;
}

.frame-portrait {
    aspect-ratio: 3 / 4;
}

/* -- Section layout patterns ----------------------------------------------- */
/*
 * Composable modifiers for section-level layout variety.
 * Apply to a wrapping <section> or <div class="layout-section">.
 * These touch only alignment and container width -- never card, tile,
 * border, shadow, or spacing token values.
 */

/* Centered -- text-align center with readable paragraph width */
.section-centered {
    text-align: center;
}

.section-centered .section-subtitle,
.section-centered > .layout-container > p,
.section-centered > .container > p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Section header alignment bridge */
.section-header.section-centered {
    text-align: center;
}

/* Narrow -- editorial column, constrains container to 720px */
.section-narrow .layout-container,
.section-narrow .container {
    max-width: 720px;
}

/* Split -- two-column image/text layout */
.section-split .layout-container,
.section-split .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

@media (max-width: 768px) {
    .section-split .layout-container,
    .section-split .container {
        grid-template-columns: 1fr;
    }
}

/* -- Spacing utilities ----------------------------------------------------- */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* -- Narrow container utility ---------------------------------------------- */
/*
 * Direct use on .container / .layout-container elements.
 * .section-narrow scopes this inside a section wrapper instead.
 */
.container-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Section band backgrounds ---------------------------------------------- */
/*
 * Explicit background control, independent of nth-child alternation.
 * Apply to a <section> when DOM order cannot be relied on.
 * Never touches card/tile padding, border, or shadow.
 */
.section-band-light {
    background: var(--theme-bg);
}

.section-band-muted {
    /* Subtle tint ensures cards don't visually merge into the page background */
    background: var(--theme-bg-alt, rgba(0, 0, 0, 0.02));
}

.section-band-dark {
    background: var(--theme-primary);
    color: #ffffff;
}

.section-band-dark .section-title,
.section-band-dark .section-subtitle {
    color: #ffffff;
}

/* -- Section header -------------------------------------------------------- */

.section-header {
    margin-bottom: var(--space-xl, 4rem);
}

.section-header .section-subtitle {
    max-width: 640px;
}

.section-header.section-centered {
    text-align: center;
}

.section-header.section-centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* -- Section pattern: feature grid ---------------------------------------- */
/*
 * Card/tile grid with centered header.
 * Direct-child selectors prevent affecting card-level titles/subtitles.
 */
.section-feature-grid > .layout-container > .section-title,
.section-feature-grid > .container > .section-title {
    text-align: center;
}

.section-feature-grid > .layout-container > .section-subtitle,
.section-feature-grid > .container > .section-subtitle {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Section pattern: editorial band -------------------------------------- */
/*
 * Centered text column, constrained to readable width.
 * Works for intros, quotes, and standalone text blocks.
 */
.section-editorial-band {
    text-align: center;
}

.section-editorial-band .layout-container,
.section-editorial-band .container {
    max-width: 720px;
}

.section-editorial-band > .layout-container > p,
.section-editorial-band > .container > p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Section pattern: media highlight ------------------------------------- */
/*
 * Image-weighted split (60/40).
 * Use when image should dominate over text block.
 */
.section-media-highlight .layout-container,
.section-media-highlight .container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-lg, 2.5rem);
    align-items: center;
}

@media (max-width: 768px) {
    .section-media-highlight .layout-container,
    .section-media-highlight .container {
        grid-template-columns: 1fr;
    }
}

/* -- Stack utilities ------------------------------------------------------- */
/*
 * Lobotomised owl pattern: applies margin only between siblings.
 * Never modifies the first child's top margin or any element in isolation.
 * Safe to nest inside grids, cards, and tile components.
 */

.stack > * + * {
    margin-top: var(--space-md);
}

.stack-sm > * + * {
    margin-top: var(--space-sm);
}

.stack-md > * + * {
    margin-top: var(--space-md);
}

.stack-lg > * + * {
    margin-top: var(--space-lg);
}

.stack-xl > * + * {
    margin-top: var(--space-xl);
}

/* -- Cluster utility ------------------------------------------------------- */
/*
 * Horizontal flex group with wrapping. Use for button rows, tag lists,
 * nav links, or any inline collection that should wrap gracefully.
 * Size variants modify gap only -- no other property is touched.
 */

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.cluster-sm {
    gap: var(--space-sm);
}

.cluster-lg {
    gap: var(--space-lg, 2.5rem);
}


/* --- css/core/typography.css --- */
/**
 * css/core/typography.css
 * ========================
 * Type scale -- headings, body copy, display text.
 * Engine-level -- applies to every page, every brand.
 * Font families, colours come from design-tokens.css → theme override.
 */

/* -- Headings -------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--theme-font-display);
    font-weight: 700;
    color: var(--theme-text);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, var(--hero-size, 4rem)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--section-title-size, 2.4rem)); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* -- Body copy ------------------------------------------------------------- */

p {
    color: var(--theme-text-muted);
    line-height: 1.7;
}

/* -- Utility classes ------------------------------------------------------- */

.text-primary  { color: var(--theme-primary); }
.text-secondary { color: var(--theme-secondary); }
.text-muted    { color: var(--theme-text-muted); }
.text-light    { color: var(--theme-text-light); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }

.font-display  { font-family: var(--theme-font-display); }
.font-sans     { font-family: var(--theme-font-sans); }

.uppercase     { text-transform: uppercase; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* -- Section label (eyebrow) ----------------------------------------------- */
.section-label {
    display: block;
    font-family: var(--theme-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--theme-secondary);
    margin-bottom: 0.5rem;
}

/* -- Scroll reveal animation ------------------------------------------------ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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


/* --- css/core/nav.css --- */
/**
 * css/core/nav.css
 * =================
 * Navigation -- the SINGLE SOURCE OF TRUTH for all nav styling.
 * Engine-level -- identical on every page, every brand.
 * Brand colours come via var(--theme-*) tokens set by the theme file.
 *
 * DO NOT override these rules in page CSS or inline styles.
 * To change nav appearance for a brand, override --theme-* tokens in the theme file.
 */

/* -- Nav bar --------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 3px solid var(--theme-primary);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.08));
    padding: 0.5rem 0;
    /* Prevent height jitter on scroll */
    min-height: var(--nav-height, 72px);
    height: auto;
    will-change: transform, background-color, box-shadow;
    contain: layout style;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* -- Nav inner layout ------------------------------------------------------ */

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -- Logo ------------------------------------------------------------------ */

.nav .logo-link {
    position: static;
    transform: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-placeholder img,
.site-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* -- Nav menu -------------------------------------------------------------- */

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--nav-link-gap, 0.25rem);
    list-style: none;
    flex-wrap: nowrap;
}

/* Suppress classic-variant spacer -- not used in engine nav */
.nav-spacer {
    display: none !important;
}

/* -- Nav links ------------------------------------------------------------- */

.nav-link {
    color: var(--theme-text);
    font-weight: 600;
    font-family: var(--theme-font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

/* Animated underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: var(--theme-secondary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--theme-primary);
    background-color: color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

.nav-link.active {
    color: var(--theme-primary);
    background-color: color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

/* Keep the active-state handoff from flashing during first render */
html.nav-loading .nav,
html.nav-loading .nav *,
html.nav-loading .nav-link,
body.nav-loading .nav,
body.nav-loading .nav *,
body.nav-loading .nav-link {
    transition: none !important;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
    .nav-link:hover  { background-color: rgba(0, 0, 0, 0.06); }
    .nav-link.active { background-color: rgba(0, 0, 0, 0.10); }
}

/* -- Cart button ----------------------------------------------------------- */

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--theme-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm, 6px);
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-button:hover {
    background: var(--theme-primary-hover);
}

.cart-button-label {
    line-height: 1;
}

#cart-badge {
    background: var(--theme-secondary);
    color: #1A1A1A;
    border-radius: 999px;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .cart-button-label {
        display: none;
    }
}

/* -- Mobile toggle --------------------------------------------------------- */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--theme-text);
    padding: 0.5rem;
    min-width: 48px;
    min-height: 48px;
    line-height: 1;
    flex-shrink: 0;
}

/* -- Mobile breakpoint ----------------------------------------------------- */

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0;
        border-top: 2px solid var(--theme-primary);
        box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
        z-index: 100;
        transform: none;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .cart-button {
        margin: 0.5rem 1.5rem;
        align-self: flex-start;
    }

    .cart-button-label {
        display: inline;
    }
}


/* --- css/core/footer.css --- */
/**
 * css/core/footer.css
 * ====================
 * Footer -- single source of truth for all footer styling.
 * Engine-level -- identical on every page, every brand.
 */

.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-top: 4px solid var(--theme-primary);
    padding-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: var(--theme-secondary);
}

.footer p {
    color: rgba(255, 255, 255, 0.65);
}

/* -- Footer content grid ---------------------------------------------------- */

.footer-content {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
}

@media (max-width: 960px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* -- Footer logo column ----------------------------------------------------- */

.footer-logo {
    font-family: var(--theme-font-display);
    font-size: 1.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-secondary);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer-specialty {
    color: var(--theme-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* -- Footer column headings ------------------------------------------------- */

.footer h4 {
    color: #FFFFFF;
    font-family: var(--theme-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* -- Footer contact column -------------------------------------------------- */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item svg {
    color: #FFFFFF;
    flex-shrink: 0;
    margin-top: 2px;
}

/* -- Footer social column --------------------------------------------------- */

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm, 6px);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.social-link:hover {
    border-color: var(--theme-secondary);
    color: var(--theme-secondary) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* -- Footer bottom bar ------------------------------------------------------ */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-admin a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer-admin a:hover {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}


/* --- css/core/components.css --- */
/**
 * css/core/components.css
 * ========================
 * Shared UI components -- buttons, cards, badges, hero, gallery, filters.
 * Engine-level -- used across multiple pages, every brand.
 * All values reference design-tokens.css via var(--theme-*) tokens.
 */

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

.btn,
.btn-primary {
    background-color: var(--theme-primary);
    color: #FFFFFF;
    border: 2px solid var(--theme-primary);
    border-radius: var(--radius-sm, 6px);
    font-family: var(--theme-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}

.btn:hover,
.btn-primary:hover {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: #1A1A1A;
}

.btn-outline {
    background-color: transparent;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
    border-radius: var(--radius-sm, 6px);
    font-family: var(--theme-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}

.btn-outline:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #FFFFFF;
}

/* Use .btn-outline-light on dark backgrounds (hero images, dark section bands).
   Both the default and light variants share the same hover behaviour (filled). */
.btn-outline-light {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-outline-light:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--theme-primary);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

.card,
.layout-card {
    background: var(--theme-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--tile-radius, var(--radius-md, 12px));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease;
}

.card:hover,
.layout-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 8px 28px rgba(10, 37, 64, 0.13), 0 2px 8px rgba(10, 37, 64, 0.07);
}

/* Any img directly inside a .card normalises to block + full width */
.card img {
    width: 100%;
    display: block;
}

.card-image,
.layout-card .layout-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-body,
.layout-card .layout-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body .btn,
.layout-card .layout-card__body .btn {
    margin-top: auto;
}

.card-title {
    font-family: var(--theme-font-display);
    font-weight: 700;
    color: var(--theme-text);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--theme-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* -- Badges / pills -------------------------------------------------------- */

.obc-pill,
.badge,
.badge-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--theme-primary);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--theme-font-sans);
}

.badge-featured {
    background: var(--theme-secondary);
    color: #1A1A1A;
}

/* -- Colour utility backgrounds -------------------------------------------- */

.bg-primary {
    background-color: var(--theme-primary);
    color: #FFFFFF;
}

.bg-secondary {
    background-color: var(--theme-secondary);
    color: #1A1A1A;
}

.bg-alt {
    background-color: var(--theme-bg-alt);
}

/* -- Hero shell structure -------------------------------------------------- */

/* Full-bleed hero with background image + overlay */
.hero {
    position: relative;
    width: 100%;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background layer -- sits behind content */
.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Image container fills the background */
.hero-image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image fills container */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    display: block;
}

/* Dark scrim over image for text readability — cinematic directional gradient */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(10, 37, 64, 0.93) 0%,
            rgba(10, 37, 64, 0.45) 45%,
            rgba(0, 0, 0, 0.1) 100%
        ),
        linear-gradient(
            to right,
            rgba(10, 37, 64, 0.28) 0%,
            transparent 55%
        );
    z-index: 2;
}

/* Gradient at bottom for text-to-content transition */
.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 37, 64, 0.35) 100%);
    z-index: 2;
}

/* -- Hero shared styles ---------------------------------------------------- */

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2xl, 5.5rem) var(--space-md, 1.5rem);
    width: 100%;
}

.hero-title {
    font-family: var(--theme-font-display);
    font-weight: 800;
    text-transform: uppercase;
    color: #FFFFFF !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
    font-size: clamp(2.5rem, 6vw, var(--hero-size, 4rem));
    letter-spacing: var(--hero-letter-spacing, 0.05em);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-tagline,
.hero .section-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: var(--theme-font-sans) !important;
    font-weight: 400 !important;
    font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.75rem;
    max-width: 640px;
}

.hero-social-proof {
    color: rgba(255, 255, 255, 0.82) !important;
    font-family: var(--theme-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.65);
    animation: hero-bounce 2.2s ease-in-out infinite;
    line-height: 1;
    cursor: pointer;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Hero minimal -- interior page header (events, shop, etc.) */
.hero-minimal {
    padding: 3rem 0 2rem;
    background: var(--theme-primary);
}

.hero-minimal .hero-title {
    color: #FFFFFF;
}

.hero-minimal .section-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

/* -- Gallery --------------------------------------------------------------- */

.gallery-item {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 2px solid var(--theme-border);
}

/* -- Event cards ----------------------------------------------------------- */
/*
 * Standalone card variant for event listings.
 * Consumes --card-border / --card-shadow tokens; themes override once.
 * Image uses 16:9 to suit landscape sports/event photos.
 */

.event-card {
    background: var(--theme-surface);
    border: var(--card-border, 1px solid var(--theme-border));
    border-radius: var(--tile-radius, var(--radius-md, 12px));
    box-shadow: var(--card-shadow, var(--shadow-sm));
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.10));
}

.event-card img,
.event-card .event-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;   /* prevents card collapse if image fails to load */
    object-fit: cover;
    object-position: center;
    display: block;
}

.event-card .card-body,
.event-card .event-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* -- Category filter buttons (menu, shop, events) -------------------------- */

.category-filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--theme-bg-alt);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-sm, 6px);
    color: var(--theme-text-muted);
    font-family: var(--theme-font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth, all 0.4s cubic-bezier(0.4, 0, 0.2, 1));
    white-space: nowrap;
}

.category-filter-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: var(--theme-surface);
}

.category-filter-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #FFFFFF;
}

.category-filter-btn.active:hover {
    background: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 1rem);
    margin-bottom: var(--space-lg, 2.5rem);
    padding: var(--space-md, 1.5rem) 0;
    border-bottom: 1px solid var(--theme-border);
}

/* -- Loading / empty states ------------------------------------------------ */

.empty-state {
    text-align: center;
    padding: var(--space-xl, 4rem) 0;
    color: var(--theme-text-light);
    font-size: 0.9375rem;
}

/* -- Tile style variants --------------------------------------------------- */

.tile-elevated {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tile-elevated:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tile-framed {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
}

.tile-soft {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
}

/* -- Tile × Card composition ---------------------------------------------- */
/* padding is NOT overridden -- cards use overflow:hidden; internal spacing   */
/* is handled by .card-body. Adding padding would break image-top cards.     */

.card.tile-elevated,
.layout-card.tile-elevated {
    background: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card.tile-elevated:hover,
.layout-card.tile-elevated:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card.tile-framed,
.layout-card.tile-framed {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.card.tile-soft,
.layout-card.tile-soft {
    background: rgba(0, 0, 0, 0.03);
    border-color: transparent;
    box-shadow: none;
}
/* -- Variant Selectors (Inline Multiple Choice) -------------------------- */

.variant-selector-inline,
.shop-variant-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.btn-variant-tag,
.variant-btn {
    border: 1px solid var(--theme-border);
    transition: all 0.2s ease;
    font-family: var(--theme-font-sans);
    font-weight: 500;
}

.btn-variant-tag.active,
.variant-btn.active {
    background-color: var(--theme-primary);
    color: #FFFFFF !important;
    border-color: var(--theme-primary) !important;
}

.variant-btn:hover:not(.active),
.btn-variant-tag:hover:not(.active) {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* -- Button loading state --------------------------------------------------- */
.btn[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.72;
    position: relative;
    padding-right: 3rem;
}

.btn[aria-busy="true"]::after {
    content: '';
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* -- Skeleton Loaders (FOUD Prevention) ------------------------------------- */

.skeleton-card {
    background-color: rgba(0, 0, 0, 0.05);
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.05) 60%
    );
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: 2s shimmer infinite linear;
    border-radius: var(--radius-md, 8px);
    height: 300px; /* Default height */
    width: 100%;
}

@keyframes shimmer {
    to { background-position-x: -20%; }
}



/* --- css/themes/outback-theme.css --- */
/**
 * css/themes/outback-theme.css
 * ==============================
 * Quy Nhon Sports Bar -- Brand Theme
 *
 * ROLE: Overrides --theme-* token slots with Outback brand values.
 *   This is the ONLY file that changes per brand deployment.
 *
 * LOADING ORDER (enforced by core/header.html):
 *   1. css/core/design-tokens.css  ← base tokens (loaded first)
 *   2. css/core/reset.css
 *   3. css/core/layout.css
 *   4. css/core/typography.css
 *   5. css/core/nav.css
 *   6. css/core/footer.css
 *   7. css/core/components.css
 *   8. THIS FILE                   ← brand colour overrides (loaded last, wins)
 *   9. css/pages/{page}.css        ← page-specific layout
 *
 * TO CREATE A NEW BRAND:
 *   1. Copy this file to css/themes/{brand}-theme.css
 *   2. Override only the --theme-* tokens in Section 1
 *   3. Update config.js with the new themeFile value
 *   4. Do not modify css/core/ files
 *
 * Design spec -- Quy Nhon Sports Bar:
 *   Primary:   #0A2540  (Navy)
 *   Secondary: #E10600  (Red)
 *   Text:      #1A1A1A
 *   BG:        #FFFFFF
 */


/* ============================================================
   1. BRAND COLOUR TOKENS
   Override the --theme-* slots defined in design-tokens.css.
   ============================================================ */

:root {
   /* Primary brand colour */
   --theme-primary: #0A2540;
   --theme-primary-hover: #07192b;

   /* Secondary / accent colour */
   --theme-secondary: #E10600;
   --theme-secondary-hover: #b30500;

   /* Backgrounds */
   --theme-bg: #FFFFFF;
   --theme-bg-alt: #F5F5F5;
   --theme-surface: #FFFFFF;

   /* Borders */
   --theme-border: #E0E0E0;

   /* Text */
   --theme-text: #1A1A1A;
   --theme-text-muted: #555555;
   --theme-text-light: #888888;

   /* Typography -- brand font stack */
   --theme-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
   --theme-font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

   /* Radius overrides (optional -- defaults from design-tokens.css are fine) */
   --radius-sm: 6px;
   --radius-md: 12px;
   --radius-lg: 16px;

   /* Nav */
   --nav-height: 72px;

   /* -- Spacing scale -- targeted overrides only -----------------------------
       --space-md raised slightly (24px → 32px) for category filter bar
       and subtitle breathing room.
       --space-lg and --space-xl kept at design-tokens defaults because
       page CSS files (index.css, about.css, gallery.css) use them directly
       for grid gaps -- raising them would blow out card grid spacing.
       Grid gap is controlled per-grid via Section 10 instead.
    ------------------------------------------------------------------------ */
   --space-md: 2rem;
   /* 32px  (was 24px) */
   /* --space-lg and --space-xl: stay at 2.5rem / 4rem (design-tokens defaults) */

   /* Section padding token consumed by layout.css .layout-section */
   --layout-section-padding: 5rem 0;

   /* Hero image -- single path token for all hero background rules */
   --hero-image: url("/assets/images/qnsb/hero/hero-bar.webp");
}


/* ============================================================
   2. LAYOUT VARIANT BODY CLASS
   Applied by brand-injector.js: body.layout-sports-bar
   Used as a hook for variant-specific CSS overrides if needed.
   ============================================================ */

/* Section 2 removed - empty ruleset */


/* ============================================================
   3. LEGACY COMPATIBILITY ALIASES
   These map old design system tokens (--belle-*, --artisan-*) to
   current --theme-* values. Pages still reference these in inline
   styles and JS-generated HTML. Remove section by section as pages
   are migrated to --theme-* tokens.
   ============================================================ */

:root {

   /* -- belle-* engine layout tokens ----------------------------------------
       Referenced in layout-controller.js token maps and page inline styles.
       --belle-space-* and --belle-radius-* are safe to keep long-term as
       they are engine spacing concepts, not brand colours.
    ------------------------------------------------------------------------ */

   --belle-space-xs: 0.5rem;
   /*  8px */
   --belle-space-sm: 1rem;
   /* 16px */
   --belle-space-md: 1.5rem;
   /* 24px */
   --belle-space-lg: 2.5rem;
   /* 40px */
   --belle-space-xl: 4rem;
   /* 64px */
   --belle-space-2xl: 5.5rem;
   /* 88px */

   --belle-radius-sm: 4px;
   --belle-radius-md: 8px;
   --belle-radius-lg: 12px;

   --belle-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
   --belle-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
   --belle-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
   --belle-shadow-xl: 0 16px 48px rgba(44, 36, 22, 0.16);

   --belle-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

   --belle-font-sans: 'Inter', sans-serif;
   --belle-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
   --belle-font-serif: 'Barlow Condensed', 'Arial Narrow', sans-serif;

   /* -- belle-* colour tokens -- remapped to --theme-* ----------------------
       MIGRATION STATUS:
         --belle-wine         ✅ remapped to --theme-primary
         --belle-botanical    ✅ remapped to --theme-primary
         --belle-cream        ⏳ still used in index.html sections (use --theme-bg-alt)
         --belle-ivory        ⏳ still used in index.html sections (use --theme-bg)
         --belle-parchment    ⏳ still used in index.html, testimonials (use --theme-bg-alt)
         --belle-text-dark    ⏳ still used in contact, events (use --theme-text)
         --belle-text-medium  ⏳ still used in menu, shop (use --theme-text-muted)
         --belle-text-light   ⏳ still used in index (use --theme-text-light)
    ------------------------------------------------------------------------ */

   --belle-wine: var(--theme-primary);
   /* was #6B2C3E */
   --belle-botanical: var(--theme-primary);
   /* was #428104 */
   --belle-botanical-light: var(--theme-primary-hover);
   /* was #5BA302 */

   /* Background tones -- kept as-is; remap to --theme-bg/bg-alt during page migration */
   --belle-cream: #F5F5F5;
   /* mapped to nearest --theme-bg-alt equivalent */
   --belle-ivory: #FAFAFA;
   /* mapped to near-white */
   --belle-parchment: #F0F0F0;
   /* mapped to light grey */
   --belle-wood: #5C4A37;
   /* no theme equivalent -- keep value */
   --belle-gold: #C9A961;
   /* no theme equivalent -- keep value */

   /* Text tones -- remap progressively to --theme-text-* */
   --belle-text-dark: var(--theme-text);
   /* was #2C2416 */
   --belle-text-medium: var(--theme-text-muted);
   /* was #4A4235 */
   --belle-text-light: var(--theme-text-light);
   /* was #8B8275 */

   /* Borders */
   --belle-border: var(--theme-border);
   /* was rgba(92,74,55,0.15) */
   --belle-border-light: rgba(0, 0, 0, 0.06);

   /* -- artisan-* token aliases ---------------------------------------------
       From L'Artisans D'Indochine -- referenced in about, careers, press,
       locations inline styles. Colour tokens use HSL channel format because
       pages call them via hsl(var(--artisan-*)).
    ------------------------------------------------------------------------ */

   /* Colour tokens -- HSL channels (H S% L%) */
   --artisan-fg: 0 0% 10%;
   /* #1A1A1A */
   --artisan-fg-light: 0 0% 33%;
   /* #555555 */
   --artisan-bg-alt: 0 0% 96%;
   /* #F5F5F5 */
   --artisan-primary: 145 100% 26%;
   /* #00843D */

   /* Spacing tokens -- length values */
   --artisan-spacing-xs: var(--belle-space-xs);
   --artisan-spacing-sm: var(--belle-space-sm);
   --artisan-spacing-md: var(--belle-space-md);
   --artisan-spacing-lg: var(--belle-space-lg);
   --artisan-spacing-xl: var(--belle-space-xl);

   /* Structural tokens */
   --artisan-border: var(--theme-border);
   --artisan-radius: var(--radius-md, 12px);

   /* Font alias -- required by about.html inline styles */
   --artisan-font-serif: var(--theme-font-display);
}

/* ============================================================
   4. HERO BACKGROUNDS
   Page-specific hero image rules. Each page class loads a
   unique hero. All fall back to the brand gradient so the
   hero is NEVER blank, even if an image fails to load.
   ============================================================ */

/* Base hero -- fallback gradient + shared image token.
   All page-specific rules inherit from here; only override
   what genuinely differs (e.g. background-position). */
.hero {
   background: linear-gradient(135deg, #0A2540 0%, #051220 100%);
   /* background-image: var(--hero-image); -- Removed to fix double-load glitch; hero is rendered by <img> tag in HTML */
   background-size: cover;
   background-position: center;
}

/* Page-specific overrides -- anchored to top to show key image content */
body.page-gallery .hero {
   background-position: center top;
   min-height: 70vh;
}

body.page-shop .hero,
body.page-about .hero,
body.page-events .hero {
   background-position: center top;
}

/* Ensure hero-image <img> element covers its container */
.hero-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   display: block;
}


/* ============================================================
   5. MENU TABS
   The Food / Drinks tab switcher on menu.html.
   ============================================================ */

.menu-tabs {
   display: flex;
   gap: 0.75rem;
   margin-bottom: 1.5rem;
   flex-wrap: wrap;
}

.menu-tab {
   padding: 0.5rem 1.25rem;
   border: 2px solid var(--theme-primary);
   background: transparent;
   color: var(--theme-primary);
   cursor: pointer;
   font-family: var(--theme-font-display);
   font-weight: 600;
   font-size: 0.9rem;
   letter-spacing: 0.05em;
   text-transform: uppercase;
   border-radius: var(--radius-sm, 4px);
   transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-tab:hover {
   background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

.menu-tab.active {
   background: var(--theme-primary);
   color: #FFFFFF;
}

@supports not (color: color-mix(in srgb, red, blue)) {
   .menu-tab:hover {
      background: rgba(0, 132, 61, 0.08);
   }
}

@media (max-width: 768px) {
   .menu-tabs {
      gap: 0.5rem;
   }

   .menu-tab {
      padding: 0.4rem 0.9rem;
      font-size: 0.85rem;
   }
}


/* ============================================================
   6. INLINE LINK HELPER
   For inline sentence links (e.g. shop hero "Contact" link).
   Never use .nav-link for inline text.
   ============================================================ */

.inline-link {
   color: var(--theme-primary);
   text-decoration: none;
   border-bottom: 1px solid color-mix(in srgb, var(--theme-primary) 40%, transparent);
   transition: border-color 0.15s ease;
}

.inline-link:hover {
   border-bottom-color: var(--theme-primary);
}

@supports not (color: color-mix(in srgb, red, blue)) {
   .inline-link {
      border-bottom-color: rgba(0, 132, 61, 0.4);
   }
}


/* ============================================================
   7. NAV LINK GAP OVERRIDE
   Increase spacing between nav links for a more balanced bar.
   Overrides --nav-link-gap token from nav.css.
   ============================================================ */

.nav-menu {
   --nav-link-gap: 1rem;
   gap: 1rem;
}


/* ============================================================
   8. MOBILE POLISH
   ============================================================ */

@media (max-width: 768px) {
   .footer-content {
      text-align: center;
   }

   .footer-contact-item,
   .footer-social-links {
      justify-content: center;
   }

   /* Reduce hero-content vertical padding on mobile.
      components.css sets 5.5rem top/bottom which is excessive
      inside a 52vh hero. Bring it down to keep title, tagline,
      and buttons from feeling cramped. */
   .hero .hero-content {
      padding-top: 2.5rem;
      padding-bottom: 2.5rem;
   }

}

/* hero-minimal interior pages (about, gallery) include .hero-content
   whose 5.5rem padding stacks on top of .hero-minimal's own 3rem/2rem.
   Scope it down so the green header band stays compact. */
.hero-minimal .hero-content {
   padding-top: 1.5rem;
   padding-bottom: 1.5rem;
}


/* ============================================================
   9. THEME POLISH -- Visual Refinement Pass
   Overrides engine defaults in components.css for a more
   premium Quy Nhon Sports Bar presentation.
   Scope: hero sizing, gradient overlay, nav polish,
          button balance, mobile typography scale.
   Engine files (layout-controller.js, hero-renderer.js,
   nav-renderer.js, brand-injector.js, config.js) UNTOUCHED.
   ============================================================ */

/* Tasks 1 + 5 -- Hero height, title spacing, mobile scale.
   Cinematic but not overwhelming: 70vh desktop, tapering to 52vh mobile.
   font-size floor raised to 2.4rem to feel bold on small screens. */
.hero {
   min-height: 70vh;
}

@media (max-width: 1024px) {
   .hero {
      min-height: 60vh;
   }
}

@media (max-width: 768px) {
   .hero {
      min-height: 52vh;
   }
}

.hero-title {
   letter-spacing: 0.08em;
   line-height: 1.1;
   font-size: clamp(2.4rem, 5vw, 4rem);
   margin-bottom: 1rem;
}

/* .hero-subtitle sits below the title on full-bleed heroes.
   Absent from engine defaults -- added here as a theme class. */
.hero-subtitle {
   max-width: 640px;
   margin-top: 1rem;
   opacity: 0.9;
   color: rgba(255, 255, 255, 0.92);
   text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
   text-align: center;
}

/* Task 2 -- Gradient overlay for text readability.
   NOTE: .hero-image is an <img> (replaced element) -- ::after
   pseudo-elements do not render on replaced elements. We override
   the existing .hero-overlay div (already in the DOM) to use a
   directional gradient instead of the flat rgba scrim, and mark
   it pointer-events: none so it never blocks text interaction. */
.hero-overlay {
   background: linear-gradient(to bottom,
         rgba(0, 0, 0, 0.35),
         rgba(0, 0, 0, 0.55));
   pointer-events: none;
}

/* Task 3 -- Tighten vertical nav link padding slightly.
   letter-spacing already set to 0.05em in nav.css; restated
   here for theme self-documentation. gap moved to Section 7. */
.nav-link {
   padding: 0.35rem 0.6rem;
}

/* Task 4 -- Button balance: narrower horizontal padding,
   slightly sharper radius vs. the 6px engine default.
   .btn-sm retains its own padding from components.css. */
.btn,
.btn-primary,
.btn-outline,
.btn-outline-light,
.cta-button {
   padding: 0.7rem 1.3rem;
   border-radius: 4px;
}

/* Breakpoint coverage -- hero text stays centred, no overlap.
   480px: hero floor hits 2.4rem (clamp), single-column layout.
   768px: mobile nav drawer active (nav.css handles this).
   1024px / 1440px: desktop layout, handled in hero height block above. */
@media (max-width: 480px) {
   .hero-subtitle {
      font-size: 0.9375rem;
   }

   .hero-buttons {
      flex-direction: column;
      align-items: center;
   }
}


/* ============================================================
   10. GRID & CARD POLISH
   Overrides engine defaults for premium card presentation.
   Grid gap tightened from var(--space-lg / 40px) to 28px.
   Cards in grids use flex column so content stacks cleanly.
   Container max-width enforced at 1200px (matches token).
   ============================================================ */

/* Card grids -- tighter, premium gap.
   Overrides --grid-gap token so ALL grid variants (.grid, .grid-2, .grid-3,
   .grid-4, .tile-grid) pick up the new value automatically. */
:root {
   --grid-gap: 1.75rem;
   /* 28px -- tighter than the 40px engine default */
}

@media (max-width: 768px) {
   :root {
      --grid-gap: 1.25rem;
      /* 20px on mobile */
   }
}

/* Cards inside grids: flex column so all cards reach full cell height */
.grid>.card,
.grid>.layout-card {
   display: flex;
   flex-direction: column;
}

/* Card image area: consistent aspect ratio, never squashes */
.grid>.card .image-container,
.grid>.layout-card .image-container {
   flex-shrink: 0;
}

/* Card description grows to fill available height, pushing CTA to bottom */
.grid>.card .card-description,
.grid>.layout-card .card-description {
   flex: 1;
   margin-bottom: var(--space-sm, 1rem);
}

/* Featured-products-grid: CSS Grid on card-body pins CTA to bottom row
   regardless of description length. Overrides the flex chain above. */
.featured-products-grid .card-body {
   display: grid;
   grid-template-rows: auto 1fr auto;
}
.featured-products-grid .card-body .card-description {
   align-self: start;
   flex: unset;
}
.featured-products-grid .card-body .btn {
   margin-top: 0;
}

/* ============================================================
   11. TYPOGRAPHY RHYTHM
   Heading sizes and spacing that feel bold but balanced.
   Overrides engine typography.css values via the cascade.
   ============================================================ */

h1 {
   font-size: clamp(2.4rem, 5vw, 4rem);
   line-height: 1.1;
   margin-bottom: 1rem;
}

h2 {
   font-size: clamp(1.8rem, 3vw, 2.4rem);
   line-height: 1.15;
   margin-bottom: 0.75rem;
}

h3 {
   line-height: 1.2;
   margin-bottom: 0.5rem;
}

p {
   line-height: 1.65;
   margin-bottom: 1rem;
}

/* Section headings -- additional breathing room below */
.section-title {
   margin-bottom: 0.75rem;
}

.section-subtitle {
   margin-bottom: var(--space-md, 2rem);
   max-width: 640px;
}

/* Hero content vertical rhythm */
.hero-content {
   gap: 0;
   /* space set by individual child margins, not flex gap */
}

/* ============================================================
   12. TILE SYSTEM
   --tile-style documents the active preset (string token, not
   evaluated by CSS -- for readability and tooling only).
   --tile-* tokens encode the preset's visual values.
   body.layout-sports-bar is the theme scope applied by
   brand-injector.js at runtime.
   To switch tile style for a new brand: override --tile-* only.
   ============================================================ */

:root {
   --tile-style: elevated;
   --tile-bg: #ffffff;
   --tile-radius: 12px;
   --tile-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
   --tile-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
   --tile-border: transparent;
}

body.layout-sports-bar .card,
body.layout-sports-bar .layout-card {
   background: var(--tile-bg);
   border-radius: var(--tile-radius);
   box-shadow: var(--tile-shadow);
   border-color: var(--tile-border);
}

body.layout-sports-bar .card:hover,
body.layout-sports-bar .layout-card:hover {
   box-shadow: var(--tile-shadow-hover);
   transform: translateY(-2px);
}


/* ===== EVENT TICKER ===== */
.event-ticker {
    background: var(--theme-primary, #0A2540);
    color: #fff;
    height: 2.25rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    font-family: var(--theme-font-sans, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 500;
    position: relative;
    z-index: 98;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticker-label {
    flex-shrink: 0;
    background: var(--theme-secondary, #c8922a);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 0.875rem;
    display: flex;
    align-items: center;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0, black 2rem, black calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 2rem, black calc(100% - 2rem), transparent 100%);
}

.ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    padding: 0 1rem;
    animation: ticker-scroll 36s linear infinite;
}

.event-ticker:hover .ticker-inner {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
}

.ticker-link {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-link:hover {
    color: #fff;
}

.ticker-link strong {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.ticker-divider {
    color: rgba(255,255,255,0.25);
}

.ticker-cta {
    flex-shrink: 0;
    color: var(--theme-secondary, #c8922a);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.ticker-cta:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== ANTI-JUMP HERO FIX =====
   Prevents object-position changes from causing a visible shift.
   JS may update object-position after first paint - this ensures
   no animated transition occurs and the position is applied instantly. */
.hero-image {
    transition: none !important;
    will-change: object-position;
}
/* Lock in position immediately on paint - before JS fires */
.hero-image-container {
    contain: strict;
}
/* Suppress any flash by keeping image visible at full opacity from frame 1 */
.hero-image[loading="eager"] {
    opacity: 1 !important;
    visibility: visible !important;
}
