/*
Theme Name: Jesse Allen v3
Theme URI: https://jacountry.com
Author: Jesse Allen
Description: Bold editorial WordPress theme for Jesse Allen — country rock artist. Full-bleed photography, grunge logo, inspired by Koe Wetzel / Tucker Wetmore / Josh Ross.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: jesse-allen
*/

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

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --black:      #0e0c0b;
  --white:      #f5f2ee;
  --cream:      #f0ebe3;
  --tan:        #d4c9b8;
  --rust:       #b84c1a;
  --rust-lt:    #d45f28;
  --rust-dk:    #8a3410;
  --stone:      #6b6258;
  --stone-lt:   #9c9089;
  --border:     rgba(0,0,0,0.08);
  --ff-display: 'Bebas Neue', 'Impact', sans-serif;
  --ff-head:    'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ff-mono:    'Courier New', monospace;
  --max-w:      1140px;
  --radius:     4px;
  --radius-lg:  10px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--ff-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rust-lt); }
h1,h2,h3,h4 { line-height: 1.1; color: var(--black); }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}
.rule {
  width: 48px; height: 2px;
  background: var(--rust);
  margin-top: 16px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-solid {
  background: var(--black); color: var(--white);
}
.btn-solid:hover { background: var(--rust); color: var(--white); }

.btn-rust {
  background: var(--rust); color: var(--white);
  box-shadow: 0 2px 12px rgba(184,76,26,0.3);
}
.btn-rust:hover { background: var(--rust-lt); color: var(--white); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

.btn-outline-dark {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 32px;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,12,11,0.96);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo img {
  height: 64px; width: auto;
  transition: opacity var(--transition);
}
.site-logo:hover img { opacity: 0.85; }

.nav-links {
  list-style: none;
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--white); border-bottom-color: var(--rust); }
.nav-listen {
  font-family: var(--ff-mono) !important;
  font-size: 10px !important;
  letter-spacing: 3px !important;
  color: var(--white) !important;
  background: var(--rust);
  padding: 9px 18px !important;
  border-bottom: none !important;
  transition: background var(--transition) !important;
}
.nav-listen:hover { background: var(--rust-lt) !important; color: var(--white) !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: 1.5px;
  background: var(--white); border-radius: 1px; transition: all 0.3s;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(14,12,11,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 32px; border-bottom: none !important; }
  .nav-listen { margin: 8px 32px 0; display: block; text-align: center; }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 7s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,12,11,0.2) 0%,
    rgba(14,12,11,0.1) 35%,
    rgba(14,12,11,0.65) 70%,
    rgba(14,12,11,0.95) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 32px 90px;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rust-lt);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--rust);
}
.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(72px, 13vw, 160px);
  font-weight: 400; letter-spacing: 4px;
  color: var(--white); line-height: 0.88;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s ease 0.35s forwards;
}
.hero-tagline {
  font-family: var(--ff-head);
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic; font-weight: 400;
  color: rgba(245,242,238,0.7);
  max-width: 500px;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards;
}
.hero-scroll {
  position: absolute; bottom: 28px; right: 48px;
  z-index: 2; writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s ease 1.2s forwards;
}
.hero-scroll span {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-tick { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--rust), transparent); animation: scrollPulse 2s ease infinite; }

@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scrollPulse { 0%,100%{opacity:0.4;} 50%{opacity:1;} }

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--black);
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-inner {
  display: flex; align-items: center;
  justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  padding: 0 48px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 36px; letter-spacing: 2px;
  color: var(--white); line-height: 1;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--stone-lt);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .stat-item { padding: 16px 24px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-item:last-child { border-bottom: none; }
}

