/* ============================================
   Radio Swartberg — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #00e5ff;
  --accent-secondary: #7b2ff7;
  --accent-warm: #ff3c6f;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --scroll-y: 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #66f0ff;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-top: 0.75rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar--scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--bg-glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--text-primary);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1002;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-secondary);
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-drawer a:hover {
  color: var(--text-primary);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 47, 247, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 60%),
              var(--bg-primary);
}

.hero__drift-1,
.hero__drift-2 {
  position: absolute;
  inset: -50%;
  opacity: 0.5;
}

.hero__drift-1 {
  background: radial-gradient(circle at 40% 40%, rgba(123, 47, 247, 0.2) 0%, transparent 50%);
}

.hero__drift-2 {
  background: radial-gradient(circle at 60% 60%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
}

/* Stars */
.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #f0f0f5;
  opacity: 0.4;
}

/* Mountain silhouettes */
.hero__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  height: 55vh;
}

.hero__mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
  will-change: transform;
}

.hero__mountain--back  { height: 55vh; }
.hero__mountain--mid   { height: 45vh; }
.hero__mountain--front { height: 35vh; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 60, 111, 0.15);
  border: 1px solid rgba(255, 60, 111, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.hero__title span {
  display: block;
}

/* Play button */
.play-btn {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.5);
}

.play-btn:active {
  transform: scale(0.97);
}

.play-btn__icon {
  width: 28px;
  height: 28px;
  position: relative;
}

/* Play triangle via CSS */
.play-btn__play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--bg-primary);
  margin-left: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.play-btn__pause {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: flex;
  gap: 5px;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.play-btn__pause span {
  width: 5px;
  height: 28px;
  background: var(--bg-primary);
  border-radius: 1px;
}

.play-btn.playing .play-btn__play {
  opacity: 0;
  transform: scale(0.8);
}

.play-btn.playing .play-btn__pause {
  opacity: 1;
  transform: scale(1);
}

/* Pulse rings */
.play-btn__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.3);
  pointer-events: none;
}

.play-btn__ring:nth-child(2) {
  inset: -22px;
  border-color: rgba(0, 229, 255, 0.15);
}

.play-btn__ring:nth-child(3) {
  inset: -36px;
  border-color: rgba(0, 229, 255, 0.08);
}

/* Listener counter */
.listener-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.listener-count__number {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 2.5ch;
  text-align: right;
  transition: transform 0.15s;
}

.listener-count__number.tick {
  transform: scale(1.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator__chevron {
  width: 20px;
  height: 20px;
}

.scroll-indicator__chevron svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Section Common --- */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- Schedule --- */
.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.schedule-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  transition: all 0.2s;
}

.schedule-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.schedule-tab.active {
  color: var(--bg-primary);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  transition: transform 0.25s, border-color 0.25s;
}

.schedule-row:hover {
  transform: translateX(6px);
  border-color: rgba(0, 229, 255, 0.2);
}

.schedule-row.now {
  border-color: rgba(0, 229, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.schedule-row.now::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.06), transparent);
  pointer-events: none;
}

.schedule-row__time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.now-badge {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-row__show {
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-row__dj {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.schedule-row__genre {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.genre-rock { background: rgba(255, 60, 111, 0.15); color: #ff3c6f; }
.genre-jazz { background: rgba(123, 47, 247, 0.15); color: #a87bff; }
.genre-electronic { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }
.genre-afrikaans { background: rgba(255, 170, 50, 0.15); color: #ffaa32; }
.genre-pop { background: rgba(255, 100, 200, 0.15); color: #ff64c8; }
.genre-classical { background: rgba(100, 200, 130, 0.15); color: #64c882; }
.genre-country { background: rgba(200, 160, 80, 0.15); color: #c8a050; }
.genre-talk { background: rgba(150, 150, 200, 0.15); color: #9696c8; }
.genre-mixed { background: rgba(200, 200, 200, 0.1); color: #b0b0c0; }

/* --- Advertising --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, var(--bg-glass) 100%);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card__tier {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.pricing-card__price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.pricing-card__price span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
}

.pricing-card__cta:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pricing-card.featured .pricing-card__cta {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.pricing-card.featured .pricing-card__cta:hover {
  background: #33eaff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  min-width: 140px;
}

.form-submit:hover {
  background: #33eaff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-submit.sent {
  background: #22c55e;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info__text h4 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-info__text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.contact-socials a:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 229, 255, 0.08);
}

.contact-socials svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill 0.2s;
}

.contact-socials a:hover svg {
  fill: var(--accent-primary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--bg-glass-border);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent-primary);
}

.footer__links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Scroll-reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Responsive --- */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-row {
    grid-template-columns: 90px 1fr 120px auto;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .play-btn {
    width: 120px;
    height: 120px;
  }

  .play-btn__icon {
    width: 36px;
    height: 36px;
  }

  .play-btn__play {
    border-width: 18px 0 18px 30px;
    margin-left: 5px;
  }

  .play-btn__pause span {
    width: 6px;
    height: 36px;
  }

  .play-btn__ring:nth-child(1) { inset: -14px; }
  .play-btn__ring:nth-child(2) { inset: -30px; }
  .play-btn__ring:nth-child(3) { inset: -48px; }

  .container {
    padding: 0 2rem;
  }
}

/* Mobile schedule stacked cards */
@media (max-width: 639px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .schedule-row__genre {
    justify-self: start;
  }

  .pricing-card.featured {
    order: -1;
  }

  .footer .container {
    gap: 1rem;
  }
}
