/* FiveBuy brand layer. Loaded after the compiled stylesheet, so it needs no rebuild.
   To undo all of it: delete the <link> to this file in components/layouts/app.blade.php. */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree Variable";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  --fb-display: "Bricolage Grotesque Variable", "Arial Narrow", Arial, sans-serif;
  --fb-body: "Figtree Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fb-paper: #f5f2eb;
  --fb-paper-2: #ebe6da;
  --fb-ink: #12151c;
  --fb-ink-2: #3a404e;
  --fb-ink-3: #5e6370;
  --fb-rule: #d9d3c5;
  --fb-clay: #b3441f;
  --fb-steel: #2f5677;
  --fb-night: #14171f;
  --fb-night-ink: #ece9e1;

  /* The site's blue scale, taken from the logo (steel blue). Replaces the violet. */
  --color-brand-50: #eef3f8;  --color-brand-100: #dce6f0; --color-brand-200: #bdd0e2;
  --color-brand-300: #93b2cf; --color-brand-400: #6590b8; --color-brand-500: #44729c;
  --color-brand-600: #2f5677; --color-brand-700: #264660; --color-brand-800: #1e364b;
  --color-brand-900: #17283a; --color-brand-950: #0f1b28;
}
.dark {
  --fb-paper: #0e1117; --fb-paper-2: #171b24; --fb-ink: #ece9e1; --fb-ink-2: #c4c0b5;
  --fb-ink-3: #94918a; --fb-rule: #2a303c; --fb-clay: #e58557; --fb-steel: #8db4d6;
  --fb-night: #171b24; --fb-night-ink: #ece9e1;
}

html, body { font-family: var(--fb-body); }
h1, h2, h3, h4, .font-display { font-family: var(--fb-display); letter-spacing: -0.02em; }
.eyebrow { display: none; }                       /* no small label above every headline */

