@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --bg: #14110f;
  --bg-2: #1b1714;
  --surface: #221d19;
  --surface-2: #2a241f;
  --line: #3d342c;
  --text: #f4ede3;
  --muted: #b7a99a;
  --gold: #c6a875;
  --wine: #9a3b32;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: clip;
}

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

button,
input,
select {
  font: inherit;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .site {
    padding-bottom: 0;
  }
}

.site.is-checkout {
  padding-bottom: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #eef2f7;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.brand-tag {
  display: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (min-width: 640px) {
  .brand-tag {
    display: inline;
  }
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-desktop a.active,
.nav-desktop a:hover {
  color: var(--text);
}

.nav-desktop .count {
  margin-left: 0.35rem;
  color: var(--gold);
}

.mobile-tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .mobile-tabs {
    display: none;
  }
}

.mobile-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mobile-tabs a {
  height: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-tabs a.active {
  color: var(--gold);
}

.mobile-tabs a span.bar {
  height: 1px;
  width: 1.5rem;
  background: transparent;
}

.mobile-tabs a.active span.bar {
  background: var(--gold);
}

main {
  flex: 1;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 4rem;
}

.hero h1 {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 500;
}

.hero .lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.search-row {
  margin-top: 2rem;
  max-width: 42rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  outline: none;
}

.search-box button {
  border: 0;
  background: var(--wine);
  color: var(--text);
  padding: 0 1rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}

.chip:hover,
.chip.active {
  border-color: var(--gold);
  color: var(--text);
}

.chip .n {
  margin-left: 0.4rem;
  color: var(--gold);
}

.stats {
  margin-top: 2.5rem;
  max-width: 42rem;
  display: flex;
  border-block: 1px solid var(--line);
}

.stats > div {
  flex: 1;
  padding: 0.9rem 0.75rem;
  border-right: 1px solid var(--line);
}

.stats > div:last-child {
  border-right: 0;
}

.stats dt {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.cta-wine {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  margin-top: 2rem;
  padding: 0 1.25rem;
  background: var(--wine);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.section h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.section .sub {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.filters {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

@media (min-width: 768px) {
  .filters {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: end;
  }
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field select,
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  outline: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.job-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.job-card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 6%);
}

.job-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.job-card h3 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.job-card .co {
  color: var(--muted);
  font-size: 0.875rem;
}

.job-card .foot {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.pager button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.detail {
  padding: 2rem 0 3rem;
}

.detail-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  max-width: 48rem;
}

.detail-card h1 {
  margin: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--wine);
  border-color: var(--wine);
}

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.company-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.company-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem;
}

.company-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.company-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.empty {
  border: 1px dashed var(--line);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.hide {
  display: none !important;
}

/* Checkout — same light UI logic as Meridian CheckoutPage */
.checkout-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #eef2f7;
  color: #0f172a;
}

.checkout-shell {
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

.checkout-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #dbe3ef;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.checkout-card header {
  text-align: center;
  padding: 0.75rem 1rem 0;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.65rem;
}

.checkout-card h1 {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.checkout-banner {
  position: relative;
  margin-top: 0.75rem;
  background: #16a34a;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
}

.checkout-banner span {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #14532d;
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 9px;
  text-transform: uppercase;
}

.checkout-progress {
  height: 4px;
  background: #e2e8f0;
}

.checkout-progress > i {
  display: block;
  height: 100%;
  background: #38bdf8;
  width: 25%;
  transition: width 0.3s ease;
}

.checkout-stepmeta {
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
  text-align: center;
  font-size: 11px;
  color: #475569;
  padding: 0.4rem;
}

.checkout-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem;
}

.opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.opt.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.opt .ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.opt .lbl {
  flex: 1;
  min-width: 0;
}

.opt .lbl strong {
  display: block;
  font-size: 13px;
}

.opt .lbl span {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.opt .arrow {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.opt.active .arrow {
  background: #2563eb;
  color: #fff;
}

.checkout-back {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
}

.checkout-go {
  width: 100%;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.checkout-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-link {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 11px;
  color: #64748b;
}

.checkout-link a {
  color: #1d4ed8;
  font-weight: 600;
}

.match-row {
  display: block;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}

.match-row .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.match-row .t {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.match-row .r {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
}
