/* ============================================================
   Expo Compositores Foundation, shared site chrome.
   Header (utility bar + masthead + main nav + mobile drawer),
   footer, and the light-section system.
   Linked AFTER each page's inline <style> so it wins on conflict.
   ============================================================ */

:root {
  --paper: #f4f1e9;
  --paper-2: #eae5d8;
  --ink: #17140f;
  --ink-2: #453f34;
  --ink-muted: #6d6558;
  --gold-deep: #8a6712;
  --gold-mid: #a8842a;
  --line-light: rgba(23, 20, 15, 0.12);
  --nav-h: 58px;
}

/* ---------- reset the old fixed bar ---------- */
body > nav {
  display: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 7, 10, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

/* utility bar */
.site-head .topbar {
  background: linear-gradient(90deg, #1a1408 0%, #2a2110 50%, #1a1408 100%);
  border-bottom: 1px solid rgba(236, 208, 140, 0.14);
}
.site-head .topbar .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-head .topbar .tag {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.site-head .topbar .give {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(135deg, #d7b879 0%, #f7dc95 50%, #d7b879 100%);
  border-radius: 999px;
  padding: 5px 16px;
  text-decoration: none;
  white-space: nowrap;
}
.site-head .topbar .give:hover {
  filter: brightness(1.07);
}

/* masthead */
.site-head .mast {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-head .mast .brand {
  display: inline-flex;
  align-items: center;
}
.site-head .mast .brand img {
  height: 56px;
  width: auto;
  display: block;
}
.site-head .mast .util {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-head .call {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.25;
}
.site-head .call .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-head .call .num {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.site-head .call:hover .num {
  color: var(--gold-light);
}

.site-head .lang-btn {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(236, 208, 140, 0.3);
  color: var(--gold);
  background: transparent;
  font-family: inherit;
}
.site-head .lang-btn:hover {
  background: rgba(236, 208, 140, 0.08);
}

/* hamburger */
.navtoggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(236, 208, 140, 0.3);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.navtoggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--gold);
  transition:
    transform 0.22s ease,
    opacity 0.16s ease;
}
.navtoggle span:nth-child(1) {
  top: 13px;
}
.navtoggle span:nth-child(2) {
  top: 18.5px;
}
.navtoggle span:nth-child(3) {
  top: 24px;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.navtoggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navtoggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* main nav.
   Pages carry a bare `nav { position: fixed/sticky }` rule from their own
   stylesheet, which would otherwise capture this element and pin it over
   the masthead. Reset it explicitly. */
.site-head .mainnav {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  height: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  border-top: 1px solid rgba(236, 208, 140, 0.1);
}
.mainnav > ul {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.mainnav > ul > li {
  position: relative;
}
.mainnav > ul > li > a,
.mainnav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-h);
  padding: 0 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.18s,
    border-color 0.18s;
}
.mainnav > ul > li > a:hover,
.mainnav > ul > li > button:hover,
.mainnav > ul > li.open > button {
  color: var(--gold);
  border-bottom-color: var(--gold-dark);
}
.mainnav .caret {
  width: 7px;
  height: 7px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.mainnav > ul > li.open .caret {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.mainnav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #0d0b10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.mainnav > ul > li.open .sub,
.mainnav > ul > li:hover .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mainnav .sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.mainnav .sub a:hover {
  background: rgba(236, 208, 140, 0.08);
  color: var(--gold);
}

/* mobile drawer */
.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #0a090c;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.drawer.open {
  display: block;
}
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 10px 18px 22px;
}
.drawer > ul > li {
  border-bottom: 1px solid rgba(236, 208, 140, 0.08);
}
.drawer > ul > li:last-child {
  border-bottom: none;
}
.drawer a,
.drawer .grp {
  display: block;
  padding: 13px 6px;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
}
.drawer .grp {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-bottom: 4px;
}
.drawer .sub a {
  padding: 10px 6px 10px 18px;
  color: var(--muted);
  font-size: 14px;
}
.drawer .sub {
  padding: 0 0 8px;
}
.drawer .drawer-cta {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .mainnav {
    display: none;
  }
  .navtoggle {
    display: block;
  }
  .site-head .call {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-head .topbar .tag {
    display: none;
  }
}

/* ============================================================
   LIGHT SECTIONS
   Alternating warm paper against the black. Scoped overrides so
   the existing components keep working on either ground.
   ============================================================ */
section.light {
  background: var(--paper);
  color: var(--ink);
}
section.light.paper2 {
  background: var(--paper-2);
}
section.light h1,
section.light h2,
section.light h3,
section.light h4 {
  color: var(--ink);
}
section.light .eyebrow,
section.light .kicker {
  color: var(--gold-deep);
}
section.light p,
section.light li,
section.light .lead,
section.light .muted {
  color: var(--ink-2);
}
section.light .card p,
section.light .facil li,
section.light .sub,
section.light .statline .stat .c {
  color: var(--ink-muted);
}
section.light .card {
  background: #fffdf8;
  border-color: var(--line-light);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.04);
}
section.light .card:hover {
  border-color: rgba(138, 103, 18, 0.4);
  box-shadow: 0 10px 30px -16px rgba(23, 20, 15, 0.35);
}
section.light .card .ico {
  color: var(--gold-deep);
}
section.light .card .ico::after {
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}
section.light .statline .stat .n,
section.light strong.gold,
section.light .gold {
  color: var(--gold-deep);
}
section.light a {
  color: var(--gold-deep);
}
section.light .facil li::before {
  background: var(--gold-mid);
}
section.light .btn-ghost {
  border-color: rgba(138, 103, 18, 0.45);
  color: var(--gold-deep);
}
section.light .btn-ghost:hover {
  background: rgba(138, 103, 18, 0.08);
}
section.light .split img.fig,
section.light .venue-shots img,
section.light .pcard .frame {
  border-color: rgba(138, 103, 18, 0.28);
}
section.light .pcard .nm {
  color: var(--ink);
}
section.light .pcard .rl {
  color: var(--ink-muted);
}
section.light input,
section.light textarea,
section.light select {
  background: #fffdf8;
  border-color: var(--line-light);
  color: var(--ink);
}
section.light input::placeholder,
section.light textarea::placeholder {
  color: #9a9184;
}
section.light hr,
section.light .rule {
  border-color: var(--line-light);
}

/* seam between a light and a dark section */
section.light + section:not(.light),
section:not(.light) + section.light {
  border-top: 1px solid rgba(236, 208, 140, 0.16);
}

/* ============================================================
   FOOTER additions
   ============================================================ */
footer .fcall {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
footer .fcall:hover {
  color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
  .mainnav .sub,
  .navtoggle span,
  .mainnav .caret {
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Light-section overrides for components whose own selectors
   out-specify the generic rules above. Keep these grouped so the
   next light section only needs one line.
   ------------------------------------------------------------ */
section.light .sec-eyebrow,
section.light .kicker,
section.light .involve .card h3,
section.light .gold-text,
section.light b.gold-text {
  color: var(--gold-deep);
}
section.light .divider {
  background: linear-gradient(90deg, var(--gold-mid), transparent);
}
section.light p.body,
section.light p.body.lg,
section.light .impact .q {
  color: var(--ink-2);
}
section.light .sub-form input[type="email"] {
  background: #fffdf8;
  border-color: rgba(138, 103, 18, 0.32);
  color: var(--ink);
}
section.light .sub-form input[type="email"]::placeholder {
  color: #9a9184;
}
section.light .sub-form input[type="email"]:focus {
  border-color: var(--gold-deep);
}
section.light .msg,
section.light .note,
section.light .fineprint,
section.light small {
  color: var(--ink-muted);
}

/* drawer CTAs, normalized independent of each page's own .btn sizing */
.drawer-cta .btn {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: none;
}
.drawer {
  max-height: calc(100dvh - 118px);
}
