/* ==========================================================================
   168surex — Matte Carbon Graphite (#212121) & Sovereign Gold (#C9A54E)
   Design Tokens, Pure White Typography (#FFFFFF), Header & Carbon Footer
   ========================================================================== */

:root {
  --bg: #212121;
  --bg-deep: #181818;
  --surface: #2B2B2B;
  --surface-hover: #333333;
  --gold: #C9A54E;
  --gold-hover: #DCBA66;
  --gold-soft: rgba(201, 165, 78, 0.14);
  --gold-border: rgba(201, 165, 78, 0.36);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --white: #FFFFFF;
  --text-soft: #DCDCDC;
  --text-muted: #ADADAD;
  --ink-dark: #181818;

  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--white);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.22;
  margin: 0 0 0.55em;
}
p { margin: 0 0 1em; color: var(--text-soft); }

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   TOP GOLD ANNOUNCEMENT STRIP (#C9A54E) & STICKY CARBON HEADER (#181818)
   ========================================================================== */
.gold-announce-bar {
  background: var(--gold);
  color: var(--ink-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
}
.gold-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.announce-pill-dark {
  background: var(--ink-dark);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Brand Logo ONLY — Zero Extra Text */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color 0.16s, background 0.16s;
}
.main-nav a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}
.main-nav a.is-active {
  color: var(--gold);
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
}

/* Buttons — Primary Strictly #C9A54E */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-sx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold);
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.btn-sx:hover { transform: translateY(-1px); }

.btn-sx-gold {
  background: var(--gold);
  color: var(--ink-dark);
  border-color: var(--gold);
}
.btn-sx-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(201, 165, 78, 0.34);
}
.btn-sx-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-sx-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sx-dark {
  background: var(--bg-deep);
  color: var(--white);
  border-color: var(--bg-deep);
}
.btn-sx-dark:hover {
  background: #0E0E0E;
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  background: var(--surface);
  color: var(--white);
  padding: 0;
}
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  justify-content: flex-end;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--bg-deep);
  border-left: 1px solid var(--gold-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-drawer-head img { height: 28px; width: auto; }
.mobile-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  background: var(--surface);
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--white);
}
.mobile-nav-list a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-dark);
}
.mobile-drawer-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SOLID #C9A54E GOLD CONVERSION BAND & 4-COL #181818 CARBON FOOTER
   ========================================================================== */
.gold-cta-band {
  background: var(--gold);
  color: var(--ink-dark);
  padding: 34px 0;
}
.gold-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gold-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--ink-dark);
  margin: 0;
}

.site-footer {
  background: var(--bg-deep);
  color: var(--white);
  border-top: 1px solid var(--border-subtle);
}
.footer-main {
  padding-top: 48px;
  padding-bottom: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-pay-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
}
.footer-col h3 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.16s, padding-left 0.16s;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; color: var(--text-muted); }
.badge-18 {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}
