/*
Theme Name: Le Sommeil
Description: Official website for Le Sommeil baroque music ensemble
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

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

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

body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow-x: hidden;
  font-family: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

/* ===== NAV OVERLAY ===== */
#nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 32px 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#nav-overlay.open {
  pointer-events: auto;
  opacity: 1;
}

#nav-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 48px;
}

#nav-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

#nav-overlay nav a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

#nav-overlay nav a:hover { opacity: 1; }

/* ===== FIXED HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  mix-blend-mode: difference;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO SECTION ===== */
#album {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #120c07;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
}

.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.18) 45%,
    transparent 100%);
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.hero-arrow:hover { opacity: 1; }
.hero-arrow-prev { left: 4px; }
.hero-arrow-next { right: 4px; }

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 40px 44px;
  display: flex;
  align-items: flex-end;
  gap: 48px;
  z-index: 5;
}

.hero-bottom h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(60px, 9.5vw, 136px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 0.88;
  letter-spacing: -2px;
  flex-shrink: 0;
}

.hero-bottom p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(13px, 1.15vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 0 10px;
}

.hero-corner {
  position: absolute;
  bottom: 44px;
  right: 40px;
  width: 18px;
  height: 18px;
  background: #fff;
  z-index: 5;
}

/* ===== SEMELE SECTION ===== */
#semele {
  background: #000;
  padding: 80px 40px 64px;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
}

.semele-images {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 56px;
}

.semele-art {
  position: relative;
  width: clamp(240px, 34vw, 500px);
  flex-shrink: 0;
}

.semele-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 2;
  background: #111;
  overflow: hidden;
}

.semele-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.semele-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1c1c1c 0%, #0a0a0a 50%, #181818 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.semele-cover-placeholder span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* CSS vinyl record */
.semele-vinyl {
  position: absolute;
  width: 90%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  right: -50%;
  top: 5%;
  z-index: 1;

  /* layered radial gradients: hole → label → dark ring → ice blue vinyl */
  background:
    radial-gradient(circle at 50% 50%,
      #0c0c0c    0%,   #0c0c0c  3.5%,
      transparent 3.6%
    ),
    radial-gradient(circle at 50% 50%,
      #f0e8d8  3.6%, #e6dcca 13%,
      #d8ccb4 19%,   #c8bc9e 19.8%,
      transparent 19.9%
    ),
    radial-gradient(circle at 50% 50%,
      #222 19.9%, #222 21.2%,
      transparent 21.3%
    ),
    repeating-radial-gradient(circle at 50%,
      transparent 0%, transparent 1.6%,
      rgba(255,255,255,0.03) 1.7%, rgba(255,255,255,0.03) 1.9%
    ),
    radial-gradient(circle at 45% 40%,
      #d0e8f4 0%, #c0dced 25%,
      #a8cedd 55%, #90c0d0 75%,
      #80b0c4 100%
    );

  box-shadow:
    6px 12px 48px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.semele-text h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1;
  letter-spacing: -1px;
}

.semele-text p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 520px;
  margin: 0;
}

/* ===== ABOUT SECTION ===== */
#about {
  background: #f5f2ed;
  padding: 20px 13vw 0;
}

#about .section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  padding-left: 26px;
}

/* Column layout */
.about-columns {
  display: flex;
  min-height: 730px;
}

.about-col {
  border-left: 2px solid #000;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  cursor: pointer;
  overflow: hidden;
  transition: flex-grow 0.45s ease;
}

.about-col:first-child { border-left: none; }

.about-col.active { flex: 0 0 auto; cursor: default; }

.about-col-header {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #000;
  padding: 21px 26px;
  white-space: nowrap;
  user-select: none;
}

/* Body: hidden in collapsed cols */
.about-col-body {
  display: none;
  flex: 1;
  padding: 16px 26px 73px 0;
}

.about-col.active .about-col-body { display: block; }

/* Band names */
.band-list {
  display: flex;
  flex-direction: column;
  padding: 0 36px 0 20px;
}

