/* =========================
   BASE LAYOUT
   ========================= */
html, body { height: 100%; }
body {
  margin: 0;
  background: #0e1320;
  color: #e7ebf6;
  font: 15px/1.45 "Inter", system-ui, sans-serif;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* =========================
   HEADER
   ========================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}
.brand img {
  width: 28px; /* increased from 20px */
  height: 28px;
  display: block;
  object-fit: contain;
}
.brand-text {
  font-weight: 700;
  font-size: 15px; /* slightly larger */
  letter-spacing: .02em;
  opacity: .95;
  line-height: 1;
  position: relative;
  top: -1px; /* fine-tune pixel alignment */
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #e7ebf6;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: filter .2s ease;
}
.btn.sm { padding: 8px 12px; }
.btn.icon { width: 40px; height: 40px; border-radius: 12px; }

/* Gold CTA */
.btn.gold {
  background: #d4b158;
  border-color: #d4b158;
  color: #0b0f1c;
  font-weight: 700;
}
.btn.gold:hover { filter: brightness(1.05); }
.btn.gold:focus-visible { outline: 2px solid #d4b158; outline-offset: 2px; }

/* Keep actions visible (no hamburger collapse) */
@media (max-width: 900px) {
  .actions { display: flex; }
}

/* =========================
   DRAWER (scrollable)
   ========================= */
:root { --safe: env(safe-area-inset-bottom, 0px); }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #141a2b;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translateX(-100%);
  transition: transform .22s ease;
  z-index: 60;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}
.drawer.open { transform: translateX(0); }

.drawer-nav { padding-bottom: calc(24px + var(--safe)); }
.drawer-nav a {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  color: #e7ebf6;
  text-decoration: none;
}
.drawer-nav a:hover { background: rgba(255,255,255,.05); }
.drawer-nav .section {
  margin: 16px 8px 6px;
  color: #9aa4bf;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
}

/* Drawer brand: side-by-side logo + text */
.drawer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px;
  padding: 10px 12px;
  margin: -6px -6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}
.drawer-brand img,
.drawer-brand svg {
  width: 26px; /* increased from 18px */
  height: 26px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.drawer-brand span {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1;
  opacity: .95;
  position: relative;
  top: -1px;
}
.drawer-brand:hover {
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(212,177,88,.25);
}

/* =========================
   BACKDROP
   ========================= */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 40px;
}
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.foot-links a {
  color: #9aa4bf;
  text-decoration: none;
  margin-left: 14px;
}

/* --- Reinforce brand rows everywhere --- */
.brand,
.drawer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}
.brand img,
.drawer-brand img,
.drawer-brand svg {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}
.brand .brand-text,
.drawer-brand .brand-text {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  opacity: .95;
  position: relative;
  top: -1px;
}