/* =========================================================================
   WRBLO — shared stylesheet
   1. Tokens
   2. Base + utilities
   3. Buttons
   4. Preference gate (index.html)
   5. Experience / landing page (experience.html)
   6. Motion + responsive
   ========================================================================= */

/* Global layer only. Section styles live in blocks/<name>/style.css and are
   loaded by WordPress only on pages where that block appears. */

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */
:root {
  /* Colour */
  --orange:       #e8712e;
  --orange-deep:  #d9631f;
  --orange-tint:  #fbeadf;
  --ink:          #0d0d0d;
  --ink-soft:     #1a1a1a;
  --paper:        #ffffff;
  --mist:         #f1f0ee;
  --muted:        #6b6b6b;
  --hairline:     rgba(13, 13, 13, .14);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --size-eyebrow: .75rem;
  --size-small:   .875rem;
  --size-body:    1rem;
  --size-lead:    1.0625rem;
  --size-h3:      clamp(1.25rem, 1.6vw + .9rem, 1.5rem);
  --size-h2:      clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  --size-h1:      clamp(2.25rem, 4.2vw + 1rem, 3.5rem);

  /* Space + shape */
  --gutter:       1.25rem;
  --section-y:    clamp(2.5rem, 7vw, 3.5rem);
  --radius:       4px;
  --radius-lg:    8px;
  --shadow-card:  0 1px 2px rgba(13, 13, 13, .08), 0 8px 24px rgba(13, 13, 13, .06);
  --ring:         3px solid var(--ink);
}

/* -------------------------------------------------------------------------
   2. Base + utilities
   ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* Images carry width/height attributes for layout stability. Without height:auto
   the intrinsic height survives while max-width shrinks the width, distorting the
   aspect ratio. Scoped to img so .ico's explicit svg sizing is untouched. */
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); letter-spacing: -.01em; }

.container {
  width: min(100% - (var(--gutter) * 2), 1080px);
  margin-inline: auto;
}
.container--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Shared by the hero eyebrow and split-content's "tag" eyebrow style — must
   stay in the global layer so a page can use one block without the other. */
.tag {
  display: inline-block;
  background: rgba(13, 13, 13, .12);
  border-radius: 999px;
  padding: .4rem .9rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tag--light { background: var(--orange-tint); color: var(--orange-deep); }

.lead { font-size: var(--size-lead); }
.muted { color: var(--muted); }
.center { text-align: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 26px; height: 26px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: var(--ring); outline-offset: 3px; }

/* Brand mark ----------------------------------------------------------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  text-decoration: none;
  color: inherit;
}
.logo__wing { width: 42px; height: auto; }

/* An uploaded logo is sized by HEIGHT, not width: logo lockups vary wildly in
   aspect ratio, and matching the wing's width would make a wide lockup tiny and
   a square one enormous. Without these rules an upload rendered at full
   intrinsic size. */
.logo__img { width: auto; height: 34px; max-width: 100%; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .8125rem;
  letter-spacing: .1em;
}
.logo--lg .logo__wing { width: 132px; }
.logo--lg .logo__img { height: 88px; }
.logo--lg .logo__word { font-size: 2.5rem; letter-spacing: .06em; }

/* Editor-only empty state: gives a block with no content yet something to
   click, so it can be selected and its fields reached. Never rendered on
   the front end — see wrblo_block_placeholder(). */
.wrblo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--muted);
  text-align: center;
}
.wrblo-placeholder strong { color: var(--ink); }

/* -------------------------------------------------------------------------
   3. Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.0625rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #000; color: var(--ink); }

.btn[disabled] {
  opacity: .32;
  cursor: not-allowed;
  transform: none;
}
.btn[disabled]:hover { transform: none; background: var(--ink); }


.site-header {
  background: var(--orange);
  border-bottom: 1px solid #000;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}
.site-header .logo__wing { width: 30px; }
.site-header .logo__img { height: 26px; }
.site-header .logo__word { font-size: .625rem; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }

.header-cta {
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: .625rem 1rem;
  border-radius: 2px;
}
.header-cta:hover { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }

.gate-bar {
  border-bottom: 1px solid rgba(13, 13, 13, .35);
}
.gate-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .875rem;
}
.gate-bar .logo__wing { width: 34px; }
.gate-bar .logo__word { font-size: .6875rem; }

.icon-btn {
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--ink);
}

/* Collapsible menu, shared by both pages */
.nav-panel { display: none; border-top: 1px solid rgba(13, 13, 13, .3); }
.nav-panel.is-open { display: block; }
.nav-panel ul { list-style: none; margin: 0; padding: .5rem 0 .75rem; display: grid; gap: .125rem; }
.nav-panel a {
  display: block;
  padding: .5rem 0;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-panel a:hover { text-decoration: underline; }

/* Selection strip -------------------------------------------------------- */
.tailored {
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .04em;
}
.tailored__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding-block: .625rem;
  text-align: center;
}
.tailored__inner p{
  margin: 0;
}

.tailored strong { font-weight: 700; }
.tailored a { color: var(--orange); font-weight: 700; }


.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--orange { background: var(--orange); }
.section--compact { padding-block: calc(var(--section-y) * .5); }
.section--flush { padding-block: 0; }

.section__head { max-width: 40rem; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head p { color: var(--muted); }
.section--ink .section__head p { color: rgba(255, 255, 255, .75); }

.site-footer { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer__blurb { font-size: var(--size-small); color: rgba(255, 255, 255, .7); max-width: 22rem; }
.site-footer h3 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.site-footer a { font-size: var(--size-small); color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { align-items: flex-start; margin-bottom: 1rem; }
.site-footer .logo__wing { width: 34px; }
.site-footer .logo__img { height: 30px; }

.site-footer__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}

/* -------------------------------------------------------------------------
   6. Motion + responsive
   ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr; }

  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; order: 2; }
  .header-cta { order: 1; margin-left: auto; }
  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    border-top: 1px solid rgba(13, 13, 13, .3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 .75rem; }
  .site-nav a { display: block; padding: .5rem 0; border-bottom: 0; }
}
