:root {
  --ink: #f7f7f7;
  --muted: #b8bdc7;
  --line: #1d2d3a;
  --paper: #050505;
  --surface: #ffffff;
  --green: #d9a51c;
  --green-2: #d9a51c;
  --gold: #d9a51c;
  --rust: #d9a51c;
  --blue: #071723;
  --navy: #02070b;
  --cyan-soft: #071723;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

#top {
  scroll-margin-top: 150px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 165, 28, 0.24);
  background: rgba(2, 7, 11, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 86px;
  height: auto;
}

.brand-copy {
  display: block;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-weight: 700;
  font-size: 0.95rem;
  color: #f7f7f7;
}

.main-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 66px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(7, 23, 35, 0.68) 50%, rgba(0, 0, 0, 0.35)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.16) 36%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: clamp(42px, 8vw, 96px) clamp(20px, 5vw, 72px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-content .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 11ch;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.6;
}

.hero-search {
  max-width: 680px;
  margin-top: 28px;
}

.hero-search label,
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #02070b;
}

.hero-search input {
  border: 0;
  min-height: 54px;
  color: #111827;
  background: #fff;
}

button,
.hero-search button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #fff;
  background: var(--gold);
  font-weight: 850;
  box-shadow: none;
}

button:hover {
  filter: brightness(0.97);
}

.ghost-button {
  border: 1px solid rgba(217, 165, 28, 0.55);
  color: var(--gold);
  background: transparent;
}

.secondary-button {
  border: 1px solid rgba(217, 165, 28, 0.45);
  color: var(--gold);
  background: #050505;
}

.secondary-button.fill {
  width: 100%;
}

.text-button {
  padding: 0;
  min-height: auto;
  color: var(--green);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #142535;
  border-block: 1px solid #142535;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--blue);
}

.trust-strip strong {
  color: var(--gold);
}

.trust-strip span {
  color: var(--muted);
}

.section,
.split-section {
  padding: clamp(52px, 7vw, 88px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-weight: 800;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.category-pills button {
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--blue);
}

.category-pills button.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  display: grid;
  min-height: 330px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071723;
  box-shadow: var(--shadow);
}

.business-card.hidden-listing {
  opacity: 0.58;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gold);
  background: #191409;
  font-size: 0.82rem;
  font-weight: 850;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.meta {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.card-actions a,
.card-actions button {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: #050505;
  font-weight: 800;
  text-decoration: none;
}

.card-actions .primary-action {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-block: 1px solid var(--line);
  background: #071723;
}

.split-section p,
.about-section p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.request-form,
.stack-form,
.portal-form {
  display: grid;
  gap: 16px;
}

.request-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-status {
  margin: 0;
  min-height: 22px;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #000;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-logo {
  display: block;
  width: 126px;
  max-width: 100%;
  height: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
}

.panel[aria-hidden="false"] {
  display: flex;
}

.panel-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 26px;
  border-radius: var(--radius);
  background: #071723;
  box-shadow: var(--shadow);
}

.panel-card.wide {
  width: min(980px, 100%);
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--gold);
  background: #02070b;
  box-shadow: none;
}

.panel-heading {
  padding-right: 36px;
}

.profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding-right: 38px;
}

.profile-details {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row strong {
  color: var(--muted);
}

.portal-form textarea {
  min-height: 110px;
}

.portal-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-section {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.admin-section-heading h3 {
  margin-bottom: 0;
}

.admin-section-heading p:last-child {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #02070b;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.insight-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.insight-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cyan-soft);
}

.insight-summary strong {
  font-size: 1.65rem;
  line-height: 1;
}

.insight-summary span,
.search-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.insight-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #02070b;
}

.search-table {
  display: grid;
  gap: 8px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #071723;
}

.search-row div {
  display: grid;
  gap: 3px;
}

.search-row.alert-row {
  border-left: 4px solid var(--rust);
  background: #191409;
}

.empty-state {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #071723;
  text-align: center;
}

@media (max-width: 920px) {
  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-header {
    gap: 18px;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .trust-strip,
  .business-grid,
  .split-section,
  .insight-grid,
  .insight-summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .brand-logo {
    width: 78px;
  }

  .footer-brand {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 690px;
  }

  .hero-search div,
  .filters,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .business-card {
    min-height: 0;
  }

  .detail-row,
  .admin-item {
    grid-template-columns: 1fr;
  }
}
