/**
 * Jenny's Restaurant — header & layout overrides
 */

/* ---- Topbar ---- */
.topbar {
    padding: 8px 0;
}

.topbar-contact-info ul {
    flex-wrap: wrap;
}

.topbar-contact-info ul li a,
.topbar-contact-info ul li span {
    font-size: 14px;
}

@media only screen and (max-width: 767px) {
    .topbar {
        padding: 6px 0;
    }

    .topbar-contact-info ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .topbar-contact-info ul li {
        margin: 0;
    }

    .topbar-email-text {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }
}

/* ---- Brand logo (text) ---- */
.jennys-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none !important;
    flex-shrink: 0;
}

.jennys-brand-name {
    font-family: var(--accent-font, "Forum", serif);
    font-size: 34px;
    font-weight: 400;
    color: var(--accent-color);
    text-transform: none;
    letter-spacing: 0.02em;
}

.jennys-brand-tagline {
    font-family: var(--default-font, "Jost", sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-top: 2px;
}

.jennys-brand:hover .jennys-brand-name {
    color: var(--primary-color);
}

/* ---- Navbar layout ---- */
header.main-header {
    background-color: var(--secondary-color);
}

.jennys-navbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

header.main-header .navbar {
    padding: 18px 0;
}

.main-menu .nav-menu-wrapper {
    margin: 0 24px;
}

.main-menu ul li.nav-item a {
    font-size: 15px;
    padding: 12px 10px !important;
    white-space: nowrap;
}

.main-menu ul li.nav-item a.active {
    color: var(--accent-color);
}

.header-button-box {
    flex-shrink: 0;
}

.jennys-call-btn {
    padding: 14px 22px !important;
    white-space: nowrap;
    border-radius: 100px;
}

/* Hide sidebar toggle from theme */
.header-sidebar-btn {
    display: none !important;
}

/* ---- Desktop ---- */
@media only screen and (min-width: 992px) {
    .jennys-navbar {
        gap: 16px;
    }

    .main-menu {
        display: flex !important;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
    }

    .main-menu .nav-menu-wrapper {
        flex: 1;
        margin: 0 20px 0 0;
    }

    .main-menu ul li.highlighted-menu {
        display: none !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .jennys-brand-name {
        font-size: 28px;
    }

    .main-menu ul li.nav-item a {
        font-size: 14px;
        padding: 10px 8px !important;
    }

    .jennys-call-btn {
        padding: 12px 16px !important;
        font-size: 13px;
    }
}

@media only screen and (min-width: 1200px) {
    .jennys-call-btn {
        font-size: 15px;
    }
}

/* ---- Mobile / tablet ---- */
@media only screen and (max-width: 991px) {
    header.main-header .navbar {
        padding: 12px 0;
    }

    .jennys-navbar {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
        position: relative;
    }

    .jennys-brand {
        max-width: calc(100% - 56px);
        flex: 1;
        min-width: 0;
    }

    .jennys-brand-name {
        font-size: 26px;
    }

    .jennys-brand-tagline {
        font-size: 10px;
    }

    .navbar-collapse.main-menu {
        display: none !important;
    }

    /* Hamburger button */
    .jennys-hamburger {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
        z-index: 1102;
        transition: opacity 0.2s ease;
    }

    .jennys-hamburger-line {
        display: block;
        width: 22px;
        height: 3px;
        border-radius: 6px;
        background-color: var(--secondary-color);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .jennys-hamburger.is-open .jennys-hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(-45deg);
    }

    .jennys-hamburger.is-open .jennys-hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .jennys-hamburger.is-open .jennys-hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
    }

    /* Mobile dropdown panel */
    .jennys-mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        padding-bottom: 24px;
        background: linear-gradient(180deg, var(--secondary-color) 0%, #1a2830 100%);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        z-index: 1100;
    }

    .jennys-mobile-nav.is-open {
        display: block;
    }

    .jennys-mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .jennys-mobile-nav-list .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .jennys-mobile-nav-list .nav-item:last-child {
        border-bottom: none;
    }

    .jennys-mobile-nav-list .nav-link {
        display: block;
        color: var(--primary-color) !important;
        font-size: 17px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 16px 24px !important;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .jennys-mobile-nav-list .nav-link:hover,
    .jennys-mobile-nav-list .nav-link.active {
        color: var(--accent-color) !important;
        background: rgba(255, 255, 255, 0.04);
    }

    .jennys-mobile-nav-list .highlighted-menu {
        margin-top: 8px;
        padding: 8px 24px 0;
    }

    .jennys-mobile-nav-list .highlighted-menu .nav-link {
        text-align: center;
        text-transform: none;
        font-size: 16px;
        border-radius: 100px;
        background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%) !important;
        color: var(--secondary-color) !important;
    }

    .jennys-mobile-nav-list .highlighted-menu .nav-link:hover {
        color: var(--secondary-color) !important;
        opacity: 0.92;
    }

    /* Backdrop overlay when open */
    .jennys-mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1099;
    }

    body.jennys-mobile-menu-open {
        overflow: hidden;
    }

    body.jennys-mobile-menu-open .jennys-mobile-overlay {
        display: block;
    }

    body.jennys-mobile-menu-open header.main-header {
        z-index: 1101;
    }

    body.jennys-mobile-menu-open .jennys-hamburger {
        position: relative;
        z-index: 1103;
    }
}

