/* =========================================================
   HERO HEADER (dynamic) — fully isolated from old header.
   All classes are prefixed "hero-" so nothing here can clash
   with the existing .tezmenu-header / old styles.
========================================================= */

.hero-header{
    position:relative;
    min-height:300px;
    overflow:visible;
    background:#222;
    isolation:isolate;
}

/* Cover image */

.hero-header-cover{
    position:absolute;
    inset:0;
    z-index:0;
    overflow:hidden;
}

.hero-header-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* Dark overlay — strongest at the bottom/center so text over the
   image stays readable no matter how bright the cover photo is */

/* Dark overlay — focused on the CENTER (where the cafe info sits),
   fading out toward the edges/corners so the cover photo stays
   visible instead of being fully blacked out. Text also gets a
   subtle shadow as a second line of defense for readability. */

.hero-header-overlay-old{
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            ellipse 140% 110% at 50% 52%,
            rgba(0,0,0,.68) 0%,
            rgba(0,0,0,.45) 45%,
            rgba(0,0,0,.12) 100%
        );
}

.hero-header-overlay{
    position:absolute;
    inset:0;
    pointer-events:none;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(0,0,0,.85) 0%,
            rgba(0,0,0,.75) 22%,
            rgba(0,0,0,.55) 40%,
            rgba(0,0,0,0) 65%
        );
}

/* Call button */

.hero-call-btn{
    position:absolute;
    top:16px;
    right:16px;
    z-index:3;

    display:flex;
    align-items:center;
    gap:6px;

    padding:10px 18px;
    border-radius:50px;

    background:#fff;
    color:#111;
    text-decoration:none;

    font-size:14px;
    font-weight:700;

    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

/* Content column */

.hero-header-content{
    position:relative;
    z-index:2;

    min-height:300px;

    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;

    padding:22px 18px 20px;

    color:#fff !important;
    text-shadow:0 1px 4px rgba(0,0,0,.55);
}

/* Logo */

.hero-header-logo{
    width:90px;
    height:90px;

    border-radius:50%;
    overflow:hidden;

    background:#fff;
    border:4px solid rgba(255,255,255,.95);

    box-shadow:0 12px 30px rgba(0,0,0,.4);

    margin-bottom:12px;
}

.hero-header-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Name */

.hero-name{
    margin:0;
    font-size:26px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:-.2px;
    color:#fff !important;
}

/* Rating */

.hero-rating{
    margin-top:8px;
    font-size:14px;
    font-weight:600;
    color:#fff !important;
}

.hero-rating span{
    opacity:.85;
    font-weight:500;
    color:#fff !important;
    font-size: 13px;
}

/* Status + timing */

.hero-status-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    font-size:14px;
    flex-wrap:wrap;
    justify-content:center;
}

.hero-status-open{
    color:#3ddc84;
    font-weight:700;
}

.hero-status-closed{
    color:#ff6b6b;
    font-weight:700;
}

.hero-dot{
    opacity:.5;
    color:#fff !important;
}

.hero-timing{
    opacity:.92;
    color:#fff !important;
}

/* Address */

.hero-address{
    margin-top:8px;
    font-size:14px;
    opacity:.92;
    color:#fff !important;
}

/* Services */

.hero-services{
    margin-top:16px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    margin-bottom: 20px;
}

.hero-services span{
    background:rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(12px);
    border-radius:50px;
    padding:8px 16px;
    color:#fff;
    font-size:13px;
    font-weight:600;
}

/* =========================================================
   FULL-BLEED FIX

   Previously the old header/category-bar were position:fixed,
   which happens to ignore the theme/page container's side
   padding automatically. Now that the hero is normal-flow, it
   sits inside that same padding unless we explicitly break out
   of it — this is what was causing the left/right white gap.

   Also: the old body{padding-top:112px} assumed a fixed header +
   fixed category bar sitting on top of the page permanently.
   That's no longer true, so it's removed here (it was causing
   the blank gap above the hero).
========================================================= */

body{
    padding-top:0 !important;
    overflow-x:hidden;
}

.hero-header,
.hero-sticky-bar{
    width:100vw !important;
    position:relative;
    left:50%;
    right:50%;
    margin-left:-50vw !important;
    margin-right:-50vw !important;
}

/* =========================================================
   STICKY BAR (search + categories)

   Default = normal flow (NOT sticky). Only gets pinned to the
   top once JS adds .hero-stuck (hero scrolled out of view).

   These rules intentionally use !important: the existing
   style.css has several older, conflicting position:sticky
   declarations for .tezmenu-search / .tezmenu-category-bar
   left over from previous iterations, and this file is the
   single source of truth for their positioning now.
========================================================= */

.hero-sticky-bar{
    position:relative !important;
    top:auto !important;
    background:#fff;
    z-index:500;
}

/* IMPORTANT: .tezmenu-search must stay `relative` (not static) —
   its icon and clear-button are position:absolute and anchor to
   this element. Using `static` here was the bug that sent the
   search icon flying off to some unrelated position on the page. */
.hero-sticky-bar .tezmenu-search{
    position:relative !important;
    top:auto !important;
}

.hero-sticky-bar .tezmenu-category-bar{
    position:static !important;
    top:auto !important;
}

.hero-sticky-bar.hero-stuck{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    z-index:999;
    box-shadow:0 4px 16px rgba(0,0,0,.12);
}

/* Search icon (new markup adds an icon span instead of an emoji
   baked into the placeholder text) */

.hero-search-icon{
    position:absolute;
    left:30px;
    top:50%;
    transform:translateY(-50%);
    font-size:16px;
    pointer-events:none;
    z-index:1;
}

.tezmenu-search input{
    padding-left:42px !important;
}

/* Mobile */

@media(max-width:480px){

    .hero-header{
        min-height:270px;
    }

    .hero-header-content{
        min-height:270px;
        padding:20px 14px 18px;
    }

    .hero-header-logo{
        width:76px;
        height:76px;
    }

    .hero-name{
        font-size:25px;
    }

    .hero-call-btn{
        padding:8px 14px;
        font-size:13px;
    }

    .hero-status-row{
        font-size:13px;
    }
}

/* =========================================================
   CONTENT SPACING FIX

   Older CSS (.tezmenu-content{margin-top:75px}) assumed a fixed
   category bar sitting permanently on top of the page, pushing
   content down to clear it. That's no longer the case — the
   category bar is normal-flow now (or a JS-toggled fixed bar
   only after scrolling), so that old margin just left a dead
   gap between the category bar and the first menu item.
========================================================= */

.tezmenu-content{
    margin-top:0 !important;
}

.tezmenu-search input{
    height:52px;
    border-radius:16px;
    border:1px solid #ececec;
    background:#fafafa;
    transition:.25s;
}

.tezmenu-search input:focus{
    background:#fff;
    border-color:#ff7a00;
    box-shadow:0 0 0 4px rgba(255,122,0,.12);
}

.hero-sticky-bar{
    position:relative !important;
    top:auto !important;
    background:#fff;
    z-index:500;
    border-radius:25px 25px 0 0;
    overflow:hidden;
    margin-top:-20px;
}

.hero-sticky-bar.hero-stuck{
    margin-top:0 !important;
    border-radius:20px 20px 0 0;
}
