/* styles.css */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', sans-serif;
}
html {
    overflow-y: scroll;
}

.cfg-loading {
    position: relative;
}
.cfg-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 6px;
    background: linear-gradient(90deg, #F2EBE0 25%, #FAF8F4 37%, #F2EBE0 63%);
    background-size: 400% 100%;
    animation: cfgShimmer 1.4s ease infinite, cfgAutoReveal 0s linear 8s forwards;
    pointer-events: none;
}
@keyframes cfgShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@keyframes cfgAutoReveal {
    to {
        animation: none;
        background: none;
        opacity: 0;
        visibility: hidden;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cfg-loading::after {
        animation: cfgAutoReveal 0s linear 8s forwards;
    }
}


/* ========================
   Config-driven content skeleton
   Applied to any element whose real content is admin-configurable
   (js/page_content.js consumers). An opaque shimmer ::after overlay sits
   on top of the element's existing hardcoded content at first paint, so a
   slow config fetch never flashes stale copy — the real markup underneath
   is completely untouched (no color/visibility tricks on the actual
   text/images, which would have to special-case headings vs. paragraphs
   vs. image grids). js/home_content.js and js/about_content.js remove this
   class once the fetch settles, uncovering either the freshly-injected
   configured content or, unchanged, the original hardcoded fallback that
   was there the whole time. Because the real content was never hidden or
   removed, the element's layout size never changes — no reflow when the
   class comes off.
   The animation-delay keyframe is a pure-CSS safety net: even if the page
   script never runs at all, the overlay self-clears after 8s and whatever
   is underneath (the original hardcoded content) is simply visible again.
======================== */
.cfg-loading {
    position: relative;
}
.cfg-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 6px;
    background: linear-gradient(90deg, #F2EBE0 25%, #FAF8F4 37%, #F2EBE0 63%);
    background-size: 400% 100%;
    animation: cfgShimmer 1.4s ease infinite, cfgAutoReveal 0s linear 8s forwards;
    pointer-events: none;
}
@keyframes cfgShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@keyframes cfgAutoReveal {
    to {
        animation: none;
        background: none;
        opacity: 0;
        visibility: hidden;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cfg-loading::after {
        animation: cfgAutoReveal 0s linear 8s forwards;
    }
}

/* ========================
   Nav Account Wrapper
======================== */
.nav-account-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: transparent;
    border: 1px solid #6B3A1F;
    color: #6B3A1F;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #6B3A1F;
    color: #fff;
}


.logo {
    width: 240px;
    height: auto;
    margin-right: 20px;
    margin-left: 20px;
    cursor: pointer;
    display: block;
}

/* Topbar right slot — hidden on desktop by default, shown on desktop when JS moves it */
.navbar__topbar-right {
    display: none;
}

/* Desktop: show bell next to the account button */
@media screen and (min-width: 961px) {
    .navbar__topbar-right {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        color: #6B3A1F;
        margin-left: 4px;
    }
}

/* Constrain the logo anchor so it never overflows the navbar height */
.navbar__container > a:first-child {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}
.navbar{
    background: #fff;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}
.navbar__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 50px;
}
.navbar__menu{
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
    margin-right: 50px;
}
.navbar__menu li{
    margin-left: 20px;
}
.navbar__item{
    height: 60px;
}
.navbar__links{
    color: #6B3A1F;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}
.navbar__btn{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    width: auto;
}
.button{
    display: inline-block;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    background-color: #3D1A0A;
    color: #fff;
    white-space: nowrap;
}
.button:hover{
    background-color: #1E0C03;
    transition: all 0.3s ease;
}

/* ========================
   Navbar account dropdown
======================== */
.navbar__account-dropdown {
    position: relative;
}

/* Mobile-only equivalent of the dropdown above — shown instead of it at
   ≤960px (css/styles.css mobile block), styled by .navbar__btn .button
   there exactly like the logged-out Login button. Hidden here by default
   so it never appears alongside the dropdown on desktop. */
.navbar__mobile-account-btn {
    display: none;
}

.navbar__account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 136px;
    padding: 10px 16px;
    min-height: 40px;
    border: none;
    border-radius: 4px;
    background-color: #3D1A0A;
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.navbar__account-trigger:hover,
.navbar__account-trigger:focus-visible {
    background-color: #1E0C03;
    outline: none;
}

.navbar__account-trigger i {
    font-size: 11px;
    transition: transform 0.18s ease;
}

.navbar__account-dropdown.open .navbar__account-trigger i {
    transform: rotate(180deg);
}

.navbar__account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #E5DBCC;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(42, 20, 8, 0.14);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
}

.navbar__account-dropdown.open .navbar__account-menu {
    display: flex;
}

.navbar__account-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #3E2418;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.15s ease;
}

