@charset "UTF-8";
/* ==========================================================================
   Fat Boys Street Eats — "Install our app" prompt

   Loaded on every page. Inherits the design tokens from main.css; the few
   fallbacks below are only so this file still renders sanely on its own.
   ========================================================================== */

:root {
  --pwa-radius: 22px;
  --pwa-ease: cubic-bezier(.22, .68, .32, 1);
}

.pwa {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(10, 13, 15, .66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--pwa-ease), visibility .3s var(--pwa-ease);
  overscroll-behavior: contain;
}
.pwa.is-open { opacity: 1; visibility: visible; }

.pwa__card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--paper, #fff);
  color: var(--text, #232a30);
  border-radius: var(--pwa-radius);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55);
  text-align: center;
  transform: translateY(18px) scale(.95);
  opacity: 0;
  transition: transform .36s var(--pwa-ease), opacity .36s var(--pwa-ease);
}
.pwa.is-open .pwa__card { transform: none; opacity: 1; }

/* The same awning artwork the page headers use. --awning-tile comes from
   main.css; the url() above it is the fallback if this file loads alone. */
.pwa__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  border-radius: var(--pwa-radius) var(--pwa-radius) 0 0;
  background-image: url("/images/decor/awning-tile.png");
  background-image: var(--awning-tile);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 100%;
}

.pwa__body { padding: 3.3rem clamp(1.3rem, 1rem + 2vw, 2.1rem) clamp(1.4rem, 1rem + 2vw, 2rem); }

.pwa__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
  display: block;
  border-radius: 22px;
  box-shadow: 0 10px 26px -10px rgba(20, 24, 27, .45);
}

.pwa__logo {
  display: block;
  width: min(190px, 62%);
  height: auto;
  margin: 0 auto .9rem;
}

.pwa__title {
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
  line-height: 1.2;
  color: var(--heading, #14181b);
  margin: 0 0 .5rem;
}

.pwa__text {
  color: var(--slate, #56636d);
  font-size: .97rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
}

.pwa__perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
  display: grid;
  gap: .55rem;
}
.pwa__perks li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
  color: var(--slate, #56636d);
  margin: 0;
}
.pwa__perks svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--cyan-dark, #12909a);
}

.pwa__actions { display: grid; gap: .6rem; }

.pwa__install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  width: 100%;
  min-height: 52px;
  padding: 1em 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--red, #e11d2a);
  color: #fff;
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(225, 29, 42, .7);
  transition: transform .25s var(--pwa-ease), box-shadow .25s var(--pwa-ease),
              background-color .25s var(--pwa-ease);
}
.pwa__install svg { width: 1.2em; height: 1.2em; flex: none; }
.pwa__install:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(225, 29, 42, .75); }
.pwa__install:active { transform: none; }

/* A slow pulse draws the eye without being a strobe. */
@media (prefers-reduced-motion: no-preference) {
  .pwa.is-open .pwa__install { animation: pwa-pulse 2.6s ease-in-out 1.2s infinite; }
}
@keyframes pwa-pulse {
  0%, 100% { box-shadow: 0 14px 30px -12px rgba(225, 29, 42, .7), 0 0 0 0 rgba(225, 29, 42, .45); }
  50%      { box-shadow: 0 14px 30px -12px rgba(225, 29, 42, .7), 0 0 0 14px rgba(225, 29, 42, 0); }
}

.pwa__later {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted, #78858f);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: color .25s var(--pwa-ease), background-color .25s var(--pwa-ease);
}
.pwa__later:hover { color: var(--ink, #14181b); background: rgba(20, 24, 27, .05); }

.pwa__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 27, .08);
  color: var(--ink, #14181b);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s var(--pwa-ease), transform .25s var(--pwa-ease);
}
.pwa__close:hover { background: var(--red, #e11d2a); color: #fff; transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   Persistent triggers in the page (drawer + footer).
   `hidden` is honoured explicitly because .btn sets display:inline-flex,
   which would otherwise override the attribute's default styling.
   -------------------------------------------------------------------------- */

[data-pwa-trigger][hidden] { display: none !important; }

.pwa-trigger {
  margin-top: .6rem;
  background: var(--cyan, #22bcc6);
}

.footer-install {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 0;
  border: 0;
  background: none;
  color: #d6dde2;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  text-align: left;
}
.footer-install:hover { color: var(--gold, #ffc72c); }
.footer-install svg { width: 16px; height: 16px; color: var(--cyan, #22bcc6); flex: none; }

/* --------------------------------------------------------------------------
   Manual instructions, for browsers with no beforeinstallprompt (iOS Safari,
   desktop Safari, Firefox). Hidden until the script decides they are needed.
   -------------------------------------------------------------------------- */

.pwa__steps {
  display: none;
  text-align: left;
  background: var(--cyan-soft, #e6f9fb);
  border: 1px solid rgba(34, 188, 198, .35);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.3rem;
}
.pwa.is-manual .pwa__steps { display: block; }
.pwa.is-manual .pwa__install { display: none; }

.pwa__steps-title {
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-darker, #0b6e76);
  margin: 0 0 .6rem;
}
.pwa__steps ol { margin: 0; padding-left: 1.2rem; }
.pwa__steps li { font-size: .92rem; line-height: 1.6; margin-bottom: .35rem; color: var(--ink-3, #2b3238); }
.pwa__steps li:last-child { margin-bottom: 0; }

/* The iOS share glyph, so "tap Share" is unambiguous */
.pwa__glyph {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -.28em;
  margin: 0 .1em;
  color: #007aff;
}
.pwa__glyph svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  .pwa__card {
    background: #1b2126;
    color: #d8dee3;
  }
  .pwa__title { color: #fff; }
  .pwa__text, .pwa__perks li { color: #9aa6ae; }
  .pwa__close { background: rgba(255, 255, 255, .1); color: #fff; }
  .pwa__later { color: #8e9aa2; }
  .pwa__later:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .pwa__steps {
    background: rgba(34, 188, 198, .1);
    border-color: rgba(34, 188, 198, .3);
  }
  .pwa__steps-title { color: #5fd4dc; }
  .pwa__steps li { color: #c3ccd2; }
}

/* --------------------------------------------------------------------------
   Small phones
   -------------------------------------------------------------------------- */

@media (max-width: 420px) {
  .pwa { padding: .75rem; }
  .pwa__body { padding-top: 3rem; }
  .pwa__icon { width: 76px; height: 76px; }
  .pwa__install { font-size: .84rem; letter-spacing: .05em; white-space: normal; }
}

/* Short viewports (small phones, landscape) — the app icon and the wordmark
   say the same thing, so drop the icon and tighten the spacing rather than
   making the card scroll internally. */
@media (max-height: 720px) {
  .pwa__icon { display: none; }
  .pwa__body { padding-top: 2.9rem; padding-bottom: 1.3rem; }
  .pwa__logo { width: min(165px, 55%); margin-bottom: .7rem; }
  .pwa__text { margin-bottom: 1.1rem; font-size: .93rem; }
  .pwa__perks { gap: .4rem; margin-bottom: 1.1rem; }
  .pwa__steps { margin-bottom: 1.1rem; padding: .85rem .95rem; }
}

/* Very short / landscape phones: perks are the first thing to go. */
@media (max-height: 560px) {
  .pwa__perks { display: none; }
  .pwa__logo { width: min(140px, 48%); }
}

@media (prefers-reduced-motion: reduce) {
  .pwa, .pwa__card { transition-duration: .001ms; }
  .pwa__card { transform: none; }
}
