/* ─── Harbor Church Wireframes ─── tokens + primitives */
:root {
  --paper: #F6F3EB;
  --paper-2: #EFEADC;
  --ink: #1F1B16;
  --ink-2: #5a534a;
  --ink-3: #8a847a;
  --line: #1F1B16;
  --line-soft: rgba(31,27,22,0.32);
  --line-faint: rgba(31,27,22,0.14);
  --rust: #B5663C;
  --slate: #41556B;
  --note-bg: #FFE9A8;
  --tape: #F5C76A;
  --shell: #DDD6C4;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--shell);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Toolbar ─── */
.tb {
  position: sticky; top: 0; z-index: 50;
  background: #1B1813; color: var(--paper);
  border-bottom: 1px solid #000;
  padding: 12px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.tb-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tb-title {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 28px; line-height: 1; letter-spacing: 0.5px;
  margin: 0;
}
.tb-title small {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.55; font-weight: 500; margin-top: 4px;
}
.tb-rows { display: flex; flex-direction: column; gap: 8px; }
.tb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.5; min-width: 78px;
}
.tb-btn {
  font-family: inherit; font-size: 13px;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(246,243,235,0.22);
  padding: 6px 12px; border-radius: 4px; cursor: pointer;
  white-space: nowrap; transition: all 0.12s;
}
.tb-btn:hover { background: rgba(246,243,235,0.08); border-color: rgba(246,243,235,0.4); }
.tb-btn.active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tb-btn.toggle.on { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.tb-aside {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; opacity: 0.55; line-height: 1.4;
  border-top: 1px solid rgba(246,243,235,0.08);
  padding-top: 8px;
}

/* ─── Stage ─── */
.stage {
  padding: 48px 24px 96px;
  display: flex; justify-content: center;
  min-height: calc(100vh - 100px);
}

/* ─── Device frames ─── */
.frame-desktop {
  width: 1280px; max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 60px -20px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.08);
  position: relative;
}
.frame-desktop .chrome {
  height: 32px; background: var(--paper-2);
  border-bottom: 1px solid var(--line-faint);
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.frame-desktop .chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent; border: 1px solid var(--ink-3);
}
.frame-desktop .chrome .url {
  flex: 1; height: 18px; margin-left: 12px;
  background: var(--paper); border: 1px solid var(--line-faint);
  border-radius: 3px; display: flex; align-items: center; padding: 0 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3);
}
.frame-desktop .canvas { position: relative; }

.frame-mobile {
  width: 392px; background: var(--ink); border-radius: 44px;
  padding: 14px; position: relative;
  box-shadow: 0 18px 60px -20px rgba(0,0,0,0.4);
}
.frame-mobile::before {
  content: ''; position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px; background: #0d0a07; border-radius: 14px; z-index: 5;
}
.frame-mobile .screen {
  background: var(--paper); border-radius: 30px; overflow: hidden;
  height: 780px; overflow-y: auto;
  position: relative;
}
.frame-mobile .screen::-webkit-scrollbar { width: 0; }
.frame-mobile .status {
  height: 44px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 6px; font-size: 11px; font-family: 'JetBrains Mono', monospace;
  color: var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 4;
}

/* ─── Wireframe primitives ─── */
.wf-img {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(31,27,22,0.07) 9px, rgba(31,27,22,0.07) 10px),
    var(--paper-2);
  border: 1px dashed var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--ink-2); text-align: center; padding: 14px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  position: relative;
}
.wf-img.tag::before {
  content: '◇ photo'; position: absolute; top: 6px; left: 8px;
  font-size: 9px; opacity: 0.5;
}
.wf-img > span { max-width: 80%; line-height: 1.4; }
.wf-img.xl { min-height: 480px; }
.wf-img.lg { min-height: 320px; }
.wf-img.md { min-height: 200px; }
.wf-img.sm { min-height: 130px; }
.wf-img.xs { min-height: 80px; }
.wf-img.tall { min-height: 540px; }

.wf-text { display: flex; flex-direction: column; gap: 7px; }
.wf-text > i {
  display: block; height: 6px; background: var(--line-faint); border-radius: 3px;
}
.wf-text > i:last-child { width: 60%; }
.wf-text.short > i { height: 5px; }

.wf-h { font-family: 'Caveat', cursive; font-weight: 700; margin: 0; line-height: 1.05; color: var(--ink); }
.wf-h.h1 { font-size: 64px; }
.wf-h.h2 { font-size: 42px; }
.wf-h.h3 { font-size: 28px; }
.wf-h.h4 { font-size: 20px; letter-spacing: 0.2px; }
.wf-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 8px;
}

.wf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 11px 20px; font-family: inherit; font-size: 13px; cursor: pointer;
  border-radius: 3px; gap: 8px;
}
.wf-btn.primary { background: var(--ink); color: var(--paper); }
.wf-btn.rust { background: var(--rust); color: var(--paper); border-color: var(--rust); }
.wf-btn.ghost { border-color: var(--line-soft); color: var(--ink-2); }
.wf-btn.sm { padding: 7px 12px; font-size: 12px; }
.wf-btn.lg { padding: 14px 26px; font-size: 14px; }