.btn-primary { background: var(--color-brand-600); color: #fff; }
.btn-primary:hover { background: var(--color-brand-700); }
.btn-accent { background: var(--fb-clay); color: #fff; }
.btn-accent:hover { background: #983a1a; }

/* ---------- home ---------- */
.fb-home { overflow-x: clip; background: var(--fb-paper); color: var(--fb-ink); font-family: var(--fb-body); font-size: 1rem; line-height: 1.55; }
.fb-home *, .fb-home *::before, .fb-home *::after { box-sizing: border-box; }
.fb-home a { color: inherit; text-decoration: none; }
.fb-split > * { min-width: 0; }
.fb-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.fb-num { font-variant-numeric: tabular-nums; }
.fb-muted { color: var(--fb-ink-3); }

.fb-hero { padding: 3.5rem 0 0; border-bottom: 1px solid var(--fb-rule); }
.fb-h1 { font-family: var(--fb-display); font-weight: 750; font-size: clamp(2.2rem, 6.3vw, 4.8rem); line-height: .98; letter-spacing: -0.04em; margin: 0; }
.fb-h1 span { display: block; }
.fb-h1 .fb-clay { color: var(--fb-clay); }
.fb-lede { margin: 1.5rem 0 0; max-width: 38rem; font-size: 1.15rem; color: var(--fb-ink-2); }

.fb-search { display: flex; flex-wrap: wrap; margin-top: 2rem; max-width: 40rem; border: 1.5px solid var(--fb-ink); border-radius: 6px; overflow: hidden; background: var(--fb-paper); }
.fb-search input, .fb-search select { border: 0; background: transparent; color: var(--fb-ink); font: inherit; padding: .85rem 1rem; outline: none; }
.fb-search input { flex: 1 1 12rem; min-width: 0; }
.fb-search select { border-left: 1.5px solid var(--fb-rule); padding-right: .5rem; }
.fb-search button { border: 0; background: var(--fb-ink); color: var(--fb-paper); font: inherit; font-weight: 600; padding: .85rem 1.4rem; cursor: pointer; }
.fb-search button:hover { background: var(--fb-clay); color: #fff; }
.fb-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-clay) 35%, transparent); }

.fb-quick { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; }
.fb-quick a { border-bottom: 1px solid var(--fb-rule); padding-bottom: 1px; }
.fb-quick a:hover { border-color: var(--fb-clay); color: var(--fb-clay); }

.fb-next { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem 1.75rem; align-items: center; margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid var(--fb-ink); }
.fb-day { font-family: var(--fb-display); font-weight: 750; font-size: 3.6rem; line-height: .85; letter-spacing: -0.04em; color: var(--fb-clay); text-align: center; }
.fb-day small { display: block; margin-top: .35rem; font-family: var(--fb-body); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fb-ink-2); }
.fb-next-title { font-family: var(--fb-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; }
.fb-next-meta { margin-top: .3rem; color: var(--fb-ink-2); }
.fb-pill { display: inline-block; background: var(--fb-ink); color: var(--fb-paper); font-weight: 600; padding: .7rem 1.2rem; border-radius: 6px; white-space: nowrap; }
.fb-next:hover .fb-pill { background: var(--fb-clay); color: #fff; }

.fb-section { padding: 4.25rem 0 0; }
.fb-split { display: grid; gap: 2rem 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .fb-split { grid-template-columns: 19rem 1fr; } .fb-sticky { position: sticky; top: 6rem; align-self: start; } }
.fb-h2 { font-family: var(--fb-display); font-weight: 720; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.fb-sub { margin: .9rem 0 0; color: var(--fb-ink-2); max-width: 32rem; }
.fb-more { display: inline-block; margin-top: 1.1rem; font-weight: 600; border-bottom: 2px solid var(--fb-clay); padding-bottom: 1px; }

.fb-rows { border-top: 1px solid var(--fb-ink); }
.fb-row { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 1rem 1.4rem; align-items: center; padding: 1.05rem .25rem; border-bottom: 1px solid var(--fb-rule); }
.fb-row:hover { background: var(--fb-paper-2); }
.fb-row .fb-day { font-size: 2.3rem; }
.fb-row .fb-day small { font-size: .68rem; }
.fb-row-title { font-family: var(--fb-display); font-weight: 680; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.fb-row-meta { color: var(--fb-ink-3); font-size: .93rem; margin-top: .15rem; }
.fb-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-free-line { margin-top: 1.1rem; color: var(--fb-ink-2); font-size: .95rem; }
.fb-free-line a { border-bottom: 1px solid var(--fb-rule); }
.fb-free-line a:hover { color: var(--fb-clay); border-color: var(--fb-clay); }

.fb-rail { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 1.75rem 0 1rem; margin: 0; scrollbar-width: thin; }
.fb-item { flex: 0 0 14.5rem; scroll-snap-align: start; }
.fb-item img, .fb-ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--fb-paper-2); }
.fb-item:nth-child(3n+2) img, .fb-item:nth-child(3n+2) .fb-ph { aspect-ratio: 1 / 1; }
.fb-item-name { margin-top: .7rem; font-weight: 600; line-height: 1.25; }
.fb-item-meta { color: var(--fb-ink-3); font-size: .9rem; }
.fb-cats { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .95rem; color: var(--fb-ink-2); }
.fb-cats a:hover { color: var(--fb-clay); }

.fb-vrow { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1.25rem; align-items: center; padding: .9rem .25rem; border-bottom: 1px solid var(--fb-rule); }
.fb-vrow:hover { background: var(--fb-paper-2); }
.fb-vrow img, .fb-vrow .fb-ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 4px; }
.fb-vprice { text-align: right; }
.fb-vprice b { font-family: var(--fb-display); font-size: 1.35rem; letter-spacing: -0.02em; }

.fb-stack { display: grid; gap: 1.25rem; }

.fb-sell { margin-top: 5rem; background: var(--fb-night); color: var(--fb-night-ink); padding: 4rem 0; }
.fb-sell .fb-h2 { color: var(--fb-night-ink); max-width: 15ch; }
.fb-sell .fb-sub { color: #bdb9ae; }
.fb-ledger { margin: 0; border-top: 1px solid #3a4050; }
.fb-ledger div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #2c313d; }
.fb-ledger dt { color: #9a968c; font-size: .93rem; }
.fb-ledger dd { margin: 0; }
.fb-ledger b { font-family: var(--fb-display); font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; }
.fb-sell .fb-pill { background: var(--fb-night-ink); color: var(--fb-night); }
.fb-sell .fb-pill:hover { background: var(--fb-clay); color: #fff; }

@media (max-width: 40rem) {
  .fb-hero { padding-top: 2.25rem; }
  .fb-next { grid-template-columns: auto 1fr; }
  .fb-next .fb-pill { grid-column: 1 / -1; text-align: center; }
  .fb-vrow { grid-template-columns: 6rem 1fr; }
  .fb-vprice { grid-column: 2; text-align: left; }
  .fb-ledger div { grid-template-columns: 1fr; gap: .15rem; }
  .fb-section { padding-top: 3.25rem; }
}


/* ---------- the rest of the site ---------- */
/* Everything below restyles the shared parts that every page uses. It only overrides; nothing is removed
   from the app. To undo it, delete from this comment to the end of the file. */

:root {
  --color-accent: var(--fb-ink);               /* Flux buttons and focus rings */
  --color-accent-content: var(--fb-ink);
  --color-accent-foreground: var(--fb-paper);
}

body { background: var(--fb-paper); color: var(--fb-ink); }
header.sticky { background: color-mix(in srgb, var(--fb-paper) 92%, transparent) !important; border-color: var(--fb-rule) !important; }
footer { background: var(--fb-paper) !important; border-color: var(--fb-rule) !important; }

/* no glowing blobs, no gradient backdrops */
[class*="blur-3xl"], [class*="blur-2xl"] { display: none !important; }
[class*="bg-gradient-"] { background-image: none !important; background-color: var(--color-brand-700) !important; }

/* the dark title bands at the top of the events, shop, vehicles and similar pages */
section.bg-ink-950 { background: var(--fb-paper) !important; color: var(--fb-ink) !important; border-bottom: 1px solid var(--fb-rule); }
section.bg-ink-950 h1 { font-weight: 750; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; color: var(--fb-ink) !important; }
section.bg-ink-950 p { color: var(--fb-ink-2) !important; }

/* cards, buttons, chips, inputs: square-ish corners, hairlines, no soft shadows */
.card { background: #fff; border: 1px solid var(--fb-rule); border-radius: 8px; box-shadow: none; }
.dark .card { background: var(--fb-paper-2); }

.btn { border-radius: 6px; font-weight: 600; }
.btn-primary { background: var(--fb-ink); color: var(--fb-paper); }
.btn-primary:hover { background: var(--fb-clay); color: #fff; }
.btn-accent { background: var(--fb-clay); color: #fff; }
.btn-accent:hover { background: #983a1a; color: #fff; }
.btn-ghost { background: transparent; color: var(--fb-ink); border: 1px solid var(--fb-rule); }
.btn-ghost:hover { border-color: var(--fb-ink); background: transparent; }

.chip { border-radius: 4px; }
.chip-active { background: var(--fb-ink); color: var(--fb-paper); border-color: var(--fb-ink); }
.badge { border-radius: 4px; }

.field, .select { border-radius: 6px; border-color: var(--fb-rule); background-color: #fff; }
.dark .field, .dark .select { background-color: var(--fb-paper-2); color: var(--fb-ink); }
.field:focus, .select:focus { border-color: var(--fb-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb-clay) 30%, transparent); }


/* ---------- phones ---------- */
body { overflow-x: clip; }
a, button { -webkit-tap-highlight-color: color-mix(in srgb, var(--fb-clay) 18%, transparent); }

@media (pointer: coarse) {
  .btn, .chip, .field, .select, .fb-pill { min-height: 44px; }
}

/* bottom navigation: shown on phones only */
.fb-tabbar { display: none; }

@media (max-width: 47.99rem) {
  input, select, textarea { font-size: 16px; }                     /* stops iPhones zooming into forms */
  body:has(.fb-tabbar) { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px)); }

  .fb-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
               background: var(--fb-paper); border-top: 1px solid var(--fb-rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fb-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
                 min-height: 3.6rem; font-size: .7rem; font-weight: 650; color: var(--fb-ink-3); text-decoration: none; }
  .fb-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .fb-tabbar a[aria-current="page"] { color: var(--fb-ink); }
  .fb-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--fb-clay); }

  /* home page */
  .fb-search { display: grid; grid-template-columns: 1fr auto; }
  .fb-search input { grid-column: 1 / -1; border-bottom: 1px solid var(--fb-rule); min-height: 3rem; }
  .fb-search select { border-left: 0; min-height: 3rem; }
  .fb-search button { padding-inline: 1.75rem; min-height: 3rem; }
  .fb-quick { gap: .6rem 1.2rem; }
  .fb-quick a { padding-block: .35rem; }
  .fb-rail { margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; gap: 1rem; }
  .fb-item { flex-basis: 11.5rem; }
  .fb-row { grid-template-columns: 3rem 1fr auto; gap: .75rem; padding-block: .9rem; }
  .fb-next-title { font-size: 1.35rem; }
  .fb-pill { padding-block: .85rem; }
}