/* ── MUSIC ───────────────────────────────────────────────────── */
.music-section { background: var(--white); }
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.release-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--cream);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.release-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--rust);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s ease;
}
.release-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.release-card:hover::before { transform: scaleY(1); }
.release-year {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 10px;
}
.release-title {
  font-family: var(--ff-display);
  font-size: 32px; letter-spacing: 1px; font-weight: 400;
  margin-bottom: 8px; line-height: 1;
}
.release-stat {
  font-size: 13px; color: var(--stone);
  margin-bottom: 28px; line-height: 1.5;
}
.stream-links { display: flex; gap: 10px; flex-wrap: wrap; }
.stream-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--black); background: var(--white);
  transition: all var(--transition);
}
.stream-pill:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.stream-pill svg { width: 13px; height: 13px; fill: currentColor; }
.spotify-embed-wrap {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── PHOTO STRIP ─────────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  height: 480px;
  gap: 4px;
}
.photo-strip-item {
  overflow: hidden; position: relative;
  background: var(--black);
}
.photo-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.85);
}
.photo-strip-item:hover img { transform: scale(1.04); filter: saturate(1); }
@media (max-width: 700px) {
  .photo-strip { grid-template-columns: 1fr 1fr; height: 360px; }
  .photo-strip-item:first-child { grid-column: 1 / -1; }
}

/* ── TOUR ────────────────────────────────────────────────────── */
.tour-section { background: var(--cream); }
.tour-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px;
}
.tour-bit-header {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) { .tour-wrap { padding: 28px 20px; } }

/* ── VIDEO ───────────────────────────────────────────────────── */
.video-section {
  background: var(--black);
  position: relative; overflow: hidden;
}
.video-section::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 4px;
  background: var(--rust);
}
.video-layout {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 72px; align-items: center;
}
.video-embed {
  position: relative; padding-bottom: 56.25%;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.video-text .section-label { color: var(--rust-lt); }
.video-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400; letter-spacing: 2px;
  color: var(--white); line-height: 1;
  margin-bottom: 20px;
}
.video-desc {
  font-size: 15px; color: rgba(245,242,238,0.55);
  line-height: 1.8; margin-bottom: 32px;
}
.video-links { display: flex; flex-direction: column; gap: 14px; }
.video-link-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(245,242,238,0.5);
  transition: color var(--transition);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.video-link-item:last-child { border-bottom: none; padding-bottom: 0; }
.video-link-item:hover { color: var(--rust-lt); }
.video-link-item svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 820px) {
  .video-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-section { background: var(--white); }
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-image {
  position: sticky; top: 100px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-text .section-title { margin-bottom: 20px; }
.about-pull {
  font-family: var(--ff-head);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic; font-weight: 400;
  color: var(--rust-dk);
  border-left: 3px solid var(--rust);
  padding: 8px 0 8px 24px;
  margin-bottom: 32px; line-height: 1.45;
}
.about-body p {
  font-size: 16px; color: var(--stone);
  line-height: 1.85; margin-bottom: 20px;
}
.about-body p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-image { position: static; aspect-ratio: 16/9; }
}

/* ── SOCIAL ROW ──────────────────────────────────────────────── */
.social-section { background: var(--cream); padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.social-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--stone); background: var(--white);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.social-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ── EMAIL ───────────────────────────────────────────────────── */
.email-section { background: var(--rust); }
.email-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.email-inner .section-label { color: rgba(245,242,238,0.6); }
.email-title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400; letter-spacing: 3px;
  color: var(--white); line-height: 1;
  margin-bottom: 12px;
}
.email-sub { font-size: 15px; color: rgba(245,242,238,0.7); margin-bottom: 36px; }
.email-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.email-form input[type="email"] {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  padding: 14px 18px;
  font-size: 14px; color: var(--white);
  font-family: var(--ff-body); outline: none;
  transition: background var(--transition);
}
.email-form input:focus { background: rgba(255,255,255,0.18); }
.email-form input::placeholder { color: rgba(255,255,255,0.45); }
.email-form .btn-submit {
  background: var(--black); color: var(--white);
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 14px 22px; border: none; cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.email-form .btn-submit:hover { background: var(--rust-dk); }
#email-msg { margin-top: 14px; font-size: 13px; min-height: 20px; color: rgba(255,255,255,0.8); }
@media (max-width: 480px) {
  .email-form { flex-direction: column; }
  .email-form input[type="email"] { border-right: 1px solid rgba(255,255,255,0.25); border-bottom: none; }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--black); padding: 64px 32px 36px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 48px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.footer-logo img { height: 80px; width: auto; opacity: 0.9; }
.footer-tagline { font-size: 13px; color: var(--stone-lt); margin-top: 10px; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--stone-lt); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(245,242,238,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--stone); font-family: var(--ff-mono); letter-spacing: 1px; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
