/* ==========================================================================
   Early Signal Media — Color System
   ========================================================================== */
:root {
  /* Core brand palette */
  --color-black: #000000;
  --color-black-soft: #0a0a0a;
  --color-surface: #121212;
  --color-surface-alt: #1a1a1a;

  --color-white: #ffffff;
  --color-white-muted: #d9d9d9;
  --color-gray: #9a9a9a;

  --color-yellow: #ffb800;
  --color-yellow-bright: #ffd23f;
  --color-yellow-dim: #cf9500;

  /* Semantic aliases */
  --bg-primary: var(--color-black);
  --bg-secondary: var(--color-black-soft);
  --bg-card: var(--color-surface);
  --text-primary: var(--color-white);
  --text-secondary: var(--color-white-muted);
  --text-muted: var(--color-gray);
  --accent: var(--color-yellow);
  --accent-bright: var(--color-yellow-bright);
  --accent-dim: var(--color-yellow-dim);

  --border-color: #2a2a2a;
  --shadow-glow: 0 0 24px rgba(255, 184, 0, 0.25);

  --font-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 184, 0, 0.08), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(255, 184, 0, 0.06), transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.accent {
  color: var(--accent);
}

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

section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-width: none;
  height: auto;
}

/* Feather the bottom of the hero into the next section instead of a hard rule */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg-primary) 85%);
}

/* ==========================================================================
   Mission Statement
   ========================================================================== */
.mission {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.mission blockquote {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.7;
}

.mission blockquote em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.section-heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.section-heading span {
  color: var(--accent);
}

/* ==========================================================================
   Listen Platforms
   ========================================================================== */
.platforms {
  border-bottom: 1px solid var(--border-color);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.platform-card svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  fill: var(--accent);
}

.platform-card .platform-text strong {
  display: block;
  font-size: 1.05rem;
}

.platform-card .platform-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Social Links
   ========================================================================== */
.social {
  border-bottom: 1px solid var(--border-color);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.social-card svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.social-card strong {
  font-size: 0.95rem;
}

.social-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .accent {
  font-weight: 600;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

  .slogans {
    gap: 1rem;
  }
}
