:root {
    --red: #c0392b;
    --red-dark: #962d22;
    --cream: #f5e6c8;
    --tan: #e8d4a8;
    --dark: #0d0d0d;
    --dark2: #1a1a1a;
    --brown: #2a1a0e;
    --text: #f0e6d3;
    --gold: #d4a017;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Lato', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* ── HEADER ── */
  header {
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--red);
    /* allow the logo to overflow below */
    overflow: visible;
  }
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
    overflow: visible;
  }
  .header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    /* creates the overhang container */
  }

  /* THE OVERHANG LOGO — sits in normal flow but extends below header */
  .header-logo-wrap {
    position: relative;
    width: 90px;
    height: 72px; /* same as header */
    flex-shrink: 0;
  }
  .header-logo-wrap img {
    position: absolute;
    top: -10px;          /* peek above header */
    left: -20px;
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7));
    z-index: 200;
    pointer-events: none;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
  }

  .header-brand-text strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 1px;
  }
  .header-brand-text span {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  nav { display: flex; gap: 6px; align-items: center; }
  nav a {
    color: #aaa;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 10px;
    transition: color 0.2s;
  }
  nav a:hover { color: var(--cream); }
  .btn-order-nav {
    background: var(--red);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    transition: background 0.2s !important;
  }
  .btn-order-nav:hover { background: var(--red-dark) !important; }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--brown);
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.18) 0%, transparent 60%),
      url('https://krowdimg.b-cdn.net/clients/joes-pizza-whitesboro/pizza.png') center/cover no-repeat;
    filter: brightness(0.35) saturate(1.2);
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 40%, rgba(42,26,14,0.7) 100%);
  }
  .hero-checker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background-image: repeating-conic-gradient(var(--red) 0% 25%, transparent 0% 50%);
    background-size: 24px 24px;
    opacity: 0.6;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
  }
  .hero-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }
  .hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
  }
  .hero h1 span { color: var(--red); }
  .hero-sub {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #ccc;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
  }
  .btn-primary {
    background: var(--red);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(192,57,43,0.4);
  }
  .btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192,57,43,0.5);
  }
  .btn-outline {
    background: transparent;
    color: var(--cream);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 2px solid rgba(245,230,200,0.4);
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s;
  }
  .btn-outline:hover {
    border-color: var(--cream);
    background: rgba(245,230,200,0.08);
  }

  /* ── SECTION BASE ── */
  section { position: relative; z-index: 1; }
  .section-header {
    text-align: center;
    margin-bottom: 48px;
  }
  .section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
  }
  .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cream);
    line-height: 1;
  }
  .section-title span { color: var(--red); }
  .divider {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 16px auto 0;
    border-radius: 2px;
  }

  /* ── TICKER ── */
  .specials-banner {
    background: var(--red);
    padding: 18px 0;
    overflow: hidden;
    position: relative;
  }
  .specials-ticker {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
  }
  .specials-ticker span {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    flex-shrink: 0;
  }
  .specials-ticker span::before { content: '★ '; color: var(--gold); }
  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ── ABOUT ── */
  .about {
    background: #111;
    padding: 80px 20px;
  }
  .about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  @media (max-width: 768px) {
    .about-inner { grid-template-columns: 1fr; }
    nav { display: none; }
  }
  .about-img {
    grid-column: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
  }
  .about-img img, .about-img2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .about-img:hover img, .about-img2:hover img { transform: scale(1.05); }
  .about-img2 {
    grid-column: 3;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
  }
  .about-text {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
  .about-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.1;
  }
  .about-text h2 span { color: var(--red); }
  .about-text p { color: #aaa; line-height: 1.7; font-size: 0.95rem; margin-bottom: 12px; }

  /* ── GALLERY ── */
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
  }
  @media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
  .gallery-item { overflow: hidden; }
  .gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
    filter: brightness(0.85) saturate(1.1);
    display: block;
  }
  .gallery-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.3); }

  /* ── MENU ── */
  .menu-section {
    background: #0f0f0f;
    padding: 80px 20px;
  }
  .menu-inner { max-width: 1100px; margin: 0 auto; }
  .menu-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
  }
  .tab-btn {
    background: #1c1c1c;
    color: #888;
    border: 1px solid #333;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
  }
  .tab-btn:hover { color: var(--cream); border-color: #555; }
  .tab-btn.active { background: var(--red); color: white; border-color: var(--red); }
  .menu-panel { display: none; }
  .menu-panel.active { display: block; }
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
  }
  .menu-item {
    background: #151515;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
  }
  .menu-item:hover { background: #1e1e1e; }
  .menu-item-name { font-weight: 700; font-size: 0.9rem; color: var(--cream); flex: 1; line-height: 1.3; }
  .menu-item-desc { font-size: 0.78rem; color: #666; margin-top: 3px; font-style: italic; }
  .menu-item-price { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1rem; color: var(--gold); flex-shrink: 0; }
  .menu-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
  }
  .menu-category-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 20px 20px 8px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 2px;
  }

  /* ── HOURS ── */
  .hours-section { background: #111; padding: 80px 20px; }
  .hours-inner { max-width: 900px; margin: 0 auto; }
  .hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  @media (max-width: 640px) { .hours-grid { grid-template-columns: 1fr; } }
  .hours-card { background: #161616; border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; }
  .hours-card-header {
    background: var(--red);
    padding: 14px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
  }
  .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 20px;
    border-bottom: 1px solid #222;
    font-size: 0.88rem;
  }
  .hours-row:last-child { border-bottom: none; }
  .hours-row .day { color: #999; font-weight: 700; }
  .hours-row .time { color: var(--cream); }
  .hours-row .closed { color: #555; }
  .hours-row.today { background: rgba(192,57,43,0.08); }
  .hours-row.today .day { color: var(--gold); }

  /* ── ORDER CTA ── */
  .cta-section {
    background: var(--brown);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://krowdimg.b-cdn.net/clients/joes-pizza-whitesboro/pizza3.png') center/cover no-repeat;
    opacity: 0.1;
    filter: saturate(0.5);
  }
  .cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
  .cta-inner h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1;
  }
  .cta-inner h2 span { color: var(--red); }
  .cta-inner p { color: #aaa; margin-bottom: 32px; font-size: 1rem; line-height: 1.6; }

  /* ── CONTACT ── */
  .contact-section { background: #0a0a0a; padding: 80px 20px; }
  .contact-inner {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  @media (max-width: 640px) { .contact-inner { grid-template-columns: 1fr; } }
  .contact-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 24px;
  }
  .contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .contact-icon {
    width: 40px; height: 40px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
  }
  .contact-item-text strong { display: block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 3px; }
  .contact-item-text a, .contact-item-text span { color: var(--cream); text-decoration: none; font-size: 0.95rem; line-height: 1.4; }
  .contact-item-text a:hover { color: var(--red); }
  .map-embed { border-radius: 8px; overflow: hidden; border: 1px solid #2a2a2a; }
  .map-embed iframe { width: 100%; height: 280px; border: none; display: block; filter: grayscale(80%) invert(90%) contrast(90%); }

  /* ── FOOTER ── */
  footer { background: #050505; border-top: 3px solid #1a1a1a; padding: 32px 20px; text-align: center; }
  .footer-logo img { height: 60px; margin-bottom: 16px; opacity: 0.8; }
  footer p { color: #444; font-size: 0.8rem; line-height: 1.6; }
  .footer-checker { height: 8px; background-image: repeating-conic-gradient(#1a1a1a 0% 25%, #111 0% 50%); background-size: 16px 16px; margin-bottom: 24px; }

  /* ───────────────────────────────────────────
     CHAT BUBBLE — big, bold, unmissable
  ─────────────────────────────────────────── */
  #chat-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  /* Welcome pop-up tooltip */
  #chat-tooltip {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px 16px 4px 16px;
    padding: 14px 18px;
    max-width: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative;
    animation: tooltipIn 0.5s 1.5s both;
    cursor: pointer;
  }
  #chat-tooltip p {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    color: var(--cream);
    line-height: 1.5;
    margin: 0;
  }
  #chat-tooltip strong { color: var(--gold); }
  #chat-tooltip-close {
    position: absolute;
    top: 6px; right: 10px;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
  }
  #chat-tooltip-close:hover { color: #aaa; }
  @keyframes tooltipIn {
    from { opacity: 0; transform: translateY(12px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* The big round button */
  #chat-bubble-btn {
    width: 110px;
    height: 110px;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    overflow: visible;
  }
  #chat-bubble-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 40px rgba(192,57,43,0.65);
  }
  #chat-bubble-btn img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: absolute;
    top: -10px;
    left: -10px;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    pointer-events: none;
  }
  @keyframes bubblePulse {
    0%, 100% { box-shadow: 0 6px 28px rgba(192,57,43,0.45), 0 0 0 0 rgba(192,57,43,0.3); }
    50%       { box-shadow: 0 6px 28px rgba(192,57,43,0.45), 0 0 0 12px rgba(192,57,43,0); }
  }

  /* Chat window */
  #chat-window {
    position: fixed;
    bottom: 134px;
    right: 28px;
    width: 370px;
    height: 530px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
    flex-direction: column;
    background: #111;
    border: 1px solid #2a2a2a;
    animation: chatSlideIn 0.3s ease;
  }
  #chat-window.open { display: flex; }
  @keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @media (max-width: 480px) {
    #chat-window { width: calc(100vw - 20px); right: 10px; bottom: 120px; height: 70vh; }
    #chat-bubble-btn { width: 76px; height: 76px; }
    #chat-bubble-btn img { width: 92px; height: 92px; }
  }
  .chat-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .chat-header-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: rgba(255,255,255,0.15); padding: 2px; }
  .chat-header-info strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700; color: white; letter-spacing: 1px; }
  .chat-header-info span { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
  .chat-online-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; display: inline-block; margin-right: 4px; }
  .chat-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.3rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: color 0.2s; }
  .chat-close:hover { color: white; }
  .chat-body { flex: 1; overflow: hidden; }
  .chat-body iframe { width: 100%; height: 100%; border: none; display: block; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

#chat-bubble-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }