/* ==========================================================================
   Site header (desktop) — one bar, one dropdown system.

   A macOS-style menu bar: a thin translucent dark strip with small, evenly
   spaced labels, and a single frosted panel style shared by every dropdown.
   Structure lives in header.php; the phone header (≤820px) is unchanged.
   ========================================================================== */

.rh-hdr {
  --hdr-ink: #2b2c27;
  --hdr-accent: #c05c15;
  --hdr-muted: #7a7870;
  --hdr-line: rgba(43, 44, 39, 0.1);
  --hdr-bar: #ffffff;
  --hdr-panel: #faf7f3;
  --hdr-gutter: clamp(24px, 4.3vw, 62px);
  --hdr-max: 1440px;
  --hdr-topbar-h: 34px;
  --hdr-nav-h: 80px;

  position: relative;
  z-index: 120;
  width: 100%;
  color: var(--hdr-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rh-hdr *,
.rh-hdr *::before,
.rh-hdr *::after { box-sizing: border-box; }
.rh-hdr a { color: inherit; text-decoration: none; }
.rh-hdr ul { margin: 0; padding: 0; list-style: none; }
.rh-hdr img { display: block; }

.rh-hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--hdr-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--hdr-gutter);
}

/* --- Top strip -------------------------------------------------------------- */

.rh-hdr__topbar {
  height: var(--hdr-topbar-h);
  background: rgba(14, 15, 11, 0.92);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rh-hdr__contact { display: flex; align-items: center; gap: 14px; }
.rh-hdr__contact a { color: rgba(255, 255, 255, 0.86); transition: color 160ms ease; }
.rh-hdr__contact a:hover { color: #fff; }
.rh-hdr__contact i { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.22); }

/* --- Bar ---------------------------------------------------------------------- */

.rh-hdr__nav {
  height: var(--hdr-nav-h);
  background: var(--hdr-bar);
  border-bottom: 1px solid rgba(43, 44, 39, 0.06);
}

.rh-hdr__brand { flex: none; display: inline-flex; align-items: center; height: 100%; padding-right: 8px; }
.rh-hdr__brand img { width: 172px; height: auto; opacity: 0.96; transition: opacity 160ms ease; }
.rh-hdr__brand:hover img { opacity: 1; }

.rh-hdr__menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

.rh-hdr__item { position: static; display: flex; align-items: stretch; }

.rh-hdr__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  color: var(--hdr-ink);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 160ms ease;
}

.rh-hdr__link svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--hdr-muted);
  transition: color 160ms ease, transform 200ms ease;
}

.rh-hdr__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 3px;
  background: var(--hdr-accent);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.rh-hdr__item:hover > .rh-hdr__link,
.rh-hdr__item:focus-within > .rh-hdr__link,
.rh-hdr__item--current > .rh-hdr__link { color: var(--hdr-accent); }
.rh-hdr__item:hover > .rh-hdr__link svg,
.rh-hdr__item:focus-within > .rh-hdr__link svg { color: var(--hdr-accent); transform: rotate(180deg); }
.rh-hdr__item:hover > .rh-hdr__link::after,
.rh-hdr__item:focus-within > .rh-hdr__link::after,
.rh-hdr__item--current > .rh-hdr__link::after { opacity: 1; transform: none; }

/* --- Actions ------------------------------------------------------------------ */

.rh-hdr__actions { display: flex; align-items: center; gap: 22px; flex: none; }

.rh-hdr__cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 100px;
  background: var(--hdr-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.rh-hdr__cta:hover { background: #a94f10; transform: translateY(-1px); }

.rh-hdr__project {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hdr-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease;
}

.rh-hdr__project:hover { color: var(--hdr-accent); }

.rh-hdr__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--hdr-accent);
  color: #fff;
  font-size: 10.5px;
  line-height: 1;
}

.rh-hdr__count[hidden] { display: none; }

/* --- Dropdown panels ----------------------------------------------------------
   One full-width sheet under the bar, in the manner of the large furniture
   and fashion houses: flat, edge to edge, content held to the site measure,
   columns sized to their text (no stretched whitespace), one editorial image
   anchored right. No card, no radius, no hover blocks — only type and colour. */

.rh-hdr__nav { position: relative; }
.rh-hdr__menu { position: static; }
.rh-hdr__item { position: static; }

.rh-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 130;
  background: var(--hdr-panel);
  color: var(--hdr-ink);
  border-top: 1px solid rgba(43, 44, 39, 0.06);
  border-bottom: 1px solid rgba(43, 44, 39, 0.08);
  box-shadow: 0 30px 50px -30px rgba(14, 15, 11, 0.25);
  text-transform: none;
  letter-spacing: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1), visibility 0s linear 160ms;
  pointer-events: none;
}

