/*
 * Core stylesheet for Liban’s music website.
 *
 * Palette: warm oranges on a deep dark background.
 * Includes: fixed nav, full-screen hero with non-blocking overlay,
 * responsive typography, and CTA styles (including Stripe buy button).
 */

:root {
  --bg: #0d0d0d;          /* deep dark background */
  --primary: #ff5500;     /* vibrant orange accent (SoundCloud vibe) */
  --secondary: #ff8c42;   /* lighter orange for hover states */
  --text: #f5f5f5;        /* near-white text colour */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Container centres content and limits maximum width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar styling */
nav {
  background: rgba(13, 13, 13, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--primary);
  outline: none;
}

/* Hero section with background image */
header {
  height: 85vh;
  background: url('hero.png') no-repeat center center/cover;
  position: relative; /* create stacking context for overlay/content */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px; /* offset for fixed nav */
}

/* FIX: allow clicks to pass through overlay and keep it behind content */
header .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  pointer-events: none; /* <- key fix */
  z-index: 0;           /* behind content */
}

/* Ensure hero content is above the overlay */
header .container {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Primary button */
header .btn,
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

header .btn:hover,
.btn:hover,
header .btn:focus-visible,
.btn:focus-visible {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  outline: none;
}

/* Generic section styling */
section {
  padding: 4rem 0;
}

section h2, section h1 {
  margin-top: 0;
  color: var(--primary);
}

.intro p {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Music listing page */
.music-list .track {
  margin-bottom: 3rem;
}

.music-list .track h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.4rem;
}

iframe {
  border: none;
  width: 100%;
  max-width: 100%;
}

/* About page formatting */
.about p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
}

/* Contact page */
.contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Footer styling */
footer {
  background: #111;
  color: #888;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Stripe CTA: gradient link styled as button */

.buy-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, var(--primary), #ff7a1f); /* subtle gradient */
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-btn:hover,
.buy-btn:focus-visible {
  background: linear-gradient(90deg, var(--secondary), #ff9c50);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  outline: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  header h1 {
    font-size: 2.5rem;
  }
  header p {
    font-size: 1rem;
  }
  .buy-btn {
    display: block;
    margin: 12px auto 0;
    text-align: center;
  }
}

/* --- Make 'Order a Custom Song' match Listen Now, but pop a bit --- */
header .container a.buy-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;

  /* kill any old pink gradient + set our look */
  background-color: var(--primary) !important;
  background-image: linear-gradient(180deg, var(--primary), #ff7a1f) !important;
  color: var(--bg) !important;

  /* subtle lift so it stands out a touch */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* small gap if it's next to the Listen button */
header .container .btn + .buy-btn { margin-left: 12px; }

header .container a.buy-btn:hover,
header .container a.buy-btn:focus-visible {
  background-image: linear-gradient(180deg, var(--secondary), #ff9c50) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  outline: none;
}

