/* ===== CSS Variables ===== */
:root {
  --color-coral: #ec8065;
  --color-coral-dark: #d6674d;
  --color-cream: #faf8f5;
  --color-charcoal: #2d2d2d;
  --color-gray: #666;
  --color-light-gray: #e8e8e8;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1100px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main section:last-child {
  flex: 1;
}

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

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

a:hover {
  color: var(--color-coral-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== Header ===== */
.site-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-charcoal);
}

.logo:hover {
  color: var(--color-coral);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-links a {
  color: var(--color-charcoal);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-coral);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-charcoal);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-coral);
  color: white;
  border-color: var(--color-coral);
}

.btn-primary:hover {
  background: var(--color-coral-dark);
  border-color: var(--color-coral-dark);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-coral);
  border-color: var(--color-coral);
}

.btn-secondary:hover {
  background: var(--color-coral);
  color: white;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
              url('images/hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin-bottom: var(--spacing-sm);
  font-size: 3rem;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Sections ===== */
section {
  padding: var(--spacing-lg) 0;
}

section h2 {
  margin-bottom: var(--spacing-md);
}

.featured-media,
.intro {
  text-align: center;
}

.featured-media {
  background: white;
}

.intro {
  background: var(--color-cream);
}

.intro p {
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  font-size: 1.125rem;
  color: var(--color-gray);
}

/* ===== Media Preview ===== */
.media-preview {
  margin-bottom: var(--spacing-md);
}

.video-placeholder {
  background: var(--color-light-gray);
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-gray);
}

.video-placeholder .placeholder-note {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Video embed container */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Media Page Grid ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.media-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.media-item .video-embed {
  border-radius: 0;
}

.media-item-info {
  padding: var(--spacing-sm);
}

.media-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.media-item p {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ===== Audio Player ===== */
.audio-item {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audio-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.audio-item p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.audio-item audio {
  width: 100%;
}

/* ===== About Page ===== */
.page-header {
  background: var(--color-charcoal);
  color: white;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  background: white;
}

.about-content p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 800px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===== Musicians Section ===== */
.musicians-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.musician-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.musician-photo {
  background: var(--color-light-gray);
  height: 280px;
  overflow: hidden;
}

.musician-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.musician-info {
  padding: var(--spacing-sm);
}

.musician-info h3 {
  margin-bottom: 0.25rem;
}

.musician-info .instrument {
  color: var(--color-coral);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.musician-info p {
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* ===== Contact Page ===== */
.contact-content {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info h2 {
  margin-bottom: var(--spacing-sm);
}

.contact-info p {
  color: var(--color-gray);
  margin-bottom: var(--spacing-sm);
}

.contact-info a {
  font-weight: 500;
}

.contact-form h2 {
  margin-bottom: var(--spacing-sm);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-coral);
}

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

/* Social links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-cream);
  border-radius: 4px;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--color-coral);
  color: white;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-charcoal);
  color: white;
  text-align: center;
  padding: var(--spacing-md) var(--spacing-sm);
}

.site-footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero {
    min-height: 50vh;
    padding: var(--spacing-md) var(--spacing-sm);
  }

  section {
    padding: var(--spacing-md) 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-light-gray);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .social-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .btn {
    display: block;
    width: 100%;
  }

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