/*
Theme Name: Mystic Catering
Theme URI: https://mystic-catering.com.hr
Template: gloriafood-restaurant
Author: Mystic Catering
Author URI: https://mystic-catering.com.hr
Description: Premium elegant child theme for Mystic Catering — dark palette with gold accents, larger logo, redesigned header / body / footer and Gloria Food menu integration via API.
Version: 1.1.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: mystic-catering
Tags: e-commerce, food-and-drink, custom-logo, custom-menu, footer-widgets, theme-options
*/

/* =====================================================================
   MYSTIC CATERING — PREMIUM DARK + GOLD THEME
   --------------------------------------------------------------------
   Design tokens, layout overrides, header / body / footer redesign and
   Gloria Food menu API styling all live in this single stylesheet so
   the child theme is self-contained.
   ===================================================================== */

/* --------------------- Design tokens --------------------- */
:root {
    --mc-bg:        #0b0b0c;
    --mc-bg-2:      #131316;
    --mc-bg-3:      #1c1c20;
    --mc-surface:   #1a1a1d;
    --mc-line:      rgba(212, 175, 55, 0.18);
    --mc-text:      #ece8df;
    --mc-text-mute: #a8a294;
    --mc-gold:      #d4af37;
    --mc-gold-soft: #e7c863;
    --mc-gold-deep: #b8941f;
    --mc-shadow:    0 18px 48px rgba(0,0,0,0.55);
    --mc-radius:    2px;
    --mc-serif:     'Cormorant Garamond', 'PT Serif', Georgia, serif;
    --mc-sans:      'Montserrat', 'Open Sans', system-ui, sans-serif;
}

/* Fonts loaded via functions.php */

/* --------------------- Base resets --------------------- */
html, body {
    background-color: var(--mc-bg) !important;
    color: var(--mc-text);
    /* Hard guard against horizontal scroll on ANY device.
       Some parent widgets / Bootstrap 3 elements use img-responsive
       and negative row margins that can overflow on narrow screens. */
    max-width: 100%;
    overflow-x: hidden;
}

/* Universal image safety — never let an image push the viewport wider
   than it is, no matter which class it ships with. */
img {
    max-width: 100% !important;
    height: auto;
}

/* Bootstrap-3-style .img-responsive used by legacy widgets — make it
   behave like Bootstrap 4's .img-fluid. */
.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Make sure full-bleed containers truly are bleed (no overflow). */
.container-fluid {
    max-width: 100%;
    overflow: hidden;
}

/* Bootstrap rows have negative margins that can spill on mobile when
   the parent doesn't have horizontal padding. Clamp them. */
@media (max-width: 575px) {
    .row { margin-left: 0; margin-right: 0; }
    .row > [class^="col-"], .row > [class*=" col-"] { padding-left: .5rem; padding-right: .5rem; }
}

body, body * {
    font-family: var(--mc-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    padding-top: 6.5rem;
    letter-spacing: 0.01em;
}

a, a:hover, a:focus {
    color: var(--mc-gold);
    transition: color .25s ease, opacity .25s ease;
}
a:hover { color: var(--mc-gold-soft); }

::selection { background: var(--mc-gold); color: #111; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mc-serif);
    font-style: normal;
    font-weight: 500;
    color: var(--mc-text);
    letter-spacing: 0.01em;
}

h1 { font-size: 3.4rem; line-height: 1.1; }
h2 { font-size: 2.5rem; line-height: 1.15; letter-spacing: .02em; }
h3 { font-size: 1.8rem; }

/* --------------------- HEADER / NAVBAR --------------------- */
.navbar.fixed-top {
    background: rgba(11, 11, 12, 0.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mc-line);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    padding: 1.1rem 0;
    height: auto;
    min-height: 6.5rem;
    transition: padding .3s ease, min-height .3s ease, background .3s ease;
}

.navbar.fixed-top.mc-scrolled {
    min-height: 5rem;
    padding: 0.6rem 0;
    background: rgba(11, 11, 12, 0.94) !important;
}

.navbar .container {
    align-items: center;
}

.navbar .navbar-brand {
    margin-right: 2.5rem;
    padding: 0;
}

/* LOGO — significantly enlarged */
.custom-logo,
.navbar .navbar-brand img.navbar-logo,
.navbar .navbar-brand img.custom-logo {
    height: 5.25rem !important;
    width: auto !important;
    max-height: 5.25rem;
    transition: height .3s ease, filter .3s ease;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
}

.navbar.mc-scrolled .custom-logo,
.navbar.mc-scrolled .navbar-brand img.navbar-logo {
    height: 3.6rem !important;
    max-height: 3.6rem;
}

/* Nav links */
.navbar .navbar-nav { align-items: center; }

.navbar .navbar-nav a,
.navbar-light .navbar-nav .nav-link {
    color: var(--mc-text) !important;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    font-weight: 500;
    padding: 0.6rem 1.15rem !important;
    position: relative;
}

.navbar .navbar-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.35rem;
    width: 0;
    height: 1px;
    background: var(--mc-gold);
    transition: width .35s ease, left .35s ease;
}

