/* ============================================================
   CROOBLE URBAN ADVISORY — shared stylesheet
   Strategy · Advocacy · Delivery
   ============================================================ */

:root {
  --navy:       #1A1A2E;
  --navy-deep:  #10101E;
  --navy-line:  #2A2A40;
  --gold:       #C9A84C;
  --gold-soft:  #D8BC6A;
  --white:      #FFFFFF;
  --grey:       #9B9B9B;   /* metadata / captions */
  --grey-body:  #ADADB6;   /* body copy on navy — lifted for contrast */
  --ink:        #1A1A2E;   /* type on white sections */
  --ink-soft:   #51515E;   /* body on white sections */
  --paper:      #FFFFFF;
  --paper-soft: #F4F3EF;

  --maxw: 1100px;
  --pad-x: 56px;
  --pad-y: 96px;

  --font: Helvetica, Arial, "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--grey-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--navy); }

/* ---------- shared layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--pad-y) 0; }

.section--navy  { background: var(--navy); }
.section--deep  { background: var(--navy-deep); }
.section--paper { background: var(--paper); color: var(--ink-soft); }

/* ---------- eyebrow + gold-line decoration ---------- */
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.section--paper .eyebrow { color: var(--navy); }

.goldlines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 26px 0 0;
}
.goldlines span {
  height: 2px;
  background: var(--gold);
  display: block;
}
.goldlines span:nth-child(1) { width: 36px; }
.goldlines span:nth-child(2) { width: 72px; }
.goldlines span:nth-child(3) { width: 110px; }

/* ---------- headings ---------- */
h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  line-height: 1.05;
}
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--ink); }

.h-xl { font-size: clamp(48px, 8vw, 104px); letter-spacing: 0.04em; }
.h-lg { font-size: clamp(30px, 4vw, 44px);  letter-spacing: 0.08em; }
.h-md { font-size: clamp(20px, 2.4vw, 27px); letter-spacing: 0.1em; }

.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  max-width: 60ch;
  color: var(--grey-body);
}
.section--paper .lede { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1.5px solid var(--gold);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--fill { background: var(--gold); color: var(--navy); }
.btn--fill:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,.18);
}
/* offsets anchor-link targets so they land below the sticky nav instead of behind it */
[id] { scroll-margin-top: 88px; }
.nav__inner {
  max-width: 100%;
  margin: 0 auto;
  height: 68px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 44px; height: 34px; flex: none; }
.cm-logo { width: 66px; height: auto; flex: none; display: block; }
.footer .cm-logo { width: 54px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 17px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--white); text-transform: uppercase;
}
.brand__sub {
  font-size: 7px; font-weight: 700; letter-spacing: 0.32em;
  color: var(--gold); text-transform: uppercase; margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white);
  transition: color .2s var(--ease); position: relative;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav__links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav__links a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; padding: 0; flex-direction: column;
  justify-content: center; gap: 6px;
}
.nav__toggle span { display: block; height: 2px; background: var(--gold); transition: .3s var(--ease); }

/* ============================================================
   HERO (interior pages)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 14vw, 168px) 0 clamp(72px, 10vw, 120px);
  background: var(--navy);
}
.hero__watermark {
  position: absolute;
  top: 50%; right: -2%;
  transform: translateY(-50%);
  font-size: clamp(180px, 34vw, 460px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(201, 168, 76, 0.05);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero__inner { position: relative; z-index: 2; }
.hero .lede { margin-top: 30px; }

/* ============================================================
   GOLD CTA STRIP
   ============================================================ */
.cta-strip { background: var(--gold); color: var(--navy); }
.cta-strip .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap;
}
.cta-strip h2 { color: var(--navy); }
.cta-strip p { margin: 14px 0 0; color: #463c1a; max-width: 46ch; font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); border-top: 1px solid var(--navy-line); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding: 76px 0 56px;
}
.footer__tag { color: var(--grey); font-size: 13.5px; margin: 22px 0 0; max-width: 34ch; }
.footer__col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 20px;
}
.footer__col a, .footer__col p {
  display: block; font-size: 13.5px; color: var(--grey);
  margin: 0 0 13px; transition: color .25s var(--ease);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding: 26px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
}
.footer__bottom .spaced { color: var(--gold); }

