/* ============================================
   SONGWRITING HOUSE — Main Stylesheet
   ============================================
   
   STRUCTURE:
   1. Variables & Fonts
   2. Reset & Base
   3. Typography
   4. Navigation
   5. Hero Section
   6. Song Cards (reusable)
   7. Custom Audio Player
   8. Content Sections
   9. Skills/Services Grid
   10. Footer
   11. Interior Page Layout
   12. Animations
   13. Responsive
   ============================================ */

/* ---------- 1. Variables & Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg:         #0b0b0e;
  --color-bg-alt:     #101014;
  --color-surface:    #161619;
  --color-surface-2:  #1c1c21;
  --color-border:     #2a2a30;
  --color-text:       #e0ddd6;
  --color-text-muted: #7a7872;
  --color-accent:     #ffbb1c;
  --color-accent-dim: rgba(200,164,78,0.12);
  --color-white:      #ffffff;

  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --nav-height: 92px;
  --section-pad: 50px;
  --container-max: 1140px;
  --container-narrow: 800px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-block;
  margin-bottom: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: #d4b05a;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(11, 11, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 32px;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,14,0.5) 0%,
    rgba(11,11,14,0.2) 40%,
    rgba(11,11,14,0.7) 75%,
    rgba(11,11,14,1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 35%;
  padding-left: 100px;
  text-align: left;
  animation: fadeUp 1s var(--ease) both;
}

.hero__content h2 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero__content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ---------- 6. Song Cards (Reusable) ---------- */
.songs-section {
  padding: var(--section-pad) 0;
  position: relative;
  background-color: #2c2c2c;
}

.songs-section__header {
  text-align: center;
  margin-bottom: 56px;
}

.songs-section__header h2 {
  color: var(--color-white);
}

.song-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 32px;
  transition: transform 0.3s var(--ease);
}

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

.song-card__artwork {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
}

.song-card__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-card__info {
  flex: 1;
}

.song-card__genre {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.song-card__info h3 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.song-card__info p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- 7. Custom Audio Player ---------- */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
}

.ap-play,
.ap-mute {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease);
}

.ap-play:hover,
.ap-mute:hover {
  color: var(--color-accent);
}

.ap-play svg { width: 20px; height: 20px; }
.ap-mute svg { width: 16px; height: 16px; }

.ap-time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  min-width: 34px;
  text-align: center;
  user-select: none;
}

.ap-progress {
  flex: 1;
  height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.15s var(--ease);
}

.ap-progress:hover { height: 5px; }

.ap-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* ---------- 8. Content Sections ---------- */
.content-section {
  padding: var(--section-pad) 0;
}

.content-section--alt {
  background: var(--color-bg-alt);
}

.content-section--border-top {
  border-top: 1px solid var(--color-border);
}

.split-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.split-layout--reverse {
  flex-direction: row-reverse;
}

.split-layout__text {
  flex: 1;
}

.split-layout__text h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.split-layout__text p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.split-layout__image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.split-layout__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 60px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.cta-banner h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ---------- 9. Skills/Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.3s var(--ease);
}

.service-card:hover {
  border-color: var(--color-accent);
}

.service-card h4 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------- 10. Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer__contact p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__contact a {
  color: var(--color-accent);
  transition: color 0.2s var(--ease);
}

.footer__contact a:hover {
  color: #d4b05a;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

/* ---------- 11. Interior Page Layout ---------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,14,0.6) 0%,
    rgba(11,11,14,1) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__content h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-hero__content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.page-body {
  padding: var(--section-pad) 0;
}

.page-body h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.page-body h4 {
  color: var(--color-white);
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.page-body ul {
  padding-left: 20px;
  margin: 12px 0;
}

.page-body ul li {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  list-style: disc;
}

/* ---------- 12. Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .nav__toggle { display: flex; }

.hero__content {
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(11, 11, 14, 0.97);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    padding: 12px 0;
    font-size: 0.82rem;
  }

  .split-layout,
  .split-layout--reverse {
    flex-direction: column;
  }

  .song-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .song-card__artwork {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
  }

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

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero__split {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: var(--container-max);
  gap: 60px;
  padding: 0 32px;
  align-items: center;
}

.hero__left,
.hero__right {
  flex: 1;
}