/* Balaji Workspaces — off-white/navy-ink/vermilion design system (see
   coworking_pages.py). Third sibling brand: shares nothing with studio.css
   (dark AI-studio) or stays.css (warm ivory/terracotta) by deliberate
   choice — three real business lines, three identities, one company. */

:root {
  --paper: #FBF9F6;
  --paper-raised: #FFFFFF;
  --ink: #0B1B2B;
  --ink-rule: #26374A;
  --text-body: #4A5663;
  --text-muted: #5A6673;
  --text-dim: #6B7580;
  --text-label: #8A9199;
  --text-on-dark: #FFFFFF;
  --text-on-dark-dim: #B9C2CC;
  --accent: #FF4D2E;
  --accent-ink: #0B1B2B;
  --border: #E7E1D9;
  --border-strong: #D8D2C9;
  --nav-active: #F0EBE3;
  --photo-fallback: #E7E1D9;
  --max-width: 1180px;
  --max-width-narrow: 820px;
  --pad-h: 28px;
}

* { box-sizing: border-box; }
body.cw {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: hidden;
}
body.cw .display { font-family: "Darker Grotesque", Helvetica, Arial, sans-serif; font-weight: 900; }
body.cw a { color: inherit; text-decoration: none; }
body.cw input, body.cw textarea, body.cw button, body.cw select { font: inherit; }
body.cw .wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad-h); }
body.cw .wrap-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--pad-h); }

