/* site-nav.css — tablet/mobile hamburger + slide-in drawer.
 * Pairs with site-nav.js. Desktop nav is untouched; the toggle only appears at
 * the same 860px breakpoint where .nav__links is hidden. */

/* ---- toggle ---- */
.nav__right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.navburger {
  display: none;
  width: 44px; height: 44px; flex: 0 0 auto;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid rgba(245, 242, 234, 0.28);
  border-radius: 3px; cursor: pointer; padding: 0;
  transition: border-color .2s, background .2s;
}
.navburger:hover { border-color: rgba(245, 242, 234, 0.6); background: rgba(245, 242, 234, 0.06); }
.navburger:focus-visible { outline: 2px solid var(--brassLt, #C9A86A); outline-offset: 2px; }
.navburger__box { display: block; position: relative; width: 20px; height: 14px; }
.navburger__box span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--cream, #F5F2EA);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), opacity .18s ease;
}
.navburger__box span:nth-child(1) { top: 0; }
.navburger__box span:nth-child(2) { top: 6.25px; }
.navburger__box span:nth-child(3) { top: 12.5px; }
/* becomes an X while the drawer is open */
.navburger[aria-expanded="true"] .navburger__box span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.navburger[aria-expanded="true"] .navburger__box span:nth-child(2) { opacity: 0; }
.navburger[aria-expanded="true"] .navburger__box span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* ---- backdrop ---- */
.navdrawer__backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(9, 26, 19, 0.62);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.navdrawer__backdrop.is-open { opacity: 1; visibility: visible; }

/* ---- drawer ---- */
.navdrawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(86vw, 348px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--forest, #143D2E) 0%, var(--night, #091A13) 100%);
  border-left: 1px solid rgba(201, 168, 106, 0.28);
  box-shadow: -26px 0 64px rgba(9, 26, 19, 0.5);
  transform: translateX(100%); visibility: hidden;
  transition: transform .34s cubic-bezier(.2, .7, .3, 1), visibility .34s ease;
  overflow-y: auto; overscroll-behavior: contain;
}
.navdrawer.is-open { transform: translateX(0); visibility: visible; }

.navdrawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}
.navdrawer__k {
  font-family: var(--mono, ui-monospace, monospace); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brassLt, #C9A86A); margin: 0;
}
.navdrawer__close {
  width: 38px; height: 38px; flex: 0 0 auto; display: flex;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: 50%; color: var(--cream, #F5F2EA); cursor: pointer; padding: 0;
  transition: background .18s, border-color .18s;
}
.navdrawer__close:hover { background: rgba(245, 242, 234, 0.08); border-color: rgba(245, 242, 234, 0.5); }
.navdrawer__close:focus-visible { outline: 2px solid var(--brassLt, #C9A86A); outline-offset: 2px; }

.navdrawer__links { display: flex; flex-direction: column; padding: 12px 0 8px; }
.navdrawer__link {
  position: relative;
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 26px;
  font-family: var(--serif, Georgia, serif); font-size: 25px; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--cream, #F5F2EA);
  transition: color .18s, background .18s, padding-left .22s;
}
.navdrawer__link .n {
  font-family: var(--mono, ui-monospace, monospace); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--brassLt, #C9A86A); opacity: .75;
  flex: 0 0 auto; transform: translateY(-4px);
}
.navdrawer__link::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0;
  height: 1px; background: rgba(245, 242, 234, 0.09);
}
.navdrawer__link:last-child::after { display: none; }
.navdrawer__link:hover, .navdrawer__link:focus-visible {
  color: var(--brassLt, #C9A86A); background: rgba(201, 168, 106, 0.07); padding-left: 32px;
}
.navdrawer__link:focus-visible { outline: none; }
.navdrawer__link.is-current { color: var(--brassLt, #C9A86A); }
.navdrawer__link.is-current .n { opacity: 1; }

/* ---- dropdown entry rendered as an accordion (Acquirers) ---- */
.navdrawer__group { display: flex; flex-direction: column; }
.navdrawer__toggle {
  /* It's a real <button>, so undo the UA chrome — but do NOT touch font here.
     A `font:` shorthand would beat .navdrawer__link's serif/size/weight and
     render this row smaller than the other top-level items. */
  width: 100%; margin: 0; background: none; border: 0; text-align: left;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.navdrawer__chev {
  margin-left: auto; align-self: center; flex: 0 0 auto;
  color: var(--brassLt, #C9A86A); transition: transform .24s cubic-bezier(.2, .7, .3, 1);
}
/* The rotated chevron is the expanded affordance — the label keeps the same
   colour as every other top-level row. */
.navdrawer__toggle[aria-expanded="true"] .navdrawer__chev { transform: rotate(180deg); }

.navdrawer__sub {
  display: flex; flex-direction: column;
  background: rgba(9, 26, 19, 0.42);
  border-top: 1px solid rgba(245, 242, 234, 0.07);
  animation: drawerSubIn .26s cubic-bezier(.2, .7, .3, 1) both;
}
.navdrawer__sub[hidden] { display: none; }
@keyframes drawerSubIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .navdrawer__sub { animation: none; } }

.navdrawer__sublink {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 13px 26px 13px 44px;
  font-family: var(--serif, Georgia, serif); font-size: 19px; font-weight: 500;
  letter-spacing: -0.005em; line-height: 1.25;
  color: rgba(245, 242, 234, 0.86);
  transition: color .18s, background .18s, padding-left .22s;
}
.navdrawer__sublink .n {
  font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--brassLt, #C9A86A); opacity: .7;
  flex: 0 0 auto; min-width: 14px; transform: translateY(-3px);
}
.navdrawer__sublink::after {
  content: ""; position: absolute; left: 44px; right: 26px; bottom: 0;
  height: 1px; background: rgba(245, 242, 234, 0.06);
}
.navdrawer__sublink:last-child::after { display: none; }
.navdrawer__sublink:hover, .navdrawer__sublink:focus-visible {
  color: var(--brassLt, #C9A86A); background: rgba(201, 168, 106, 0.06); padding-left: 50px;
}
.navdrawer__sublink:focus-visible { outline: none; }
.navdrawer__sublink.is-current { color: var(--brassLt, #C9A86A); }
.navdrawer__sublink.is-current .n { opacity: 1; }

.navdrawer__foot {
  margin-top: auto; padding: 22px 26px 26px;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
}
.navdrawer__foot a {
  font-family: var(--sans, system-ui, sans-serif); font-size: 13.5px; line-height: 1.5;
  color: rgba(245, 242, 234, 0.72); transition: color .18s;
}
.navdrawer__foot a:hover { color: var(--brassLt, #C9A86A); }

/* Contact Us lives here on phones, where it is hidden from the header. */
.navdrawer__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 2px;
  border: 1.5px solid rgba(245, 242, 234, 0.5);
  font-family: var(--sans, system-ui, sans-serif) !important;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream, #F5F2EA) !important;
  transition: background .2s, border-color .2s, color .2s;
}
.navdrawer__cta:hover, .navdrawer__cta:focus-visible {
  background: var(--cream, #F5F2EA); color: var(--forest, #143D2E) !important;
  border-color: var(--cream, #F5F2EA);
}
.navdrawer__cta:focus-visible { outline: 2px solid var(--brassLt, #C9A86A); outline-offset: 2px; }

/* Locks background scroll while open. */
body.has-drawer { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .navdrawer, .navdrawer__backdrop, .navburger__box span { transition-duration: .01ms; }
}

/* Show the toggle exactly where the horizontal links drop out. */
@media (max-width: 860px) {
  .navburger { display: flex; }
}

/* Phones: the header is too cramped for the Contact Us button, so it moves
   into the drawer. 560px is the site's existing phone breakpoint. */
@media (max-width: 560px) {
  .nav__cta { display: none; }
}
@media (min-width: 561px) {
  .navdrawer__cta { display: none; }
}
@media (min-width: 861px) {
  .navdrawer, .navdrawer__backdrop { display: none; }
}