.navbar__account-menu-item:hover,
.navbar__account-menu-item:focus-visible {
    background-color: #FAF6F0;
    outline: none;
}

.navbar__account-menu-item i {
    width: 14px;
    text-align: center;
    color: #8A7965;
}

.navbar__account-menu-item--logout {
    color: #A34F2E;
}

.navbar__account-menu-item--logout i {
    color: #A34F2E;
}

.navbar__account-menu-item--logout:hover {
    background-color: #FCEEE7;
}

.navbar__account-menu-divider {
    height: 1px;
    margin: 6px 8px;
    background-color: #F2EADD;
}
.navbar__links:hover{
    color: #241208;
    transition: all 0.3s ease;
}
.navbar__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.bar {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #6B3A1F;
    transition: all 0.3s ease;
}

/* Drawer-only elements — hidden on desktop, revealed by mobile media query */
.nav-drawer-header { display: none; }
.nav-drawer-logo   { display: none; }

/* ── Mobile & Tablet Navigation ── */
@media screen and (max-width: 960px) {
    /* Fix: position:fixed keeps the hamburger in the viewport regardless of scroll.
       position:sticky was breaking because html{overflow-y:scroll} makes html
       the scroll container, causing the navbar to scroll out of view on mobile. */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    body {
        padding-top: 64px;
    }
    .navbar__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
        padding: 0 24px;
    }
    /* Logo pinned to center of topbar */
    .navbar__container > a:first-child {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        overflow: visible;
    }
    .logo {
        content: url('/images/ELI COFFEE LOGO ONLY.png');
        height: 42px;
        width: auto;
        margin: 0;
    }
    /* Hamburger on left */
    .navbar__toggle {
        display: flex;
        order: 1;
        z-index: 2;
    }
    /* Bell slot on right */
    .navbar__topbar-right {
        display: flex;
        order: 3;
        align-items: center;
        min-width: 44px;
        justify-content: flex-end;
        color: #6B3A1F;
        z-index: 2;
    }

    /* Reset desktop li margin so drawer items are not indented */
    .navbar__menu li { margin-left: 0; }

    /* ── Drawer: slides in from the left ── */
    .navbar__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: min(80vw, 320px);
        height: 100%;
        height: 100dvh;
        transform: translateX(-110%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        background: #FAF8F4;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    .navbar__menu.active {
        transform: translateX(0);
        box-shadow: 16px 0 56px rgba(20, 8, 2, 0.22);
    }

    /* ── Item stagger: each child fades up on open ── */
    .navbar__menu.active > li {
        animation: drawerItemIn 0.28s ease both;
    }
    .navbar__menu.active > li:nth-child(1) { animation-delay: 0.00s; }
    .navbar__menu.active > li:nth-child(2) { animation-delay: 0.05s; }
    .navbar__menu.active > li:nth-child(3) { animation-delay: 0.09s; }
    .navbar__menu.active > li:nth-child(4) { animation-delay: 0.13s; }
    .navbar__menu.active > li:nth-child(5) { animation-delay: 0.17s; }
    .navbar__menu.active > li:nth-child(6) { animation-delay: 0.21s; }
    .navbar__menu.active > li:nth-child(7) { animation-delay: 0.25s; }
    .navbar__menu.active > li:nth-child(8) { animation-delay: 0.29s; }
    .navbar__menu.active > li:nth-child(9)  { animation-delay: 0.33s; }
    .navbar__menu.active > li:nth-child(10) { animation-delay: 0.37s; }

    /* ── Header: X button only, no logo ── */
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 20px 20px 8px;
        flex-shrink: 0;
        list-style: none;
        position: sticky;
        top: 0;
        background: #FAF8F4;
        z-index: 2;
    }
    .nav-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(61, 26, 10, 0.07);
        cursor: pointer;
        color: #3D1A0A;
        border-radius: 50%;
        transition: background 0.2s;
        flex-shrink: 0;
        padding: 0;
    }
    .nav-drawer-close:hover { background: rgba(61, 26, 10, 0.14); }
    .nav-drawer-close .ti { font-size: 18px; line-height: 1; }

    /* ── Nav items ── */
    .navbar__item {
        height: auto;
        min-height: 56px;
        background: transparent;
        border-radius: 0;
        margin: 4px 0;
        box-shadow: none;
        overflow: visible;
        list-style: none;
        flex-shrink: 0;
    }
    .navbar__links {
        color: #3D1A0A;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        padding: 0 24px;
        min-height: 56px;
        font-size: 15px;
        font-weight: 600;
        gap: 16px;
        border-radius: 11px;
        transition: background 0.18s, color 0.18s;
    }
    /* Icon left — matches the Login/Account button's dark brown */
    .navbar__links::before {
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 16px;
        color: #3D1A0A;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
    }
    .navbar__links[href="/index.html"]::before        { content: "\f015"; }
    .navbar__links[href="/menu.html"]::before         { content: "\f2e7"; }
    .navbar__links[href="/packages.html"]::before     { content: "\f06b"; }
    .navbar__links[href="/reservations.html"]::before { content: "\f073"; }
    .navbar__links[href="/reviews.html"]::before      { content: "\f005"; }
    .navbar__links[href="/faqs.html"]::before         { content: "\f059"; }
    .navbar__links[href="/about.html"]::before        { content: "\f05a"; }
    /* No chevron */
    .navbar__links::after { content: none; }
    .navbar__links:hover {
        background: rgba(176, 125, 90, 0.10);
        color: #3D1A0A;
    }
    /* Beat home.css text-transform with higher specificity */
    .navbar__menu .navbar__links {
        text-transform: none;
        letter-spacing: 0;
        font-size: 15px;
        color: #3D1A0A;
    }

    /* ── Login/Account CTA — pinned to bottom ──
       Logged out: .navbar__btn holds the plain Login link (navbar.js).
       Logged in: the desktop-style dropdown trigger+menu is hidden here in
       favor of .navbar__mobile-account-btn, a plain link styled identically
       via .navbar__btn .button below — same slot, same look either way. */
    .navbar__account-dropdown { display: none; }
    .navbar__mobile-account-btn { display: flex; }
    .navbar__btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 20px 32px;
        width: 100%;
        height: auto;
        background: #FAF8F4;
        margin-top: auto;
        list-style: none;
        flex-shrink: 0;
        border-top: 1px solid rgba(61, 26, 10, 0.08);
        position: sticky;
        bottom: 0;
        z-index: 1;
    }
    .navbar__btn .button {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border-radius: 12px;
        background: #3D1A0A;
        padding: 0;
        transition: background 0.2s;
    }
    .navbar__btn .button:hover { background: #1E0C03; }

    /* Bell in topbar */
    .navbar__topbar-right .notif-bell-btn {
        color: #6B3A1F;
        padding: 8px;
        width: 40px;
        height: 40px;
    }
    .navbar__topbar-right .notif-bell-btn:hover { background: #f0e8e0; }
}

/* ── Drawer item entrance animation ── */
@keyframes drawerItemIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Semi-transparent overlay fades in behind the drawer.
   z-index must be below .navbar (999) because the drawer lives inside the navbar's
   stacking context — a child z-index of 10001 is scoped to that context and loses
   to any outside element with z-index > 999. Keeping the overlay at 998 keeps it
   between page content (0) and the navbar/drawer (999). */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 6, 2, 0.50);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