@media (prefers-reduced-motion: reduce) {
  body.cw * { transition-duration: .001ms !important; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.cw-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; padding: 14px 28px; background: rgba(251,249,246,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.cw-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.cw-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cw-brand .name { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.cw-nav { display: flex; gap: 4px; }
.cw-nav a { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-dim); transition: background .2s, color .2s; }
.cw-nav a:hover { color: var(--ink); }
.cw-nav a.active { background: var(--nav-active); color: var(--ink); }
.cw-header-cta { flex: none; }
.cw-burger { display: none; flex: none; background: none; border: 1px solid var(--border-strong); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 16px; }
.cw-mobile-menu { display: none; }
@media (max-width: 860px) {
  .cw-nav { display: none; }
  .cw-burger { display: inline-flex; align-items: center; justify-content: center; }
  .cw-mobile-menu.open {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 28px 16px;
    background: var(--paper); border-bottom: 1px solid var(--border);
  }
  .cw-mobile-menu a { padding: 12px 10px; border-radius: 10px; color: var(--text-muted); font-weight: 500; }
  .cw-mobile-menu a.active { color: var(--ink); background: var(--nav-active); }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.cw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: background .2s, border-color .2s, color .2s;
}
.cw-btn.primary { background: var(--ink); color: #fff; }
.cw-btn.primary:hover { background: var(--accent); }
.cw-btn.accent { background: var(--accent); color: #fff; }
.cw-btn.accent:hover { background: var(--ink); }
.cw-btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.cw-btn.outline:hover { border-color: var(--ink); }
.cw-btn.light { background: #fff; color: var(--ink); }
.cw-btn.light:hover { background: var(--accent); color: #fff; }
.cw-btn.sm { padding: 10px 18px; font-size: 14px; }
.cw-btn.block { width: 100%; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.cw-section { padding: 64px var(--pad-h); }
.cw-section.home { padding: 80px var(--pad-h) 0; }
.cw-section.tight { padding: 56px var(--pad-h) 64px; }
.cw-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.cw-section-head h2 { margin: 0; font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cw-section-head .see-all { margin-left: auto; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.cw-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}
.cw-page-h1 { margin: 20px 0 0; font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: clamp(40px, 6vw, 84px); letter-spacing: -.03em; line-height: .94; }
.cw-lede { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-body); max-width: 56ch; }

/* ── Home hero ─────────────────────────────────────────────────────────── */
.cw-hero h1 { margin: 20px 0 0; font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: clamp(46px, 7.5vw, 104px); letter-spacing: -.03em; line-height: .92; text-wrap: balance; }
.cw-hero h1 em { color: var(--accent); font-style: normal; }
.cw-hero p { margin: 20px 0 0; font-size: 19px; line-height: 1.6; color: var(--text-body); max-width: 52ch; }
.cw-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cw-hero-photo-wrap { margin-top: 40px; }
.cw-hero-photo {
  width: 100%; height: clamp(280px, 46vw, 520px); border-radius: 20px; overflow: hidden;
  background: var(--photo-fallback);
}
.cw-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px;
  background: var(--border); margin-top: -1px;
}
.cw-stat-strip .cell { background: var(--paper-raised); padding: 20px 18px; }
.cw-stat-strip .figure { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: clamp(28px,3.4vw,38px); letter-spacing: -.02em; line-height: 1; }
.cw-stat-strip .label { margin-top: 6px; font-size: 13px; color: var(--text-dim); }

/* ── Space cards (home "what's on the floor") ─────────────────────────── */
.cw-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.cw-card { display: block; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color .2s; }
.cw-card:hover { border-color: var(--ink); }
.cw-card .photo { height: 190px; background: var(--photo-fallback); }
.cw-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-card .body { padding: 18px 20px 22px; }
.cw-card .kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cw-card .name { margin: 8px 0 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.01em; line-height: 1.05; }
.cw-card .blurb { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.cw-card .price-line { margin-top: 14px; font-size: 15px; font-weight: 600; }
.cw-card .price-line span { font-weight: 400; color: var(--text-dim); }

/* ── Audience band ─────────────────────────────────────────────────────── */
.cw-audience { background: var(--ink); color: var(--text-on-dark); border-radius: 24px; padding: 48px 40px; }
.cw-audience h2 { margin: 0 0 32px; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.02em; }
.cw-audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 32px; }
.cw-audience-col { border-top: 2px solid var(--accent); padding-top: 18px; }
.cw-audience-col h3 { margin: 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.cw-audience-col p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-on-dark-dim); }

/* ── In the rent ───────────────────────────────────────────────────────── */
.cw-rent-split { display: grid; grid-template-columns: minmax(260px,1fr) minmax(260px,1.2fr); gap: 44px; align-items: center; }
.cw-rent-split h2 { margin: 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.02em; line-height: 1; }
.cw-rent-split p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-body); max-width: 44ch; }
.cw-included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1px; background: var(--border); }
.cw-included-grid .cell { background: var(--paper-raised); padding: 20px 18px; font-size: 15px; font-weight: 600; }

/* ── Photo row ─────────────────────────────────────────────────────────── */
.cw-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cw-photo-row .cell { height: 300px; border-radius: 16px; overflow: hidden; background: var(--photo-fallback); }
.cw-photo-row .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Spaces & plans list ───────────────────────────────────────────────── */
.cw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.cw-chip { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; border: 1px solid var(--border); color: var(--text-body); }
.cw-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cw-row-list { display: grid; gap: 16px; }
.cw-row {
  display: grid; grid-template-columns: minmax(230px, 320px) 1fr; border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; transition: border-color .2s;
}
.cw-row:hover { border-color: var(--ink); }
.cw-row .photo { min-height: 230px; background: var(--photo-fallback); }
.cw-row .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-row .content { padding: 24px 26px; display: flex; flex-direction: column; }
.cw-row .kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cw-row .name { margin: 8px 0 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -.01em; line-height: 1.05; }
.cw-row .blurb { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 56ch; }
.cw-row .facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--text-dim); }
.cw-row .footer-line { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cw-row .price { font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 26px; }
.cw-row .price span { font-family: "Work Sans", sans-serif; font-weight: 400; font-size: 14px; color: var(--text-dim); margin-left: 4px; }
.cw-row .footer-line .cw-btn { margin-left: auto; }
.cw-dashed-panel {
  border: 1.5px dashed var(--border-strong); border-radius: 18px; padding: 32px; margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.cw-dashed-panel h3 { margin: 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 26px; }
.cw-dashed-panel p { margin: 6px 0 0; font-size: 14.5px; color: var(--text-muted); }

/* ── Space detail ──────────────────────────────────────────────────────── */
.cw-back { display: inline-block; font-size: 14px; font-weight: 500; color: var(--text-dim); }
.cw-back:hover { color: var(--ink); }
.cw-detail-h1 { margin: 14px 0 0; font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.03em; line-height: .96; }
.cw-detail-photo { height: clamp(240px, 36vw, 420px); border-radius: 20px; overflow: hidden; background: var(--photo-fallback); margin-top: 26px; }
.cw-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.cw-thumbs .cell { height: 110px; border-radius: 12px; overflow: hidden; background: var(--photo-fallback); }
.cw-thumbs .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-detail-split { display: grid; grid-template-columns: 1fr 340px; gap: 44px; margin-top: 40px; align-items: start; }
.cw-detail-block { margin-top: 36px; }
.cw-detail-block:first-child { margin-top: 0; }
.cw-detail-block h2 { margin: 0 0 16px; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 28px; }
.cw-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--border); }
.cw-spec-grid .cell { background: var(--paper-raised); padding: 16px 18px; }
.cw-spec-grid .k { font-size: 12px; color: var(--text-label); text-transform: uppercase; letter-spacing: .04em; }
.cw-spec-grid .v { margin-top: 6px; font-size: 15px; font-weight: 600; }
.cw-included-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; color: var(--text-body); }
.cw-rate-card { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.cw-rate-card .price { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 38px; letter-spacing: -.02em; }
.cw-rate-card .price span { font-family: "Work Sans", sans-serif; font-weight: 400; font-size: 14px; color: var(--text-dim); }
.cw-rate-card .note { margin: 10px 0 20px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.cw-rate-card .walkins { margin-top: 14px; font-size: 13px; color: var(--text-dim); text-align: center; }
.cw-cross-links { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.cw-cross-link { display: flex; align-items: center; gap: 12px; }
.cw-cross-link .thumb { width: 56px; height: 48px; border-radius: 8px; background: var(--photo-fallback); flex: none; overflow: hidden; }
.cw-cross-link .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-cross-link .name { font-size: 14px; font-weight: 600; }

/* ── Book a tour ───────────────────────────────────────────────────────── */
.cw-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.cw-progress .bar { height: 4px; background: #E4DED6; border-radius: 2px; }
.cw-progress .bar.done { background: var(--accent); }
.cw-progress .label { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.cw-progress .label.active { color: var(--ink); }
.cw-step-title { margin: 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -.01em; line-height: 1.05; }
.cw-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-top: 24px; }
.cw-option-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 18px; cursor: pointer; text-align: left;
  background: #fff; transition: background .2s, border-color .2s; font-family: inherit;
}
.cw-option-card .name { font-weight: 600; font-size: 16px; }
.cw-option-card .note { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.cw-option-card.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.cw-option-card.selected .note { color: var(--text-on-dark-dim); }
.cw-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cw-pill-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; }
.cw-pill-btn.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.cw-tour-panel { margin-top: 24px; }
.cw-field { display: block; margin-bottom: 18px; }
.cw-field .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-label); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.cw-field input {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 10px; padding: 13px 15px;
  font-size: 15px; background: #fff; font-family: inherit;
}
.cw-field input:focus { outline: none; border-color: var(--ink); }
.cw-recap { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; font-size: 14.5px; line-height: 1.7; color: var(--text-body); background: var(--paper); }
.cw-tour-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.cw-form-note { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); }
.cw-form-note.err { color: #C4341C; }
.cw-confirm { background: var(--ink); color: var(--text-on-dark); border-radius: 20px; padding: 48px 36px; text-align: center; }
.cw-confirm .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.cw-confirm h2 { margin: 0; font-family: "Darker Grotesque", sans-serif; font-weight: 800; font-size: 32px; }
.cw-confirm p { margin: 12px auto 0; max-width: 44ch; font-size: 15px; line-height: 1.6; color: var(--text-on-dark-dim); }
.cw-confirm .recap { margin: 20px auto 0; max-width: 44ch; text-align: left; font-size: 14px; color: var(--text-on-dark-dim); border-top: 1px solid var(--ink-rule); padding-top: 16px; }
.cw-confirm .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ── About ─────────────────────────────────────────────────────────────── */
.cw-about-split { display: grid; grid-template-columns: minmax(280px,1fr) minmax(300px,1.1fr); gap: 44px; align-items: center; }
.cw-about-split p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.cw-about-split p:last-child { margin-bottom: 0; }
.cw-about-photo { height: clamp(260px, 30vw, 400px); border-radius: 18px; overflow: hidden; background: var(--photo-fallback); }
.cw-about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1px; background: var(--border); margin-top: 56px; }
.cw-fact-grid .cell { background: var(--paper-raised); padding: 24px 20px; }
.cw-fact-grid .figure { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 36px; letter-spacing: -.02em; }
.cw-fact-grid .label { margin-top: 6px; font-size: 13px; color: var(--text-dim); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.cw-footer { border-top: 1px solid var(--border); padding: 44px var(--pad-h) 30px; }
.cw-footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; max-width: var(--max-width); margin: 0 auto; }
.cw-footer-brand { display: flex; align-items: center; gap: 8px; }
.cw-footer-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cw-footer-brand .name { font-family: "Darker Grotesque", sans-serif; font-weight: 900; font-size: 20px; }
.cw-footer-meta { font-size: 14px; color: var(--text-dim); }
.cw-footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.cw-footer-links a { font-size: 14.5px; color: var(--text-muted); }
.cw-footer-links a:hover { color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cw-detail-split { grid-template-columns: 1fr; }
  .cw-rate-card { position: static; }
  .cw-row { grid-template-columns: 1fr; }
  .cw-row .photo { min-height: 200px; }
  .cw-about-split { grid-template-columns: 1fr; }
  .cw-photo-row { grid-template-columns: 1fr; }
  .cw-rent-split { grid-template-columns: 1fr; }
}
