/* Afrivest site header, Guides panel and menu sheet. Shared by every page. */
html { scroll-padding-top: 92px; }
.site-head {
  --nh-bg: var(--hero-bg, #15362B); --nh-ink: var(--hero-ink, #F3F5F0); --nh-soft: var(--hero-soft, #BACDC3);
  --nh-line: #C9A55E; --nh-rule: rgba(243,245,240,.14); --nh-rule-strong: rgba(243,245,240,.42);
  --np-bg: var(--white, #FFFFFF); --np-ink: var(--ink, #14231D); --np-muted: var(--muted, #56665E); --np-rule: var(--rule, #D6DDD3); --np-brass: var(--brass, #9A7431); --np-green: var(--green, #1F4D3C);
  position: sticky; top: 0; z-index: 40; background: var(--nh-bg); color: var(--nh-ink);
  border-bottom: 1px solid var(--nh-rule);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
@media (prefers-color-scheme: dark) { .site-head { --np-bg: #172520; } .sh-panel { box-shadow: 0 0 0 1px #2C3E36, 0 40px 80px -40px rgba(0,0,0,.85); } }
.site-head.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.55); }
.site-head.is-hidden { transform: translateY(-100%); }
.sh-inner { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; min-height: 78px; display: flex; align-items: center; gap: 28px; }
.sh-brand { display: flex; align-items: center; gap: 12px; color: var(--nh-ink); text-decoration: none; flex: none; margin-right: auto; }
.sh-brand:hover { color: var(--nh-ink); }
.sh-brand svg { width: 40px; height: 40px; flex: none; }
.sh-name { font: 600 1.45rem/1.05 "Spectral", Georgia, serif; letter-spacing: -.005em; }
.sh-name small { display: block; margin-top: 2px; letter-spacing: .01em; font: 400 .8rem/1.3 "Public Sans", system-ui, sans-serif; color: var(--nh-soft); }

.sh-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sh-nav > ul > li { display: flex; align-items: center; }
.sh-nav > ul > li > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--nh-ink); text-decoration: none; font: 500 1.04rem/1 "Public Sans", system-ui, sans-serif; }
.sh-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--nh-line); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.sh-nav > ul > li > a:hover::after, .sh-nav > ul > li > a[aria-current]::after, .sh-nav > ul > li > a.is-current::after { transform: scaleX(1); }
.sh-nav > ul > li > a[aria-current], .sh-nav > ul > li > a.is-current { color: var(--nh-line); }
.has-panel > a { padding-right: 4px !important; }
.has-panel > a::after { right: 4px !important; }
.sh-caret { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 44px; margin-right: 4px; padding: 0; border: 0; background: none; color: var(--nh-soft); cursor: pointer; border-radius: 4px; }
.sh-caret svg { width: 12px; height: 12px; transition: transform .2s ease; }
.sh-caret[aria-expanded="true"] svg { transform: rotate(180deg); }
.sh-caret:hover { color: var(--nh-ink); }

.sh-cta { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 1px solid var(--nh-rule-strong); border-radius: 999px; color: var(--nh-ink); text-decoration: none; font: 600 .98rem/1 "Public Sans", system-ui, sans-serif; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.sh-cta svg { width: 17px; height: 17px; flex: none; }
.sh-cta:hover { background: var(--nh-ink); color: var(--nh-bg); border-color: var(--nh-ink); }

.sh-menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px; border: 0; background: none; color: var(--nh-ink); font: 600 .95rem/1 "Public Sans", system-ui, sans-serif; cursor: pointer; }
.sh-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 26px; height: 26px; }
.sh-burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; }
.sh-burger i:last-child { width: 70%; margin-left: auto; }

