/* Bruchi's Catering — styles matched to bruchis-cheesesteaks-burgers.com */

@font-face { font-family: BruchiAvenirBlack; src: url("../assets/fonts/AvenirBlack.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: BruchiAvenirRoman; src: url("../assets/fonts/AvenirRoman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: BruchiAvenirNextHeavy; src: url("../assets/fonts/AvenirNextHeavy.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --red: #C6202F;
  --red-dark: #A01A26;
  --dark: #1a1a1a;
  --gray: #555;
  --cream: #F5F5F5;
  --line: #e2e2e2;
  --green: #2e7d32;
  --nav-h: 102px;           /* same as the Job Website header */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: BruchiAvenirRoman, sans-serif; color: var(--dark); background: #fff; line-height: 1.5; padding-top: var(--nav-h); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- NAV (copied from the Job Website header) ---------- */
nav { position: fixed; top: 0; width: 100%; background: #fff; z-index: 1000; transition: box-shadow 0.3s ease; line-height: normal; }
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: block; }
.nav-logo img { height: 72px; width: auto; display: inline; }  /* inline like the Job Website (adds its small gap under the logo) */
.nav-brand { display: flex; align-items: center; gap: 16px; }
.nav-divider { width: 2px; height: 72px; background: #000; border-radius: 2px; flex: none; }
.nav-tag { font-family: 'BruchiAvenirBlack', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.nav-strip { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-right { display: flex; align-items: center; gap: 28px; }
/* hamburger + dropdown: copied from the main site */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 4px; width: 34px; height: 24px; position: relative; flex: none; }
.hamburger span { display: block; position: absolute; left: 4px; width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
.nav-links a { text-decoration: none; color: var(--dark); font-family: 'BruchiAvenirBlack', sans-serif; font-weight: 500; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
/* sized exactly like the main site's ORDER button (12px 30px, 20px text, weight 500 as it renders there) */
.btn-apply-nav { background: var(--red); color: #fff !important; padding: 12px 30px; border-radius: 6px; font-family: 'BruchiAvenirBlack', sans-serif; font-weight: 500; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: background 0.2s; display: inline-flex; align-items: center; gap: 10px; }
.btn-apply-nav:hover { background: var(--red-dark); }
.cart-count { background: #fff; color: var(--red); border-radius: 50px; font-size: 13px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; line-height: 1; letter-spacing: 0; }
.cart-count.is-empty { display: none; }   /* no badge until something is in the order */
@media (max-width: 768px) {
  /* phones: just the logo on the left, ORDER + dropdown menu on the right (like the main site) */
  .nav-divider, .nav-tag { display: none; }
  /* ...and a mini red CATERING strip under the header (28px, so the header is 130px tall on phones) */
  :root { --nav-h: 130px; }
  .nav-strip { display: block; background: var(--red); color: #fff; text-align: center; font-family: 'BruchiAvenirBlack', sans-serif; font-weight: 900; font-size: 13px; line-height: 14px; letter-spacing: 3px; text-transform: uppercase; padding: 7px 0; }
  .nav-right { gap: 20px; }   /* same spacing as the main site (12px gap + 8px margin) */
  .hamburger { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { font-size: 20px; }
  .btn-apply-nav { font-size: 17px; padding: 10px 22px; font-weight: 900; }   /* main site's phone ORDER button */
  /* phones: cart count sits on the button's corner so the header matches the Job Website */
  .btn-apply-nav { position: relative; }
  .cart-count { position: absolute; top: -8px; right: -8px; background: var(--dark); color: #fff; font-size: 12px; min-width: 20px; height: 20px; }
}


.page-hero { background: var(--dark); color: #fff; text-align: center; padding: 64px 24px 56px; }
.page-hero h1 { font-family: BruchiAvenirNextHeavy, sans-serif; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; padding: 14px 36px; border-radius: 6px; font-family: BruchiAvenirBlack, sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: .2s; cursor: pointer; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; text-align: center; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 24px; }
.section-gray { background: var(--cream); }
.page-section { scroll-margin-top: var(--nav-h); }   /* header links land just under the fixed header */
#locations .section-title { margin-bottom: 40px; }
.container { max-width: 1200px; margin: 0 auto; }
/* copied exactly from the main site's .section-title */
.section-title { font-family: BruchiAvenirNextHeavy, sans-serif; font-size: clamp(2.876rem, 5.754vw, 4.315rem); font-weight: 700; line-height: normal; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 12px; color: var(--dark); }

/* ---------- MENU ---------- */
.cat-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.cat-btn { padding: 8px 20px; border-radius: 50px; font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border: 2px solid var(--red); background: transparent; color: var(--red); text-decoration: none; transition: .2s; }
.cat-btn:hover { background: var(--red); color: #fff; }
.menu-cat { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.menu-cat h2 { font-family: BruchiAvenirBlack, sans-serif; font-size: 26px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.menu-cat .blurb { color: var(--gray); margin-bottom: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.menu-item { background: #fff; padding: 20px 24px; border-radius: 10px; border-left: 4px solid var(--red); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.menu-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.menu-item img { width: 100%; max-width: 220px; margin: 0 auto 12px; border-radius: 8px; }
.menu-item h3 { font-family: BruchiAvenirBlack, sans-serif; font-size: 17.6px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.menu-item p { font-size: 14.3px; color: var(--gray); }
.menu-item .serves { font-size: 13px; color: var(--red); font-family: BruchiAvenirBlack, sans-serif; text-transform: uppercase; letter-spacing: .5px; margin: -2px 0 6px; }
.menu-item .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; gap: 12px; }
.price { font-family: BruchiAvenirBlack, sans-serif; font-size: 20px; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--red); border-radius: 50px; overflow: hidden; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 20px; color: var(--red); cursor: pointer; font-family: BruchiAvenirBlack, sans-serif; }
.qty button:hover { background: var(--red); color: #fff; }
.qty span { min-width: 28px; text-align: center; font-family: BruchiAvenirBlack, sans-serif; }
.add-btn { padding: 8px 18px; font-size: 14px; }

/* floating cart bar */
.cart-bar { position: sticky; bottom: 20px; margin: 8px auto 0; background: var(--dark); color: #fff; border-radius: 50px; padding: 8px 8px 8px 24px; display: none; align-items: center; gap: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 900; width: max-content; max-width: 100%; }
.cart-bar-info { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; }
.cart-bar-info strong { font-family: BruchiAvenirBlack, sans-serif; font-weight: 900; }
.cart-bar-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }
.cart-bar-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; border-radius: 50px; padding: 11px 20px 11px 24px; font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; transition: background .2s; }
.cart-bar-btn:hover { background: var(--red-dark); }
.cart-bar-btn svg { transition: transform .2s; }
.cart-bar-btn:hover svg { transform: translateX(3px); }
.cart-bar.show { display: flex; animation: cartBarIn .3s ease; }
@keyframes cartBarIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- LOCATION FINDER (copied from the main site, bruchis-cheesesteaks-burgers.com) ---------- */
.locations-container {
    max-width: 1200px;
    margin: 0 auto;
}
.gm-style-iw-c { padding: 10px 8px 10px 12px !important; }
.gm-style-iw-d { overflow: hidden !important; }
.gm-style-iw-chr { position: absolute !important; top: -6px !important; right: 2px !important; height: auto !important; }
.gm-style-iw-ch { display: none !important; }
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.location-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.5s ease both;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
}
.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.location-card.closed-remodel { opacity: 0.6; }
.location-card h3 {
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}
.location-card .info {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}
.location-card .info a {
    color: var(--gray);
    text-decoration: none;
}
.location-card .info a:hover { color: var(--red); }
.location-hours {
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}
.location-card .btn-order-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 20px;
    width: 225px;
    max-width: 225px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.location-card .btn-order-sm:hover { transform: scale(1.05); }
.location-card .btn-delivery-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 20px;
    width: 225px;
    max-width: 225px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.location-card .btn-delivery-sm:hover { transform: scale(1.05); }
.status-badge {
    display: inline-block;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #fff;
}
.status-open { background: #2e7d32; }
.status-closed { background: var(--red); }
.status-remodel { background: #1a1a1a; }

/* LOCATION SEARCH */
.location-search {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}
.search-box {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.search-box input {
    flex: 1;
    min-width: 0;   /* lets the box shrink on phones so the button isn't cut off */
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: 'BruchiAvenirRoman', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--red); }
.btn-search {
    padding: 16px 24px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-search:hover { background: var(--red-dark); }
@media (max-width: 480px) { .search-box input { padding: 14px 14px; } .btn-search { padding: 14px 16px; font-size: 14px; } }
.search-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.search-divider::before, .search-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}
.btn-use-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: 8px;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-use-location:hover {
    background: var(--red);
    color: #fff;
}
.browse-all-link {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray);
    font-family: 'BruchiAvenirRoman', sans-serif;
}
.browse-all-link a {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}
.browse-all-link a:hover { text-decoration: underline; }
.location-loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 16px;
}
.distance-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: 'BruchiAvenirBlack', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } }

/* ---------- CHECKOUT ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.panel { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 24px; border: 1px solid var(--line); }
.panel h2 { font-family: BruchiAvenirBlack, sans-serif; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { background: var(--red); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.summary { position: sticky; top: calc(var(--nav-h) + 20px); }
.toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--red); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { text-align: center; padding: 12px; cursor: pointer; font-family: BruchiAvenirBlack, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-size: 15px; }
.toggle input:checked + label { background: var(--red); color: #fff; }
.toggle input:focus-visible + label { outline: 2px solid var(--dark); outline-offset: -4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-family: BruchiAvenirBlack, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--dark); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
/* text box with a button inside on the right (delivery address → use my location) */
.input-icon { position: relative; }
.input-icon input { padding-right: 48px; }
.input-icon-btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--red); cursor: pointer; }
.input-icon-btn:hover { background: #FEE2E2; }
.input-icon-btn:disabled { opacity: .5; cursor: wait; }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.field.invalid input { border-color: var(--red); }
.hidden { display: none !important; }

.line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.line:last-child { border-bottom: 0; }
.line .name { font-family: BruchiAvenirBlack, sans-serif; text-transform: uppercase; font-size: 14px; }
.line .sub { color: var(--gray); font-size: 13px; }
.line .remove { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.totals .line { border: 0; padding: 4px 0; }
.totals .grand { font-family: BruchiAvenirBlack, sans-serif; font-size: 20px; border-top: 2px solid var(--dark); margin-top: 8px; padding-top: 12px; }
.notice { font-size: 14px; background: var(--cream); border-radius: 8px; padding: 12px 14px; margin: 14px 0; color: var(--gray); }
.notice.warn { background: #fdecee; color: var(--red-dark); }
.payment-note { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 10px; padding: 16px; color: var(--gray); font-size: 14px; line-height: 1.5; }
.payment-note svg { flex: none; color: var(--green); margin-top: 1px; }
.checking { color: var(--gray); font-size: 17px; padding: 40px 0 20px; }
.paid-line { color: var(--green); font-size: 14px; }
.empty { text-align: center; padding: 40px 0; color: var(--gray); }
.empty .btn { margin-top: 16px; }
.confirm { max-width: 640px; margin: 0 auto; text-align: center; }
/* Checkmark — same as the Operations Hub checklist "SUBMITTED" screen (ChecklistView.jsx),
   colors flipped for a light background: green circle, white tick */
.cl-success-badge { position: relative; width: 88px; height: 88px; margin: 0 auto 20px; }
.cl-success-icon { position: relative; width: 88px; height: 88px; display: block; animation: successPop 0.4s cubic-bezier(.34,1.56,.64,1) both; }
.cl-success-tick { stroke: #FFFFFF; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: successDraw 0.32s ease-out 0.28s forwards; }
.cl-success-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #16A34A; opacity: 0; animation: successRing 0.7s ease-out 0.3s both; }
@keyframes successDraw { to { stroke-dashoffset: 0; } }
@keyframes successRing { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes successPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cl-success-icon { animation: none; }
  .cl-success-ring { display: none; }
  .cl-success-tick { animation: none; stroke-dashoffset: 0; }
}
.confirm h2 { font-family: BruchiAvenirNextHeavy, sans-serif; font-size: 36px; text-transform: uppercase; letter-spacing: 1px; }
.confirm .order-no { font-family: BruchiAvenirBlack, sans-serif; color: var(--red); font-size: 22px; margin: 8px 0 24px; text-transform: uppercase; letter-spacing: 1px; }
.confirm .panel { text-align: left; }

/* ---------- FOOTER (copied from the main site) ---------- */
footer { background: var(--dark); color: #aaa; padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { display: flex; align-items: center; opacity: 0.7; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }
.footer-social img { height: 26px; width: auto; }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { order: -2; }
  .footer-links { order: -1; }
  .footer-brand { order: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 820px) {
  section { padding: 56px 16px; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
}

/* ---------- MENU ITEM OPTIONS ---------- */
.menu-item { position: relative; }
.menu-item.has-options { grid-column: span 2; }
.item-badge { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-family: BruchiAvenirBlack, sans-serif; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; }
.opt-group { border: 0; margin-top: 16px; }
.opt-group legend { font-family: BruchiAvenirBlack, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 50px; font-size: 14px; cursor: pointer; transition: .15s; }
.opt span em { font-style: normal; color: var(--gray); font-size: 13px; }
.opt input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.opt input:checked + span em { color: #fff; }
/* delivery tip: No Tip + Custom Tip on the first row, then the three percentages side by side */
.tip-choices { display: grid; grid-template-columns: repeat(6, 1fr); }
.tip-choices .opt { grid-column: span 2; }
.tip-choices .opt.tip-wide { grid-column: span 3; }
.tip-custom { display: flex; align-items: center; gap: 6px; margin-top: 10px; border: 2px solid var(--line); border-radius: 8px; padding: 0 12px; }
.tip-custom:focus-within { border-color: var(--red); }
.tip-custom.invalid { border-color: var(--red); }
.tip-custom span { font-family: BruchiAvenirBlack, sans-serif; color: var(--gray); }
/* promo code box in the order summary */
.promo { margin-top: 16px; }
.promo-entry { display: flex; gap: 8px; }
.promo-entry input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; text-transform: uppercase; }
.promo-entry input:focus { outline: none; border-color: var(--red); }
.promo-entry .btn { padding: 10px 16px; }
.promo-applied { font-size: 14px; }
.promo-msg { font-size: 13px; color: var(--red); margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; font: inherit; cursor: pointer; }
.promo-line { color: var(--red); }
.tip-custom input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 0; font: inherit; font-size: 16px; background: transparent; }
.tip-choices .opt span { display: block; text-align: center; padding: 8px 6px; }
.tip-choices .opt span em { display: block; }
.opt input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.in-cart { font-size: 13px; color: var(--green); margin-top: 8px; min-height: 1em; }
.in-cart a { color: var(--red); }
@media (max-width: 640px) { .menu-item.has-options { grid-column: auto; } }

/* ---------- DELIVERY STORE MATCH ---------- */
.delivery-store { font-size: 14px; background: var(--cream); border-radius: 8px; padding: 12px 14px; color: var(--gray); border-left: 4px solid var(--line); }
.delivery-store.ok { border-left-color: var(--green); color: var(--dark); }
.delivery-store.warn { background: #fdecee; color: var(--red-dark); border-left-color: var(--red); }
.delivery-check { margin-top: 8px; color: var(--red-dark); font-size: 13px; }
.opt-error { font-size: 13px; color: var(--red); margin-top: 8px; min-height: 0; }
.opt-error:empty { display: none; }

/* ---------- DATE PICKER (copied from the Job Website / Operations Hub) ---------- */
.dpk-wrap { position: relative; width: 100%; }
.dpk-trigger { width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid #E2E8F0; border-radius: 10px; background: #fff; font-family: 'BruchiAvenirRoman', sans-serif; font-size: 15px; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.dpk-trigger:focus-visible, .dpk-trigger.dpk-open { outline: none; border-color: #C72030; box-shadow: 0 0 0 3px rgba(199,32,48,0.12); }
.dpk-icon { color: #C72030; flex: none; }
.dpk-value { color: #0F172A; }
.dpk-placeholder { color: #94A3B8; }
.dpk-pop { position: fixed; z-index: 1000; box-sizing: border-box; background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,0.16); padding: 12px; font-family: 'BruchiAvenirRoman', sans-serif; }
.dpk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dpk-month { font-size: 15px; font-weight: 700; color: #0F172A; }
.dpk-nav { width: 34px; height: 34px; border-radius: 8px; border: none; background: #F1F5F9; color: #334155; font-size: 20px; line-height: 1; cursor: pointer; }
.dpk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dpk-wd { text-align: center; font-size: 11px; font-weight: 700; color: #94A3B8; padding: 4px 0 6px; }
.dpk-day { height: 36px; border: none; border-radius: 8px; background: none; font-family: inherit; font-size: 14px; font-weight: 500; color: #0F172A; cursor: pointer; }
.dpk-day.dpk-outside { color: #CBD5E1; }
.dpk-day.dpk-today { box-shadow: inset 0 0 0 1.5px #C72030; color: #C72030; font-weight: 700; }
.dpk-day.dpk-sel { background: #C72030; color: #fff; font-weight: 700; box-shadow: none; }
.dpk-day.dpk-disabled { color: #CBD5E1; cursor: default; }
@media (hover: hover) {
    .dpk-nav:hover { background: #E2E8F0; }
    .dpk-day:not(.dpk-sel):not(.dpk-disabled):hover { background: #FEE2E2; }
}
.dpk-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1F5F9; }
.dpk-foot-btn { padding: 6px 14px; border: none; border-radius: 8px; background: #FEE2E2; color: #C72030; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dpk-foot-btn.dpk-clear { background: #F1F5F9; color: #64748B; }
.dpk-foot-btn:disabled { opacity: 0.4; cursor: default; }

.field.invalid .dpk-trigger { border-color: var(--red); }

/* ---------- TIME PICKER (from the Operations Hub TimePicker) ---------- */
.tp-list { max-height: 290px; overflow-y: auto; position: relative; }
.tp-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.tp-hour { width: 52px; flex: none; font-size: 13px; font-weight: 700; color: #64748B; }
.tp-chips { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tp-chip { height: 34px; border: none; border-radius: 8px; background: #F8FAFC; color: #0F172A; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tp-chip.tp-sel { background: #C72030; color: #fff; }
@media (hover: hover) { .tp-chip:not(.tp-sel):hover { background: #FEE2E2; } }
.hint-strong { font-family: BruchiAvenirBlack, sans-serif; font-weight: 900; color: var(--dark); }

/* ---------- PICKUP LOCATION PICKER (checkout) ---------- */
.lp [hidden] { display: none !important; }
.lp-search { display: flex; border-radius: 10px; overflow: hidden; border: 1.5px solid #E2E8F0; transition: border-color .15s, box-shadow .15s; }
.lp-search:focus-within { border-color: #C72030; box-shadow: 0 0 0 3px rgba(199,32,48,0.12); }
.lp-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 46px; font: inherit; font-size: 15px; outline: none; background: #fff; color: var(--dark); }
.lp-find { border: 0; background: var(--red); color: #fff; padding: 0 20px; font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.lp-find:hover { background: var(--red-dark); }
.lp-geo { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--red); font-family: BruchiAvenirBlack, sans-serif; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.lp-geo:hover { text-decoration: underline; }
.lp-status { font-size: 13px; color: var(--gray); margin-top: 8px; }
.lp-status:empty { display: none; }
.lp-area { font-family: BruchiAvenirBlack, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #64748B; margin: 16px 0 8px; }
.lp-list > .lp-grid:first-child { margin-top: 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.lp-card { position: relative; text-align: left; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--dark); transition: border-color .15s, background .15s; }
.lp-card:hover { border-color: #C72030; background: #FEF2F2; }
.lp-card.lp-on { border-color: #C72030; background: #FEF2F2; box-shadow: 0 0 0 3px rgba(199,32,48,0.12); }
.lp-name { display: block; font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; padding-right: 44px; }
.lp-dist { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-family: BruchiAvenirBlack, sans-serif; font-size: 11px; padding: 2px 7px; border-radius: 50px; }
.lp-addr { display: block; font-size: 13px; color: var(--gray); line-height: 1.45; margin-top: 3px; }
.lp-more { display: block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--red); font-family: BruchiAvenirBlack, sans-serif; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.lp-more:hover { text-decoration: underline; }
.lp-selected { display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid #C72030; background: #FEF2F2; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--dark); }
.lp-pin { color: #C72030; flex: none; margin-top: 2px; }
.lp-sel-text { flex: 1; }
.lp-sel-text strong { font-family: BruchiAvenirBlack, sans-serif; font-weight: 900; }
.lp-change { border: 0; background: none; padding: 0; color: var(--red); font-family: BruchiAvenirBlack, sans-serif; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.lp-change:hover { text-decoration: underline; }
.field.invalid .lp-search, .field.invalid .lp-card { border-color: var(--red); }
@media (max-width: 560px) {
  /* phones: two compact columns (name + city); full address shows once a store is picked */
  .lp-grid { grid-template-columns: 1fr 1fr; }
  .lp-street { display: none; }
  .lp-card { padding: 9px 10px; }
  .lp-name { font-size: 13px; padding-right: 0; }
  .lp-dist { position: static; display: inline-block; margin-top: 4px; }
}

/* ---------- COUNT PICKER (sub tray: choose 4 subs) ---------- */
.cnt-list { display: grid; gap: 6px; }
.cnt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px; border: 2px solid var(--line); border-radius: 50px; transition: border-color .15s, background .15s; }
.cnt-row.cnt-on { border-color: var(--red); background: #FEF2F2; }
.cnt-row.cnt-on .cnt-label { font-family: BruchiAvenirBlack, sans-serif; }
.cnt-qty button { width: 30px; height: 30px; font-size: 18px; }
.cnt-qty button:disabled { opacity: .3; cursor: not-allowed; background: none !important; color: var(--red) !important; }
.cnt-status { font-size: 13px; color: var(--gray); margin-top: 2px; }
.cnt-status.cnt-done { color: var(--green); font-family: BruchiAvenirBlack, sans-serif; }

/* ---------- ⓘ INFO BUTTON + POPUP (sub descriptions) ---------- */
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 6px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: #94A3B8; font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 11px; line-height: 1; cursor: pointer; vertical-align: 1px; transition: color .15s; }
.info-btn:hover, .info-btn:focus-visible { color: var(--red); outline: none; }
.opt input:checked + span .info-btn { color: rgba(255,255,255,.85); }
.cnt-label { display: inline-flex; align-items: center; font-size: 14px; }
.info-pop { position: fixed; z-index: 1100; max-width: 260px; background: var(--dark); color: #fff; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.info-pop strong { display: block; font-family: BruchiAvenirBlack, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; margin-bottom: 2px; }

/* ---------- CHECKBOX OPTION (Mayo & Mustard Packets) ---------- */
.opt-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; user-select: none; }
.opt-check input { position: absolute; opacity: 0; pointer-events: none; }
.opt-check-box { flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.opt-check input:checked + .opt-check-box { background: var(--red); border-color: var(--red); }
.opt-check input:checked + .opt-check-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.opt-check input:focus-visible + .opt-check-box { outline: 2px solid var(--dark); outline-offset: 2px; }

/* ---------- CONFIRMATION: buttons ---------- */
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- CONFIRMATION: details card ---------- */
.confirm .panel h2 { font-family: BruchiAvenirBlack, sans-serif; font-size: 20px; letter-spacing: 1px; margin-bottom: 16px; }
.cf-block + .cf-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cf-label { font-family: BruchiAvenirBlack, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #94A3B8; margin-bottom: 4px; }
.cf-when { font-family: BruchiAvenirBlack, sans-serif; font-size: 24px; line-height: 1.25; color: var(--dark); }
.cf-when span { color: var(--red); white-space: nowrap; }
.cf-store { font-family: BruchiAvenirBlack, sans-serif; font-size: 18px; color: var(--dark); }
.cf-addr { font-size: 15px; color: var(--gray); line-height: 1.5; margin-top: 2px; }
.cf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.cf-links a { font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; color: var(--red); text-decoration: none; }
.cf-links a:hover { text-decoration: underline; }

/* ---------- STRIPE PAYMENT FORM (Embedded Checkout) ---------- */
#stripeMount:empty { display: none; }
#stripeMount { margin: 0 -8px; }
.edit-order { margin-top: 14px; border: 0; background: none; padding: 0; color: var(--red); font-family: BruchiAvenirBlack, sans-serif; font-size: 14px; cursor: pointer; }
.edit-order:hover { text-decoration: underline; }
.locked { opacity: .55; }

/* phones: sides with a photo show it small on the left of the name and price */
@media (max-width: 640px) {
  .menu-item:not(.has-options):has(> img) { display: grid; grid-template-columns: 88px 1fr; column-gap: 16px; align-items: center; }
  .menu-item:not(.has-options):has(> img) > img { grid-column: 1; grid-row: 1 / span 3; width: 88px; max-width: none; margin: 0; }
  .menu-item:not(.has-options):has(> img) > :not(img):not(.item-badge) { grid-column: 2; }
  .menu-item:not(.has-options):has(> img) .row { padding-top: 10px; }
}
