/* Hello Gravel — Supplier directory design system */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --orange: #f2722f;
  --orange-hover: #db5f1f;
  --orange-soft: #fef1e8;
  --orange-tint: #fdf6f0;

  --ink: #0f1419;
  --ink-2: #2a2f36;
  --gray-800: #2a2f36;
  --gray-700: #4b5159;
  --gray-600: #5a6068;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-150: #ececec;
  --gray-100: #f1f2f4;
  --gray-50: #f7f7f5;
  --white: #ffffff;

  --rule: #e7e7e4;
  --rule-strong: #d6d6d2;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
  --shadow-md: 0 1px 3px rgba(15, 20, 25, 0.06), 0 8px 24px -12px rgba(15, 20, 25, 0.08);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --container: 1240px;

  --header-h: 68px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 17px;
  color: var(--ink);
}
.brand-mark .logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 7px;
  color: white;
}
.brand-mark .logo svg { width: 16px; height: 16px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--gray-700);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .active { color: var(--ink); font-weight: 500; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 120ms;
}
.header-cta:hover { background: #000; }
.header-cta svg { width: 15px; height: 15px; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15.5px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ───── Breadcrumb ───── */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  padding: 18px 0 0;
}
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--gray-300); }
.crumb .curr { color: var(--ink); }

/* ───── Eyebrow / labels ───── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ───── Hero variants ───── */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero h1 .accent { color: var(--orange); }
.hero .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--gray-700);
  max-width: 56ch;
}

/* Stat strip used in heroes */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 36px;
}
.stat-strip .stat {
  padding: 22px 0 0;
}
.stat-strip .stat + .stat { padding-left: 28px; border-left: 1px solid var(--rule); margin-left: 28px;}
.stat .num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* ───── Search ───── */
.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 120ms, box-shadow 120ms;
}
.search-shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.06);
}
.search-shell svg { width: 18px; height: 18px; color: var(--gray-500); }
.search-shell input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
}
.search-shell input::placeholder { color: var(--gray-400); }
.search-shell kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--rule);
}

/* ───── Sections ───── */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--gray-50); }
section.dark { background: var(--ink); color: #e9eaec; }
section.dark h2 { color: white; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.028em;
  font-weight: 600;
}
.section-head .meta {
  font-size: 14px;
  color: var(--gray-500);
}
.section-intro {
  max-width: 60ch;
  color: var(--gray-700);
  font-size: 17px;
  margin-top: 12px;
}

/* ───── Footer ───── */
.site-footer {
  background: var(--ink);
  color: #cfd2d6;
  padding: 64px 0 36px;
  font-size: 14px;
}
.site-footer a:hover { color: white; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2f36;
}
.foot-grid h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid p { color: #8a8f96; max-width: 36ch; line-height: 1.6; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: #6b7077;
  font-size: 13px;
}

/* ───── Cards / tiles ───── */
.tile {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 120ms, transform 120ms;
}
.tile:hover { border-color: var(--ink); }

/* ───── Verified badge ───── */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-hover);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.verified svg { width: 13px; height: 13px; }

/* ───── Phone CTA block ───── */
.phone-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.phone-card .number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ───── Page intro tag for system orientation ───── */
.you-are-here {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.you-are-here .pip {
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--orange);
}

/* ───── Tile-map ───── */
.tilemap {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}
.tilemap .tile-state {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  color: var(--gray-500);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: background 120ms, color 120ms, transform 120ms;
  cursor: pointer;
}
.tilemap .tile-state[data-count="0"] { background: var(--gray-100); color: var(--gray-400); }
.tilemap .tile-state[data-density="1"] { background: #fbe6d4; color: #a3460c; }
.tilemap .tile-state[data-density="2"] { background: #f8c79d; color: #7a3608; }
.tilemap .tile-state[data-density="3"] { background: #f4a268; color: #fff; }
.tilemap .tile-state[data-density="4"] { background: #f2722f; color: #fff; }
.tilemap .tile-state[data-density="5"] { background: #c8541e; color: #fff; }
.tilemap .tile-state:hover { transform: translateY(-2px); }

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--gray-500);
  font-family: var(--font-mono);
}
.legend .ramp { display: flex; gap: 4px; }
.legend .ramp span { width: 18px; height: 12px; border-radius: 3px; display:block; }

/* ───── Pills / tags ───── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12px;
  letter-spacing: 0.005em;
}
.pill.pill-light { background: rgba(255,255,255,0.08); color: #cfd2d6; }

/* ───── Misc utilities ───── */
.hairline { border-top: 1px solid var(--rule); }
.muted { color: var(--gray-500); }
.mono { font-family: var(--font-mono); }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───── Map placeholder (for state and supplier pages) ───── */
.mapframe {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, #f1ede4 0%, #e8e3d6 80%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.mapframe::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0 calc(100% - 1px), rgba(15,20,25,0.04) 0),
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(15,20,25,0.04) 0);
  background-size: 40px 40px;
  pointer-events: none;
}
.mappin {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
}
.mappin .head {
  width: 18px; height: 18px;
  background: var(--orange);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  left: 3px; top: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  border: 2px solid white;
}
.mappin .pulse {
  position: absolute;
  left: 5px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: .55; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* tooltip */
.maptip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms;
}
.mappin:hover .maptip { opacity: 1; }

/* state outline svg wrapper */
.state-outline { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }

/* ───── Tables ───── */
table.materials {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.materials th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
}
table.materials td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.materials tr:hover td { background: var(--gray-50); }
table.materials td.num { font-family: var(--font-mono); color: var(--gray-700); text-align: right; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr 1fr; }
  .site-nav { display: none; }
}
