/* =========================================================
   Galveston Underground — Full Site Styles
   Blue + Black palette, dark UI, archive-ready
   Matches current HTML class names:
   .site-header, .container, .logo, .main-nav, .hero, .hero-overlay
   ========================================================= */

/* -----------------------------
   1) Theme + Resets
------------------------------ */

:root {
  /* Palette (from our discussion) */
  --bg-primary: #0B0E13;          /* Ink Black */
  --bg-secondary: #121826;        /* Midnight Black */
  --brand-blue: #1F4FD8;          /* Underground Blue */
  --brand-blue-bright: #3A6BFF;   /* Electric Blue */
  --text-primary: #E6E9F0;
  --text-muted: #9AA3B2;
  --border-subtle: #1C2436;

  /* Extras */
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.25);
  --radius: 14px;
  --radius-lg: 18px;
  --max-width: 1100px;

  /* Type scale */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --fast: 160ms;
  --med: 240ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(1200px 600px at 15% 0%, rgba(58,107,255,0.18), transparent 55%),
              radial-gradient(900px 500px at 85% 10%, rgba(31,79,216,0.14), transparent 60%),
              var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Media defaults */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

a:hover {
  color: var(--brand-blue-bright);
}

::selection {
  background: rgba(58,107,255,0.35);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--brand-blue-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

/* -----------------------------
   2) Layout Helpers
------------------------------ */

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.stack > * + * {
  margin-top: var(--space-3);
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-5) 0;
}

/* -----------------------------
   3) Header + Navigation
------------------------------ */


.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand a {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-desktop a {
  color: #e2e2e2;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-desktop a:hover {
  color: #fff;
}

.nav-cta a {
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.nav-cta a:hover {
  background: #e5e5e5;
}

/* Mobile */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 20px;
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */

@media (max-width: 900px) {
  .nav-desktop,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-mobile[data-open="true"] {
    display: flex;
  }
}


.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
}

.logo {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  line-height: 1.1;
  color: var(--text-primary);
}

.logo a {
  color: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  position: relative;
  padding: 10px 10px;
  color: var(--text-muted);
  border-radius: 10px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.main-nav a:hover {
  color: var(--text-primary);
  background: rgba(18, 24, 38, 0.65);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(31, 79, 216, 0.12);
  border: 1px solid rgba(58, 107, 255, 0.22);
}

/* Mobile nav wrap */
@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 10px;
  }
  .main-nav {
    flex-wrap: wrap;
    width: 100%;
  }
}



.support-bar {
  background: #0b0e13;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.support-link {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.support-link:hover {
  background: #e5e5e5;
}

/* -----------------------------
   4) Hero
------------------------------ */





.hero {
  position: relative;
  min-height: clamp(260px, 40vh, 520px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0e13;
  isolation: isolate;
}

.hero-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* Decorative overlays BELOW the image */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(
    1200px 600px at 50% 15%,
    rgba(90,140,255,0.16),
    transparent 60%
  );
}

.hero::after {
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(11,14,19,0),
    rgba(11,14,19,0.85)
  );
}


/* -----------------------------
   5) Typography
------------------------------ */

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 14px;
  color: var(--text-primary);
}

small, .muted {
  color: var(--text-muted);
}

.kicker {
  font-family: var(--font-mono);
  color: rgba(58,107,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -----------------------------
   6) Buttons + Links
------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(58,107,255,0.22);
  background: rgba(31,79,216,0.14);
  color: var(--text-primary);
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--fast) var(--ease),
              background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(31,79,216,0.22);
  border-color: rgba(58,107,255,0.35);
  box-shadow: 0 14px 28px rgba(0,0,0,0.32);
}

.btn:active {
  transform: translateY(0px);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(31,79,216,0.95), rgba(58,107,255,0.85));
  border-color: rgba(255,255,255,0.08);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(28,36,54,0.9);
  color: var(--text-muted);
}

.btn.ghost:hover {
  background: rgba(18,24,38,0.6);
  color: var(--text-primary);
}

/* -----------------------------
   7) Cards / Panels (Archive-ready)
------------------------------ */

.card {
  background: rgba(18, 24, 38, 0.70);
  border: 1px solid rgba(28, 36, 54, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card .card-body {
  padding: var(--space-4);
}

.card h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card .meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Simple grid utilities */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
}

/* -----------------------------
   8) Video Embeds (for archive.html)
------------------------------ */

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0d12;
  border-bottom: 1px solid rgba(28, 36, 54, 0.9);
}

.embed iframe,
.embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Optional hover glow for clickable embeds */
.card:hover .embed {
  box-shadow: inset 0 0 0 1px rgba(58,107,255,0.20);
}

/* -----------------------------
   9) Forms (Contact / Signup)
------------------------------ */

form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 650;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28,36,54,0.95);
  background: rgba(18,24,38,0.55);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: rgba(154,163,178,0.75);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(58,107,255,0.45);
  box-shadow: 0 0 0 4px rgba(58,107,255,0.14);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* -----------------------------
   10) Footer
------------------------------ */

.site-footer {
  margin-top: var(--space-6);
  padding: 28px 0;
  border-top: 1px solid rgba(28,36,54,0.85);
  background: rgba(11,14,19,0.55);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -----------------------------
   11) Small polish utilities
------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,79,216,0.14);
  border: 1px solid rgba(58,107,255,0.22);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.tagline {
  padding: 48px 0 56px;
  background: linear-gradient(
    to bottom,
    rgba(11,14,19,0.65),
    rgba(11,14,19,1)
  );
  border-bottom: 1px solid var(--border-subtle);

  text-align: center;   /* ✅ this centers all text */
}

.tagline p,
.tagline ul {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}


.tagline-close {
  margin-bottom: 16px !important;
}


.tagline-title {
  margin: 0 auto 18px;             /* ✅ centers the headline block */
  max-width: 900px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}


.tagline-title span {
  display: block;
}


.intro {
  margin-bottom: 0;
  padding-bottom: 0;
}


.intro h3 {
  font-weight: 650;
  max-width: 820px;
}

.intro p {
  max-width: 820px;
  margin-bottom: 16px;
}

.intro .tagline-actions {
  margin: 24px 0;
}

.intro .tagline-close {
  color: var(--text-muted);
}

.intro + section {
  margin-top: 0;
  padding-top: 24px; /* controlled, intentional spacing */
}


.intro + section h3 {
  margin-top: 0;
}

/* --- Navigation hardening (prevents stacking/bullets) --- */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  list-style: none;
}