.navbar .navbar-nav a:hover::after,
.navbar .navbar-nav .active > .nav-link::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 60%;
    left: 20%;
}

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

/* Hamburger — visible at <992px, hidden on desktop */
.navbar .navbar-toggler {
    border: 1px solid var(--mc-gold) !important;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    background: rgba(212,175,55,0.08);
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
.navbar .navbar-toggler:hover { background: rgba(212,175,55,0.18); }
.navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212,175,55,0.25) !important; }
.navbar .navbar-toggler-icon {
    width: 1.4em;
    height: 1.4em;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Force hamburger visibility on mobile no matter which Bootstrap mode wins */
@media (max-width: 991.98px) {
    .navbar .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    /* Hide stray navbar items that might otherwise leak inline */
    .navbar-expand-md .navbar-nav,
    .navbar-expand-lg .navbar-nav { flex-direction: column; }
}
@media (min-width: 992px) {
    .navbar .navbar-toggler { display: none !important; }
}

/* Mobile menu panel */
@media (max-width: 991px) {
    .navbar .collapse.navbar-collapse {
        background: rgba(11,11,12,0.98);
        margin: 0.75rem -1rem -1rem;
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid var(--mc-line);
    }
    .navbar .navbar-nav a { padding: 0.9rem 0 !important; }
}

/* --------------------- HERO / JUMBOTRON --------------------- */
.container-fluid.header-container { padding: 0; }

/* Higher specificity (body + class) so we always beat the parent theme */
body .jumbotron,
body.home .jumbotron,
.container-fluid.header-container .jumbotron {
    position: relative;
    /* JPEG fallback for older browsers */
    background:
        linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.88) 100%),
        url("./images/hero-buffet.jpg") center/cover no-repeat !important;
    padding: 11rem 2rem 9rem !important;
    margin-bottom: 0;
    border-radius: 0;
    text-align: center;
    overflow: hidden;
}
/* Modern browsers — image-set in a separate rule so a single bad token
   doesn't invalidate the whole background declaration above. */
@supports (background: image-set(url("x") type("image/webp"))) {
    body .jumbotron,
    body.home .jumbotron,
    .container-fluid.header-container .jumbotron {
        background:
            linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.88) 100%),
            image-set(
                url("./images/hero-buffet.webp") type("image/webp"),
                url("./images/hero-buffet.jpg") type("image/jpeg")
            ) center/cover no-repeat !important;
    }
}

.home .jumbotron { padding: 14rem 2rem 12rem !important; }

.jumbotron::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(212,175,55,0.10), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(0,0,0,0.6), transparent 70%);
    pointer-events: none;
}

.jumbotron > * { position: relative; z-index: 1; }

.jumbotron h2.jumbotron-description-container {
    font-family: var(--mc-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--mc-gold);
    margin-bottom: 1.5rem;
    justify-content: center;
}
.jumbotron span.jumbotron-description.lead {
    color: var(--mc-gold);
    font-weight: 500;
    font-size: 0.78rem;
}
.jumbotron span.jumbotron-description-left-dash,
.jumbotron span.jumbotron-description-right-dash {
    width: 2.5rem;
    border-bottom: 1px solid var(--mc-gold);
    opacity: 0.7;
}