.wf-input { display: flex; flex-direction: column; gap: 5px; }
.wf-input label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.wf-input .field {
  border: 1px solid var(--line-soft); height: 38px;
  background: rgba(255,255,255,0.5); border-radius: 3px;
}
.wf-input .field.tall { height: 110px; }
.wf-input .field.dropdown { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); }

/* ─── Annotations ─── */
.anno-host { position: relative; }
.anno {
  position: absolute;
  background: var(--note-bg);
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-family: 'Caveat', cursive; font-size: 17px;
  font-weight: 600; color: var(--ink); max-width: 220px; line-height: 1.15;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 8;
  transform: rotate(-1deg);
}
.anno::before {
  content: ''; position: absolute; left: 12px; top: -7px;
  width: 32px; height: 10px; background: var(--tape);
  border: 1px solid rgba(0,0,0,0.12); transform: rotate(-3deg);
  opacity: 0.85;
}
.anno.r { transform: rotate(1.5deg); }
.anno .arrow {
  position: absolute; font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 22px; color: var(--rust);
}
[data-anno="off"] .anno { display: none; }

/* ─── Calendar ─── */
.wf-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  border: 1px solid var(--line); background: var(--line-faint);
  border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;
}
.wf-cal-d {
  background: var(--paper); aspect-ratio: 1.05;
  padding: 8px; font-size: 12px; font-family: 'JetBrains Mono', monospace;
  position: relative; outline: 1px solid var(--line-faint);
}
.wf-cal-d.dim { color: var(--ink-3); background: var(--paper-2); }
.wf-cal-d .dot { position: absolute; bottom: 8px; right: 8px;
  width: 9px; height: 9px; border-radius: 50%; }
.wf-cal-d.book .dot { background: var(--ink); }
.wf-cal-d.tent { background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(31,27,22,0.12) 5px, rgba(31,27,22,0.12) 6px); }
.wf-cal-d.tent .dot { border: 1.5px solid var(--ink); background: var(--paper); }
.wf-cal-d.av { /* available */ }
.wf-cal-d.sel { background: var(--rust); color: var(--paper); }
.wf-cal-d.sel .dot { background: var(--paper); }

.wf-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-bottom: none; }
.wf-cal-head > b {
  font-size: 10px; font-family: 'JetBrains Mono', monospace; padding: 8px;
  text-align: center; opacity: 0.6; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 500;
}
.wf-cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--line); border-bottom: none;
  background: var(--paper-2);
}
.wf-cal-month { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; }
.wf-cal-nav { display: flex; gap: 6px; }
.wf-cal-nav span {
  border: 1px solid var(--line-soft); width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.wf-cal-legend { display: flex; gap: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-2); padding: 12px 0; flex-wrap: wrap; }
.wf-cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wf-cal-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.wf-cal-legend i.av { border: 1px solid var(--ink); }
.wf-cal-legend i.bk { background: var(--ink); }
.wf-cal-legend i.tn { background: repeating-linear-gradient(45deg, transparent, transparent 2px, var(--ink) 2px, var(--ink) 3px); border: 1px solid var(--ink); }

/* ─── Floor plan ─── */
.wf-plan {
  background:
    linear-gradient(rgba(31,27,22,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,27,22,0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  border: 1.5px solid var(--ink); position: relative;
  min-height: 320px; padding: 24px;
}
.wf-plan::after {
  content: 'N'; position: absolute; top: 8px; right: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  border: 1px solid var(--line-soft); padding: 2px 6px; opacity: 0.5;
}
.wf-plan .table {
  position: absolute; background: var(--paper);
  border: 1.2px solid var(--ink);
}
.wf-plan .table.round { border-radius: 50%; }
.wf-plan .chair {
  position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--ink); background: var(--paper);
}
.wf-plan .label {
  position: absolute; font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--ink-2);
}
.wf-plan .stage-marker {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  border: 1px dashed var(--line-soft); height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3);
}

/* ─── Layout primitives ─── */
.wf-row { display: flex; gap: 24px; }
.wf-col { display: flex; flex-direction: column; gap: 16px; }
.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wf-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wf-card {
  border: 1px solid var(--line-soft); padding: 20px;
  background: rgba(255,255,255,0.35); border-radius: 3px;
}
.wf-card.outline { background: transparent; }
.wf-card.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wf-card.solid .wf-h { color: var(--paper); }
.wf-divider { height: 1px; background: var(--line-faint); margin: 24px 0; }
.wf-spacer { height: 32px; }
.wf-pad { padding: 48px; }
.wf-pad-lg { padding: 64px; }