/* Scoped to mobile only so a stale .active class on desktop doesn't show the backdrop */
@media screen and (max-width: 960px) {
    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Lock scroll while drawer is open — must target html too because html { overflow-y: scroll } */
html.nav-open,
body.nav-open {
    overflow: hidden;
}

/* ========================
   Hero Section
======================== */
.hero{
    position: relative;
    margin-top: 0px;
    width: 100%;
    height: 80vh;
    background-image: url('../images/background-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.overlay-private-event-packages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20vh;
    pointer-events: none;
}
.private-event-packages {
    max-width: 80%;
    height: auto;
    display: block;
    pointer-events: auto;
    margin-bottom: 20px;
}
.overlay-private-event-packages p {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    -webkit-text-stroke: 1px #6B3A1F;
    pointer-events: auto;
}
.hero-text-link {
    margin-top: 18px;
    color: #fff7ef;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 247, 239, 0.8);
    padding-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    pointer-events: auto;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-text-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ========================
   Welcome Section
======================== */
.welcome-section{
    margin-top: 50px;
    background-color: white;
}
.welcome-section h1{
    text-align: center;
    font-size: 36px;
    color: #6B3A1F;
    padding: 20px 0;
}
.welcome-section p{
    text-align: center;
    font-size: 18px;
    color: #241208;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 2;
}

/* ========================
   Services Section
======================== */
.services-section {
    margin-top: 50px;
    padding: 50px 40px;
    text-align: center;
    background-color: #FFF8F0;
}
.services-section h1 {
    color: #6B3A1F;
    font-size: 36px;
    margin-bottom: 10px;
    padding: 20px 0;
}
.services-section > p {
    color: #241208;
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* ========================
   Cards
======================== */
.cards-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}
.card {
    width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.card-body {
    padding: 20px 25px;
}
.card-title {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.card-title h3 {
    margin: 0;
    font-size: 18px;
    color: #2A1408;
}
.card-icon {
    background-color: #FFF8F0;
    border: 1px solid #e0d0c0;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 18px;
}
.card-body p {
    text-align: center;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}


.store-locations-section{
    background-color: white;
    padding: 50px 20px;
}


.store-locations-section h1{
    text-align: center;
    font-size: 36px;
    color: #6B3A1F;
    padding: 20px 0;
}

.location-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.location-row .location-info {
    flex: 1;
}


@media (max-width: 768px) {
    .location-row {
        flex-direction: column;
    }
    .location-row img {
        width: 100%;
    }
}



.location-card {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    background-color: #FFF8F0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 500px;
}

.location-icon {
    background-color: #F5F0EB;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.location-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2A1408;
    margin-bottom: 4px;
}

.location-details p {
    font-size: 14px;
    color: #7a6a60;
    margin-bottom: 8px;
    line-height: 1.6;
}

.location-details p strong {
    color: #2A1408;
}

.footer {
    background-color: #6B3A1F;
    color: #fff;
    margin-top: 50px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
}

.footer-brand,
.footer-contact,
.footer-social {
    flex: 1;
}

.footer-brand .footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 12px;
   
}

.footer-brand p {
    font-size: 14px;
    color: #f5d9c8;
    line-height: 1.6;
}

.footer-top h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-top p {
    font-size: 14px;
    color: #f5d9c8;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 16px 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #f5d9c8;
}

.footer-social.logo-facebook{
  font-size: 20px;       
}

.footer-top i {
    margin-right: 8px;
    color: #f5d9c8;
}

.footer p a,
.footer p a:visited {
  color: #f5d9c8;
  text-decoration: none;
}





@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
}

/* ========================
   Animations
======================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
    .reserve-btn {
        width: 60%;
        font-size: 18px;
    }
}