.jumbotron h1.lead {
    color: var(--mc-text);
    font-family: var(--mc-serif);
    font-weight: 400;
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.mc-hero-sub {
    color: var(--mc-text-mute);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
@media (max-width: 575px) {
    .mc-hero-sub { font-size: 0.95rem; padding: 0 1rem; }
}
@media (min-width: 576px) {
    .jumbotron h1.lead { font-size: 5.5rem; }
}

/* CTA buttons */
p.jumbotron-cta-buttons { margin-top: 1.25rem; gap: 1rem; }

.gloriafood-button, .glf-button,
.jumbotron .gloriafood-button, .jumbotron .glf-button,
#glf-navigation-order-buttons .glf-button {
    background: var(--mc-gold) !important;
    background-image: none !important;
    color: #0b0b0c !important;
    border: 1px solid var(--mc-gold) !important;
    border-radius: 0 !important;
    padding: 1rem 2.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: all .3s ease;
}
.gloriafood-button:hover, .glf-button:hover,
.jumbotron .glf-button:hover {
    background: transparent !important;
    color: var(--mc-gold) !important;
}

.glf-button.reservation,
.jumbotron .glf-button.reservation {
    background: transparent !important;
    color: var(--mc-gold) !important;
    border: 1px solid var(--mc-gold) !important;
}
.glf-button.reservation:hover {
    background: var(--mc-gold) !important;
    color: #0b0b0c !important;
}

/* --------------------- BODY / SECTIONS --------------------- */
.container-fluid.glf-background-card {
    background: var(--mc-bg) !important;
    color: var(--mc-text);
    position: relative;
}
body .container-fluid.glf-background-card#about {
    background:
        linear-gradient(180deg, rgba(11,11,12,0.85), rgba(11,11,12,0.95)),
        url("./images/catering-line.jpg") center/cover no-repeat fixed !important;
}
@supports (background: image-set(url("x") type("image/webp"))) {
    body .container-fluid.glf-background-card#about {
        background:
            linear-gradient(180deg, rgba(11,11,12,0.85), rgba(11,11,12,0.95)),
            image-set(
                url("./images/catering-line.webp") type("image/webp"),
                url("./images/catering-line.jpg") type("image/jpeg")
            ) center/cover no-repeat fixed !important;
    }
}

body .container-fluid.glf-background-card.mc-contact-section,
body .container-fluid.glf-background-card#contact {
    background:
        linear-gradient(180deg, rgba(11,11,12,0.88), rgba(11,11,12,0.96)),
        url("./images/chef-service.jpg") center/cover no-repeat fixed !important;
}
@supports (background: image-set(url("x") type("image/webp"))) {
    body .container-fluid.glf-background-card.mc-contact-section,
    body .container-fluid.glf-background-card#contact {
        background:
            linear-gradient(180deg, rgba(11,11,12,0.88), rgba(11,11,12,0.96)),
            image-set(
                url("./images/chef-service.webp") type("image/webp"),
                url("./images/chef-service.jpg") type("image/jpeg")
            ) center/cover no-repeat fixed !important;
    }
}

/* Legacy support: any other dynamic sidebar that may still render
   container-fluid.glf-background-card cards gets a clean dark bg. */
body .container-fluid.glf-background-card:not(#about):not(#contact):not(.mc-contact-section) {
    background: var(--mc-bg) !important;
}

.glf-card { padding: 8rem 0 !important; }

span.glf-card-subtitle,
span.glf-card-subtitle-dash {
    color: var(--mc-gold) !important;
    border-color: var(--mc-gold) !important;
    letter-spacing: 0.45em;
    font-size: 0.78rem;
    font-weight: 500;
}

h2 { color: var(--mc-text); margin-bottom: 2rem; }

/* Promo cards */
.glf-promo-card,
div.glf-background-card:nth-child(2n+2) div.widget {
    background-color: rgba(20,20,23,0.78) !important;
    border: 1px solid var(--mc-line) !important;
    box-shadow: var(--mc-shadow);
    padding: 2.25rem !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .35s ease, border-color .35s ease;
}
.glf-promo-card:hover { transform: translateY(-4px); border-color: var(--mc-gold) !important; }

.glf-promo-card-price {
    background: transparent !important;
    color: var(--mc-gold) !important;
    border-top: 1px solid var(--mc-line);
    padding: 1rem 0 !important;
}
.glf-promo-card-price-value { color: var(--mc-gold-soft); }

/* Gallery */
.glf-gallery-image img {
    border: 1px solid var(--mc-line);
    transition: transform .5s ease, filter .5s ease;
    filter: saturate(0.9) contrast(1.05);
}
.glf-gallery-image img:hover { transform: scale(1.03); filter: saturate(1.1); }

/* About widget text on dark */
.glf-about-card-text, .glf-about-card-text p { color: var(--mc-text-mute); }

/* Default content area */
.content-area, main { background: var(--mc-bg); color: var(--mc-text); }
main p { color: var(--mc-text-mute); line-height: 1.85; }

