/* 88 Restaurants portfolio. One stylesheet, no build step.
   Tokens, type and card anatomy carry over from the original portfolio page;
   the layout widens to three columns on desktop. */
:root {
  --red: #db2c04;
  --red-dark: #b32200;
  --red-tint: #fdf2ee;
  --ink: #1a1614;
  --ink-2: #4a4340;
  --ink-3: #7a706b;
  --paper: #ffffff;
  --paper-2: #faf7f4;
  --line: #ece6e1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-md: 0 8px 24px -8px rgba(26, 22, 20, .18), 0 2px 6px rgba(26, 22, 20, .06);
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .875rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px rgba(219, 44, 4, .6); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--line { border-color: var(--line); background: var(--paper); }
.btn--line:hover { border-color: var(--ink-3); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.top__logo { height: 28px; width: auto; }
.top__call {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .8125rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s;
}
.top__call:hover { border-color: var(--ink-3); }
.top__num { display: none; font-weight: 500; color: var(--ink-2); }
@media (min-width: 640px) { .top__num { display: inline; } }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}
.hero__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--red); }
/* max-width in em keeps the break at "Restaurants we've / helped grow." at every size */
.hero__title {
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 9.6em;
}
.hero__title em { font-style: italic; font-weight: 600; color: var(--red); }
.hero__sub { margin-top: 20px; max-width: 52ch; font-size: 1.0625rem; color: var(--ink-2); }
@media (min-width: 1100px) { .hero { padding: 40px 0 56px; } }
@media (min-width: 1600px) { .hero__sub { font-size: 1.1875rem; } }

/* Section head: title + count on the left, the two filters on the right */
.head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 20px; margin-bottom: 12px; padding: 10px 0;
  /* Sticky so the filters stay in reach while scrolling the grid. The
     backdrop reaches into the .wrap gutters (never past them, so the page
     can't scroll sideways and the dropdowns aren't clipped). */
  position: sticky; top: 0; z-index: 30;
}
.head::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  background: var(--paper); border-bottom: 1px solid transparent;
}
.head.is-stuck::before { border-bottom-color: var(--line); }
.head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head__title h2 { font-size: 1.625rem; font-weight: 700; letter-spacing: -.01em; }
.head__count {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .8125rem; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.head__filters { display: flex; gap: 10px; }
@media (max-width: 559px) {
  .head__title { width: 100%; justify-content: space-between; }
  .head__filters { width: 100%; }
  .head__filters .dd { flex: 1; min-width: 0; }
  .head__filters .dd__trigger { width: 100%; }
}

/* Dropdowns, in the original page's pill style */
.dd { position: relative; }
.dd__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px 0 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s;
}
.dd__trigger:hover, .dd__trigger[aria-expanded="true"] { border-color: var(--ink-3); }
.dd__kind { color: var(--ink-3); }
.dd__value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__trigger svg { width: 13px; height: 13px; color: var(--ink-3); flex: none; margin-left: auto; transition: transform .2s; }
.dd__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd--set .dd__trigger { border-color: var(--red); background: var(--red-tint); }
.dd--set .dd__value { color: var(--red-dark); }

.dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 240px; padding: 6px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.dd__menu--end { left: auto; right: 0; }
.dd__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 0; border-radius: 9px; background: none;
  font-size: .875rem; font-weight: 500; text-align: left; cursor: pointer;
}
.dd__n { font-size: .8125rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dd__item:hover:not(:disabled) { background: var(--red); color: #fff; }
.dd__item:hover:not(:disabled) .dd__n { color: #fff; }
.dd__item[aria-pressed="true"] { color: var(--red); font-weight: 600; }
.dd__item[aria-pressed="true"] .dd__n { color: var(--red); }
.dd__item:disabled { opacity: .4; cursor: default; }

/* Grid */
.grid {
  list-style: none; margin: 0 0 64px; padding: 0;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
/* Very large screens: a wider page and a fourth column instead of a narrow strip in a sea of white */
@media (min-width: 1600px) {
  .wrap { max-width: 1520px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
}
[hidden] { display: none !important; }

/* Card: screenshot, then name + arrow, location, description, domain, tags */
.card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(219, 44, 4, .25); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.card__arrow {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: background-color .2s, transform .2s;
}
.card__arrow svg { width: 14px; height: 14px; }
.card__link:hover .card__arrow { background: var(--red); transform: rotate(45deg); }
.card__loc { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 500; color: var(--ink-3); }
.card__loc svg { width: 12px; height: 12px; flex: none; }
.card__desc { font-size: .875rem; color: var(--ink-2); }
.card__domain { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); margin-top: auto; padding-top: 2px; }
.card__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__desc + .card__tags { margin-top: auto; padding-top: 4px; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  background: var(--red-tint); color: var(--red-dark); box-shadow: inset 0 0 0 1px rgba(219, 44, 4, .14);
  font-size: .71875rem; font-weight: 500; line-height: 1.3; letter-spacing: .01em; white-space: nowrap;
}
.tag--cuisine { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

.empty { display: grid; justify-items: start; gap: 14px; padding: 8px 0 64px; font-size: 1.0625rem; color: var(--ink-2); }

/* Contact */
.cta {
  position: relative; overflow: hidden;
  padding: 40px 24px; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(219, 44, 4, .5) 0%, transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta__title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto 10px; }
.cta__sub { color: rgba(255, 255, 255, .7); font-size: .9375rem; margin-bottom: 24px; }
.cta__contact { max-width: 420px; margin: 0 auto 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cta__name { font-size: 1.25rem; font-weight: 700; }
.cta__role { font-size: .8125rem; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 900px) { .cta { padding: 56px 40px; } }
@media (max-width: 420px) { .cta__buttons .btn { width: 100%; } }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 40px; padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: .75rem; color: var(--ink-3);
}
.foot img { height: 18px; width: auto; opacity: .6; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-content: center; justify-items: start; gap: 16px; padding: 32px var(--gutter); max-width: 36rem; margin: 0 auto; }
.notfound h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.05; }
.notfound p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .card__link:hover, .card__link:hover .card__media img { transform: none; }
}
