/* =========================================================
   J Y & CO: top navigation header + home hero refresh (Nov 2026)
   Loaded last on every page.
   ========================================================= */

:root { --header-h: 76px !important; }
@media (max-width: 768px) { :root { --header-h: 64px !important; } }

/* The old side rail is retired */
.jy-rail { display: none !important; }

/* ---------- Header bar ---------- */
.jy-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e7e6e1;
  box-shadow: 0 2px 14px rgba(38,48,58, 0.06);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
}
.jy-header *, .jy-header *::before, .jy-header *::after { box-sizing: border-box; }

.jy-header-inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Brand: monogram + name */
.jy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.jy-brand-logo { display: block; height: 50px; width: auto; }
.jy-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-left: 0.9rem;
  border-left: 1px solid #e2e1db;
}
.jy-brand-text strong {
  color: #26303A;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.jy-brand-text small {
  color: #68727b;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Right-hand actions */
.jy-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.jy-header-login {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1.05rem;
  border: 1px solid #cfcec8;
  border-radius: 8px;
  color: #26303A !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jy-header-login:hover, .jy-header-login:focus-visible { border-color: #26303A; background: #f4f3ef; outline: none; }

/* Call to action */
.jy-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  background: #ffed00;
  color: #26303A !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.25s ease, visibility 0.25s;
}
.jy-header-cta:hover, .jy-header-cta:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 237, 0, 0.25); outline: none; }

/* Home page: the header button waits until the hero's own button has scrolled away */
.jy-header-cta { max-width: 260px; overflow: hidden; white-space: nowrap; }
.jy-header--home .jy-header-cta { transition: max-width 0.3s ease, padding 0.3s ease, margin 0.3s ease, opacity 0.25s ease, visibility 0.25s, transform 0.15s ease, box-shadow 0.15s ease; }
.jy-header--home:not(.is-scrolled) .jy-header-cta { max-width: 0; padding-left: 0; padding-right: 0; margin-left: -0.6rem; opacity: 0; visibility: hidden; pointer-events: none; }
html.jy-menu-open .jy-header--home .jy-header-cta { opacity: 1; visibility: visible; pointer-events: auto; }

/* Menu button */
.jy-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 42px;
  padding: 0 0.9rem 0 1rem;
  margin-left: 0.2rem;
  background: transparent;
  border: 1px solid #cfcec8;
  border-radius: 8px;
  color: #26303A;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jy-menu-btn:hover, .jy-menu-btn:focus-visible { border-color: #26303A; background: #f4f3ef; outline: none; }
.jy-menu-btn-icon { position: relative; width: 18px; height: 12px; display: inline-block; }
.jy-menu-btn-icon i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.jy-menu-btn-icon i:nth-child(1) { top: 0; }
.jy-menu-btn-icon i:nth-child(2) { top: 5px; }
.jy-menu-btn-icon i:nth-child(3) { top: 10px; }
.jy-menu-btn[aria-expanded="true"] { border-color: #26303A; background: #26303A; color: #ffed00; }
.jy-menu-btn[aria-expanded="true"] .jy-menu-btn-icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.jy-menu-btn[aria-expanded="true"] .jy-menu-btn-icon i:nth-child(2) { opacity: 0; }
.jy-menu-btn[aria-expanded="true"] .jy-menu-btn-icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.jy-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 8999;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 237, 0, 0.07) 0%, rgba(255, 237, 0, 0) 45%),
    repeating-radial-gradient(circle at 50% 115%, rgba(255, 255, 255, 0) 0 118px, rgba(255, 255, 255, 0.035) 119px 120px),
    #26303A;
  animation: jyMenuIn 0.22s ease-out;
}
.jy-menu[hidden] { display: none; }
html.jy-menu-open, html.jy-menu-open body { overflow: hidden; }
@keyframes jyMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jy-menu { animation: none; } }