/* --------------------- FOOTER --------------------- */
footer.site-footer {
    background:
        linear-gradient(180deg, #0b0b0c 0%, #050505 100%) !important;
    color: var(--mc-text-mute);
    padding: 5rem 0 0 !important;
    border-top: 1px solid var(--mc-line);
    position: relative;
}
footer.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 1px; background: var(--mc-gold);
}

footer.site-footer * { color: var(--mc-text-mute); }
footer.site-footer .widget-title,
footer.site-footer h4 {
    color: var(--mc-text) !important;
    font-family: var(--mc-serif);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}
footer.site-footer .widget-title::after,
footer.site-footer h4::after {
    content:''; position:absolute; left:0; bottom:0;
    width: 32px; height: 1px; background: var(--mc-gold);
}

footer.site-footer ul { list-style: none; padding-left: 0; }
footer.site-footer ul li { padding: 0.35rem 0; }
footer.site-footer a:hover { color: var(--mc-gold) !important; }

footer.site-footer .mc-footer-bottom {
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--mc-line);
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mc-text-mute);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}
footer.site-footer .mc-footer-powered a {
    color: var(--mc-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}
footer.site-footer .mc-footer-powered a:hover { color: var(--mc-gold-soft); }
footer.site-footer .mc-footer-sep { opacity: 0.5; }
@media (max-width: 575px) {
    footer.site-footer .mc-footer-bottom { font-size: 0.7rem; gap: 0.35rem; flex-direction: column; }
    footer.site-footer .mc-footer-sep { display: none; }
}

.mc-social {
    display: flex; gap: 0.6rem; margin-top: 1rem;
}
.mc-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--mc-line);
    border-radius: 50%;
    color: var(--mc-text-mute) !important;
    transition: all .3s ease;
}
.mc-social a:hover {
    background: var(--mc-gold);
    border-color: var(--mc-gold);
    color: #0b0b0c !important;
}
.mc-social svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------- GLORIA FOOD MENU (API) --------------------- */
#mc-menu {
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--mc-bg) 0%, var(--mc-bg-2) 100%);
}
.mc-menu-header {
    text-align: center;
    margin-bottom: 4rem;
}
.mc-menu-eyebrow {
    color: var(--mc-gold);
    text-transform: uppercase;
    letter-spacing: 0.45em;
    font-size: 0.78rem;
    margin-bottom: 1rem;
    display: inline-block;
}
.mc-menu-eyebrow::before,
.mc-menu-eyebrow::after {
    content: '— '; opacity: 0.6;
}
.mc-menu-eyebrow::after { content: ' —'; }
.mc-menu-title {
    font-family: var(--mc-serif);
    font-size: 3rem;
    color: var(--mc-text);
    margin-bottom: 1rem;
}
.mc-menu-subtitle { color: var(--mc-text-mute); max-width: 640px; margin: 0 auto; }

/* Category tabs */
.mc-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--mc-line);
    padding-bottom: 1.5rem;
}
.mc-menu-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--mc-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    padding: 0.6rem 1.15rem;
    cursor: pointer;
    transition: all .25s ease;
    font-weight: 500;
}
.mc-menu-tab:hover { color: var(--mc-gold); }
.mc-menu-tab.is-active {
    color: var(--mc-gold);
    border-color: var(--mc-gold);
}

