/* ============================================================
   Founders Without Borders — shared site chrome
   Cross-page nav, footer, buttons. Matches the Cape Town page.
   ============================================================ */

html { scroll-behavior: smooth; }
body { background: #ffffff; }

.nav-inner { max-width: 1240px; }
.container { padding-left: 32px; padding-right: 32px; }

/* brand mark */
.brand-mark { height: 30px; width: auto; mix-blend-mode: multiply; }

/* white nav, blue footer, yellow primary button (editorial original) */
.nav { background: #ffffff; }
.footer { background: #5E7C99; }
.btn-primary { background: #FDFBD4; color: var(--ink); box-shadow: var(--shadow-2); }
.btn-primary:hover { background: #F2EDAE; box-shadow: var(--shadow-3); }

/* footer social row */
.footer-social { display: flex; gap: 20px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; gap: 7px; margin: 0; }
.footer-social svg { width: 16px; height: 16px; }

/* footer subscribe */
.footer-subscribe { margin-top: 22px; max-width: 340px; }
.footer-subscribe label { display: block; font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.footer-subscribe .sub-row { display: flex; gap: 8px; }
.footer-subscribe input { flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 14px; color: var(--paper-white); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-md); padding: 11px 14px; }
.footer-subscribe input::placeholder { color: rgba(255,255,255,0.45); }
.footer-subscribe input:focus { outline: none; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.12); }
.footer-subscribe button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; border: none; border-radius: var(--r-md); background: var(--paper-white); color: #5E7C99; cursor: pointer; transition: background var(--dur-mid) var(--ease-out); }
.footer-subscribe button:hover { background: #fff; }
.footer-subscribe button svg { width: 18px; height: 18px; }
.footer-subscribe .sub-note { font-family: var(--font-sans); font-size: 13px; color: #BFE0DE; margin-top: 10px; }

/* shared accents */
.dot { background: var(--ink); }
.nav-links .btn { white-space: nowrap; }

/* ============================================================
   RESPONSIVE CHROME — nav, footer, containers
   Applies to every page that loads this stylesheet.
   ============================================================ */

/* mobile menu toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: var(--paper-white);
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .menu { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

/* ---- tablet & down: collapse nav links into a dropdown panel ---- */
@media (max-width: 860px) {
  .nav-inner { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-brand { font-size: 19px; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-white);
    border-bottom: 1px solid var(--ink-line);
    box-shadow: var(--shadow-3);
    padding: 6px 20px 20px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link {
    font-size: 17px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--ink-line);
  }
  .nav-links .btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
  }
}

/* ---- footer stacks ---- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 0 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 8px; padding: 24px 24px 0; }
}

/* ---- phone: tighter gutters, single-column footer ---- */
@media (max-width: 560px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 52px; }
}
