/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--gray-bg);
  transition: all 0.3s ease;
}
/* shrink state */
.site-header.scrolled {
  height: 70px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* =========================
   SPECIALS BANNER 
========================= */
#daily-special-banner {
  overflow: hidden;
  height: 30px;
  line-height: 25px;
  border-top: 2px solid var(--border-gold);
  border-bottom: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: ticker 45s linear infinite;
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@keyframes ticker {
  from {
    transform: translate3d(0,0,0);
  }
  to {
    transform: translate3d(-50%,0,0);
  }
}
#daily-special-banner:hover .ticker-track {
  animation-play-state: paused;
}
/* =========================
   TOP ROW
======================== */
.nav-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}
.site-header.scrolled .nav-top {
  position: absolute;
  left: 0;
  top: 20px;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 2rem;
}
/* brand */
.brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text);
  transition: all 0.3s ease;
}
.site-header.scrolled .brand {
  font-size: 1.4rem;
}
/* =========================
   HAMBURGER → X
========================= */
.menu-toggle {
  position: absolute;
  right: 2rem;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}
/* bars */
.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--dark-text);
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
/* animated X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}
/* =========================
   NAV LINKS
========================= */
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}
.nav-bar a:hover {
  text-decoration: underline;
  color: var(--accent-red);
}
.site-header.scrolled .nav-bar {
  position: absolute;
  right: 0;
  top: 25px;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 2rem;
}
/* =========================
   MOBILE MENU 
========================= */
@media (max-width: 900px) {
  /* =========================
     TOP ROW RESET 
  ========================= */
  .nav-top {
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
  }
  .site-header.scrolled .nav-top {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 0.5rem 1.25rem;
    justify-content: space-between;
  }
  .brand {
    font-size: 1.25rem;
  }
  .site-header.scrolled .brand {
    font-size: 1.05rem;
  }
  /* =========================
     HAMBURGER
  ========================= */

  .menu-toggle {
    display: block;
    position: relative;
    right: auto;
  }

  /* =========================
     NAV MENU
  ========================= */

  .nav-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);

    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }
  .site-header.scrolled .nav-bar {
    position: absolute;
    top: 100%;
    right: auto;
    width: 100%;
    justify-content: center;
    padding: 0;
  }
  .nav-bar.open {
    max-height: 300px;
    padding: 1rem 0;
  }
}
/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--ash);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}
.footer-content {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.footer-info {
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-icon {
  width: 22px;
  height: 22px;
  fill: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.social-icon:hover {
  transform: scale(1.15);
}
.footer-copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}
/* =========================
   CHAT WIDGET
========================= */
#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
}
/* TOGGLE */
#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#chat-widget.open #chat-toggle {
  opacity: 0;
  pointer-events: none;
}
/* WINDOW */
#chat-window {
  position: relative;
  overflow: visible;
  display: none;
  width: 340px;
  height: 480px;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  flex-direction: column;
}
#chat-widget.open #chat-window {
  display: flex;
}
/* MASCOT CONTAINER */
#chatbot-mascot {
  position: absolute;
  top: -25vh;
  right: 30px;
  z-index: 10;
  pointer-events: none;
}
/* IMAGE */
#chatbot-mascot img {
  height: 25vh;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}
/* HEADER */
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--red);
  color: white;
  font-weight: bold;
}
#chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
/* BODY */
#chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
/* MESSAGES */
.message {
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  max-width: 75%;
  font-size: 0.9rem;
}
.message.user {
  background: var(--green);
  color: white;
  align-self: flex-end;
}
.message.bot {
  background: white;
  border: 1px solid #eee;
}
/* ACTION BUTTON */
#chatbot-actions {
  padding: 8px;
}
#live-agent-btn {
  width: 100%;
  background: var(--border-gold);
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}
#live-agent-btn:hover {
  background: #d4a437;
}
/* INPUT AREA */
#chatbot-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #ddd;
  background: white;
}
#userInput {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}
#sendBtn {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s ease;
}
#sendBtn:hover {
  transform: scale(1.1);
}
/* =========================
   HANDOFF STATES
========================= */
/* Hide chatbot when handing off */
#chat-widget.handoff {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}
/* DEFAULT: hide Reamaze HARD */
#reamaze-widget,
.reamaze-widget-button {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
/* WHEN ACTIVE: override the inline hide */
body.live-chat-active #reamaze-widget,
body.live-chat-active .reamaze-widget-button {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
  z-index: 3000;
}
/* RETURN BUTTON */
#return-to-bot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--border-gold);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  z-index: 3001;
}
#return-to-bot.visible {
  display: block;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  #chat-window {
    width: 90vw;
    height: 70vh;
  }
  
}