/* ============================================================
   IMAGE PLACEHOLDER (no real photo available)
   ============================================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      rgba(201,168,76,0.07) 0, rgba(201,168,76,0.07) 12px,
      rgba(201,168,76,0.02) 12px, rgba(201,168,76,0.02) 24px),
    var(--navy-deep);
  border: 1px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: 0.12em; color: var(--gold);
  text-transform: uppercase; padding: 8px 14px;
  border: 1px solid rgba(201,168,76,0.4);
}

/* ============================================================
   LIGHTBOX (project / speaking-gallery images)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,18,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
  padding: 40px;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.lightbox__img {
  max-width: 96vw; max-height: 90vh; width: auto; height: auto;
  display: block; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 24px;
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; padding: 0 24px; pointer-events: none;
}
.lightbox__cap span { color: var(--gold); display: block; margin-bottom: 6px; font-size: 10px; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; z-index: 5;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
@media (max-width: 860px) {
  .lightbox { padding: 20px; }
  .lightbox__close { top: 12px; right: 14px; width: 38px; height: 38px; }
}

.lightbox__inner { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox__media { position: relative; overflow: hidden; display: flex; background: var(--navy-deep); min-height: 0; min-width: 0; }

/* ---- lightbox detail mode: image + development summary panel ---- */
.lightbox.has-summary .lightbox__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 400px);
  align-items: stretch;
  width: min(1180px, 96vw);
  height: min(760px, 90vh);
  background: var(--navy-deep);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox.has-summary .lightbox__img {
  max-width: none; max-height: none; width: 100%; height: 100%;
  min-height: 0; min-width: 0;
  object-fit: contain; object-position: center; box-shadow: none;
}
.lightbox.has-summary .lightbox__cap { bottom: 0; left: 0; right: auto; text-align: left; padding: 24px; }
.lightbox__summary {
  display: none;
  overflow-y: auto;
  min-height: 0;
  padding: 44px 36px;
  border-left: 1px solid var(--navy-line);
}
.lightbox.has-summary .lightbox__summary { display: block; }
.lightbox__summary-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.lightbox__summary-title {
  font-size: 21px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: #fff; margin: 0 0 26px; line-height: 1.25;
}
.lightbox__summary dl { margin: 0; }
.lightbox__summary dl > div { padding: 11px 0; border-top: 1px solid var(--navy-line); }
.lightbox__summary dl > div:first-child { border-top: none; padding-top: 0; }
.lightbox__summary dt {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 4px;
}
.lightbox__summary dd { font-size: 13.5px; line-height: 1.55; margin: 0; color: var(--grey-body); }
.lightbox__summary-notes {
  list-style: none; margin: 22px 0 0; padding: 18px 0 0;
  border-top: 1px solid rgba(201,168,76,.3);
}
.lightbox__summary-notes li {
  position: relative; padding-left: 18px; margin: 0 0 10px;
  font-size: 13px; line-height: 1.6; color: var(--gold-soft);
}
.lightbox__summary-notes li::before { content: "\2014"; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 760px) {
  .lightbox { padding-top: 64px; }
  .lightbox.has-summary .lightbox__inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 30vh) 1fr;
    gap: 2px;
    width: 96vw; overflow-y: auto;
  }
  .lightbox__summary { padding: 28px 22px; border-left: none; border-top: 1px solid var(--navy-line); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad-x: 26px; --pad-y: 68px; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--navy-line);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px var(--pad-x) 24px;
    transform: translateY(-130%);
    transition: transform .38s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--navy-line); font-size: 13px; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .hero__watermark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   PARTNER LOGO TICKER
   ============================================================ */
.ticker {
  background: var(--paper);
  padding: 34px 0;
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 84px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { flex: none; display: flex; align-items: center; }
.ticker__item img {
  height: 52px; width: auto; display: block;
  -webkit-user-drag: none;
}
.ticker__item img.ticker__img--tall { height: 62px; }
.ticker__item img.ticker__img--wide { height: 34px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 860px) {
  .ticker { padding: 26px 0; }
  .ticker__track { gap: 52px; }
  .ticker__item img { height: 40px; }
  .ticker__item img.ticker__img--tall { height: 48px; }
  .ticker__item img.ticker__img--wide { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