/* Categories & items */
.mc-menu-category {
    display: none;
    animation: mcFade .4s ease both;
}
.mc-menu-category.is-active { display: block; }
@keyframes mcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mc-menu-category-title {
    font-family: var(--mc-serif);
    color: var(--mc-gold);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.mc-menu-category-desc {
    text-align: center;
    color: var(--mc-text-mute);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mc-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .mc-menu-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.mc-menu-item {
    padding: 1.25rem 0;
    border-bottom: 1px dashed var(--mc-line);
}
.mc-menu-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.mc-menu-item-name {
    font-family: var(--mc-serif);
    font-size: 1.3rem;
    color: var(--mc-text);
    margin: 0;
    flex: 1;
}
.mc-menu-item-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(212,175,55,0.35);
    margin: 0 0.6rem 0.35rem;
    min-width: 16px;
}
.mc-menu-item-price {
    font-family: var(--mc-serif);
    font-size: 1.25rem;
    color: var(--mc-gold);
    white-space: nowrap;
    font-style: italic;
}
.mc-menu-item-desc {
    color: var(--mc-text-mute);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0.3rem 0 0;
}

.mc-menu-loading,
.mc-menu-error {
    text-align: center;
    color: var(--mc-text-mute);
    padding: 3rem 0;
    font-size: 0.95rem;
}
.mc-menu-loading::before {
    content: '';
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid var(--mc-line);
    border-top-color: var(--mc-gold);
    border-radius: 50%;
    animation: mcSpin .8s linear infinite;
    vertical-align: middle;
    margin-right: 0.6rem;
}
@keyframes mcSpin { to { transform: rotate(360deg); } }

.mc-menu-cta {
    text-align: center;
    margin-top: 3.5rem;
}

/* --------------------- Mobile / responsive --------------------- */
@media (max-width: 991px) {
    body { padding-top: 5.5rem; }
    .navbar.fixed-top { min-height: 5.5rem; padding: 0.7rem 0; }
    .custom-logo,
    .navbar .navbar-brand img.navbar-logo { height: 4.2rem !important; max-height: 4.2rem; }
    .jumbotron h1.lead { font-size: 3rem !important; }
    .glf-card { padding: 4.5rem 0 !important; }
    .mc-menu-title { font-size: 2.2rem; }
    #mc-menu { padding: 4.5rem 0; }
}

@media (max-width: 575px) {
    .jumbotron { padding: 7rem 1.5rem 5rem !important; }
    .home .jumbotron { padding: 8rem 1.5rem 6rem !important; }
    .jumbotron h1.lead { font-size: 2.4rem !important; }
    .custom-logo,
    .navbar .navbar-brand img.navbar-logo { height: 3.4rem !important; max-height: 3.4rem; }
}

/* --------------------- Misc cleanup over parent theme --------------------- */
footer.site-footer ul { color: var(--mc-text-mute); }
.glf-promo-card-supercontainer .glf-card-subtitle { color: var(--mc-gold) !important; }
blockquote { border-left-color: var(--mc-gold); color: var(--mc-text-mute); }

/* Sticky mobile order buttons */
#glf-footer-navigation-order-buttons {
    background: rgba(11,11,12,0.96);
    border-top: 1px solid var(--mc-line);
}

/* Tag chips on menu items */
.mc-menu-item-tags {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.mc-menu-item-tags li,
.mc-tag {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mc-gold);
    border: 1px solid var(--mc-line);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(212,175,55,0.06);
}

/* Hero scroll indicator */
.mc-hero-scroll {
    display: block;
    margin: 4rem auto 0;
    width: 1px;
    height: 60px;
    position: relative;
}
.mc-hero-scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--mc-gold), transparent);
    animation: mcScrollPulse 2.5s ease-in-out infinite;
}
@keyframes mcScrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* Mystic brand fallback (no logo uploaded) */
.mc-brand-mark {
    font-family: var(--mc-serif);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    color: var(--mc-gold);
    text-transform: uppercase;
}

/* Footer columns spacing */
.mc-footer-cols .mc-footer-col + .mc-footer-col { margin-top: 0; }
@media (max-width: 767px) {
    .mc-footer-cols .mc-footer-col + .mc-footer-col { margin-top: 2.25rem; }
}

.mc-footer-social-row { margin-top: 2rem; }
.mc-footer-social-row .mc-social { justify-content: flex-start; }
@media (max-width: 767px) {
    .mc-footer-social-row .mc-social { justify-content: center; }
    .mc-footer-cols { text-align: center; }
    footer.site-footer .widget-title::after,
    footer.site-footer h4::after {
        left: 50%; transform: translateX(-50%);
    }
}

/* About / promo widgets — text colour overrides when on dark */
.widget_glf-about-us h2,
.widget_glf-about-us h3 { color: var(--mc-text); }
.widget_glf-about-us .glf-about-card-text p,
.widget_glf-promo-cards p { color: var(--mc-text-mute); }

/* Mobile hero scroll spacing */
@media (max-width: 575px) {
    .mc-hero-scroll { margin-top: 2.5rem; height: 42px; }
}

/* =====================================================================
   MOBILE FIXES (header navigation, footer centering, image heights)
   ===================================================================== */

/* --- 1. About / generic content images — never let them go portrait-tall.
   Parent theme's .glf-coverify-image forces height:100% which combines
   badly with our aspect-ratio rule. Cap height explicitly. */
.glf-about-card-image,
#about .glf-coverify-image,
.mc-front .glf-coverify-image {
    aspect-ratio: 16 / 10 !important;
    max-height: 60vh;
    height: auto !important;
    width: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .glf-about-card-image,
    #about .glf-coverify-image,
    .mc-front .glf-coverify-image {
        aspect-ratio: 4 / 3 !important;
        max-height: 50vh;
    }
}

