/* Firexel Food Truck Mobile Interface System */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #666666;
  --primary: #111111;
  --accent: #f5c400;
  --accent-2: #f15a24;
  --button-text: #111111;
  --shadow: 0 20px 60px rgba(0, 0, 0, .18);
  --radius: 28px;
  --map-filter: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ececec;
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.phone-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 18rem),
    linear-gradient(to bottom, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg) 42%);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.app-header {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.hero {
  min-height: 510px;
  padding: 24px 24px 18px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .12), rgba(0, 0, 0, .18) 30%, var(--bg) 88%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.truck-image {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(398px, 94%);
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, .52));
  z-index: 1;
}

.logo-wrap {
  position: relative;
  z-index: 2;
  margin: 0 auto auto;
  width: min(330px, 92%);
  padding-top: 10px;
}

.logo-image {
  display: none;
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .65));
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 118px;
  padding: 18px;
  border: 3px solid var(--accent);
  border-radius: 20px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 2.45rem;
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.06em;
  text-transform: uppercase;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
}

.has-logo .logo-image {
  display: block;
}

.has-logo .logo-fallback {
  display: none;
}

.tagline {
  display: none;
}

.main-actions {
  padding: 16px 24px 18px;
  display: grid;
  gap: 12px;
  background: var(--bg);
}

.action-btn {
  min-height: 72px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--button-text);
  display: grid;
  grid-template-columns: 58px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #fff 12%);
}

.action-btn .icon {
  font-size: 28px;
}

.action-btn .arrow {
  font-size: 32px;
  line-height: 1;
}

.section {
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.section-title {
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .04em;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.social-icon svg,
.social-icon img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
}

.footer {
  padding: 22px 24px 34px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  font-size: .95rem;
  letter-spacing: .01em;
}

.footer span {
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  font-weight: 950;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 18%, transparent), transparent 18rem),
    var(--bg);
  padding: 22px 18px 28px;
}

.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 4px 0 12px;
  background: linear-gradient(to bottom, var(--bg) 74%, transparent);
}

.page-title {
  color: var(--accent);
  font-size: 2.35rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -.055em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.featured-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.featured-card-content {
  padding: 12px 10px 14px;
  text-align: center;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
}

.featured-card h3 {
  font-size: .95rem;
  margin-bottom: 4px;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.price {
  color: var(--accent);
  font-weight: 950;
}

.menu-category {
  margin: 30px 0 12px;
  color: var(--accent-2);
  font-size: 1.45rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.menu-category::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin: 8px auto 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--text) 24%, transparent);
}

.menu-item h3 {
  font-size: 1.04rem;
  margin-bottom: 4px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.menu-item p {
  color: var(--muted);
  font-size: .9rem;
}

.sticky-call {
  position: sticky;
  bottom: 14px;
  margin-top: 28px;
  min-height: 62px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #fff 12%);
}

.map-box {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  margin-bottom: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
  background: var(--surface);
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 310px;
  border: 0;
  filter: var(--map-filter, none);
}

.address-card,
.hours-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, var(--accent)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.hours-row:last-child {
  border-bottom: 0;
}

/* Basic Tier */

body.tier-basic {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #111111;
  --muted: #666666;
  --primary: #111111;
  --accent: #111111;
  --accent-2: #444444;
  --button-text: #ffffff;
}

body.tier-basic .hero {
  min-height: 420px;
}

body.tier-basic .footer span {
  color: var(--muted);
}

body.tier-basic .footer a {
  color: var(--text);
}

body.tier-basic .business-only {
  display: none !important;
}

@media (min-width: 520px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    min-height: calc(100vh - 48px);
    border-radius: 34px;
    box-shadow: var(--shadow);
  }
}


/* El Tio Chico readability + white truck-body direction */
body.theme-ft-custom .phone-shell {
  background: #ffffff;
}

body.theme-ft-custom .hero {
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.34) 45%, rgba(255,255,255,.98) 94%),
    linear-gradient(to bottom, #8C1D22 0%, #8C1D22 36%, #ffffff 36%, #ffffff 100%);
}

body.theme-ft-custom .main-actions,
body.theme-ft-custom .section,
body.theme-ft-custom .page,
body.theme-ft-custom .footer {
  background: #ffffff;
}

body.theme-ft-custom .section-title,
body.theme-ft-custom .page-title {
  color: #8C1D22;
  text-shadow: none;
}

body.theme-ft-custom .menu-category {
  color: #1F5DBB;
}

body.theme-ft-custom .menu-category::after {
  background: #F2D95C;
}

body.theme-ft-custom .action-btn,
body.theme-ft-custom .sticky-call,
body.theme-ft-custom .round-icon {
  background: #8C1D22;
  color: #ffffff;
}

body.theme-ft-custom .featured-card,
body.theme-ft-custom .address-card,
body.theme-ft-custom .hours-card,
body.theme-ft-custom .map-box {
  background: #f8f8f8;
  border-color: rgba(140,29,34,.28);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

body.theme-ft-custom .price {
  color: #8C1D22;
}

body.theme-ft-custom .menu-item {
  border-bottom-color: rgba(22,22,22,.18);
}

body.theme-ft-custom .footer a {
  color: #8C1D22;
}


.directions-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .025em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

body.theme-ft-custom .directions-btn {
  background: #1F5DBB;
  color: #ffffff;
}
