:root {
  --sila-orange: #f15a24;
  --sila-orange-dark: #cb4517;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e7e9ee;
  --surface: #ffffff;
  --soft: #f7f8fb;
  --chip: #eef4ff;
  --chip-text: #175cd3;
  --featured-navy: #123b5d;
  --featured-blue: #176b8c;
  --featured-teal: #0f9f98;
  --featured-soft: #eefbfa;
  --featured-line: #9adbd6;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.09);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 45%, #f2f4f7 100%);
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  color: var(--sila-orange);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
}

.brand-text {
  font-size: 17px;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  margin: 32px 0 20px;
  padding: 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(241, 90, 36, 0.16), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff5f0 100%);
  border: 1px solid #ffe2d6;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--sila-orange-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -1.8px;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 760px;
}

.controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.045);
}

.search-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #344054;
}

.search-row {
  display: flex;
  gap: 10px;
}

input[type="search"] {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}

input[type="search"]:focus {
  border-color: var(--sila-orange);
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.15);
}

.secondary-button,
.filter-chip,
.open-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.secondary-button {
  padding: 0 18px;
  background: #f2f4f7;
  color: #344054;
}

.secondary-button:hover,
.filter-chip:hover,
.open-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.filter-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 14px;
  background: #f2f4f7;
  color: #344054;
}

.filter-chip.active {
  background: var(--sila-orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(241, 90, 36, 0.28);
}

.results-summary {
  margin: 18px 4px;
  color: var(--muted);
  font-weight: 700;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 48px;
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.1);
}

.card-featured {
  border: 2px solid var(--featured-line);
  background:
    radial-gradient(circle at top right, rgba(15, 159, 152, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--featured-soft) 100%);
  box-shadow:
    0 22px 44px rgba(18, 59, 93, 0.16),
    0 0 0 4px rgba(15, 159, 152, 0.07);
}

.card-featured::after {
  content: "";
  position: absolute;
  top: -78px;
  right: -78px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(23, 107, 140, 0.12), rgba(15, 159, 152, 0.18));
  pointer-events: none;
}

.card-featured:hover {
  transform: translateY(-4px);
  border-color: var(--featured-teal);
  box-shadow:
    0 28px 52px rgba(18, 59, 93, 0.2),
    0 0 0 5px rgba(15, 159, 152, 0.08);
}

.featured-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -20px -20px 18px;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(110deg, var(--featured-navy), var(--featured-blue) 56%, var(--featured-teal));
  box-shadow: 0 8px 18px rgba(18, 59, 93, 0.16);
}

.featured-banner-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-banner-note {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  color: rgba(255, 255, 255, 0.88);
}

.logo-frame {
  position: relative;
  z-index: 1;
  height: 116px;
  border-radius: 16px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid #eef0f4;
}

.card-featured .logo-frame {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 159, 152, 0.24);
  box-shadow: inset 0 0 0 1px rgba(23, 107, 140, 0.04);
}

.logo-frame img {
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.logo-placeholder {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sila-orange), var(--sila-orange-dark));
  color: white;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 8px 18px rgba(241, 90, 36, 0.25);
}

.card-featured .logo-placeholder {
  background: linear-gradient(135deg, var(--featured-navy), var(--featured-teal));
  box-shadow: 0 8px 18px rgba(18, 59, 93, 0.24);
}

.card h2 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.2;
  margin: 16px 0 10px;
}

.card-featured h2 {
  color: var(--featured-navy);
}

.meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  background: var(--chip);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-featured .badge {
  background: #daf4f1;
  color: #0b625f;
}

.address {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  margin: 0 0 18px;
}

.open-button {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--sila-orange);
  color: #fff;
  padding: 12px 16px;
}

.open-button:hover:not(:disabled) {
  box-shadow: 0 10px 20px rgba(241, 90, 36, 0.24);
}

.open-button:focus-visible {
  outline: 4px solid rgba(241, 90, 36, 0.2);
  outline-offset: 2px;
}

.open-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.open-button-featured {
  background: linear-gradient(105deg, var(--featured-navy), var(--featured-blue) 58%, var(--featured-teal));
  box-shadow: 0 12px 24px rgba(18, 59, 93, 0.24);
}

.open-button-featured:hover:not(:disabled) {
  background: linear-gradient(105deg, #0d304d, #125f7f 58%, #0c8f89);
  box-shadow: 0 15px 28px rgba(18, 59, 93, 0.3);
}

.open-button-featured:focus-visible {
  outline-color: rgba(15, 159, 152, 0.28);
}

.empty-state {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 38px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .secondary-button,
  .filter-chip,
  .open-button,
  .card {
    transition: none;
  }

  .secondary-button:hover,
  .filter-chip:hover,
  .open-button:hover,
  .card:hover,
  .card-featured:hover {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 28px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-row {
    flex-direction: column;
  }

  .secondary-button {
    min-height: 44px;
  }

  .featured-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .featured-banner-note {
    text-align: left;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    padding: 0 18px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 22px;
  }
}