.jy-menu *, .jy-menu *::before, .jy-menu *::after { box-sizing: border-box; }
.jy-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.6rem clamp(18px, 4vw, 40px) 3rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Tabs */
.jy-menu-tabs { display: flex; flex-direction: column; gap: 0.6rem; position: sticky; top: 0; }
.jy-menu-tab {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e6e5e0;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.jy-menu-tab::before {
  content: "";
  width: 3px; height: 18px;
  margin-right: 0.85rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease;
}
.jy-menu-tab:hover { border-color: rgba(255, 255, 255, 0.25); }
.jy-menu .jy-menu-tab:focus, .jy-menu .jy-menu-card:focus, .jy-menu-btn:focus { outline: none !important; box-shadow: none; }
.jy-menu .jy-menu-tab:focus-visible, .jy-menu .jy-menu-card:focus-visible, .jy-menu-btn:focus-visible { outline: 2px solid rgba(255, 237, 0, 0.6) !important; outline-offset: 2px; }
.jy-menu-tab[aria-selected="true"] {
  color: #ffed00;
  border-color: rgba(255, 237, 0, 0.55);
  background: rgba(255, 237, 0, 0.06);
}
.jy-menu-tab[aria-selected="true"]::before { background: #ffed00; }

/* Cards */
.jy-menu-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.jy-menu-panel[hidden] { display: none; }
.jy-menu-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 150px;
  padding: 1.5rem 1.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.jy-menu-card:hover, .jy-menu-card:focus-visible {
  border-color: rgba(255, 237, 0, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  outline: none;
}
.jy-menu-ico { color: #ffed00; margin-bottom: 0.75rem; }
.jy-menu-ico svg { width: 30px; height: 30px; display: block; }
.jy-menu-card strong { color: #ffffff; font-size: 1.05rem; font-weight: 600; }
.jy-menu-card > span:last-child { color: #a9a79f; font-size: 0.88rem; line-height: 1.45; }
.jy-menu-card--accent { border-color: rgba(255, 237, 0, 0.45); background: rgba(255, 237, 0, 0.07); }

/* Section headings, highlighted desks and the "other countries" link inside a panel */
.jy-menu-sub {
  grid-column: 1 / -1;
  margin: 0.4rem 0 -0.2rem;
  color: #8a939c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.jy-menu-sub:first-child { margin-top: 0; }
.jy-menu-card--desk {
  min-height: 0;
  border-color: rgba(255, 237, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 237, 0, 0.1), rgba(255, 237, 0, 0.02));
}
.jy-menu-card--desk strong { font-size: 1.15rem; }
.jy-menu-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #d6d5cf !important;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.jy-menu-note svg { width: 20px; height: 20px; color: #ffed00; flex-shrink: 0; }
.jy-menu-note b { margin-left: auto; color: #ffed00; font-weight: 600; }
.jy-menu-note:hover, .jy-menu-note:focus-visible { border-color: rgba(255, 237, 0, 0.6); color: #ffffff !important; outline: none; }

/* Laptops and tablets */
@media (max-width: 1080px) {
  .jy-menu-inner { grid-template-columns: 210px 1fr; }
}
@media (max-width: 900px) {
  .jy-header-login { display: none; }
}

/* Phones */
@media (max-width: 768px) {
  .jy-brand-text { display: flex; }
  .jy-brand-logo { height: 38px; }
  .jy-brand-text strong { font-size: 1.08rem; }
  .jy-brand-text small { font-size: 0.62rem; }
  .jy-header-cta { display: none; }
  .jy-menu-btn { height: 40px; padding: 0 0.75rem; }
  .jy-menu-btn-label { display: none; }
  .jy-menu-inner { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1.2rem; }
  .jy-menu-tabs {
    flex-direction: row;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 calc(-1 * clamp(18px, 4vw, 40px));
    padding: 0.4rem clamp(18px, 4vw, 40px) 0.8rem;
    background: linear-gradient(#26303A 80%, rgba(38,48,58, 0));
    scrollbar-width: none;
  }
  .jy-menu-tabs::-webkit-scrollbar { display: none; }
  .jy-menu-tab { width: auto; flex-shrink: 0; padding: 0.6rem 1rem; font-size: 0.92rem; border-radius: 999px; }
  .jy-menu-tab::before { display: none; }
  .jy-menu-panel { grid-template-columns: 1fr; gap: 0.7rem; }
  .jy-menu-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    padding: 1rem 1.1rem;
  }
  .jy-menu-ico { grid-row: span 2; margin: 2px 0 0; }
  .jy-menu-ico svg { width: 26px; height: 26px; }
}

/* The old mobile dropdown and side rail are retired */
.jy-mobile-menu, .jy-rail { display: none !important; }

/* Inner page banners: a little breathing room under the fixed bar */
.page-hero { padding-top: calc(var(--header-h) + 2.2rem) !important; padding-bottom: 2.2rem !important; }

/* =========================================================
   Home hero: light, with the footage as a soft backdrop
   ========================================================= */
body .hero { background: #f7f7f4 !important; color: #26303A !important; }
body .hero::before { background: #f7f7f4 !important; }
body .hero .jy-reel.is-ready { opacity: 0.32; }
body .hero .jy-reel .jy-clip { filter: grayscale(1) contrast(1.05) brightness(1.02); }
body .hero .jy-veil {
  background: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(247, 247, 244, 0.92) 0%, rgba(247, 247, 244, 0.6) 65%, rgba(247, 247, 244, 0.3) 100%) !important;
}
body .hero .hero-kicker { color: #6b6200 !important; letter-spacing: 0.22em; }
body .hero h1.split .line1,
body .hero h1.split .line2 { color: #26303A !important; }
body .hero h1.split .line2 .hl {
  background: linear-gradient(transparent 62%, #ffed00 62%, #ffed00 92%, transparent 92%) !important;
  color: #26303A !important;
}
body .hero .hero-subtitle { color: #46505a !important; }
body .hero .btn-ghost { color: #26303A !important; border-color: rgba(38,48,58, 0.35) !important; background: transparent !important; }
body .hero .btn-ghost:hover { background: rgba(38,48,58, 0.05) !important; border-color: #26303A !important; }
body .hero .jy-reel-toggle { background: rgba(255, 255, 255, 0.75) !important; border-color: rgba(38,48,58, 0.2) !important; color: #26303A !important; }

/* Scroll cue: thin white mouse outline, small yellow dot moving down */
body .hero .scroll-down {
  display: flex !important;
  z-index: 3 !important;
  bottom: 34px !important;
  width: 26px !important; height: 42px !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: 1.5px solid rgba(38,48,58, 0.4) !important;
  box-shadow: none !important;
  animation: none !important;
  opacity: 1 !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
body .hero .scroll-down span {
  width: 4px !important; height: 8px !important;
  border-radius: 2px !important;
  background: #26303A !important;
  margin-top: 7px !important;
  animation: jyScrollDot 1.8s ease-in-out infinite !important;
}
body .hero .scroll-down:hover,
body .hero .scroll-down:focus-visible {
  border-color: #26303A !important;
  box-shadow: none !important;
  outline: none;
  transform: translateX(-50%) translateY(2px);
}
@keyframes jyScrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) { body .hero .scroll-down span { animation: none !important; } }
body .hero .jy-reel-toggle { background: rgba(38,48,58, 0.5) !important; border-color: rgba(255, 255, 255, 0.25) !important; color: rgba(255, 255, 255, 0.7) !important; }

@media (max-width: 768px) {
  body .hero .scroll-down { display: none !important; }
  body .hero { padding-top: calc(var(--header-h) + 34px) !important; }
  body .hero .jy-reel { background: #e8e8e3 !important; box-shadow: 0 14px 34px rgba(38,48,58, 0.14) !important; }
  body .hero .jy-reel.is-ready { opacity: 1; }
}

/* Services panel: country desks stacked on the left, services 2 x 3 on the right */
#jy-panel-services { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.4rem; align-items: start; }
.jy-menu-group { display: grid; gap: 1rem; align-content: start; }
.jy-menu-group--desks { grid-template-columns: 1fr; }
.jy-menu-group--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jy-menu-group--services .jy-menu-card { min-height: 0; }
.jy-menu-group .jy-menu-sub { margin-top: 0; }
@media (max-width: 1080px) {
  #jy-panel-services { grid-template-columns: 1fr; }
  .jy-menu-group--desks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .jy-menu-group--desks, .jy-menu-group--services { grid-template-columns: 1fr; gap: 0.7rem; }
}
