/* ===== Global Star Radio Network — redesign ===== */

:root {
  --bg: #090d1a;
  --bg-alt: #0d1326;
  --card: #121a33;
  --card-hover: #172142;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-dim: #9aa5c7;
  --text-dimmer: #6b7597;
  --orange: #f7941d;
  --orange-light: #ffb04d;
  --blue: #29abe2;
  --blue-light: #5cc4ee;
  --gradient: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 45%, var(--blue) 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(41, 171, 226, 0.14), transparent 60%),
    radial-gradient(ellipse 900px 500px at 100% 0%, rgba(247, 148, 29, 0.12), transparent 55%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--orange-light); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-dim); margin: 0 0 14px; }

.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.08); }

.nav-cta {
  background: var(--gradient);
  color: #12131a !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  margin-left: 6px;
}
.nav-cta:hover { filter: brightness(1.08); background: var(--gradient); color: #12131a !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-logo {
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero h1 { max-width: 760px; margin-inline: auto; }
.hero .lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--blue-light); color: #fff; }

.btn-primary {
  background: var(--gradient);
  color: #12131a;
  border: none;
}
.btn-primary:hover { color: #12131a; filter: brightness(1.07); }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

/* ---------- Cards / grid ---------- */

.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(247, 148, 29, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.nav-card {
  display: block;
  color: inherit;
}
.nav-card h3 { color: #fff; margin-bottom: 6px; }
.nav-card p { margin-bottom: 0; font-size: 0.92rem; }
.nav-card .arrow { color: var(--orange-light); font-weight: 700; }

/* ---------- Feed / stream cards ---------- */

.feed-card {
  display: flex;
  flex-direction: column;
}
.feed-card .badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(41, 171, 226, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feed-card h3 { margin-bottom: 2px; }
.feed-card .subtitle {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  margin-bottom: 18px;
}

.stream-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stream-list button.stream-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.stream-list button.stream-toggle:hover {
  border-color: var(--orange);
  background: rgba(247, 148, 29, 0.1);
  color: #fff;
}
.stream-list .stream-icon {
  font-size: 0.65rem;
  color: var(--orange-light);
  flex-shrink: 0;
}
.stream-item.is-playing button.stream-toggle {
  border-color: var(--orange);
  background: rgba(247, 148, 29, 0.14);
  color: #fff;
}
.stream-item.is-playing .stream-icon { color: var(--orange); }

.stream-item audio {
  width: 100%;
  margin-top: 8px;
  height: 34px;
}

.phone-line {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.phone-line strong { color: #fff; display: block; font-size: 1.05rem; letter-spacing: 0.02em; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  color: var(--orange-light);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Forms ---------- */

.contact-form {
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  margin-top: -4px;
}

/* ---------- Schedule grid ---------- */

.schedule-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--card);
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  table-layout: fixed;
}

.schedule-table col.col-time { width: 12%; }
.schedule-table col.col-days { width: 13%; }
.schedule-table col.col-program { width: 33%; }
.schedule-table col.col-status { width: 14%; }
.schedule-table col.col-site { width: 28%; }

.schedule-table thead th {
  text-align: left;
  color: var(--text-dimmer);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.schedule-table thead th:last-child { border-right: none; }

.schedule-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.87rem;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-table tbody td:last-child { border-right: none; }
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.schedule-table tbody tr:hover { background: rgba(79, 140, 255, 0.06); }

.sched-time {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sched-days {
  color: var(--text-dimmer);
  white-space: nowrap;
  font-size: 0.8rem;
}
.sched-program { color: var(--text); font-weight: 600; white-space: nowrap; }
.sched-site a {
  color: var(--blue-light);
  font-size: 0.83rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}
.sched-site a:hover { color: #fff; }
.sched-none { color: var(--text-dimmer); }

.sched-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sched-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sched-badge.sched-live {
  background: rgba(247, 148, 29, 0.14);
  color: var(--orange-light);
}
.sched-badge.sched-live::before { background: var(--orange); }
.sched-badge.sched-rebroadcast {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.sched-badge.sched-rebroadcast::before { background: var(--text-dimmer); }

@media (max-width: 640px) {
  .schedule-table col.col-days { width: 15%; }
  .schedule-table col.col-program { width: 30%; }
}

/* ---------- Callout / CTA band ---------- */

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.callout h3 { margin-bottom: 4px; }
.callout p { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange-light); }
.footer-logo img { height: 34px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

/* ---------- Page header (non-home pages) ---------- */

.page-hero {
  padding: 52px 0 8px;
  text-align: center;
}
.page-hero .eyebrow { display: block; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    gap: 2px;
  }
  .site-header.open .main-nav a { padding: 12px 10px; }
  .site-header.open .nav-cta { margin: 8px 0 0; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 881px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
