/* ===========================================================================
   Fiqi Group — site chrome: header, navigation, footer.
   Injected by js/chrome.js so every page carries the same one.

   The old header put nine links in a single row; below about 1100px they
   wrapped mid-phrase ("Nala soo xiriir" broke across three lines). Here the
   links are grouped into five menus, and below 1024px the whole thing becomes
   a drawer instead of trying to fit.
   =========================================================================== */

/* ------------------------------------------------------------------ header */

.sh {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
  padding-top: env(safe-area-inset-top, 0px);
}
.sh.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 40, 32, .03), 0 10px 30px -22px rgba(16, 40, 32, .5);
}

.sh-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* brand ------------------------------------------------------------------ */
.sh-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex: none;
  /* The old mark let its two text lines wrap into the logo. */
  white-space: nowrap;
}
.sh-brand img {
  height: 42px;
  width: auto;
  border-radius: 9px;
  flex: none;
}
.sh-brand b {
  display: block;
  font-family: Spectral, Georgia, serif;
  font-size: 17.5px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--mint-800);
}
.sh-brand span span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* desktop nav ------------------------------------------------------------ */
.sh-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }

.sh-item { position: relative; }

.sh-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 9px;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.sh-link:hover { color: var(--mint); background: var(--mint-50); }
.sh-link[aria-current="page"],
.sh-item.is-active > .sh-link { color: var(--mint); font-weight: 600; }
.sh-link svg { transition: transform .22s ease; opacity: .6; }
.sh-item.is-open .sh-link svg { transform: rotate(180deg); }

/* dropdown --------------------------------------------------------------- */
.sh-menu {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  min-width: 262px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 24px 60px -20px rgba(16, 40, 32, .3), 0 2px 8px rgba(16, 40, 32, .06);
  padding: 8px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sh-item.is-open .sh-menu { opacity: 1; visibility: visible; transform: none; }

.sh-menu a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px 11px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background .16s ease;
}
.sh-menu a:hover { background: var(--mint-50); }
.sh-menu a[aria-current="page"] { background: var(--mint-50); }
.sh-menu .mi {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--mint);
  flex: none;
}
.sh-menu b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.sh-menu small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* actions ---------------------------------------------------------------- */
.sh-act { display: flex; align-items: center; gap: 9px; flex: none; }

.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.sh-btn:active { transform: translateY(1px); }
.sh-ghost { color: var(--ink-2); border-color: var(--line-2); background: var(--surface); }
.sh-ghost:hover { border-color: var(--mint-300); color: var(--mint); }
.sh-cta {
  color: #fff;
  background: var(--grad-mint);
  box-shadow: 0 1px 2px rgba(38,74,62,.3), 0 10px 22px -12px rgba(38,74,62,.75);
}
.sh-cta:hover { box-shadow: 0 2px 4px rgba(38,74,62,.32), 0 16px 30px -14px rgba(38,74,62,.85); }

/* burger ----------------------------------------------------------------- */
.sh-burger {
  display: none;
  gap: 9px;
  padding: 0 14px 0 12px;
  height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  flex: none;
}
.sh-burger b { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.sh-burger span {
  display: block; position: relative;
  width: 18px; height: 1.8px; border-radius: 2px; background: var(--ink);
  transition: transform .24s ease, opacity .18s ease;
}
.sh-burger span::before,
.sh-burger span::after {
  content: ""; position: absolute; inset-inline-start: 0;
  width: 18px; height: 1.8px; border-radius: 2px; background: var(--ink);
  transition: transform .24s ease;
}
.sh-burger span::before { top: -6px; }
.sh-burger span::after  { top: 6px; }
.sh-burger[aria-expanded="true"] span { transform: rotate(45deg); }
.sh-burger[aria-expanded="true"] span::before { transform: rotate(-90deg) translateX(6px); }
.sh-burger[aria-expanded="true"] span::after  { opacity: 0; }

/* drawer ----------------------------------------------------------------- */
.sh-drawer {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: var(--surface);
  padding: calc(84px + env(safe-area-inset-top, 0px)) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 4px;
}
.sh-drawer[hidden] { display: none !important; }

.sh-d-group > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  cursor: pointer;
  text-align: start;
}
.sh-d-group > button svg { transition: transform .24s ease; color: var(--muted); }
.sh-d-group.is-open > button { color: var(--mint); }
.sh-d-group.is-open > button svg { transform: rotate(180deg); }

.sh-d-sub { display: grid; gap: 2px; padding: 6px 0 12px; }
.sh-d-sub[hidden] { display: none; }
.sh-d-sub a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15.5px;
  background: var(--mint-50);
}
.sh-d-sub a[aria-current="page"] { color: var(--mint); font-weight: 600; }