@media only screen and (max-width: 767px) {
    .jennys-brand-name {
        font-size: 22px;
    }

    .jennys-brand-tagline {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
}

/* Hide hamburger on desktop */
@media only screen and (min-width: 992px) {
    .jennys-hamburger,
    .jennys-mobile-nav {
        display: none !important;
    }
}


/* ---- Footer logo ---- */
.footer-logo .jennys-brand {
    align-items: center;
}

.footer-logo .jennys-brand-name {
    font-size: 28px;
}

.footer-logo .jennys-brand-tagline {
    font-size: 10px;
}

/* ---- Hero background ---- */
.hero.jennys-hero {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: scroll;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero.jennys-hero .container {
    position: relative;
    z-index: 2;
}

@media only screen and (max-width: 991px) {
    .hero.jennys-hero {
        min-height: 70vh;
        padding: 120px 0 80px;
    }
}

@media only screen and (max-width: 767px) {
    .hero.jennys-hero {
        min-height: auto;
        padding: 100px 0 70px;
    }
}

/* ---- Page header (subpages) ---- */
.page-header.jennys-page-header {
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-image: none;
}

.page-header.jennys-page-header::before {
    opacity: 0.75;
}

/* ---- Breadcrumb ---- */
.jennys-breadcrumb-nav {
    display: block;
    margin-top: 4px;
}

.jennys-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.jennys-breadcrumb-item {
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

.jennys-breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.jennys-breadcrumb-item a:hover {
    color: var(--accent-color);
}

.jennys-breadcrumb-item.is-active {
    color: var(--primary-color);
}

.jennys-breadcrumb-separator {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    padding: 0 10px;
    list-style: none;
}

@media only screen and (max-width: 767px) {
    .jennys-breadcrumb-item,
    .jennys-breadcrumb-separator {
        font-size: 16px;
    }

    .jennys-breadcrumb-separator {
        padding: 0 8px;
    }
}

/* ---- Submit button spinner ---- */
.jennys-submit-btn {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jennys-submit-btn .jennys-btn-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}

.jennys-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.88;
}

.jennys-submit-btn.is-loading .jennys-btn-text {
    display: none;
}

.jennys-submit-btn.is-loading .jennys-btn-spinner {
    display: inline-flex;
}

.jennys-submit-btn:disabled {
    cursor: not-allowed;
}

/* ---- Toast notifications ---- */
.jennys-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 12000;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(420px, calc(100vw - 32px));
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(18, 29, 35, 0.12);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.jennys-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.jennys-toast.is-error {
    border-left-color: #dc3545;
}

.jennys-toast.is-success {
    border-left-color: var(--accent-color);
}

.jennys-toast__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.jennys-toast__icon-success,
.jennys-toast__icon-error {
    display: none;
}

.jennys-toast.is-success .jennys-toast__icon-success {
    display: block;
    color: var(--accent-color);
}

.jennys-toast.is-error .jennys-toast__icon-error {
    display: block;
    color: #dc3545;
}

.jennys-toast__body {
    flex: 1;
    min-width: 0;
}

.jennys-toast__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 0 0 4px;
}

.jennys-toast.is-success .jennys-toast__title {
    color: var(--accent-color);
}

.jennys-toast.is-error .jennys-toast__title {
    color: #dc3545;
}

.jennys-toast__message {
    font-size: 15px;
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0;
    word-break: break-word;
}

.jennys-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(18, 29, 35, 0.45);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.jennys-toast__close:hover {
    color: var(--secondary-color);
}

@media only screen and (max-width: 767px) {
    .jennys-toast {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* ---- Scrolling ticker: match section-title h3 font ---- */
.scrolling-content span {
    font-family: var(--default-font, "Jost", sans-serif);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---- CTA: remove coffee cup graphic ---- */
.cta-box::before {
    display: none !important;
    content: none !important;
}

/* ---- Welcome popup (right side) ---- */
.jennys-welcome-popup {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 11500;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px 28px 24px;
    background: #161d22;
    border: 1px solid rgba(201, 165, 129, 0.35);
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translate(24px, -50%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.jennys-welcome-popup.is-visible {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

.jennys-welcome-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.jennys-welcome-popup__close:hover {
    color: var(--accent-color);
}

.jennys-welcome-popup__eyebrow {
    position: relative;
    display: inline-block;
    font-family: var(--default-font, "Jost", sans-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: capitalize;
    color: var(--primary-color, #fff);
    padding-left: 28px;
    margin: 0 0 14px;
}

.jennys-welcome-popup__eyebrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url('../website/assets/images/icon-sub-heading.svg') no-repeat center / contain;
}

.jennys-welcome-popup__text {
    font-family: var(--default-font, "Jost", sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-color, #cecece);
    margin: 0 0 22px;
}

.jennys-welcome-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jennys-welcome-popup__actions .btn-default {
    padding: 12px 22px;
    font-size: 14px;
}

@media only screen and (max-width: 767px) {
    .jennys-welcome-popup {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        transform: translateY(24px);
        max-height: 70vh;
    }

    .jennys-welcome-popup.is-visible {
        transform: translateY(0);
    }
}

