/*
Theme Name:  Gus's Drive-In Child
Theme URI:   https://gussdrivein.com
Description: Child theme for Gus's Drive-In — GeneratePress base
Author:      Anthony Biondi
Template:    generatepress
Version:     1.0.0
*/

/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  /* Palette */
  --color-red:       #AF242D;
  --color-red-dark:  #8a1a21;
  --color-navy:      #27396A;
  --color-navy-dark: #1a2648;
  --color-amber:     #E8A020;
  --color-amber-dark:#C47E10;
  --color-cream:     #FDF4E3;
  --color-cream-mid: #fff8ee;
  --color-espresso:  #1A0F08;
  --color-brown:     #5C3D20;
  --color-white:     #FBFAFA;
  --color-black:     #08080f;

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-script:   'Permanent Marker', cursive;
  --font-body:     'Nunito', sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  64px;
  --space-2xl: 96px;

  /* Layout */
  --content-max: 1100px;
  --content-pad: clamp(16px, 4vw, 40px);

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-cream);
  color: var(--color-espresso);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(42px, 8vw, 72px); }
h2 { font-size: clamp(32px, 6vw, 52px); }
h3 { font-size: clamp(24px, 4vw, 36px); }
h4 { font-size: clamp(18px, 3vw, 26px); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 4px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: var(--space-xl);
}

.section--sm {
  padding-block: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  line-height: 1;
}

.btn:active { transform: translateY(1px); }

/* Red button */
.btn--red {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 4px 0 var(--color-red-dark);
}
body .btn--red:hover,
body a.btn--red:hover {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 4px 0 #c0b8b8;
  transform: translateY(-1px);
  filter: none;
}

/* Amber button */
.btn--amber {
  background: var(--color-amber);
  color: var(--color-espresso);
  border-color: var(--color-amber);
  box-shadow: 0 4px 0 var(--color-amber-dark);
}
body .btn--amber:hover,
body a.btn--amber:hover {
  background: var(--color-espresso);
  color: var(--color-amber);
  border-color: var(--color-amber);
  box-shadow: 0 4px 0 #000;
  transform: translateY(-1px);
  filter: none;
}

/* White button */
.btn--white {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
  box-shadow: 0 4px 0 #c0b8b8;
}
body .btn--white:hover,
body a.btn--white:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: 0 4px 0 var(--color-red-dark);
  transform: translateY(-1px);
  filter: none;
}

/* Ghost button */
.btn--ghost {
  background: transparent;
  border: 2px solid currentColor;
}
body .btn--ghost:hover,
body a.btn--ghost:hover {
  background: currentColor;
  color: var(--color-white);
  transform: translateY(-1px);
  filter: none;
}

/* ============================================================
   ANNOUNCEMENT CARDS
   ============================================================ */
.announcement-card {
  display: flex;
  align-items: stretch;
  background: var(--color-cream-mid);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-navy);
  box-shadow: 0 2px 8px rgba(39,57,106,0.10);
  margin-bottom: 10px;
  overflow: hidden;
}

.announcement-card__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.announcement-card__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-navy);
  margin-bottom: 5px;
}

.announcement-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-espresso);
  margin-bottom: 3px;
}

.announcement-card__body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brown);
  line-height: 1.5;
}

.announcement-card__date {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  color: rgba(0,0,0,0.25);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* ============================================================
   MENU CARDS
   ============================================================ */
.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.menu-card--red { background: var(--color-red); }

.menu-card__emoji { font-size: 2rem; margin-bottom: 6px; display: block; }

.menu-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--color-white);
  display: block;
}

.menu-card--red .menu-card__title { color: var(--color-amber); }

.menu-card__sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  margin-top: 3px;
  display: block;
}

/* ============================================================
   INFO BAR (hours / location / phone)
   ============================================================ */
.info-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-red);
}

.info-bar__cell {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.info-bar__cell:last-child { border-right: none; }

.info-bar__icon  { font-size: 1.3rem; margin-bottom: 3px; }
.info-bar__label { font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 3px; }
.info-bar__value { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--color-white); }
.info-bar__value a { color: var(--color-white); text-decoration: none; }

/* ============================================================
   FLAVOR STRIP
   ============================================================ */
.flavor-strip {
  background: var(--color-amber);
  border-bottom: 3px solid var(--color-amber-dark);
  padding: 14px var(--content-pad);
}