.sh-d-solo {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 600; color: var(--ink);
  text-decoration: none;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.sh-d-solo[aria-current="page"] { color: var(--mint); }

.sh-d-act { display: grid; gap: 10px; margin-top: 22px; }
.sh-d-act .sh-btn { justify-content: center; padding: 14px 20px; font-size: 15.5px; }

@media (max-width: 1080px) {
  .sh-nav, .sh-act { display: none; }
  .sh-burger { display: flex; margin-inline-start: auto; }
}
@media (max-width: 520px) {
  /* The strapline is the first thing to go: the brand name and the labelled
     menu button both have to fit, and the label is what makes the menu
     findable for people who use the web rarely. */
  .sh-brand span span { display: none; }
}
@media (max-width: 420px) {
  .sh-in { height: 66px; gap: 10px; }
  .sh-brand img { height: 34px; }
  .sh-brand b { font-size: 15.5px; }
  .sh-burger { padding: 0 11px 0 10px; gap: 7px; }
  .sh-burger b { font-size: 13.5px; }
}

body.nav-open { overflow: hidden; }

/* Every page sits under the fixed header. */
.has-chrome { padding-top: 74px; }
@media (max-width: 420px) { .has-chrome { padding-top: 66px; } }

/* ------------------------------------------------------------------ footer */

.sf {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, .78);
  margin-top: 90px;
  position: relative;
  overflow: hidden;
}
.sf::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(111, 154, 136, .18), transparent 70%);
  pointer-events: none;
}
.sf-in { max-width: var(--maxw); margin: 0 auto; padding: 68px var(--pad) 0; position: relative; }

.sf-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 52px;
}

.sf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.sf-brand img { height: 46px; border-radius: 9px; background: #fff; padding: 3px; }
.sf-brand b { display: block; font-family: Spectral, Georgia, serif; font-size: 18px; line-height: 1.15; }
.sf-brand span span { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 3px; }

.sf-blurb { margin-top: 18px; font-size: 14.5px; line-height: 1.72; color: rgba(255,255,255,.72); max-width: 42ch; }

.sf-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-300);
  margin-bottom: 15px;
}
.sf-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  padding: 6px 0;
  transition: color .16s ease, transform .16s ease;
}
.sf-col a:hover { color: #fff; transform: translateX(3px); }

.sf-contact { display: grid; gap: 12px; margin-top: 20px; font-size: 14.5px; }
.sf-contact div { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.74); }
.sf-contact svg { flex: none; margin-top: 3px; color: var(--mint-300); }
.sf-contact a { color: inherit; text-decoration: none; }
.sf-contact a:hover { color: #fff; }

.sf-social { display: flex; gap: 9px; margin-top: 22px; }
.sf-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.sf-social a:hover { background: var(--mint-500); transform: translateY(-2px); }

.sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 24px 0 calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}
.sf-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.sf-bottom a { color: inherit; text-decoration: none; }
.sf-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sf-brand-cell { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sf-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 38px; }
  .sf-in { padding-top: 52px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------------------------------------------------------------- fixes */
/* The nav plus both buttons needs ~1340px; between the mobile breakpoint
   and that, tighten instead of letting "Deeq bixi" fall off the edge. */
@media (min-width: 1081px) and (max-width: 1440px) {
  .sh-link { padding: 8px 9px; font-size: 14px; }
  .sh-brand span span { display: none; }
  .sh-act { gap: 7px; }
  .sh-btn { padding: 8px 14px; }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  .sh-act .sh-ghost { display: none; }   /* "Soo gal" stays in the menu and footer */
}

/* A row hidden until it has content must stay hidden. */
.sf-contact [hidden] { display: none; }

/* The footer's give button is a button, not a footer text link. */
.sf-col a.sh-cta {
  display: inline-flex; justify-content: center; color: #fff;
  padding: 11px 22px; font-size: 14.5px; transform: none;
  background: var(--gold); box-shadow: none;
}
.sf-col a.sh-cta:hover { background: var(--gold-400); transform: none; }

/* ------------------------------------------------- Fiqi Group lockup */
.sh-brand { gap: 13px; }
.sh-brand img { height: 46px; width: 46px; object-fit: contain; transition: transform .3s ease; }
.sh-brand:hover img { transform: translateY(-1px) scale(1.03); }
.sh-brand > span { border-inline-start: 1px solid var(--line-2); padding-inline-start: 13px; }
.sh-brand b { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.sh-brand b em { font-style: normal; font-weight: 500; color: var(--mint-500); }
.sh-brand span span { font-size: 9.5px; letter-spacing: .12em; margin-top: 4px; }
@media (max-width: 520px) {
  .sh-brand > span { border: 0; padding: 0; }
  .sh-brand img { height: 36px; width: 36px; }
  .sh-brand b { font-size: 17px; }
}
/* footer: the emblem sits on its own light tile against the dark band */
.sf .sh-brand b em, .sf-brand b em { color: #9dbcae; }
.sh-brand img { height: 40px; width: auto; }
@media (max-width: 520px) { .sh-brand img { height: 32px; width: auto; } }
.sf-brand img { height: 48px; width: auto; padding: 6px 10px; border-radius: 12px; background: #fff; }
.sf-brand b em { font-style: normal; font-weight: 500; color: #9dbcae; }

/* footer: follow the work by email */
.sf-news { margin-top: 36px; padding: 22px 24px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 18px; align-items: center; }
.sf-news-t { display: grid; gap: 4px; }
.sf-news-t b { color: #fff; font-size: 16px; }
.sf-news-t span { color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.55; }
.sf-news-f { display: flex; gap: 8px; }
.sf-news-f input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.95); color: #14261f; }
.sf-news-f input:focus { outline: 2px solid var(--mint-300); outline-offset: 1px; }
.sf-news-f button { font: inherit; font-weight: 700; font-size: 14.5px; padding: 0 18px; min-height: 46px; border-radius: 12px; border: 0; cursor: pointer; background: #e8c987; color: #1c3a30; }
.sf-news-f button:hover { background: #f0d79f; }
@media (max-width: 760px) { .sf-news { grid-template-columns: 1fr; padding: 18px; } }
