/* ==========================================================================
   US Food Truck Factory — Design System
   ========================================================================== */

/* Webfonts are self-hosted — see assets/css/fonts.css (linked before this file). */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:          #0E3164;
  --navy-deep:     #092247;
  --blue:          #1B8CF0;
  --blue-dark:     #0E72CC;
  --blue-light:    #E8F3FE;
  --gold:          #F5A623;

  /* Neutrals */
  --ink:           #10233F;
  --body:          #55627A;
  --muted:         #7B879C;
  --line:          #E3E8EF;
  --surface:       #FFFFFF;
  --surface-alt:   #F5F7FA;

  /* Typography */
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 88px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(16, 35, 63, .08);
  --shadow-md: 0 4px 16px rgba(16, 35, 63, .10);
  --shadow-lg: 0 12px 32px rgba(16, 35, 63, .14);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.01em;
}
p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: var(--sp-8); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: var(--sp-7); }

.section-head { text-align: center; margin-bottom: var(--sp-6); }
.section-head h2 {
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
}
.section-head p {
  margin-top: var(--sp-3);
  max-width: 620px;
  margin-inline: auto;
  color: var(--body);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease),
              box-shadow .2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(27, 140, 240, .3); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 6px 20px rgba(27, 140, 240, .4); }

.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 17px 36px; font-size: 15px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--sp-5); }
.main-nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  position: relative;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #C3D3E8;
  padding-top: var(--sp-8);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}
/* used while no social profile is configured, so the row is not left lopsided */
.footer-grid--2 { grid-template-columns: 1.5fr 1fr; }
.footer-brand .logo-chip {
  display: inline-block;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
}
.footer-brand .logo-chip img { height: 44px; width: auto; }
.footer-blurb { margin-bottom: var(--sp-5); max-width: 340px; line-height: 1.7; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 5px; color: var(--blue); }
.footer-contact a, .footer-contact span { color: #C3D3E8; }
.footer-contact a:hover { color: #fff; }

.footer-col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4);
  font-family: var(--font-head);
}
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a {
  color: #C3D3E8;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.social-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.social-row a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: var(--blue); transform: translateY(-3px); color: #fff; }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--sp-4);
  text-align: center;
  font-size: 13px;
  color: #91A7C4;
}

/* --------------------------------------------------------------------------
   7. Responsive — header / footer
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav ul { gap: var(--sp-4); }
  .main-nav a { font-size: 13px; }
}

@media (max-width: 900px) {
  .header-cta { margin-left: auto; }
  .nav-toggle { display: flex; margin-left: var(--sp-3); }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: var(--sp-5) 20px var(--sp-8);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
    margin-left: 0;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 0; font-size: 16px; }
  .main-nav a::after { display: none; }

  body.nav-open { overflow: hidden; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .header-cta .btn { padding: 10px 14px; font-size: 12px; }
  .brand img { height: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
}

/* --------------------------------------------------------------------------
   8. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   9. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon .accent { stroke: var(--icon-accent, var(--blue)); }

/* Line-art icons are drawn on a 48x48 grid; scale strokes down at large sizes */
.icon--48 { stroke-width: 2.2; }

/* Circular icon badge */
.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #fff;
  --icon-accent: #fff;
  flex-shrink: 0;
}
.icon-badge .icon { width: 26px; height: 26px; }

.icon-badge--outline {
  background: #fff;
  color: var(--navy);
  --icon-accent: var(--blue);
  box-shadow: var(--shadow-sm);
}
