/* Public booking page (calendar-site skill), restyled in the Real Agent brand.
   Loud, full-width layout matching https://realagent.network: black edge-to-edge
   nav, giant Archivo headline with a lime-on-black reversed block, two-column
   hero (headline left, booking panel right). Self-contained — ships to Cloudflare
   Pages, not the admin shell. */
:root {
  --bk-bg: #FAFAF8;           /* warm cream page */
  --bk-card: #FFFFFF;         /* card surface */
  --bk-black: #0E0E0E;        /* nav + reversed block */
  --bk-ink: #0E0E0E;          /* near-black primary ink */
  --bk-ink-2: #1A1A1A;        /* secondary ink */
  --bk-muted: #6B6B66;        /* muted grey */
  --bk-line: #E4E4DE;         /* hairline */
  --bk-line-2: #D6D6CF;       /* stronger hairline for slots/inputs */
  --bk-accent: #CCFF00;       /* signature lime */
  --bk-accent-ink: #0E0E0E;   /* text on lime is ALWAYS near-black, never white */
  --bk-accent-soft: #EEF8C8;  /* pale lime tint */
  --bk-radius: 20px;          /* card */
  --bk-radius-sm: 11px;       /* inputs, slots */
  --bk-pill: 999px;           /* primary buttons */
  --bk-wide: 1280px;          /* wide container — the whole page is broad */
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  background: var(--bk-bg);
  color: var(--bk-ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Full-width black nav bar, edge to edge -------------------------------- */
.site-nav {
  background: var(--bk-black);
  width: 100%;
}
.site-nav-inner {
  max-width: var(--bk-wide);
  margin: 0 auto;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-mark { width: 26px; height: 26px; display: block; }
.nav-word {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-real { color: #FFFFFF; }
.nav-agent { color: var(--bk-accent); }
.nav-pill {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-accent-ink);
  background: var(--bk-accent);
  border-radius: var(--bk-pill);
  padding: 9px 18px;
}

/* ---- Wide page container: broad and full, NOT a small centred card --------- */
.page {
  max-width: var(--bk-wide);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 56px) 72px;
}

/* Two-column hero on desktop: headline left, booking panel right */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    align-items: center;
  }
}

/* ---- Left column: the loud brand statement -------------------------------- */
.hero-left { max-width: 640px; }
.hero-eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--bk-muted);
  margin: 0 0 20px;
}
.hero-headline {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--bk-black);
  margin: 0 0 26px;
}
/* One phrase reversed out in lime on a black block, echoing the site */
.hl-block {
  display: inline-block;
  background: var(--bk-black);
  color: var(--bk-accent);
  padding: 0.02em 0.22em 0.08em;
  border-radius: 6px;
}
.hero-blurb {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--bk-muted);
  max-width: 30ch;
  margin: 0 0 22px;
}
.hero-context {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bk-ink);
  margin: 0;
}

/* ---- Right column: the booking panel (white card, hairline border) -------- */
.hero-right { width: 100%; }
.bk-card {
  width: 100%;
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 38px);
  box-shadow: 0 1px 2px rgba(14, 14, 14, 0.04), 0 18px 46px rgba(14, 14, 14, 0.07);
}

.bk-panel-kicker {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--bk-accent-ink);
  background: var(--bk-accent);
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--bk-pill);
  margin: 0 0 14px;
}
.bk-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--bk-ink);
}
.bk-sub { margin: 0 0 20px; color: var(--bk-muted); font-size: 1rem; font-weight: 500; }
.bk-status { margin: 10px 0; color: var(--bk-muted); }

.bk-day { margin-bottom: 24px; }
.bk-day-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--bk-ink-2);
}
/* Comfortable grid of time slots that fills the panel */
.bk-day-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.bk-day-empty { margin: 0; font-size: 0.9rem; color: var(--bk-muted); }

/* Window pager */
.bk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.bk-nav-label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--bk-ink);
  font-weight: 700;
}
.bk-arrow {
  border: 1px solid var(--bk-line-2);
  background: var(--bk-card);
  color: var(--bk-ink);
  border-radius: var(--bk-radius-sm);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.bk-arrow:hover:not(:disabled),
.bk-arrow:focus-visible { border-color: var(--bk-black); background: var(--bk-accent); color: var(--bk-accent-ink); outline: none; }
.bk-arrow:disabled { opacity: 0.32; cursor: default; }

/* Extend / shorten a back-to-back multi-slot booking (operator-enabled) */
.bk-extend { display: flex; gap: 10px; margin: 0 0 6px; }
.bk-extend-btn {
  border: 1px solid var(--bk-line-2);
  background: var(--bk-card);
  color: var(--bk-ink);
  border-radius: var(--bk-radius-sm);
  padding: 8px 15px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bk-extend-btn:hover:not(:disabled) { background: var(--bk-accent); color: var(--bk-accent-ink); border-color: var(--bk-accent); }
.bk-extend-btn:disabled { opacity: 0.4; cursor: default; }

/* Confident slot buttons: solid hairline, flip to LIME on hover/focus/select */
.bk-slot {
  border: 1.5px solid var(--bk-line-2);
  background: var(--bk-card);
  color: var(--bk-ink);
  border-radius: var(--bk-radius-sm);
  padding: 13px 12px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s, box-shadow .12s, transform .08s;
}
.bk-slot:hover,
.bk-slot:focus-visible,
.bk-slot.is-selected {
  background: var(--bk-accent);
  color: var(--bk-accent-ink);
  border-color: var(--bk-accent);
  outline: none;
  box-shadow: 0 4px 12px rgba(14, 14, 14, 0.12);
  transform: translateY(-1px);
}

.bk-form { display: flex; flex-direction: column; gap: 16px; }
/* Keep [hidden] authoritative over display:flex */
.bk-form[hidden] { display: none; }
.bk-chosen {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 4px;
  color: var(--bk-ink);
}
.bk-label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--bk-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bk-input {
  border: 1.5px solid var(--bk-line-2);
  border-radius: var(--bk-radius-sm);
  padding: 12px 13px;
  font-size: 1rem;
  color: var(--bk-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  background: var(--bk-card);
  text-transform: none;
  letter-spacing: normal;
}
.bk-input:focus { outline: 2px solid var(--bk-accent); outline-offset: 1px; border-color: var(--bk-black); }

/* honeypot */
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bk-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.bk-back {
  background: var(--bk-card);
  border: 1.5px solid var(--bk-line-2);
  border-radius: var(--bk-pill);
  padding: 12px 22px;
  cursor: pointer;
  color: var(--bk-ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.bk-back:hover { background: var(--bk-black); color: #FFFFFF; border-color: var(--bk-black); }
/* Big lime pill CTA, near-black text, like the site's GET STARTED */
.bk-submit {
  background: var(--bk-accent);
  color: var(--bk-accent-ink);
  border: 1.5px solid var(--bk-accent);
  border-radius: var(--bk-pill);
  padding: 12px 30px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.bk-submit:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(204, 255, 0, 0.45); transform: translateY(-1px); }
.bk-submit:disabled { opacity: 0.6; cursor: default; }

.bk-done { text-align: center; padding: 30px 0; }
.bk-done-title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--bk-ink);
}
.bk-done-msg { color: var(--bk-muted); margin: 0; }

@media (max-width: 560px) {
  .site-nav-inner { height: 62px; }
  .nav-pill { display: none; }
  .bk-actions { flex-direction: column-reverse; }
  .bk-back, .bk-submit { width: 100%; text-align: center; }
}