.flavor-strip__text {
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--color-espresso);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.flavor-strip__badge {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin: 0 8px;
}

.flavor-strip__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy);
  text-decoration: underline;
}

/* ============================================================
   STRIPE DIVIDER
   ============================================================ */
.stripe-divider {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-navy) 0px,
    var(--color-navy) 10px,
    var(--color-red) 10px,
    var(--color-red) 20px
  );
}

/* ============================================================
   HOURS TABLE
   ============================================================ */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.hours-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hours-table tr.closed { opacity: 0.55; }

.hours-table td {
  padding: 8px 4px;
  font-size: 14px;
}

.hours-table td:first-child { font-weight: 800; color: var(--color-navy); }
.hours-table td:last-child  { font-weight: 600; color: var(--color-brown); text-align: right; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.bg-cream     { background-color: var(--color-cream); }
.bg-cream-mid { background-color: var(--color-cream-mid); }
.bg-navy      { background-color: var(--color-navy); }
.bg-navy-dark { background-color: var(--color-navy-dark); }
.bg-red       { background-color: var(--color-red); }
.bg-espresso  { background-color: var(--color-espresso); }
.bg-black     { background-color: var(--color-black); }
.color-white  { color: var(--color-white); }
.color-amber  { color: var(--color-amber); }
.color-navy   { color: var(--color-navy); }
.color-red    { color: var(--color-red); }

/* ============================================================
   GENERATEPRESS OVERRIDES
   ============================================================ */
.site-header { display: none; }

body .generate-columns-container { max-width: none; }

.site-main,
.entry-content,
.page-content,
#primary,
#content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   NAV — ORDER ONLINE BUTTON
   ============================================================ */
.site-nav__order-btn {
  display: inline-block;
  background: var(--color-amber);
  color: var(--color-espresso);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  margin-left: 16px;
}

.site-nav__order-btn:hover {
  background: var(--color-espresso);
  color: var(--color-amber);
  text-decoration: none;
}

/* ============================================================
   MOBILE — ORDER ONLINE FLOATING BUTTON
   ============================================================ */
.order-float {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9000;
  background: var(--color-amber);
  color: var(--color-espresso);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.order-float:hover {
  background: var(--color-espresso);
  color: var(--color-amber);
  transform: scale(1.04);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-nav__order-btn { display: none; }
  .order-float { display: block; }
}

@media (min-width: 769px) {
  .order-float { display: none; }
}

/* ============================================================
   MUFFLER MAN — Persistent character widget
   ============================================================ */
#gus-mm-wrap {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  pointer-events: none;
}

#gus-mm-bubble {
  pointer-events: all;
  cursor: pointer;
  position: relative;
  background: var(--color-cream);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding: 10px 13px;
  width: 185px;
  margin-left: -80px;
  margin-bottom: 8px;
  box-shadow: 3px 3px 0 var(--color-navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#gus-mm-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 var(--color-navy);
}

#gus-mm-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 32px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-navy);
}

#gus-mm-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 33px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--color-cream);
  z-index: 1;
}

#gus-mm-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  margin: 0 0 6px;
  min-height: 34px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#gus-mm-text.gus-mm-fade {
  opacity: 0;
}

.gus-mm-cta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
}

#gus-mm-img {
  pointer-events: all;
  cursor: pointer;
  width: 110px;
  height: auto;
  display: block;
  transform-origin: bottom center;
  animation: gus-sway 4s ease-in-out infinite;
  filter: drop-shadow(2px 4px 12px rgba(0,0,0,0.35));
}

@keyframes gus-sway {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(0.7deg); }
  75%       { transform: rotate(-0.7deg); }
}

@media (prefers-reduced-motion: reduce) {
  #gus-mm-img { animation: none; }
}

@media (max-width: 768px) {
  #gus-mm-wrap {
    right: 8px;
    /* bottom: 80px;  clears the order-float button */
  }

  #gus-mm-img {
    width: 70px;
  }

  #gus-mm-bubble {
    width: 145px;
    margin-left: -85px;
    padding: 8px 10px;
  }

  #gus-mm-text {
    font-size: 11px;
    min-height: 28px;
  }

  .gus-mm-cta {
    font-size: 9px;
  }
}