.rh-hdr__item:hover > .rh-menu,
.rh-hdr__item:focus-within > .rh-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 160ms ease 40ms, transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1) 40ms, visibility 0s;
}

/* Mega sheet: content on the site measure. */
.rh-menu--mega { padding: 56px var(--hdr-gutter) 0; }

.rh-menu__cols {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 5.5vw, 110px);
  max-width: var(--hdr-max);
  margin: 0 auto;
  padding-bottom: 60px;
}

.rh-menu__col {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.rh-menu__eyebrow {
  margin-bottom: 18px;
  color: var(--hdr-accent);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rh-menu__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0;
  border-radius: 0;
  transition: color 120ms ease;
}

.rh-menu__row strong { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--hdr-ink); transition: color 120ms ease; }
.rh-menu__row span { font-size: 14px; line-height: 1.45; color: var(--hdr-muted); text-wrap: pretty; }
.rh-menu__row:hover { background: transparent; }
.rh-menu__row:hover strong { color: var(--hdr-accent); }

.rh-menu__row--step { flex-direction: row; align-items: baseline; gap: 16px; }
.rh-menu__row--step b { flex: none; width: 22px; color: var(--hdr-muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; }
.rh-menu__row--step:hover b { color: var(--hdr-accent); }

/* Editorial image, anchored to the right edge of the measure. */
.rh-menu__feature {
  flex: 0 1 auto;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: clamp(260px, 21vw, 320px);
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}

.rh-menu__feature:hover { box-shadow: none; transform: none; }
.rh-menu__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0; background: #ede4da; margin-bottom: 10px; }
.rh-menu__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.6, 0.2, 1); }
.rh-menu__feature:hover .rh-menu__media img { transform: scale(1.03); }
.rh-menu__feature .rh-menu__eyebrow { margin: 0; }
.rh-menu__feature strong { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; transition: color 120ms ease; }
.rh-menu__feature:hover strong { color: var(--hdr-accent); }
.rh-menu__feature em { margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hdr-accent); }
.rh-menu__feature .rh-menu__eyebrow { margin-bottom: 4px; }

/* Card variant: a white panel with a short pitch and one outline action. */
.rh-menu__feature--card {
  gap: 12px;
  padding: 32px 32px 34px;
  background: #fff;
  border: 1px solid rgba(43, 44, 39, 0.06);
}
.rh-menu__feature--card strong { font-size: 20px; }
.rh-menu__feature--card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--hdr-muted); }
.rh-menu__feature--card em {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 44px;
  margin-top: 10px;
  padding: 0 22px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--hdr-accent);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  transition: background-color 160ms ease, color 160ms ease;
}
.rh-menu__feature--card:hover em { background: var(--hdr-accent); color: #fff; }

/* Foot line: a full-width hairline with one quiet call to action. */
.rh-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--hdr-max);
  margin: 0 auto;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(43, 44, 39, 0.1);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  color: var(--hdr-muted);
}

.rh-menu__foot a { flex: none; color: var(--hdr-ink); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; transition: color 120ms ease; }
.rh-menu__foot a:hover { color: var(--hdr-accent); }

/* Short list (Guides): a narrow sheet under its own label. */
.rh-hdr__item:has(> .rh-menu--list) { position: relative; }
.rh-menu--list {
  left: 0;
  right: auto;
  width: 340px;
  padding: 18px 0 16px;
  border-top: 0;
}

.rh-menu--list .rh-menu__row { margin: 0; padding: 10px 30px; }

/* --- Homepage: same light bar; the hero starts beneath it ------------------- */

body.home .rh-hdr { position: relative; }

/* --- Widths ------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .rh-hdr__link { padding: 0 11px; font-size: 14.5px; }
  .rh-hdr__link::after { left: 11px; right: 11px; }
  .rh-hdr__actions { gap: 14px; }
  .rh-hdr__brand img { width: 150px; }
  .rh-menu__cols { gap: 48px; }
  .rh-menu__feature { width: 240px; }
}

@media (max-width: 1080px) {
  .rh-hdr__topbar .rh-hdr__tagline { display: none; }
  .rh-hdr__topbar .rh-hdr__inner { justify-content: flex-end; }
  .rh-hdr__project { display: none; }
  .rh-menu__feature { display: none; }
}

@media (max-width: 820px) {
  .rh-hdr { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-hdr *, .rh-menu { transition: none !important; }
}
