:root {
  --teal: #01709b;
  --teal-light: #2e93bd;
  --orange: #fea928;
  --orange-light: #ffc266;
  --bg: #0b1620;
  --bg-alt: #101f2c;
  --card: #16283699;
  --card-solid: #162836;
  --border: #24405233;
  --text: #eaf2f6;
  --text-dim: #a9bdc9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-light); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 22, 32, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header img.logo {
  height: 44px;
  width: auto;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav.main-nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
}

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

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11,22,32,0.55) 0%, rgba(11,22,32,0.88) 55%, var(--bg) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
}

.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-beaver {
  width: 220px;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}

.hero-copy { flex: 0 1 560px; min-width: 280px; text-align: center; }

.hero-copy .eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  margin: 0 0 16px;
  color: var(--teal-light);
  letter-spacing: -0.01em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.hero-copy p.tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 26px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #221200;
  box-shadow: 0 8px 22px rgba(254, 169, 40, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal-light);
  color: var(--teal-light);
}

/* pulsing live dot */
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 rgba(255,77,77,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,77,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }

.section-heading { text-align: center; margin: 0 0 34px; }
.section-heading .eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin: 0 auto 8px;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0;
  color: var(--text);
}
.section-heading p { color: var(--text-dim); max-width: 60ch; margin: 12px auto 0; }

/* ---------- Listen (player + last played) ---------- */

.listen-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.player-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.player-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-card iframe {
  border-radius: 10px;
  border: none;
  width: 100%;
  max-width: 450px;
  display: block;
}

/* ---------- Weather widget ---------- */

#weather .location {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.weather-now {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 6px 0 18px;
}

.weather-now .temp {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.weather-now .cond { color: var(--text); font-size: 1.05rem; max-width: 24ch; }

.weather-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.weather-periods .period {
  text-align: center;
  font-size: 0.88rem;
}

.weather-periods .period .name {
  color: var(--teal-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.weather-periods .period .t { color: var(--text); font-weight: 700; }
.weather-periods .period .c { color: var(--text-dim); font-size: 0.8rem; }

.weather-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 16px; }
.weather-note a { color: var(--text-dim); text-decoration: underline; }

/* ---------- Request form ---------- */

#request-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin: 16px 0 6px;
}
#request-form label:first-child { margin-top: 0; }

#request-form input,
#request-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e1c27;
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
}
#request-form input:focus,
#request-form textarea:focus {
  outline: none;
  border-color: var(--teal-light);
}

#request-form textarea { resize: vertical; min-height: 90px; }

#request-form button {
  margin-top: 22px;
  width: 100%;
  border: none;
}

.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.3em; }
.form-status.ok { color: #6fd68a; }
.form-status.err { color: #ff8080; }

/* honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- About / Advertise ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.card-block {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-block h3 {
  color: var(--teal-light);
  margin-top: 0;
}

.card-block p { color: var(--text-dim); }

.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--orange); color: var(--orange); }

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

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
footer img.logo { height: 30px; margin: 0 auto 16px; }
footer a { color: var(--text-dim); }
footer .footer-links { display: flex; gap: 18px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }

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

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 14px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 60px 0 50px; text-align: center; }
  .hero .container { flex-direction: column; }
  .hero-beaver { width: 160px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
}