/* --- 2. Footer text alignment on mobile (was left, should be centered) */
@media (max-width: 767px) {
    footer.site-footer,
    footer.site-footer .mc-footer-cols,
    footer.site-footer .mc-footer-col,
    footer.site-footer .mc-footer-col p,
    footer.site-footer .mc-footer-col ul,
    footer.site-footer .mc-footer-col li,
    footer.site-footer h4.widget-title {
        text-align: center !important;
    }
    footer.site-footer .mc-footer-col + .mc-footer-col { margin-top: 2.25rem; }
    footer.site-footer .mc-footer-social-row .mc-social { justify-content: center; }
    footer.site-footer .widget-title::after,
    footer.site-footer h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    footer.site-footer .mc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 3. NAVBAR — works even when Bootstrap JS fails to load.
   We use the `:target` pseudo-class as a JS-free toggle: clicking the
   hamburger sets the URL hash to #mc-mobile-menu and CSS reveals the
   collapse panel; another click clears the hash and hides it. */
@media (max-width: 991px) {
    /* Make sure the hamburger is visible and styled */
    .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    /* When Bootstrap JS is missing, .navbar-collapse stays with the
       "collapse" class and is display:none. Force it to behave
       responsively via aria-expanded on the toggler. */
    .navbar .navbar-collapse {
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(11,11,12,0.98);
        border-top: 1px solid var(--mc-line);
        padding: 1rem 1.5rem 1.5rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse:target,
    .navbar-toggler[aria-expanded="true"] + .navbar-collapse,
    .navbar:has(.navbar-toggler[aria-expanded="true"]) .navbar-collapse {
        display: block !important;
    }
    /* Tweaks for the list itself */
    .navbar .navbar-nav { flex-direction: column; align-items: stretch; }
    .navbar .navbar-nav .nav-item { width: 100%; }
    .navbar .navbar-nav a { padding: 0.9rem 0 !important; text-align: center; }
    .navbar .navbar-nav a::after { display: none; }
    .navbar .navbar-nav a:hover { background: rgba(212,175,55,0.06); }
}

/* JS-free fallback: anchor-based toggle. Add this if Bootstrap JS won't
   load — change the button into an anchor pointing to #mc-mobile-menu. */
.navbar-collapse:target { display: block !important; }

/* --- 4. NAV — even without JS, the toggler still needs to swap aria.
   Use plain JS in our mystic-catering.js (already loaded) to wire this. */

/* =====================================================================
   MOBILE TYPOGRAPHY + SECTION PADDING + STICKY CLEARANCE
   ===================================================================== */

/* Force container to have proper horizontal padding on mobile.
   Parent theme zeroes container padding at min-width: 576px, but for
   smaller screens we need clear gutters so text doesn't hug edges. */
@media (max-width: 991px) {
    .container,
    .container-fluid,
    .container-fluid > .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
@media (max-width: 575px) {
    .container,
    .container-fluid,
    .container-fluid > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Headings — much smaller on mobile so they fit nicely on one or two lines */
@media (max-width: 767px) {
    h1, .h1 { font-size: 2rem; line-height: 1.15; }
    h2, .h2 { font-size: 1.65rem; line-height: 1.2; }
    h3, .h3 { font-size: 1.3rem; line-height: 1.3; }
    .mc-menu-title { font-size: 1.8rem !important; }
    .mc-menu-category-title { font-size: 1.4rem; }
    .jumbotron h1.lead { font-size: 2.4rem !important; }

    /* Center section eyebrows + headings */
    .glf-card .glf-card-subbtitle-container,
    .mc-howto .mc-menu-eyebrow,
    .mc-menu-section .mc-menu-eyebrow {
        justify-content: center;
        text-align: center;
        margin-bottom: 1.5rem;
        display: flex !important;
    }
    .glf-card > h2,
    .glf-card > h2.h2,
    .mc-contact-section h2,
    #about h2 {
        text-align: center;
    }

    /* Glf-about-card-text wraps content; on mobile we keep it tight */
    .glf-about-card-text { padding-top: 1rem; }
    .glf-about-card-text p { font-size: 0.95rem; line-height: 1.65; }
}

/* Hero subtitle smaller and properly padded on mobile */
@media (max-width: 575px) {
    .mc-hero-sub { font-size: 0.92rem; padding: 0 0.5rem; }
    .jumbotron h2.jumbotron-description-container {
        font-size: 0.62rem; letter-spacing: 0.35em;
    }
    .jumbotron h1.lead { font-size: 2rem !important; }
}

/* Add bottom clearance so the sticky CTA doesn't cover the last line
   of any section. Footer already has padding-bottom but sections above
   may bleed too close. */
@media (max-width: 991px) {
    body { padding-bottom: 5.5rem; }
    footer.site-footer { padding-bottom: 6rem !important; }
}
@media (max-width: 575px) {
    body { padding-bottom: 6rem; }
    footer.site-footer { padding-bottom: 7rem !important; }
    .mc-contact-section { padding-bottom: 2rem !important; }
}

/* The glf-card padding from parent theme is too big on mobile */
@media (max-width: 767px) {
    .glf-card { padding: 3.5rem 0 !important; }
    .container-fluid.glf-card { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Howto grid spacing on mobile + center step text */
@media (max-width: 767px) {
    .mc-step { padding: 1.75rem 1.25rem; text-align: center; }
    .mc-step-number { font-size: 2.5rem; }
    .mc-audience { gap: 0.4rem; }
    .mc-audience-pill { font-size: 0.65rem; padding: 0.35rem 0.7rem; letter-spacing: 0.15em; }
}

/* Contact section — smaller H3 + tighter padding inside info box */
@media (max-width: 575px) {
    .mc-contact-info { padding: 1.5rem 1.25rem; }
    .mc-contact-info h3 { font-size: 1.2rem; }
    .mc-contact-info dd { font-size: 0.92rem; }
}

/* Menu items — smaller font on mobile so two columns work */
@media (max-width: 575px) {
    .mc-menu-item-name { font-size: 1.05rem; }
    .mc-menu-item-price { font-size: 1.05rem; }
    .mc-menu-item-desc { font-size: 0.85rem; }
    .mc-menu-grid { gap: 1rem; }
}

/* Disable fixed background (parallax) on mobile to avoid jitter +
   it also stops the giant image-set from rendering at full intrinsic size. */
@media (max-width: 991px) {
    body .container-fluid.glf-background-card#about,
    body .container-fluid.glf-background-card.mc-contact-section,
    body .container-fluid.glf-background-card#contact {
        background-attachment: scroll !important;
    }
}


/* =====================================================================
   CONTACT SECTION (with map)
   ===================================================================== */
.mc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 3rem;
    border: 1px solid var(--mc-line);
}
@media (max-width: 767px) {
    .mc-contact-grid { grid-template-columns: 1fr; }
}
.mc-contact-info {
    padding: 2.5rem;
    background: rgba(20,20,23,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mc-contact-info h3 {
    font-family: var(--mc-serif);
    color: var(--mc-text);
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mc-line);
}
.mc-contact-info dl { margin: 0; }
.mc-contact-info dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--mc-gold);
    margin-top: 1rem;
    font-weight: 500;
}
.mc-contact-info dd {
    margin: 0.25rem 0 0;
    color: var(--mc-text);
    font-size: 1rem;
    line-height: 1.6;
}
.mc-contact-info dd a { color: var(--mc-text); }
.mc-contact-info dd a:hover { color: var(--mc-gold); }
.mc-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    /* Dark map look so it pairs with the rest of the design */
    filter: invert(0.92) hue-rotate(180deg) saturate(0.4);
}
@media (max-width: 767px) {
    .mc-contact-map iframe { min-height: 320px; }
}

/* =====================================================================
   DELIVERY ANGLE — "Kako naručujete" 3-step section
   ===================================================================== */
.mc-howto {
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--mc-bg-2) 0%, var(--mc-bg) 100%);
    text-align: center;
}
.mc-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 3rem auto 0;
}
@media (max-width: 768px) { .mc-howto-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.mc-step {
    border: 1px solid var(--mc-line);
    background: rgba(20,20,23,0.6);
    padding: 2.5rem 1.75rem;
    position: relative;
    transition: border-color .3s ease, transform .3s ease;
    backdrop-filter: blur(8px);
}
.mc-step:hover { border-color: var(--mc-gold); transform: translateY(-3px); }
.mc-step-number {
    font-family: var(--mc-serif);
    font-size: 3.5rem;
    color: var(--mc-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-style: italic;
}
.mc-step h3 {
    font-family: var(--mc-serif);
    color: var(--mc-text);
    font-size: 1.3rem;
    margin: 0.5rem 0 0.75rem;
}
.mc-step p {
    color: var(--mc-text-mute);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Delivery audience badges */
.mc-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0 0;
}
.mc-audience-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--mc-line);
    border-radius: 999px;
    color: var(--mc-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(212,175,55,0.06);
}

/* =====================================================================
   STICKY CTA  — Pogledaj JELOVNIK & Naruči
   ===================================================================== */
.mc-sticky-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;          /* above bootstrap navbar 1030 */
    pointer-events: none;   /* let only the button receive clicks */
    /* Hidden by default; JS toggles .is-visible when the in-page CTA leaves the viewport. */
    opacity: 0;
    transform: translateY(140%);
    visibility: hidden;
    transition:
        opacity .35s ease,
        transform .45s cubic-bezier(.2,.7,.2,1),
        visibility 0s linear .45s;
}
.mc-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
        opacity .25s ease,
        transform .35s cubic-bezier(.2,.7,.2,1),
        visibility 0s linear 0s;
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .mc-sticky-cta { transition: opacity .15s ease, visibility 0s; transform: none; }
    .mc-sticky-cta.is-visible { transform: none; }
}
.mc-sticky-cta .glf-button.mc-order-btn--sticky {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.05rem 1.6rem !important;
    background: var(--mc-gold) !important;
    color: #0b0b0c !important;
    border: 1px solid var(--mc-gold) !important;
    border-radius: 999px !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 0.78rem !important;
    box-shadow:
        0 14px 38px rgba(212,175,55,0.35),
        0 4px 14px rgba(0,0,0,0.45),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    user-select: none;
    white-space: nowrap;
}
.mc-sticky-cta .glf-button.mc-order-btn--sticky::before {
    content: '';
    width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h2l2.5 11h11l2-8H7'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.5' d='M3 6h2l2.5 11h11l2-8H7'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h2l2.5 11h11l2-8H7'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
    display: inline-block;
}
.mc-sticky-cta .glf-button.mc-order-btn--sticky:hover {
    transform: translateY(-2px);
    background: var(--mc-gold-soft) !important;
    box-shadow:
        0 18px 44px rgba(212,175,55,0.55),
        0 6px 18px rgba(0,0,0,0.55);
}
.mc-sticky-cta .glf-button.mc-order-btn--sticky:active {
    transform: translateY(0);
}

