:root {
    --primary-red: #e63946;
    --primary-blue: #1d3557;
    --light-gray: #f9f9f9;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

/* Layout & global */

body {
    color: var(--text-color);
    background: #fff;
    line-height: 1.6;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */

.hero {
    background: #fff;
    color: var(--primary-blue);
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    padding: 20px 15px 40px;
}

.hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-center {
    flex: 1;
    text-align: center;
}

.hero-center .logo {
    max-width: 150px;
}

.hero-center h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.subheader {
    color: var(--primary-red);
    font-style: italic;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

.hero-center .phone-label {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.hero-center .phone-number a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.hero-center .phone-number a:hover {
    color: var(--primary-red);
}

/* Social icons */

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.social-icons svg {
    width: 28px;
    height: 28px;
    display: block;
}

.hero .social-icons {
    color: var(--primary-blue);
}

.footer .social-icons {
    color: #ffffff;
}

/* Hero CTA */

.hero-cta {
    text-align: center;
    margin-top: 20px;
}

/* Buttons */

.order-btn {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.order-btn:hover {
    background: #c92c37;
}

/* HARD reset nav-strip link states (Safari fix) */
.nav-strip a,
.nav-strip a:visited,
.nav-strip a:focus,
.nav-strip a:active {
    color: #fff !important;
    background: none !important;
    text-decoration: none !important;
    outline: none;
}

/* Navbar */

.navbar {
    width: 100%;
    background: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 16px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    color: var(--primary-red);
}

#navorderbutton {
    color: #c92c37;
}

/* Mobile hamburger */
.nav-mobile {
    display: none;
    background: var(--primary-blue);
    padding: 10px 16px;
}

.hamburger {
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Mobile top bar: hamburger + horizontal scroll strip */
.nav-mobile {
    display: none;
    background: var(--primary-blue);
    padding: 10px 12px;
    gap: 10px;
    align-items: center;
}

.hamburger {
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    flex: 0 0 auto;
}

/* Uber-style horizontal scroll nav */
.nav-strip {
    flex: 1 1 auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px;
    scroll-snap-type: x proximity;
}

/* Hide scrollbar (optional but nice) */
.nav-strip::-webkit-scrollbar {
    height: 0;
}

.nav-strip a {
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;
    /* border-radius: 999px;

    background: rgba(255, 255, 255, 0.12); */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;

    /* border: 1px solid rgba(255, 255, 255, 0.16); */
}

.nav-strip a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.nav-strip .nav-strip-order {
    background: rgba(230, 57, 70, 0.95) !important;
    border-color: rgba(230, 57, 70, 0.95) !important;
    border-radius: 5px !important;
}

/* Active chip underline ONLY */
.nav-strip a.active {
    border-bottom: 4px solid #e63946 !important;
}

/* Active chip (current section) */
.nav-strip a.active {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-strip {
    min-width: 0;
    /* critical in a flex row */
    padding-left: 6px;
    /* little breathing room */
    scroll-padding-left: 6px;
    /* makes scrollIntoView align nicely */
}

.nav-strip a {
    flex: 0 0 auto;
    /* DO NOT shrink */
    white-space: nowrap;
    /* keep words on one line */
}

/* Optional: stop iOS adding weird tap highlighting */
.nav-strip a {
    -webkit-tap-highlight-color: transparent;
}

/* Hide horizontal scrollbar but keep scroll working */
.nav-strip {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge legacy */
}

.nav-strip::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari / iOS */
}

/* Desktop navbar layout stays as-is */
.navbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 16px;
}

/* Mobile behavior */
@media (max-width: 700px) {
    .nav-mobile {
        display: flex;
    }

    /* Hide the full menu until hamburger opens it */
    .navbar .container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .navbar .container.show {
        display: flex;
    }
}

/* Hide links on mobile */
@media (max-width: 700px) {
    .navbar .container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .navbar .container.show {
        display: flex;
    }

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

/* Menu sections */

.menu-section {
    padding: 60px 20px;
    text-align: center;
    scroll-margin-top: 80px;
}

.menu-section.alt {
    background: var(--light-gray);
}

.menu-section h2 {
    color: var(--primary-red);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Card grid (Most popular, etc.) */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.menu-item {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-item h3,
.menu-item p {
    padding: 10px 8px 0;
}

.menu-item span {
    margin-top: auto;
    padding: 12px 8px 14px;
    font-weight: bold;
    color: var(--primary-red);
    display: block;
}

/* Two-column list layout */

.two-column-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.column-title {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.item-info {
    flex: 1;
    padding-right: 10px;
}

.item-name {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.item-meta {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-meta {
        text-align: left;
        margin-top: 4px;
        white-space: normal;
    }

    .item-name,
    .item-desc {
        text-align: left;
    }
}

.item-price {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.item-rating {
    font-size: 0.85rem;
    color: #777;
}

/* Footer */

.footer {
    background: var(--primary-blue);
    color: #eee;
    text-align: center;
    padding: 40px 20px;
}

.footer a {
    color: var(--primary-red);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer h2 {
    color: #fff;
    margin-bottom: 10px;
}

.footer .footer-cta {
    margin: 16px auto;
}

.footer .footer-cta a {
    color: var(--primary-gray);
}

.footer .footer-cta .order-btn {
    margin-top: 10px;
}

/* ---------------------------
   Back to top button
--------------------------- */

#backToTop {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1200;

    width: 44px;
    height: 44px;
    border-radius: 50%;

    border: none;
    background: rgba(29, 53, 87, 0.95);
    /* primary blue */
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);

    transition: opacity 0.25s ease, transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Rotate caret to be an up chevron */
#backToTop svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Visible state */
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Slightly larger tap target on mobile */
@media (max-width: 700px) {
    #backToTop {
        width: 48px;
        height: 48px;
        right: 14px;
        bottom: 18px;
    }
}


/* Responsive tweaks */

@media (max-width: 800px) {
    .two-column-menu {
        grid-template-columns: 1fr;
    }
}

/* ✅ HERO FIX (this is what makes it match your 2nd screenshot) */
@media (max-width: 700px) {
    .hero-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        flex-wrap: nowrap;
        /* prevents odd 2-column wraps */
    }

    .hero-center {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero-center .logo {
        max-width: 110px;
        margin: 0 auto;
        display: block;
    }

    .hero-center h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 40px 15px 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .menu-item img {
        height: 150px;
    }
}