/* shared.css — Chess Global Cities site-wide styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0B1628;
  --navy2:    #152240;
  --gold:     #C9A84C;
  --gold2:    #E8C96A;
  --teal:     #1B6B7B;
  --teal2:    #22879A;
  --offwhite: #F5F2EB;
  --grey:     #8A8F9E;
  --light:    #D6D3CC;
  --white:    #FFFFFF;
  --nav-h:    68px;
}

html { scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--offwhite);
  color: var(--navy);
  line-height: 1.6;
}

/* ── NAV ── */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--gold);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  border-radius: 4px; overflow: hidden;
  border: 2px solid var(--gold);
}
.nav-logo-mark span { display: block; }
.nav-logo-mark span:nth-child(1) { background: var(--gold); }
.nav-logo-mark span:nth-child(2) { background: var(--navy); }
.nav-logo-mark span:nth-child(3) { background: var(--navy); }
.nav-logo-mark span:nth-child(4) { background: var(--gold); }

.nav-brand { display: flex; flex-direction: column; }
.nav-brand-top { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-brand-main { font-size: 15px; font-weight: 700; color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--light); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-event-link {
  color: var(--gold2) !important;
  font-weight: 700 !important;
}
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 6px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold2) !important; color: var(--navy) !important; }

/* hamburger */
.nav-toggle { display: none; }
label.hamburger {
  display: none; cursor: pointer; flex-direction: column;
  gap: 5px; padding: 4px;
}
label.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: .3s;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy2); padding: 20px 24px; z-index: 199;
  border-bottom: 2px solid var(--gold);
}
.mobile-menu a {
  display: block; color: var(--light); text-decoration: none;
  font-size: 16px; font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:last-child { border: none; }
.mobile-menu a.m-cta { color: var(--gold); font-weight: 700; }
.mobile-menu a.m-event { color: var(--gold2); font-weight: 700; }
#navToggle:checked ~ .mobile-menu { display: block; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  label.hamburger { display: flex; }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 16px; padding: 14px 32px;
  border-radius: 8px; text-decoration: none; transition: background .2s, transform .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; border: 2px solid rgba(255,255,255,.3); color: var(--white);
  font-weight: 600; font-size: 16px; padding: 14px 32px;
  border-radius: 8px; text-decoration: none; transition: border-color .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  font-weight: 600; font-size: 15px; padding: 12px 28px;
  border-radius: 8px; text-decoration: none; transition: all .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── SECTIONS ── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); }

.section-label {
  font-size: 11px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px;
}
.section-label-light {
  font-size: 11px; font-weight: 700; color: var(--teal2);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800; color: var(--navy); line-height: 1.2;
  margin-bottom: 16px;
}
.section-title-light {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800; color: var(--white); line-height: 1.2;
  margin-bottom: 16px;
}
.section-body {
  font-size: 16px; color: #4A5068; max-width: 640px; line-height: 1.75;
}
.section-body-light {
  font-size: 16px; color: var(--light); max-width: 640px; line-height: 1.75;
}

/* ── ALERT BANNER ── */
.alert-banner {
  background: rgba(27,107,123,.12); border: 1px solid rgba(27,107,123,.35);
  border-radius: 10px; padding: 16px 20px; margin-top: 28px;
  font-size: 14px; color: var(--navy); line-height: 1.6;
}
.alert-banner strong { color: var(--teal); }
.alert-gold {
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3);
  border-radius: 10px; padding: 16px 20px; margin-top: 28px;
  font-size: 14px; color: var(--navy); line-height: 1.6;
}
.alert-gold strong { color: var(--teal); }

/* ── FOOTER ── */
#site-footer {
  background: #060D1A;
  border-top: 2px solid var(--gold);
  padding: 48px 24px 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand-desc { font-size: 14px; color: var(--grey); margin-top: 12px; line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.footer-col-links { list-style: none; }
.footer-col-links li { margin-bottom: 8px; font-size: 14px; color: var(--grey); }
.footer-col-links a { color: var(--grey); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--grey); }
.footer-bottom a { color: var(--grey); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.footer-orgs { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-org-badge {
  font-size: 11px; font-weight: 600; color: var(--grey);
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 10px; border-radius: 4px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 60px 24px 52px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.06) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 12px;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p { font-size: 18px; color: var(--light); max-width: 560px; margin: 0 auto; }

/* ── UTILS ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }

@media (max-width: 480px) {
  .section { padding: 52px 20px; }

  /* Mobile button gap fix — stack with space between */
  .btn-primary, .btn-secondary, .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
  }

  /* Contact page grid — single col on mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Footer logo mark — same gold border as nav */
#site-footer .nav-logo-mark {
  border: 2px solid var(--gold);
}
