/* Benjamin Urbaez - Sacred Earth Editorial */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* Sacred Earth Palette - Warm Amber Dark */
  --bg: #110E0C;
  --bg-alt: #1A1512;
  --burgundy: #8B3A3A;
  --burgundy-light: #A85050;
  --amber: #C4873B;
  --amber-light: #D4A054;
  --brown: #2A1F18;
  --brown-light: #3D2E22;
  --grey: #8A7E72;
  --grey-warm: #9E9080;
  --cream: #E8DCD0;
  --cream-muted: #B8A898;
  --text: #E8DCD0;
  --text-muted: #B8A898;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--amber);
  color: var(--bg);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--cream-muted);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: 0.2em;
}

p {
  max-width: 65ch;
}

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

a:hover {
  color: var(--amber);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: 1600px;
}

.container--narrow {
  max-width: 900px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: linear-gradient(to bottom, rgba(17, 14, 12, 0.9) 0%, transparent 100%);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: bolder;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.4s ease;
}

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

.nav__link.active {
  color: var(--amber);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: grayscale(0%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(17, 14, 12, 0.6) 40%,
    rgba(17, 14, 12, 0.2) 100%
  );
}

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

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: none;
}

.hero__title--large {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--text-muted);
}

/* Page Header */
.page-header {
  padding-top: calc(80px + var(--space-md));
  padding-bottom: var(--space-md);
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__line {
  width: 60px;
  height: 1px;
  background: var(--amber);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

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

.section--burgundy h2,
.section--burgundy h3,
.section--burgundy p,
.section--burgundy a {
  color: var(--cream);
}

.section--burgundy .section__line {
  background: var(--amber);
}

.section--burgundy .social-link {
  background: rgba(232, 220, 208, 0.15);
  color: var(--cream);
}

.section--burgundy .social-link:hover {
  background: var(--amber);
  color: var(--bg);
}

.section--brown {
  background: var(--brown-light);
  color: var(--cream);
}

.section--brown h2,
.section--brown h3,
.section--brown p,
.section--brown a {
  color: var(--cream);
}

.section--brown .social-link {
  background: rgba(232, 220, 208, 0.15);
  color: var(--cream);
}

.section--brown .social-link:hover {
  background: var(--amber);
  color: var(--bg);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__line {
  width: 40px;
  height: 1px;
  background: var(--amber);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--asymmetric {
  grid-template-columns: 1fr 1.5fr;
}

/* Content Blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.content-block__image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.content-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%) brightness(0.95);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.content-block__image:hover img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.02);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--brown-light);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.card:hover .card__image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.card__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--grey-warm);
  font-style: italic;
}

/* Music List */
.music-list {
  display: flex;
  flex-direction: column;
}

.music-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  align-items: baseline;
  border-bottom: 1px solid rgba(196, 135, 59, 0.2);
  transition: background 0.3s ease;
}

.music-item:hover {
  background: rgba(196, 135, 59, 0.08);
  margin: 0 calc(var(--space-md) * -1);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.music-item__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.music-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.music-item__year {
  font-size: 0.875rem;
  color: var(--grey-warm);
  font-style: italic;
}

/* Collaborations */
.collab {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: rgba(196, 135, 59, 0.06);
  transition: background 0.3s ease;
}

.collab:hover {
  background: rgba(196, 135, 59, 0.12);
}

.collab__artist {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.collab__description {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tour Dates */
.tour-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  align-items: baseline;
  border-bottom: 1px solid rgba(196, 135, 59, 0.15);
}

.tour-item__date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.tour-item__venue {
  font-size: 1rem;
}

.tour-item__city {
  font-size: 0.875rem;
  color: var(--grey-warm);
  font-style: italic;
  text-align: right;
}

/* Quote Block */
.quote {
  padding: var(--space-lg);
  background: rgba(196, 135, 59, 0.08);
  border-left: 2px solid var(--amber);
  position: relative;
}

.quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--amber);
  opacity: 0.3;
  position: absolute;
  top: -1rem;
  left: var(--space-md);
  line-height: 1;
}

.quote__text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.quote__attribution {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-block__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
}

.contact-block__value {
  font-size: 1.125rem;
}

.contact-block__value a {
  transition: color 0.3s ease;
}

.contact-block__value a:hover {
  color: var(--amber);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  background: rgba(196, 135, 59, 0.12);
  color: var(--cream);
  transition: background 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  background: var(--amber);
  color: var(--bg);
}

/* Instagram Embed Container */
.instagram-embed {
  background: rgba(196, 135, 59, 0.06);
  padding: var(--space-md);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-embed iframe {
  max-width: 100%;
}

/* Gallery Layout */
.gallery-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--space-sm);
}

.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
}

.gallery-grid__item img {
  width: 100%;
  display: block;
  filter: grayscale(0%) brightness(0.95);
  transition: filter 0.4s ease, transform 0.4s ease, opacity 0.6s ease;
  opacity: 0;
}

.gallery-grid__item img.loaded {
  opacity: 1;
}

.gallery-grid__item:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.02);
}

.gallery-grid__item {
  overflow: hidden;
}

.gallery-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.gallery-sidebar__embed {
  min-height: 400px;
}

.gallery-sidebar__poem {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-sidebar__poem-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.gallery-sidebar__poem-text strong {
  font-weight: 600;
  color: var(--text);
  font-style: normal;
}

.gallery-sidebar__meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-warm);
}

.gallery-credit {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(196, 135, 59, 0.15);
  color: var(--text-muted);
}

.gallery-credit a {
  color: var(--amber);
}

.gallery-credit a:hover {
  color: var(--amber-light);
}

/* Page Header Subtitle */
.page-header__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Sticky Nav */
.nav--sticky {
  background: rgba(17, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Nav Instagram Link */
.nav__link--instagram {
  color: var(--amber);
  font-size: 1rem;
}

/* About page top-aligned hero */
.page-header--top-align {
  display: flex;
  align-items: flex-start;
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(196, 135, 59, 0.15);
  margin-top: var(--space-xl);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--grey-warm);
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--grey);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .grid--2, .grid--3 {
    grid-template-columns: 1fr;
  }

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

  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .content-block--reverse {
    direction: ltr;
  }

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

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-sidebar {
    position: static;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    gap: var(--space-lg);
    transition: right 0.4s ease;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__link {
    font-size: 1rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .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);
  }

  .gallery-grid {
    columns: 1;
  }

  .tour-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .tour-item__city {
    text-align: left;
  }

  .music-item {
    grid-template-columns: auto 1fr;
  }

  .music-item__year {
    grid-column: 2;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
