/*
Theme Name: They Dead
Theme URI: https://theydead.com
Author: They Dead
Description:
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: they-dead
*/

/* ============================================================
   THEY DEAD — style.css
   Mobile-first. Breakpoints: 768px (md), 1024px (lg).
   ============================================================ */

:root {
  --bg:        #080808;
  --bg2:       #0d0b0b;
  --text:      #e0dbd0;
  --muted:     #5c5652;
  --dim:       #3a3535;
  --red:       #8c1c1c;
  --red-hi:    #b52424;
  --border:    #1c1a1a;

  --font-header: 'Oswald', sans-serif;
  --font-body:   'Space Mono', monospace;

  --pad-x: 24px;
  --pad-y: 80px;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
    --pad-y: 100px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 52px;
    --pad-y: 120px;
  }
}


/* === RESET ================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}


/* === BASE ================================================== */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* === SVG FILTER WRAPPER ==================================== */

.svg-filters {
  display: none;
}


/* === SECTION LABEL ========================================= */

.section-label {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  filter: url(#distress);
  margin-bottom: 52px;
}

/* === NAV ================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad-x);
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.96) 0%, transparent 100%);
}

/* LOGO */
.site-nav__logo img {
  max-height: 40px;
  width: auto;
}

.site-nav__logo {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  filter: url(#distress);
}

.site-nav__links {
  display: flex;
  gap: 36px;
}
/* LINKS STYLE */
.site-nav__links a {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav__links a:hover {
  color: var(--red);
}

/* DESKTOP */
@media (max-width: 1024px) {
  .site-nav__links {
    display: none;
  }
}
/* === DROPDOWN BASE ======================================= */
.site-nav__links li {
  position: relative;
  list-style: none;
}

/* Submenu */
.site-nav__links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(10, 10, 10, 0.98);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 400;
}

/* Submenu links */
.site-nav__links .sub-menu a {
  padding: 6px 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav__links .sub-menu a:hover {
  color: var(--red);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 1024px) {
  .site-nav__links li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.site-nav__links > li.menu-item-has-children > a{
  position: relative;
}
.site-nav__links > li.menu-item-has-children > a::after{
  content: '';
  display: inline-block;
  border: none;
  position: absolute;
  top: 3px;
  right: -16px;
   background-color: currentColor;

  -webkit-mask: url(./assets/images/arrow-down.svg) no-repeat center;
  mask: url(./assets/images/arrow-down.svg) no-repeat center;

  -webkit-mask-size: cover;
  mask-size: cover;
  height: 10px;
  width: 15px;

}
/* === HERO ================================================== */

.section-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}

.section-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: saturate(0.55) contrast(1.15) brightness(0.6);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.section-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.55) 0%,
      rgba(8, 8, 8, 0.1) 30%,
      rgba(8, 8, 8, 0.1) 55%,
      rgba(8, 8, 8, 0.92) 100%
    );
}

.section-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at 60% 40%,
    rgba(100, 16, 16, 0.3) 0%,
    transparent 65%
  );
}

.section-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) 9vh;
  display: flex;
  flex-direction: column;
}

.section-hero__title {
  display: block;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: clamp(72px, 22vw, 240px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  filter: url(#distress);
  text-shadow: 0 0 80px rgba(140, 28, 28, 0.4);
}

.section-hero__title--red {
  color: var(--red);
}

.section-hero__tagline {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 360px;
}

.section-hero__scroll-cue {
  position: absolute;
  bottom: 36px;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  writing-mode: vertical-rl;
  animation: nudge 2.4s ease-in-out infinite;
  z-index: 3;
  cursor: pointer;
}

.section-hero__scroll-cue::before {
  content: '';
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--dim));
}

@keyframes nudge {
  0%, 100% { transform: translateY(0);   opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 0.9; }
}

@media (min-width: 1024px) {
  .section-hero__title {
    font-size: clamp(96px, 16vw, 240px);
  }
}


/* === ABOUT ================================================= */

.section-about {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg2);
}

.section-about::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

.section-about__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}

.section-about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-about__bio p {
  color: var(--text);
  opacity: 0.82;
  font-size: 15px;
  line-height: 2;
}

.section-about__bio p + p {
  margin-top: 1.6em;
}

