/* ==========================================================
   Menterra – Header & Footer
   Fonts: IvyPresto Text Semi Bd (headings), Soleil Light (text)
   Uses its own class names (mh-* header, mf-* footer) so old main.css rules don't clash.
   ========================================================== */
:root {
  --mh-bg: #fffefb;
  --mh-ink: #1f2a26;
  --mh-green: #0e5e49;       /* white text on it: 7.6:1 */
  --mh-green-dark: #0a4636;
  --mh-lime: #d4ec7c;
  --mh-line: #b4b1a9;
  --mh-cream: #f1eee7;
  --mh-focus: #0a4fd6;
  --mh-font-head: "IvyPresto Text Semi Bd", "IvyPresto Text", Georgia, "Times New Roman", serif;
  --mh-font-body: "soleillight", "Soleil Light", "Soleil", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- utilities ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 100000;
  padding: .85rem 1.25rem; background: #fff; color: var(--mh-ink);
  border: 2px solid var(--mh-ink); border-radius: 4px; font-family: var(--mh-font-body); font-size: 1rem;
  text-decoration: underline; transition: top .15s;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--mh-focus); outline-offset: 2px; }

.mh-header a:focus-visible, .mh-header button:focus-visible {
  outline: 3px solid var(--mh-focus); outline-offset: 3px; box-shadow: 0 0 0 5px #fff;
}
.mf a:focus-visible { outline: 3px solid var(--mh-lime); outline-offset: 4px; border-radius: 2px; }

/* ---------- header ---------- */
.mh-header {
  position: sticky; top: 0; z-index: 100;          /* sticky on scroll */
  background: var(--mh-bg); color: var(--mh-ink);
  font-family: var(--mh-font-body);
}
body.admin-bar .mh-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mh-header { top: 46px; } }
html { scroll-padding-top: 110px; }                 /* anchor links don't hide under the sticky header */
.mh-header { transition: box-shadow .25s ease; }
.mh-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.mh-bar { transition: min-height .25s ease; }
@media (prefers-reduced-motion: reduce) { .mh-header, .mh-bar { transition: none; } }
.mh-bar {
  position: relative; box-sizing: border-box;
  max-width: 1768px; margin: 0 auto; padding: 0 1.5rem;   /* logo + rule line up with the content container */
  min-height: 82px; height: 82px;
  display: flex; align-items: center; gap: 2rem;
}
.mh-bar::after {                       /* thin rule under the bar, inset like the live site */
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0;
  border-bottom: 1px solid var(--mh-line); pointer-events: none;
}

.mh-logo { flex: 0 0 auto; line-height: 0; }
.mh-logo a { display: inline-block; }
.mh-logo img, .mh-logo .custom-logo { display: block; width: auto; height: auto; max-width: 85px; max-height: 45px; }
.mh-sitename { font-family: var(--mh-font-head); font-size: 1.5rem; line-height: 1.2; color: var(--mh-ink); text-decoration: none; }

.mh-toggle, .mh-overlay, .mh-drawer-top { display: none; }

.mh-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 1.5rem; }
.mh-menu--main { flex: 1 1 auto; }
.mh-ctas { flex: 0 0 auto; margin-left: auto; }
@media (min-width: 1025px) { .mh-menu--main { margin-left: clamp(1rem, 5vw, 7rem); } }   /* menu sits left, next to the logo */
.mh-ctas > li, .mh-ctas > li:first-child, .mh-ctas > li.mh-btn--outline { margin-left: 0; }
.mh-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.75rem);
}
.mh-menu > li { position: relative; margin: 0; }
.mh-menu > li:first-child { margin-left: 0; }
.mh-menu > li.mh-btn--outline { margin-left: auto; }

.mh-menu a {
  display: block; padding: .6rem .9rem;
  color: #20242A; font-family: var(--mh-font-body); font-weight: normal;
  font-size: 1.125rem; letter-spacing: .03em; line-height: 1.3; text-decoration: none;
}
.mh-menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mh-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }   /* no grey box, like the live site */

