:root {
  --bg-canvas: #0f1b2d;
  --bg-surface: #182840;
  --bg-surface-elevated: #223554;
  --text-primary: #f4f1ea;
  --text-muted: #b8c4d4;
  --accent-gold: #d4a84b;
  --accent-gold-hover: #e5bd63;
  --border-subtle: #2d4261;
  --hard-shadow: 4px 4px 0px #080f1a;
  --radius: 4px;
  --font-stack: 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --line-height-base: 1.68;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--accent-gold);
  color: #0f1b2d;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 999;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: static;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-subtle);
  padding: 10px 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-desktop a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background-color 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--accent-gold);
  background-color: rgba(212, 168, 75, 0.08);
}

.btn-header-cta {
  background-color: var(--accent-gold);
  color: #0f1b2d;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 2px 2px 0px #080f1a;
  border: 1px solid #080f1a;
  display: inline-block;
}

.btn-header-cta:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #080f1a;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius);
  line-height: 1;
}

.mobile-dropdown {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 20px;
  gap: 8px;
}

.mobile-dropdown.is-open {
  display: flex;
}

.mobile-dropdown a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Layout */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-metric-frame {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 30px;
  margin-bottom: 40px;
  box-shadow: var(--hard-shadow);
}

.hero-tag {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #0f1b2d;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h2 {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

p {
  overflow-wrap: anywhere;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  max-width: 820px;
}

/* Metric Ribbon */
.metric-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  background: var(--bg-surface-elevated);
  padding: 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-gold);
}

.metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Shells */
.content-section {
  margin-bottom: 48px;
}

.section-head {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

/* Cards System */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.metric-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--hard-shadow);
  overflow: hidden;
}

.card-status-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--accent-gold);
  color: #0f1b2d;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 2px 2px 0px #080f1a;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  background-color: #0b1320;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-hard {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #0f1b2d;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 2px solid #080f1a;
  box-shadow: var(--hard-shadow);
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-hard:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #080f1a;
}

/* Tabbed City Directory */
.tab-module {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--accent-gold);
  color: #0f1b2d;
  border-color: #080f1a;
}

.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* Responsive Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bg-surface);
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ list */
.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 20px;
}

.faq-card h3 {
  color: var(--accent-gold);
  margin-bottom: 8px;
}

/* Contact Tool Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--hard-shadow);
  max-width: 640px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-gold);
}

.draft-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--border-subtle);
}

.status-message {
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.status-message.show {
  display: block;
  background-color: #1e382b;
  color: #7ee787;
  border: 1px solid #2ea043;
}

/* Footer */
.site-footer {
  background-color: #09111c;
  border-top: 2px solid var(--border-subtle);
  padding: 40px 20px 24px;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-block;
  }
  h1 {
    font-size: 1.8rem;
  }
  .hero-metric-frame {
    padding: 24px 18px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
