/* MEGA — Music Licensing Resource */
/* Design: Dark editorial, music industry aesthetic */
/* Typography: Space Grotesk (headings) + Inter (body) */

:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --dark-1: #1a1a1a;
  --dark-2: #222222;
  --dark-3: #2e2e2e;
  --red: #c0392b;
  --red-dark: #962d22;
  --red-light: #e74c3c;
  --white: #ffffff;
  --off-white: #f7f5f2;
  --gray-light: #e8e6e3;
  --gray-mid: #9a9590;
  --gray-text: #6b6560;
  --text-dark: #1a1a1a;
  --text-body: #3a3530;
  --accent-gold: #b8960a;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1140px;
  --radius: 2px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
p { margin-bottom: 1.1rem; }
ul, ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; margin-top: 2.5rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.75rem; margin-top: 1.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

strong { font-weight: 600; color: var(--text-dark); }
em { font-style: italic; }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--dark-1);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.8); }

.section--offwhite {
  background: var(--off-white);
}

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid var(--dark-3);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--dark-3);
}

.nav-cta {
  margin-left: 1rem;
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
}

.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(--white);
  transition: all var(--transition);
}

/* ─── HERO ─── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: contrast(1.1) saturate(0.8);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.95) 40%, rgba(192,57,43,0.15) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 780px;
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

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

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(192,57,43,0.08);
}

.card--dark {
  background: var(--dark-2);
  border-color: var(--dark-3);
  color: rgba(255,255,255,0.85);
}
.card--dark h3 { color: var(--white); }
.card--dark:hover { border-color: var(--red); }

/* ─── FEATURED STRIP (homepage projects) ─── */
.project-strip {
  padding: 0;
  overflow: hidden;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-bottom: 1px solid var(--gray-light);
}
.project-card:nth-child(even) .project-card__img { order: 2; }
.project-card:nth-child(even) .project-card__text { order: 1; }

.project-card__img {
  overflow: hidden;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card__img:hover img { transform: scale(1.03); }

.project-card__text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--off-white);
}

.project-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.project-card__text h3 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.project-card__text p {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ─── ARTICLE LAYOUT ─── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 4rem;
  align-items: start;
  padding-top: 2rem;
}

.article-body h2 { border-left: 3px solid var(--red); padding-left: 1rem; }
.article-body h3 { color: var(--dark-1); }
.article-body ul li::marker { color: var(--red); }
.article-body ol li::marker { color: var(--red); font-weight: 600; }

.article-body .article-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body .article-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-block {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.sidebar-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-block ul li {
  border-bottom: 1px solid var(--gray-light);
  padding: 0.5rem 0;
  margin: 0;
}
.sidebar-block ul li:last-child { border-bottom: none; }
.sidebar-block ul a {
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
}
.sidebar-block ul a:hover { color: var(--red); }

/* ─── STAT BLOCKS ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--dark-3);
}

.stat-block {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--dark-3);
  text-align: center;
}
.stat-block:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  display: block;
}

/* ─── BLOG LIST ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-card__img { overflow: hidden; }
.blog-card__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__img img { transform: scale(1.04); }

.blog-card__body { padding: 1.5rem; }
.blog-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.blog-card h3 a { color: var(--text-dark); }
.blog-card h3 a:hover { color: var(--red); }
.blog-card p {
  font-size: 0.88rem;
  color: var(--gray-text);
  margin: 0;
}

/* ─── SECTION HEADER ─── */
.section-header {
  margin-bottom: 3rem;
}
.section-header--center { text-align: center; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-top: 0; }
.section-header .lead {
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 640px;
  margin-top: 0.75rem;
}
.section-header--center .lead { margin: 0.75rem auto 0; }

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 1.25rem 0;
}
.divider--center { margin: 1.25rem auto; }

/* ─── FEATURE LIST ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 1.75rem;
  border-top: 3px solid var(--red);
  background: var(--off-white);
}

.feature-item__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin: 0;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--gray-text);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 0.5rem; }

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--dark-1);
  padding: 7rem 0 3.5rem;
  margin-bottom: 0;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-header .lead {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--red);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-3);
}

.footer-brand .nav-logo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ─── 404 ─── */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.page-404__num {
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  opacity: 0.15;
  display: block;
  position: absolute;
}
.page-404__content { position: relative; }

/* ─── UTILITIES ─── */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-1 { gap: 1rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-card:nth-child(even) .project-card__img { order: 0; }
  .project-card:nth-child(even) .project-card__text { order: 1; }
  .project-card__img { min-height: 260px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--near-black);
    padding: 1rem;
    border-bottom: 1px solid var(--dark-3);
    z-index: 999;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3rem 0; }
  .page-header { padding: 6rem 0 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--dark-3); }
  .stat-block:nth-child(odd) { border-right: 1px solid var(--dark-3); }
}
