/* Global layout */
body {
  background-color: #fbebc8;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensures footer can stick at bottom */
  font-family: "Quicksand", sans-serif;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #fbebc8;
  position: relative; /* needed for hamburger positioning */
}

/* Logo */
.header-logo {
  max-height: 150px;
  width: auto;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #445d93;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 4px;
}

nav a:hover {
  color: #d9534f;
}

nav a.active {
  color: #d9534f;
  border-bottom: 2px solid #d9534f;
}

/* Subscribe button */
nav a.subscribe-btn {
  background-color: #d9534f;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  transition: background-color 0.3s ease;
}

nav a.subscribe-btn:hover {
  background-color: #b9423f;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001; /* keep on top of nav */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #445d93;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate into X */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Hero section */
.hero {
  text-align: center;
  padding: 10px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-img {
  max-width: 300px;
  width: 80%;
  height: auto;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  color: #1d2a53;
  margin-bottom: 15px;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.6;
  color: #1d2a53;
  margin-bottom: 30px;
}

.eps-btn {
  display: inline-block;
  background-color: #d9534f;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.eps-btn:hover {
  background-color: #b9423f;
}

/* About & Contact sections */
.about,
.contact {
  text-align: center;
  padding: 10px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.about h2,
.contact h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  color: #1d2a53;
  margin-bottom: 15px;
}

.about p {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.6;
  color: #1d2a53;
  margin-bottom: 30px;
}

/* Contact form */
form {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
  font-weight: bold;
}

input,
textarea {
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  margin-top: 15px;
  padding: 12px;
  background-color: #445d93;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #2e3f6f;
}

/* Episodes */
.episode {
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
  font-family: "Quicksand", sans-serif;
}

.episode-text {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.episode-text h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #445d93;
}

.episode-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

.episode-player iframe {
  display: block;
  width: 100%;
  border: none;
  height: 152px; /* Spotify default */
}

#form-status {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
  color: #445d93;
}


/* Footer */
footer {
  margin-top: auto;
  text-align: center;
  padding: 15px 0;
}

footer img {
  width: 30px;
  height: auto;
  margin: 0 10px;
}



/* ============ Responsive ============ */

/* Tablets and below */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
  }

  nav {
    display: none; /* hide menu by default */
    flex-direction: column;
    align-items: center;
    background: #fbebc8;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 0;
    border-top: 1px solid #ccc;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hamburger {
    display: flex;
  }

  /* Show menu when active */
  nav.active {
    display: flex;
  }

  .header-logo {
    max-height: 100px;
  }

  footer img {
    width: 24px;
  }

  /* Hide subscribe button on mobile */
@media (max-width: 768px) {
  nav a.subscribe-btn {
    display: none;
  }
}
}