/* ─── Nav patterns ─── */
.wf-nav {
  display: flex; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
  gap: 32px;
}
.wf-nav.center { justify-content: center; flex-direction: column; gap: 14px; padding: 22px 32px; }
.wf-logo { font-family: 'Caveat', cursive; font-weight: 700; font-size: 24px; line-height: 1; }
.wf-logo small { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; opacity: 0.55; display: block; margin-top: 2px; text-transform: uppercase; font-weight: 500; }
.wf-nav-links { display: flex; gap: 26px; font-size: 13px; flex-wrap: wrap; }
.wf-nav-links a { color: var(--ink); text-decoration: none; opacity: 0.75; cursor: pointer; }
.wf-nav-links a.active { opacity: 1; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.wf-nav .spacer { flex: 1; }
.wf-nav .partners { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; opacity: 0.55; text-transform: uppercase; }

/* footer */
.wf-footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 48px 28px; background: var(--paper-2);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  font-size: 12px; color: var(--ink-2);
}
.wf-footer h5 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.wf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-footer .brand { font-family: 'Caveat', cursive; font-size: 24px; color: var(--ink); }
.wf-footer .socials { display: flex; gap: 8px; margin-top: 12px; }
.wf-footer .socials span {
  width: 30px; height: 30px; border: 1px solid var(--line-soft);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
}

/* ─── Mobile reflow ─── */
.frame-mobile .wf-pad,
.frame-mobile .wf-pad-lg { padding: 24px 20px; }
.frame-mobile .wf-grid-2,
.frame-mobile .wf-grid-3,
.frame-mobile .wf-grid-4 { grid-template-columns: 1fr; gap: 14px; }
.frame-mobile .wf-row { flex-direction: column; }
.frame-mobile .wf-h.h1 { font-size: 40px; }
.frame-mobile .wf-h.h2 { font-size: 28px; }
.frame-mobile .wf-h.h3 { font-size: 22px; }
.frame-mobile .wf-footer { grid-template-columns: 1fr; padding: 24px 20px; }
.frame-mobile .wf-nav { padding: 14px 20px; gap: 0; }
.frame-mobile .wf-nav-links { display: none; }
.frame-mobile .wf-cal-d { font-size: 10px; padding: 4px; }
.frame-mobile .wf-cal-head > b { padding: 4px; font-size: 9px; }

.mobile-burger {
  margin-left: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-burger span { width: 24px; height: 2px; background: var(--ink); }

/* ─── Tabs ─── */
.wf-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-soft); }
.wf-tabs > div {
  padding: 10px 16px; font-size: 12px; font-family: 'JetBrains Mono', monospace;
  border-bottom: 2px solid transparent; cursor: pointer; color: var(--ink-2);
}
.wf-tabs > div.active { border-bottom-color: var(--ink); color: var(--ink); }

/* ─── Accordion ─── */
.wf-acc-item {
  border-bottom: 1px solid var(--line-faint);
  padding: 18px 0;
}
.wf-acc-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.wf-acc-q .plus {
  font-family: 'JetBrains Mono', monospace; font-size: 18px; opacity: 0.5;
}
.wf-acc-item.open { padding-bottom: 24px; }
.wf-acc-a { padding-top: 12px; max-width: 80ch; }

/* ─── Welcome / overview ─── */
.welcome {
  max-width: 760px; margin: 0 auto; color: var(--ink);
  font-family: 'Inter', sans-serif; padding: 40px 0;
}
.welcome h2 { font-family: 'Caveat', cursive; font-weight: 700; font-size: 48px; margin: 0 0 8px; }
.welcome p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ─── Section header used throughout pages ─── */
.wf-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── Sidebar specific (Direction C) ─── */
.wf-sidebar {
  width: 240px; min-height: 100%; padding: 28px 22px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 28px;
  background: var(--paper);
}
.wf-sidebar .nav-list { display: flex; flex-direction: column; gap: 4px; }
.wf-sidebar .nav-list a {
  padding: 8px 10px; font-size: 13px; color: var(--ink); opacity: 0.7;
  border-radius: 3px; cursor: pointer;
}
.wf-sidebar .nav-list a.active { background: var(--ink); color: var(--paper); opacity: 1; }
.wf-layout-split { display: grid; grid-template-columns: 240px 1fr; min-height: 720px; }
.frame-mobile .wf-layout-split { grid-template-columns: 1fr; }
.frame-mobile .wf-sidebar { display: none; }
.frame-mobile .mobile-burger { display: flex; }

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: 100px;
  font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--ink-2);
}
.chip.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* status pill (booked etc) */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 2px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.av { background: rgba(31,27,22,0.08); color: var(--ink); }
.pill.bk { background: var(--ink); color: var(--paper); }
.pill.tn { border: 1px dashed var(--ink); color: var(--ink); }

/* hero overlay used in cinematic */
.hero-bleed {
  position: relative; min-height: 560px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(31,27,22,0.07) 12px, rgba(31,27,22,0.07) 13px),
    var(--paper-2);
  display: flex; align-items: flex-end; padding: 56px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-bleed::after {
  content: '◇ HERO PHOTO — exterior of Harbor Church, golden hour';
  position: absolute; top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.08em;
}
.frame-mobile .hero-bleed { min-height: 420px; padding: 28px 20px; }
.frame-mobile .hero-bleed::after { font-size: 9px; }

/* breadcrumb */
.wf-crumb {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em;
}