.band-list p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(36px, 4.5vw, 66px);
  color: #000;
  margin: 0;
  line-height: 0.88;
  font-weight: 700;
  white-space: nowrap;
}

/* Text content for other cols */
.text-content {
  padding: 10px 0 0 20px;
  width: 42ch;
}

.text-content p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 23px;
  color: #000;
  line-height: 1.6;
  margin: 0 0 26px;
}

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

/* ===== MEDIA SECTION ===== */
#media {
  background: #f5f2ed;
  padding: 20px 13vw 0;
  position: relative;
}

#media .section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  display: block;
  padding-left: 26px;
}

.media-columns {
  display: flex;
  min-height: 730px;
}

.media-col {
  border-left: 2px solid #000;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  cursor: pointer;
  overflow: hidden;
  transition: flex-grow 0.45s ease;
}

.media-col:first-child { border-left: none; }
.media-col.active { flex: 0 0 auto; cursor: default; }

.media-col-header {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #000;
  padding: 21px 26px;
  white-space: normal;
  user-select: none;
  line-height: 1.2;
}

.media-col-body {
  display: none;
  padding: 0 26px 56px 20px;
}

.media-col.active .media-col-body { display: block; }

.media-photo {
  width: clamp(300px, 38vw, 600px);
  aspect-ratio: 1;
  overflow: hidden;
}

.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #c8c4bc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-photo-placeholder span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 9px;
  color: rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.media-arrow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.media-arrow-nav:hover { opacity: 1; }
.media-arrow-prev { left: 16px; }
.media-arrow-next { right: 16px; }

/* ===== PROGRAMS SECTION ===== */
#programs { background: #f5f2ed; padding: 20px 13vw 0; }

#programs .section-label { font-size: 28px; font-weight: 600; margin: 0 0 10px; display: block; color: #000; padding-left: 26px; }

.programs-columns { display: flex; min-height: 730px; margin-left: 26px; }

.programs-col { border-left: 2px solid #000; flex: 0 0 auto; cursor: pointer; }
.programs-col:first-child { border-left: none; }
.programs-col.active { cursor: default; }

.programs-col-header { font-size: 17px; font-weight: 500; padding: 21px 26px; white-space: nowrap; color: #000; }
.programs-col.active .programs-col-header { display: none; }

.programs-col-body { display: none; }
.programs-col.active .programs-col-body { display: block; }

.programs-photo {
  position: relative;
  width: clamp(400px, 55vw, 750px);
  height: 730px;
  overflow: hidden;
}

.programs-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2a2010 0%, #1a1208 40%, #080604 100%);
}

.programs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programs-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.programs-overlay-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.programs-overlay-for { font-size: 14px; margin: 0 0 36px; opacity: 0.9; }
.programs-overlay-quote { font-size: 13px; line-height: 1.55; margin: 0 0 36px; max-width: 340px; opacity: 0.9; }
.programs-overlay-desc { font-size: 13px; line-height: 1.55; max-width: 340px; opacity: 0.9; }

.photo-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ===== SHOP SECTION ===== */
#shop {
  background: #000;
  padding: 52px 28px 72px;
  box-sizing: border-box;
}

#shop .section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: 0.5px;
}

.shop-merch {
  width: 100%;
  aspect-ratio: 1512 / 982;
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.shop-merch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-coming-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
}

.shop-coming-soon span {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(56px, 12vw, 96px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ===== CALENDAR SECTION ===== */
#calendar {
  background: #000;
  padding: 52px 13vw 56px;
  height: 100svh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#calendar .section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 48px 15%;
  letter-spacing: 0.5px;
}

#calendar h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0 15%;
  line-height: 1;
}

.events-list {
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  width: 70%;
}

.event-row {
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  width: 100%;
}

.event-date, .event-time, .event-venue {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  color: #fff;
  font-weight: 500;
}