@media (max-width: 575px) {
    .mc-sticky-cta {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        left: 0.75rem;
    }
    .mc-sticky-cta .glf-button.mc-order-btn--sticky {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem !important;
    }
}

/* Optional pulse hint on first appearance */
@keyframes mcPulse {
    0%   { box-shadow: 0 14px 38px rgba(212,175,55,0.35), 0 0 0 0   rgba(212,175,55,0.55); }
    70%  { box-shadow: 0 14px 38px rgba(212,175,55,0.35), 0 0 0 18px rgba(212,175,55,0.00); }
    100% { box-shadow: 0 14px 38px rgba(212,175,55,0.35), 0 0 0 0   rgba(212,175,55,0.00); }
}
.mc-sticky-cta .glf-button.mc-order-btn--sticky.mc-pulse {
    animation: mcPulse 2s ease-out 1;
}

/* =====================================================================
   Hide the "Rezerviraj stol" (reservation) button everywhere.
   The parent theme renders it via `.glf-button.reservation`.
   ===================================================================== */
.glf-button.reservation,
.gloriafood-button.reservation,
a.glf-button.reservation,
#glf-navigation-order-buttons .glf-button.reservation,
.jumbotron .glf-button.reservation,
.mc-menu-cta .glf-button.reservation,
#glf-footer-navigation-order-buttons .glf-button.reservation {
    display: none !important;
}

/* When reservation is hidden the CTA grid collapses to one column */
p.jumbotron-cta-buttons { grid-template-columns: 1fr !important; }
.mc-menu-cta { display: flex; justify-content: center; }

/* =====================================================================
   Disable iOS parallax (background-attachment: fixed jitters on iOS)
   ===================================================================== */
@media (max-width: 991px) {
    .container-fluid.glf-background-card:nth-child(2n+2),
    .container-fluid.glf-background-card:nth-child(6n+4),
    .container-fluid.glf-background-card:nth-child(6n+6) {
        background-attachment: scroll !important;
    }
}

/* =====================================================================
   Lift body padding when the sticky CTA sits on mobile so the page can
   scroll past the fixed button on the last section.
   ===================================================================== */
@media (max-width: 575px) {
    body { padding-bottom: 5rem; }
    footer.site-footer { padding-bottom: 6rem !important; }
}