.section-about__bio em {
  font-style: italic;
  color: var(--text);
}

.section-about__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-about__image {
  width: auto;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.05);
}

.section-about__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--bg2) 0%,
    transparent 30%,
    transparent 70%,
    var(--bg2) 100%
  );
}

.section-about__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 70% 40%,
    rgba(140, 28, 28, 0.08) 0%,
    transparent 60%
  );
}

@media (min-width: 1024px) {
  .section-about__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .section-about__content {
    padding-right: 72px;
  }

  .section-about__image-wrap {
    min-height: 560px;
  }

  .section-about__image-wrap::before {
    background: linear-gradient(
      to right,
      var(--bg2) 0%,
      rgba(13, 11, 11, 0.5) 18%,
      transparent 45%
    );
  }
}


/* === MEMBERS =============================================== */

.section-members {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
}

.section-members__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-members__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

@media (min-width: 768px) {
  .section-members__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
  }
}

@media (min-width: 1024px) {
  .section-members__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.member-card__photo {
  aspect-ratio: 3 / 4;
  background: #0e0c0c;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.member-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -48deg,
    #121010, #121010 2px,
    #0c0a0a 2px, #0c0a0a 16px
  );
}

.member-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 8, 8, 0.7) 100%);
}

.member-card__photo-tag {
  position: relative;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  line-height: 2;
}

.member-card__photo--has-image::before,
.member-card__photo--has-image::after {
  display: none;
}

.member-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-card__name {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  filter: url(#distress);
}

.member-card__role {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.member-card__bands {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  font-style: italic;
}


/* === LIVE PHOTO BREAK ====================================== */

.section-livephoto {
  width: 100%;
  height: 68vh;
  min-height: 380px;
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
  position: relative;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.section-livephoto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.55) 0%,
    rgba(8, 8, 8, 0.05) 30%,
    rgba(8, 8, 8, 0.05) 70%,
    rgba(8, 8, 8, 0.65) 100%
  );
}

@media (min-width: 1024px) {
  .section-livephoto {
    background-attachment: fixed;
  }
}


/* === SHOWS ================================================= */

.section-shows {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg2);
}

.section-shows__inner {
  max-width: 860px;
  margin: 0 auto;
}

.show-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.show-item:first-of-type {
  border-top: 1px solid var(--border);
}

.show-item__date {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.2;
}

.show-item__venue {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.show-item__location {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.show-item__support {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
}

.show-item__ticket {
  display: inline-block;
  align-self: flex-start;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 9px 18px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.show-item__ticket:hover {
  background: var(--red);
  color: var(--text);
}

.section-shows__footnote {
  margin-top: 40px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (min-width: 1024px) {
  .show-item {
    grid-template-columns: 120px 1fr auto;
    gap: 36px;
    align-items: center;
  }
}


/* === DISCOGRAPHY =========================================== */

.section-discography {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
}

.section-discography__inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-discography__list {
  display: flex;
  flex-direction: column;
}

.album-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.album-item:first-child {
  border-top: 1px solid var(--border);
}

.album-item__thumb {
  width: 110px;
  height: 110px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: #0e0c0c;
}

.album-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.album-item__thumb--placeholder {
  background: repeating-linear-gradient(
    45deg,
    #111, #111 2px,
    #0a0a0a 2px, #0a0a0a 14px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-item__thumb--placeholder span {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 8px;
  line-height: 1.8;
}

.album-item__title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  filter: url(#distress);
}

.album-item__year {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.album-item__note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.album-item__note strong {
  color: var(--text);
  font-weight: 700;
}


/* === FOOTER ================================================ */

.section-footer {
  padding: 80px var(--pad-x) 60px;
  background: #040404;
  border-top: 1px solid #181414;
}

.section-footer__inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.section-footer__logo {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  filter: url(#distress);
}

.section-footer__city {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-col__heading {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col__link {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 2.2;
  transition: color 0.2s;
}

.footer-col__link:hover {
  color: var(--red);
}

.section-footer__bottom {
  max-width: 860px;
  margin: 52px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1024px) {
  .section-footer__inner {
    grid-template-columns: 1fr auto auto;
    gap: 64px;
  }

  .section-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* === ANIMATIONS ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.in {
  opacity: 1;
  transform: none;
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
