/* ============================================================
   Evantix — site styles

   DIRECTION
   The subject is booking dates. A venue date is free, held, or
   gone, and a hold expires in sixty minutes. That grid of states
   is the real artifact of this business, so it is the hero and
   the motif rather than a stock illustration.

   Palette extends the app's Warm Midnight into deeper layers so
   the page has depth the app's flat surfaces don't need. Amber is
   rationed: it means "active / held / do this", nothing else.

   Type: Bricolage Grotesque for display (engineered, slightly
   odd, not the editorial serif every dark landing page reaches
   for), Inter for reading, JetBrains Mono for dates, amounts and
   reference numbers — the vernacular of a booking record.
   ============================================================ */

:root {
  --ink:      #0A1422;
  --ink-2:    #0F1C2E;
  --slab:     #132133;
  --edge:     #22364E;
  --edge-2:   #2E4763;

  --amber:    #F0A500;
  --green:    #10B981;

  --bone:     #F2EDE4;
  --bone-70:  rgba(242, 237, 228, 0.70);
  --bone-45:  rgba(242, 237, 228, 0.45);
  --bone-25:  rgba(242, 237, 228, 0.25);

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --measure: 68ch;
  --gutter:  clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient wash — one soft amber bloom, top right. Fixed so it
   does not travel with content and become a decoration. */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  right: -20vw;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle,
              rgba(240, 165, 0, 0.10) 0%,
              rgba(240, 165, 0, 0.03) 40%,
              transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header ───────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 20, 34, 0.82);
  border-bottom: 1px solid var(--edge);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--bone);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* The mark is a single held cell — the smallest possible version
   of the hero grid. */
.mark {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--amber);
  background: rgba(240, 165, 0, 0.16);
  flex: none;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  color: var(--bone-45);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.site-nav a:hover { color: var(--bone); }

.site-nav a[aria-current] {
  color: var(--bone);
  border-bottom-color: var(--amber);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 10vw, 104px) 0 clamp(48px, 8vw, 88px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 0 0 22px;
}

h1 em { font-style: normal; color: var(--amber); }

.lede {
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--bone-70);
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease,
              border-color .16s ease;
}

.btn-primary { background: var(--amber); color: #16233A; }
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost { border-color: var(--edge-2); color: var(--bone); }
.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(240, 165, 0, 0.06);
}

/* ── Signature: the date grid ─────────────────────────────── */

.grid-card {
  background: linear-gradient(160deg, var(--slab) 0%, var(--ink-2) 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

.grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.grid-month {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.grid-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-45);
}

.daynames, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.daynames { margin-bottom: 8px; }

.daynames span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-25);
  text-align: center;
  letter-spacing: 0.5px;
}

.day {
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bone-45);
  opacity: 0;
  animation: cell-in .42s ease forwards;
}

@keyframes cell-in {
  from { opacity: 0; transform: translateY(5px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

.day.is-gone {
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone-25);
  text-decoration: line-through;
  text-decoration-color: var(--bone-25);
}

.day.is-free { border-color: var(--edge-2); color: var(--bone-70); }

.day.is-held {
  border-color: var(--amber);
  background: rgba(240, 165, 0, 0.14);
  color: var(--amber);
  font-weight: 700;
  position: relative;
}

.day.is-held::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  border: 1px solid rgba(240, 165, 0, 0.35);
  animation: hold-pulse 2.6s ease-in-out infinite;
}

@keyframes hold-pulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: .25; transform: scale(1.06); }
}

.grid-foot {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hold-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
}

.legend {
  display: flex;
  gap: 13px;
  font-size: 10.5px;
  color: var(--bone-45);
  font-family: var(--mono);
}

.legend i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 5px;
}

.legend .l-free { border: 1px solid var(--edge-2); }
.legend .l-held { background: var(--amber); }
.legend .l-gone { background: var(--bone-25); }

/* ── Bands ────────────────────────────────────────────────── */

.band { padding: clamp(48px, 8vw, 90px) 0; }
.band + .band { border-top: 1px solid var(--edge); }
.band-head { margin-bottom: clamp(26px, 4vw, 44px); }

h2 {
  font-family: var(--display);
  font-size: clamp(25px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.band-head p {
  color: var(--bone-70);
  max-width: 56ch;
  margin: 0;
}

/* Feature list as a ledger of rows, not a card deck — this is a
   record of what the product does, and rows read as a record. */
.ledger { border-top: 1px solid var(--edge); }

.row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(16px, 4vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--edge);
  transition: background .2s ease;
}

.row:hover { background: rgba(240, 165, 0, 0.025); }

.row-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 5px;
}

.row h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 7px;
}

.row p {
  margin: 0;
  color: var(--bone-70);
  max-width: 60ch;
  font-size: 15.5px;
}

/* Tender — the differentiator, so it gets the one feature panel */
.tender {
  background: linear-gradient(150deg, var(--slab) 0%, var(--ink-2) 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.tender h2 { margin-bottom: 12px; }
.tender p { color: var(--bone-70); margin: 0 0 10px; }

.quotes { display: flex; flex-direction: column; gap: 9px; }

.quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--edge);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14.5px;
}

.quote.best {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.07);
}

.quote-who { color: var(--bone-70); }
.quote.best .quote-who { color: var(--bone); }

.quote-amt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bone);
}

.quote.best .quote-amt { color: var(--green); font-weight: 600; }

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ── Callout ──────────────────────────────────────────────── */

.callout {
  border: 1px solid var(--edge);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  background: rgba(240, 165, 0, 0.05);
  padding: 20px 22px;
}

.callout p { margin: 0; color: var(--bone-70); }
.callout strong { color: var(--bone); }

/* ── Document pages ───────────────────────────────────────── */