.calendar-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.calendar-pag-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.calendar-pag-pill button {
  background: none;
  border: none;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.calendar-pag-pill button:hover { opacity: 1; }

.calendar-pag-count {
  color: #fff;
  font-size: 14px;
  padding: 0 8px;
  font-family: 'Instrument Sans', sans-serif;
  white-space: nowrap;
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: #000;
  padding: 40px 13vw 80px;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  margin-left: 15%;
}

.contact-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-square {
  width: 24px;
  height: 24px;
  background: #fff;
  flex-shrink: 0;
}

.contact-title-group h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.contact-body {
  margin-left: 15%;
  padding-left: 40px;
}

.contact-intro {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 56px;
}

.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 72px;
}

.contact-col-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  color: #fff;
  font-weight: 400;
  margin: 0 0 2px;
}

.contact-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  color: #fff;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.contact-detail {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  color: #fff;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.contact-outro {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  padding: 40px 13vw 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
}

.footer-top h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(80px, 13vw, 190px);
  color: #fff;
  margin: 0;
  line-height: 0.9;
  font-weight: 700;
}

.footer-instagram {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.2s;
}

.footer-instagram:hover { opacity: 0.7; }

.footer-card {
  background: #f5f2ed;
  border-radius: 20px 20px 0 0;
  padding: 64px 40px 80px;
  text-align: center;
}

.footer-moth {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-moth img {
  width: 140px;
  height: auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 40px;
}

.footer-brand p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  color: #000;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  color: #000;
  line-height: 1.4;
  margin: 0;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {

  /* HERO */
  .hero-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 28px;
  }

  /* SEMELE */
  #semele { padding: 56px 20px 48px; overflow: hidden; }

  /* ABOUT */
  #about { padding: 20px 20px 0; }
  #about .section-label { padding-left: 0; font-size: 22px; }
  .about-columns { flex-direction: column; min-height: unset; }
  .about-col { border-left: none; border-top: 2px solid #000; }
  .about-col:first-child { border-top: none; }
  .about-col-header { white-space: normal; }
  .band-list p { white-space: normal; font-size: clamp(22px, 7vw, 40px); }
  .text-content { width: auto; }

  /* MEDIA */
  #media { padding: 20px 20px 0; }
  #media .section-label { padding-left: 0; font-size: 22px; }
  .media-columns { flex-direction: column; min-height: unset; }
  .media-col { border-left: none; border-top: 2px solid #000; }
  .media-col:first-child { border-top: none; }
  .media-photo { width: 100%; }
  .media-arrow-nav { display: none; }

  /* PROGRAMS */
  #programs { padding: 20px 20px 0; }
  #programs .section-label { padding-left: 0; font-size: 22px; }
  .programs-columns { flex-direction: column; min-height: unset; margin-left: 0; }
  .programs-col { border-left: none; border-top: 2px solid #000; }
  .programs-col:first-child { border-top: none; }
  .programs-col.active .programs-col-header { display: block; }
  .programs-photo { width: 100%; height: 65vw; min-height: 200px; }

  /* CALENDAR */
  #calendar { height: auto; min-height: 100svh; padding: 48px 20px 56px; }
  #calendar .section-label { margin-left: 0; font-size: 24px; margin-bottom: 20px; }
  #calendar h2 { margin-left: 0; }
  .events-list { width: 100%; margin-top: 48px; margin-bottom: 0; }
  .event-row { gap: 16px; flex-wrap: wrap; }

  /* CONTACT */
  #contact { padding: 40px 20px 60px; }
  .contact-header { margin-left: 0; }
  .contact-body { margin-left: 0; padding-left: 0; }
  .contact-intro { font-size: clamp(18px, 5vw, 24px); margin-bottom: 32px; }
  .contact-outro { font-size: clamp(20px, 5.5vw, 28px); }

  /* FOOTER */
  footer { padding: 32px 20px 0; }
  .footer-top h2 { font-size: clamp(48px, 14vw, 80px); }
  .footer-card { padding: 48px 20px 56px; }
}