.site-head :focus-visible, .menu-sheet :focus-visible { outline: 2px solid var(--nh-line, #C9A55E); outline-offset: 3px; border-radius: 4px; }

/* Guides panel */
.sh-panel { position: absolute; top: calc(100% + 1px); left: 50%; width: min(1040px, calc(100vw - 48px)); transform: translateX(-50%); background: var(--np-bg); color: var(--np-ink); border-radius: 0 0 14px 14px; box-shadow: 0 40px 80px -40px rgba(10,25,19,.6), 0 2px 0 rgba(0,0,0,.04); }
.sh-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--np-brass); }
.sh-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sh-panel.is-open { animation: panel-in .22s cubic-bezier(.2,.7,.2,1); }
  @keyframes panel-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
.shp-grid { display: grid; grid-template-columns: 1fr 1.25fr .85fr; gap: 0; }
.shp-grid > * { padding: 34px 32px 30px; }
.shp-feature { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--np-ink); border-right: 1px solid var(--np-rule); }
.shp-feature:hover { color: var(--np-ink); }
.shp-label { font: 600 .82rem/1 "Public Sans", sans-serif; color: var(--np-brass); }
.shp-title { font: 500 1.55rem/1.15 "Spectral", Georgia, serif; letter-spacing: -.01em; }
.shp-text { font: 400 .95rem/1.55 "Public Sans", sans-serif; color: var(--np-muted); }
.shp-go { margin-top: 6px; padding-top: 10px; font: 600 .92rem/1 "Public Sans", sans-serif; color: var(--np-green); }
.shp-feature:hover .shp-go { text-decoration: underline; text-underline-offset: 3px; }
.shp-head { margin: 0 0 8px; font: 600 .82rem/1 "Public Sans", sans-serif; color: var(--np-muted); }
.shp-list ul { list-style: none; margin: 0 0 14px; padding: 0; }
.shp-list li a { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--np-rule); text-decoration: none; color: var(--np-ink); }
.shp-t { font: 500 1.06rem/1.3 "Spectral", Georgia, serif; }
.shp-a { font: 400 .8rem/1.3 "Public Sans", sans-serif; color: var(--np-muted); }
.shp-list li a:hover .shp-t { color: var(--np-green); }
.shp-all { font: 600 .9rem/1 "Public Sans", sans-serif; color: var(--np-green); text-decoration: none; display: inline-block; padding: 8px 0; }
.shp-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.shp-grid > .shp-check { margin: 22px 22px 22px 0; padding: 26px 24px 22px; background: var(--nh-bg); color: var(--nh-ink); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.shp-check::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--nh-line); }
.shp-check p { margin: 0; font: 500 1.3rem/1.25 "Spectral", Georgia, serif; }
.shp-check span { font: 400 .88rem/1.5 "Public Sans", sans-serif; color: var(--nh-soft); }
.shp-check a { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 6px; background: var(--nh-ink); color: var(--nh-bg); font: 600 .9rem/1 "Public Sans", sans-serif; text-decoration: none; }
.shp-check a:hover { background: #FFFFFF; color: var(--nh-bg); }

/* Menu sheet (phones and tablets) */
.menu-sheet { position: fixed; inset: 0; z-index: 60; background: var(--hero-bg, #15362B); color: var(--hero-ink, #F3F5F0); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu-sheet[hidden] { display: none; }
.menu-sheet::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 3px; background: #C9A55E; z-index: 1; }
.ms-rosette { position: fixed; width: 620px; height: 620px; right: -260px; bottom: -240px; color: #C9A55E; pointer-events: none; opacity: .5; }
.ms-rosette svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-inner { position: relative; width: min(640px, 100%); margin: 0 auto; padding: 0 20px calc(32px + env(safe-area-inset-bottom)); min-height: 100%; display: flex; flex-direction: column; }
.ms-top { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-bottom: 1px solid rgba(243,245,240,.14); margin-bottom: 18px; }
.ms-top .sh-brand { margin-right: 0; }
.ms-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--hero-ink, #F3F5F0); font: 600 .95rem/1 "Public Sans", sans-serif; cursor: pointer; }
.ms-close svg { width: 24px; height: 24px; }
.ms-nav ul { list-style: none; margin: 0; padding: 0; }
.ms-nav a { display: block; padding: 11px 0; color: var(--hero-ink, #F3F5F0); text-decoration: none; font: 500 clamp(1.9rem, 8vw, 2.5rem)/1.12 "Spectral", Georgia, serif; letter-spacing: -.015em; }
.ms-nav a[aria-current] { color: #C9A55E; }
.ms-nav a:hover { color: #C9A55E; }
.ms-guides { margin: 22px 0 0; padding: 20px 0 4px; border-top: 1px solid rgba(243,245,240,.14); display: flex; flex-direction: column; }
.ms-guides p { margin: 0 0 6px; font: 600 .82rem/1 "Public Sans", sans-serif; color: var(--hero-soft, #BACDC3); }
.ms-guides a { padding: 9px 0; color: var(--hero-ink, #F3F5F0); text-decoration: none; font: 400 1.02rem/1.35 "Public Sans", sans-serif; border-bottom: 1px solid rgba(243,245,240,.08); }
.ms-guides a:hover { color: #C9A55E; }
.ms-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 8px; text-decoration: none; font: 600 1rem/1 "Public Sans", sans-serif; }
.ms-btn svg { width: 19px; height: 19px; flex: none; }
.ms-btn-light { background: var(--hero-ink, #F3F5F0); color: var(--hero-bg, #15362B); }
.ms-btn-line { border: 1px solid rgba(243,245,240,.42); color: var(--hero-ink, #F3F5F0); }
.ms-btn-light:hover { background: #FFFFFF; color: var(--hero-bg, #15362B); }
.ms-btn-line:hover { background: rgba(243,245,240,.08); color: var(--hero-ink, #F3F5F0); }
.shp-all:hover { color: var(--np-green); }
.shp-list li a:hover { color: var(--np-ink); }
.ms-top .sh-brand:hover { color: var(--hero-ink, #F3F5F0); }
.ms-contact p { margin: 4px 0 0; text-align: center; font: 400 .88rem/1.4 "Public Sans", sans-serif; color: var(--hero-soft, #BACDC3); }
.ms-foot { margin: auto 0 0; padding-top: 32px; font: 500 1.02rem/1.4 "Spectral", Georgia, serif; color: #C9A55E; }
.tg-pair { display: inline-block; }
.ms-foot span:not(.tg-pair) { display: block; margin-top: 4px; font: 400 .8rem/1.4 "Public Sans", sans-serif; color: var(--hero-soft, #BACDC3); }
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet.is-open { animation: sheet-in .26s ease; }
  .menu-sheet.is-open .ms-nav li { animation: item-in .5s cubic-bezier(.2,.7,.2,1) both; }
  .menu-sheet.is-open .ms-nav li:nth-child(2) { animation-delay: .04s; }
  .menu-sheet.is-open .ms-nav li:nth-child(3) { animation-delay: .08s; }
  .menu-sheet.is-open .ms-nav li:nth-child(4) { animation-delay: .12s; }
  .menu-sheet.is-open .ms-nav li:nth-child(5) { animation-delay: .16s; }
  .menu-sheet.is-open .ms-nav li:nth-child(6) { animation-delay: .2s; }
  @keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes item-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
html.menu-open, html.menu-open body { overflow: hidden; }

/* Responsive */
@media (max-width: 1040px) {
  .sh-nav { display: none; }
  .sh-menu { display: inline-flex; }
  .sh-inner { gap: 10px; }
}
@media (max-width: 560px) {
  .sh-inner { padding: 0 16px; min-height: 70px; }
  .sh-cta { display: none; }
  .sh-brand svg { width: 38px; height: 38px; }
  .sh-name { font-size: 1.16rem; }
  html { scroll-padding-top: 82px; }
}
@media (max-width: 350px) {
  .sh-inner { gap: 6px; }
  .sh-menu { padding-left: 8px; }
  .sh-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sh-name { font-size: 1rem; }
}
@media print { .site-head, .menu-sheet { display: none !important; } }