.doc {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(38px, 6vw, 68px) 0 clamp(60px, 9vw, 100px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 13.5px;
  border-left: 1px solid var(--edge);
  padding-left: 16px;
}

.toc-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bone-25);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--bone-45);
  text-decoration: none;
  padding: 5px 0;
  transition: color .16s ease;
}

.toc a:hover { color: var(--amber); }

.doc-body { max-width: var(--measure); }

.doc-body h1 {
  font-size: clamp(31px, 4.6vw, 46px);
  letter-spacing: -1.4px;
  margin-bottom: 10px;
}

.stamp {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-45);
  margin: 0 0 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--edge);
}

.doc-body h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 46px 0 12px;
  scroll-margin-top: 92px;
}

.doc-body h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  margin-right: 10px;
  letter-spacing: 0;
}

.doc-body h3 {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--bone);
}

.doc-body p, .doc-body li { color: var(--bone-70); }
.doc-body strong { color: var(--bone); font-weight: 600; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 8px; }

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

th, td {
  border: 1px solid var(--edge);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  color: var(--bone-70);
}

th {
  background: var(--slab);
  color: var(--bone);
  font-weight: 600;
  font-size: 13px;
}

.addr {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  background: var(--slab);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--bone-70);
}

/* ── Footer ───────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--edge);
  padding: 34px 0 46px;
  font-size: 13.5px;
  color: var(--bone-45);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--bone-45); text-decoration: none; }
.foot-links a:hover { color: var(--bone); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero   { grid-template-columns: 1fr; }
  .tender { grid-template-columns: 1fr; }
  .doc    { grid-template-columns: 1fr; }
  .toc {
    position: static;
    border-left: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--edge);
    padding-bottom: 16px;
  }
  .toc a { display: inline-block; margin-right: 16px; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-key { padding-top: 0; }
  .legend { display: none; }
  .grid-foot { flex-direction: column; align-items: flex-start; }
}

/* ── Quality floor ────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .day { opacity: 1; }
}

/* ── Signature: events near you ───────────────────────────── */

.near-card {
  background: linear-gradient(160deg, var(--slab) 0%, var(--ink-2) 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

.near-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.near-title {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.near-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-45);
}

/* The map is drawn, not embedded: a dot field for terrain, two
   routes, and pins that land in sequence. */
.map {
  position: relative;
  height: 190px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px,
      rgba(242,237,228,0.07) 1px, transparent 0) 0 0 / 15px 15px,
    linear-gradient(150deg, rgba(240,165,0,0.05), transparent 60%),
    var(--ink);
}

.road {
  position: absolute;
  background: var(--edge);
  opacity: .85;
}

.road.r1 { left: -10%; top: 58%; width: 120%; height: 1px;
           transform: rotate(-7deg); }
.road.r2 { left: 34%; top: -10%; width: 1px; height: 120%;
           transform: rotate(11deg); }

.pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bone-45);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pin-in .45s ease forwards;
}

@keyframes pin-in {
  from { opacity: 0; transform: translate(-50%, -140%) scale(.5); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.pin.hot {
  width: 15px;
  height: 15px;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.18);
}

.pin.hot::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(240, 165, 0, 0.4);
  animation: ping 2.8s ease-out infinite;
}

@keyframes ping {
  0%   { opacity: .8; transform: scale(.7); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}

.map-chip {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(19, 33, 51, 0.94);
  border: 1px solid var(--edge-2);
  white-space: nowrap;
}

.map-chip b {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.map-chip span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
}

.near-list { margin-top: 14px; display: flex; flex-direction: column; }

.near-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--edge);
  font-size: 14px;
}

.near-row:first-child { border-top: 0; }

.near-when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-45);
  display: block;
}

.near-what { color: var(--bone-70); }
.near-row.lead .near-what { color: var(--bone); }

.near-dist {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-45);
  flex: none;
}

.near-row.lead .near-dist { color: var(--amber); }

/* Calendar sits inside the venues band now, so it needs its own
   two-column frame rather than hero sizing. */
.venue-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 900px) {
  .venue-split { grid-template-columns: 1fr; }
}

/* ── Providers ────────────────────────────────────────────── */

.roster { display: flex; flex-direction: column; gap: 10px; }

.provider {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .2s ease, background .2s ease;
}

.provider:hover {
  border-color: var(--edge-2);
  background: rgba(255, 255, 255, 0.035);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.3);
  flex: none;
}

.p-name {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 3px;
}

.p-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-pill {
  font-size: 11.5px;
  color: var(--bone-70);
  border: 1px solid var(--edge-2);
  border-radius: 5px;
  padding: 1px 7px;
}

.p-area {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-45);
}

.p-rating {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bone);
  text-align: right;
  flex: none;
}

.p-rating small {
  display: block;
  font-size: 10.5px;
  color: var(--bone-45);
  margin-top: 1px;
}

@media (max-width: 560px) {
  .provider { grid-template-columns: 34px 1fr; }
  .avatar { width: 34px; height: 34px; font-size: 12px; }
  .p-rating { grid-column: 2; text-align: left; }
}

/* ── Spec sheet: the depth, stated plainly ────────────────── */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--edge);
}

.spec {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--edge);
}

.spec h4 {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 4px;
  color: var(--bone);
}

.spec p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bone-45);
}

/* ── Hero slider: events / venues near you ────────────────── */

.switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.25);
}

.switch button {
  font: inherit;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--bone-45);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.switch button:hover { color: var(--bone-70); }

.switch button[aria-selected="true"] {
  color: var(--ink);
  background: var(--amber);
}

.slider { overflow: hidden; }

.track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.panel { min-width: 100%; }

.pin.venue { border-radius: 3px; }

.pin.venue.hot {
  border-radius: 4px;
  background: var(--amber);
}

.near-cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-45);
  display: block;
}

.free-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
}
