/*
Theme Name:   The Crossing — Child
Theme URI:    https://thecrossingnineveh.com/
Description:  Child theme for Blocksy. Locks in the Open Doors brand tokens, fonts, and a handful of bespoke styles that theme.json can't express cleanly. Activate this, not Blocksy directly.
Author:       The Crossing Nineveh
Template:     blocksy
Version:      1.0.0
Text Domain:  the-crossing-child
*/

/* -----------------------------------------------------------
   Brand tokens — mirror of theme.json for non-block CSS use.
   ----------------------------------------------------------- */
:root {
  --od-bg:       #faf6ef;
  --od-bg-2:     #efe7d6;
  --od-ink:      #0e0d0b;
  --od-ink-sub:  #3a3530;
  --od-dim:      #8a8378;
  --od-rule:     #e6dfd2;
  --od-brick:    #c8593a;
  --od-brick-dk: #a8401f;
  --od-gold:     #b8915a;
  --od-cream:    #f6efe1;
  --od-cream-2:  #c8c0b0;
  --od-rule-dk:  #2c2620;
}

/* -----------------------------------------------------------
   Eyebrow component
   Used above almost every section heading.
   Markup:
     <span class="od-eyebrow"><span class="od-eyebrow__rule"></span>Text</span>
   ----------------------------------------------------------- */
.od-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-brick);
  margin-bottom: 18px;
}
.od-eyebrow--on-dark { color: var(--od-gold); }
.od-eyebrow__rule {
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* Self-contained eyebrow used by the block patterns (no inner span needed).
   Add the class `is-on-dark` for the gold variant on dark sections. */
.od-eyebrow-simple {
  display: inline-flex;
  align-items: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-brick);
  margin: 0 0 18px;
}
.od-eyebrow-simple::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  margin-right: 10px;
}
.od-eyebrow-simple.is-on-dark { color: var(--od-gold); }

/* Mono tag used at the top of cards (01 · 02 · 03 …). */
.od-card-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-brick);
  margin: 0 0 14px;
}
.od-card-tag.is-on-dark { color: var(--od-gold); }

/* Dashed "more to come" placeholder tile (leadership pattern). */
.od-placeholder-tile {
  border: 1px dashed var(--od-rule);
  border-radius: 4px;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--od-dim);
}

/* -----------------------------------------------------------
   FAQ <details> styling
   theme.json also covers this; this is the fallback for when
   the editor outputs a bare <details> block.
   ----------------------------------------------------------- */
details.od-faq {
  border-top: 1px solid var(--od-rule);
  padding: 24px 0;
}
details.od-faq:last-child { border-bottom: 1px solid var(--od-rule); }
details.od-faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
details.od-faq > summary::-webkit-details-marker { display: none; }
details.od-faq > summary > h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
details.od-faq > summary > .od-faq__plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--od-rule);
  display: grid; place-items: center;
  transition: transform .2s, background .2s, color .2s;
  flex-shrink: 0;
}
details.od-faq[open] > summary > .od-faq__plus {
  transform: rotate(45deg);
  background: var(--od-ink);
  color: #fff;
  border-color: var(--od-ink);
}

/* -----------------------------------------------------------
   Chip selector (Plan-a-visit form)
   ----------------------------------------------------------- */
.od-chip {
  background: #fff;
  border: 1px solid var(--od-rule);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--od-ink);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.od-chip[aria-pressed="true"],
.od-chip:focus-visible {
  background: var(--od-ink);
  color: #fff;
  border-color: var(--od-ink);
}

/* -----------------------------------------------------------
   Sticky-nav scroll state
   Pair with a tiny JS snippet that toggles `.is-scrolled` on
   the site header after `scrollY > 30`.
   ----------------------------------------------------------- */
.ct-header-cta { transition: background .2s, backdrop-filter .2s; }
header.is-scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--od-rule);
}

/* -----------------------------------------------------------
   Mobile overrides
   The prototype is desktop-only. Until a proper mobile pass
   happens, soften the display type so it doesn't overflow.
   ----------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --wp--preset--font-size--h1: 3rem;
    --wp--preset--font-size--h2: 2rem;
    --wp--preset--font-size--mega: 3.5rem;
  }
  .wp-block-cover { min-height: 60vh; }
}