/* buttons (Investor Login / Pitch To Us) */
.mh-menu > li.mh-btn > a {
  min-height: 68px; display: flex; align-items: center; justify-content: center;
  padding: 0 2.2rem; box-sizing: border-box; border: 2px solid var(--mh-green); border-radius: 0; text-align: center;
  white-space: nowrap;
}
.mh-menu > li.mh-btn--outline > a { background: transparent; color: var(--mh-green); }
.mh-menu > li.mh-btn--solid > a { background: var(--mh-green); color: #fff; }
.mh-menu > li.mh-btn--outline > a:hover { background: var(--mh-green); color: #fff; text-decoration: none; }
.mh-menu > li.mh-btn--solid > a:hover {
    background: transparent;
    border-color: var(--mh-green-dark);
    text-decoration: none;
    color: var(--mh-green-dark);
}
.mh-menu > li.mh-btn > a[aria-current="page"] { background: var(--mh-green-dark); color: #fff; }

/* sub menus (only if you add them in Appearance > Menus) */
.mh-menu .sub-menu {
  list-style: none; margin: 0; padding: .5rem 0; min-width: 220px;
  position: absolute; left: 0; top: 100%; z-index: 20;
  background: var(--mh-bg); border: 1px solid var(--mh-line);
  display: none;
}
.mh-menu li:hover > .sub-menu, .mh-menu li:focus-within > .sub-menu { display: block; }

/* ---------- header: desktop – measured from the live site ----------
   13px above the row, 69px row, 15px below it, then the thin rule (rule at 97px).
   container = 90.5% wide, logo inset 11px, 34px gap under the rule.
   Menu text 16px, buttons text 18px. Nothing wraps: items are nowrap and the menu
   shrinks its gaps on smaller desktops, so the buttons never stick out of the container. */
@media (min-width: 1025px) {
  .mh-header { --mh-gap: 5px; margin-bottom: var(--mh-gap); }
  .mh-bar {
    width: 90.5%; max-width: none; padding: 0; height: 97px; min-height: 97px;
    box-sizing: border-box; align-items: flex-start; gap: 0;
  }
  .mh-bar::after { left: 0; right: 0; }                       /* rule = full container width */
  .mh-logo { margin: 15px 0 0 11px; flex: 0 0 auto; }
  .mh-logo img, .mh-logo .custom-logo { max-height: 75px; max-width: 160px; }
  .mh-nav { height: 96px; gap: 0; align-items: flex-start; min-width: 0; }
 .mh-menu--main {
    margin-left: clamp(2rem, 7.7vw, 147px);
    gap: 0;
    min-width: 0;
    flex: 1 1 auto;
    align-items: stretch;
    height: 96px;
}
  .mh-menu--main > li { display: flex; }
  /* active / hover = light beige, FULL height of the bar (top of header down to the rule) */
  .mh-menu--main a { box-sizing: border-box; display: flex; align-items: center; height: 100%; transition: background-color .3s; }
  .mh-menu--main a:hover, .mh-menu--main a[aria-current="page"], .mh-menu--main .current-menu-item > a { background: #f8f5ed; text-decoration: none; }
  .mh-menu--main a { padding: .6rem 23px; font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; }   /* original: 20px Soleil Light, 23px side padding */
  .mh-ctas { gap: 12px; margin-left: auto; flex: 0 0 auto; margin-top: 13px; }
  .mh-menu > li.mh-btn > a { height: 69px; min-height: 69px; font-size: 1.125rem; padding: 0 47px; white-space: nowrap; }
  .mh-menu > li.mh-btn--solid > a { padding: 0 58px; }
}
/* smaller laptops: smaller text + tighter gaps (the live site also steps its sizes down) */
@media (min-width: 1025px) and (max-width: 1799px) {
  .mh-menu--main { margin-left: 8vw; }
  .mh-menu--main a { padding: .6rem 16px; font-size: 1.125rem; }
  .mh-ctas { gap: 8px; }
  .mh-menu > li.mh-btn > a { padding: 0 26px; font-size: .9375rem; }
  .mh-menu > li.mh-btn--solid > a { padding: 0 30px; }
  .mh-logo img, .mh-logo .custom-logo { max-width: 130px; }
}
@media (min-width: 1025px) and (max-width: 1439px) {
  .mh-menu--main { margin-left: 1.5vw; }
  .mh-menu--main a { padding: .6rem 11px; font-size: 1rem; }
  .mh-ctas { gap: 6px; }
  .mh-menu > li.mh-btn > a { height: 60px; min-height: 60px; padding: 0 18px; font-size: .875rem; }
  .mh-menu > li.mh-btn--solid > a { padding: 0 22px; }
  .mh-logo img, .mh-logo .custom-logo { max-width: 115px; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .mh-menu--main { margin-left: 1vw; }
  .mh-menu--main a { padding: .6rem 8px; font-size: .875rem; }
  .mh-menu > li.mh-btn > a { height: 52px; min-height: 52px; padding: 0 12px; font-size: .8125rem; }
  .mh-menu > li.mh-btn--solid > a { padding: 0 14px; }
  .mh-logo img, .mh-logo .custom-logo { max-width: 100px; }
}

/* ---------- header: tablet / mobile drawer ---------- */
@media (max-width: 1024px) {
  .mh-bar { min-height: 82px; height: 82px; justify-content: space-between; }

  .mh-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0; margin: 0;
    background: none; border: 0; color: var(--mh-ink); cursor: pointer;
  }
  .mh-toggle__bars { display: block; width: 28px; }
  .mh-toggle__bars span { display: block; height: 1.5px; background: currentColor; margin: 7px 0; }

  .mh-overlay {
    display: block; position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  .mh-open .mh-overlay { opacity: 1; visibility: visible; transition: opacity .3s; }

  .mh-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
    width: min(440px, 88vw); box-sizing: border-box;
    padding: 1.5rem 1.5rem 2.5rem;
    background: var(--mh-bg); overflow-y: auto;
    display: block;
    transform: translateX(100%);
    visibility: hidden;                 /* closed drawer is not tabbable */
    transition: transform .3s ease, visibility 0s .3s;
  }
  .mh-open .mh-nav { transform: none; visibility: visible; transition: transform .3s ease; }
  body.mh-open { overflow: hidden; }

  .mh-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .mh-close {
    width: 48px; height: 48px; padding: 0; background: none; border: 0;
    color: var(--mh-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  }

  .mh-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .mh-menu > li, .mh-menu > li:first-child, .mh-menu > li.mh-btn--outline { margin: 0; }
  .mh-menu > li:not(.mh-btn) { border-bottom: 1px solid var(--mh-line); }
  .mh-menu > li:not(.mh-btn) > a { padding: clamp(1.4rem, 4.5vh, 2.4rem) .5rem; font-size: 1.0625rem; }
  .mh-menu > li.mh-btn { margin-top: 1.25rem; }
  .mh-menu > li.mh-btn > a { width: 100%; box-sizing: border-box; }
  .mh-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; background: none; }
}

/* ---------- footer ---------- */
.mf { background: var(--mh-green); color: #fff; font-family: var(--mh-font-body); }
.mf-inner {
  box-sizing: border-box; max-width: 1500px; margin: 0 auto; padding: 4.5rem 1.5rem 4.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch;
}
.mf-links, .mf-contact, .mf-brand { box-sizing: border-box; padding: 0 2.5rem; }
.mf-links { padding-left: 0; }
.mf-contact, .mf-brand { border-left: 1px solid rgba(255, 255, 255, .4); }
.mf-brand { padding-right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }

.mf h2 { margin: 0 0 1.25rem; color: #fff; font-weight: normal; line-height: 1.2; }
.mf-links h2 { font-family: var(--mh-font-head); font-size: 1.125rem; letter-spacing: .02em; margin-bottom: .75rem; }
.mf-contact h2 { font-family: var(--mh-font-head); font-size: clamp(1.75rem, 1.2rem + 1.4vw, 1.9rem); }

.mf-menu {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 2rem 3rem;
}
.mf-menu li { margin: 0; }
.mf a { color: #fff; text-decoration: none; font-family: var(--mh-font-body); font-size: 1.125rem; letter-spacing: .03em; }
.mf a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mf address { font-style: normal; font-size: 1.125rem; line-height: 1.45; letter-spacing: .02em; }
.mf-line { margin: .75rem 0 0; }

.mf-logo { display: inline-block; line-height: 0; }
.mf-logo img { display: block; width: min(250px, 100%); height: auto; }
.mf-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.25rem; }
.mf-social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--mh-lime); }
.mf-social a:hover { color: #fff; text-decoration: none; }
.mf-icon { width: 32px; height: 32px; }

/* ---------- footer: mobile / tablet – logo, Quick Links list with arrows, Connect with us, social ---------- */
@media (max-width: 1024px) {
  .mf-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem 2rem; row-gap: 0; }
  .mf-brand { display: contents; }                       /* logo + social become separate grid items so they can be ordered */
  .mf-logo   { order: 1; justify-self: center; margin-bottom: 1.5rem; }
  .mf-logo img { width: 150px; }
  .mf-links  { order: 2; padding: 0; border: 0; }
  .mf-contact { order: 3; padding: 2rem 0 0; border: 0; text-align: center; }
  .mf-social { order: 4; justify-self: center; margin-top: 1.75rem; padding-top: 1.5rem; width: 100%; border-top: 1px solid rgba(255, 255, 255, .4); gap: .5rem 1rem; }

  .mf-links h2 { font-family: var(--mh-font-body); font-size: .9375rem; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .75rem; }
  .mf-menu { display: block; }
  .mf-menu li { border-bottom: 1px solid rgba(255, 255, 255, .35); }
  .mf-menu li:first-child { border-top: 1px solid rgba(255, 255, 255, .35); }
  .mf-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 1rem; }
  .mf-menu a::after {                                    /* small ↗ arrow, like the live site */
    content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-left: 1rem;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 10 10 2M4 2h6v6' fill='none' stroke='white' stroke-width='1.3'/></svg>");
  }
  .mf-contact h2 { font-size: 1.625rem; margin-bottom: 1rem; }
  .mf address { font-size: .875rem; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-nav, .mh-overlay, .skip-link { transition: none; }
}
@media (forced-colors: active) {
  .mh-menu > li.mh-btn > a, .mh-toggle, .mh-close { border: 2px solid ButtonText; }
  .mh-toggle__bars span { background: CanvasText; }
  .mh-menu a[aria-current="page"] { outline: 2px solid CanvasText; }
}
@media print { .mh-toggle, .mh-overlay, .mh-nav { display: none; } .mf { background: #fff; color: #000; } .mf a, .mf h2 { color: #000; } }