/*
Theme Name: Erik Truelove
Theme URI: https://eriktruelove.com
Author: Erik Truelove
Description: Custom WordPress theme — Entertainer · Educator · Entrepreneur
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: erik-truelove
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --white:       #ffffff;
  --off-white:   #f7f6f3;
  --light:       #efefec;
  --mid-grey:    #d0cec8;
  --grey:        #8a8880;
  --dark-grey:   #3a3835;
  --black:       #1a1816;
  --accent:      #b8620a;
  --accent-dim:  #e8c49a;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Karla', sans-serif;
  --nav-height:   72px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:        1160px;
  --radius:       4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--dark-grey); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--black); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--black); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.section    { padding: 80px 0; }
.section--light  { background: var(--off-white); }
.section--white  { background: var(--white); }
.section--border { border-top: 1px solid var(--light); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

#site-header.elevated { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

.nav-inner {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.site-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

#primary-nav ul { list-style: none; display: flex; gap: 0; }

#primary-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 8px 16px;
  display: block;
  position: relative;
  transition: color var(--transition);
}

#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

#primary-nav a:hover,
#primary-nav a.active { color: var(--black); }

#primary-nav a:hover::after,
#primary-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 5px;
  flex-direction: column;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: all var(--transition); }

/* ============================================================
   CAROUSEL HERO
   ============================================================ */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--black);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 100%);
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
  border-radius: 50%;
  font-size: 1.1rem;
}

.carousel-btn:hover { background: rgba(184,98,10,0.7); border-color: transparent; }
.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* ============================================================
   HOMEPAGE INTRO BLURB
   ============================================================ */
.home-intro {
  padding: 56px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--light);
}

.home-intro-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.home-intro-name h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.home-intro-name .tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-intro-text p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.home-intro-text p:last-of-type { margin-bottom: 0; }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--light);
  border-top: 1px solid var(--light);
}

.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--light);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 5px;
  line-height: 1.4;
}

/* ============================================================
   VIDEO GRID (Music page)
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black);
  border-radius: var(--radius);
  cursor: pointer;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition), transform 0.4s ease;
  display: block;
}

.video-card:hover img { opacity: 0.65; transform: scale(1.04); }

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 55%);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}

.video-card:hover .video-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card__play::after {
  content: '';
  border-left: 12px solid var(--black);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.video-card__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.video-card__duration {
  font-size: 0.68rem;
  color: var(--accent-dim);
  margin-top: 3px;
  font-family: var(--font-body);
}

.yt-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light);
}

.yt-cta a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-grey);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--transition);
}

.yt-cta a:hover { color: var(--accent); }

/* ============================================================
   MUSIC STREAMING PLATFORMS
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.platform-card {
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--dark-grey);
}

.platform-card:hover {
  border-color: var(--mid-grey);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  color: var(--black);
}

.platform-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-sub { font-size: 0.78rem; color: var(--grey); margin-top: 2px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}

.bio-pillar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light);
}

.bio-pillar h3 {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.bio-pillar p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.bio-pillar p:last-child { margin-bottom: 0; }

.bio-pillar p a { color: var(--accent); }
.bio-pillar p strong { color: var(--dark-grey); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--off-white);
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--light);
}
.page-header h1 { margin-top: 8px; }

/* ============================================================
   SHOWS / CALENDAR
   ============================================================ */
.calendar-wrap {
  margin-top: 2rem;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Force calendar iframe to full width */
.calendar-wrap iframe {
  width: 100% !important;
  min-height: 600px;
  border: none;
  display: block;
}

.calendar-placeholder {
  border: 2px dashed var(--mid-grey);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
}

.calendar-placeholder h3 { margin-bottom: 0.75rem; }
.calendar-placeholder p  { color: var(--grey); font-size: 0.9rem; margin-bottom: 1.5rem; }

.setup-steps {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 2.1;
}

.setup-steps strong { color: var(--dark-grey); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--grey); font-size: 0.92rem; line-height: 1.8; margin-bottom: 1.5rem; }

.contact-detail {
  padding: 0.9rem 0;
  border-top: 1px solid var(--light);
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--light); }
.contact-detail .lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; }
.contact-detail .val { font-size: 0.92rem; color: var(--dark-grey); }

.social-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.social-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-grey);
  border: 1px solid var(--mid-grey);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.social-pill:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field.full { grid-column: 1 / -1; }

.cf-field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); }

.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--dark-grey);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  -webkit-appearance: none;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { border-color: var(--black); }
.cf-field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   DISCOGRAPHY
   ============================================================ */
.discography-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.disc-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--light);
}

.disc-item--flip {
  grid-template-columns: 1fr 220px;
}

.disc-item--flip .disc-img {
  order: 2;
}

.disc-item--flip .disc-info {
  order: 1;
}

.disc-img {
  width: 220px;
  min-width: 220px;
  overflow: hidden;
}

.disc-img img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: block;
}

.disc-year {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.disc-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.disc-desc {
  font-size: 0.93rem;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.disc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.disc-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-grey);
  border: 1px solid var(--mid-grey);
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.disc-link:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Compilations */
.compilations-wrap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--light);
}

.compilations-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.compilations-grid img {
  height: 90px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.compilations-list {
  list-style: none;
  padding: 0;
}

.compilations-list li {
  font-size: 0.93rem;
  color: var(--grey);
  line-height: 1.8;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light);
  padding-left: 1rem;
  position: relative;
}

.compilations-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.compilations-list a {
  color: var(--accent);
  font-weight: 700;
}

/* Responsive discography */
@media (max-width: 700px) {
  .disc-item,
  .disc-item--flip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .disc-item--flip .disc-img,
  .disc-item--flip .disc-info {
    order: unset;
  }
  .disc-img img {
    max-width: 180px;
  }
}

/* ============================================================
   WORDPRESS EDITOR CONTENT STYLES
   (applies to all pages using the_content())
   ============================================================ */
.about-editor-content p,
.shows-intro p,
.shop-editor-content p,
.home-intro-text p {
  color: var(--grey);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-editor-content h2,
.about-editor-content h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.about-editor-content h2 { font-size: 1.3rem; }
.about-editor-content h3 { font-size: 1.1rem; }

.about-editor-content strong { color: var(--dark-grey); }
.about-editor-content a { color: var(--accent); }

.about-editor-content p:first-child { margin-top: 0; }
.about-editor-content p:last-child  { margin-bottom: 0; }

/* ============================================================
   SHOP
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.shop-card { background: var(--off-white); border: 1px solid var(--light); border-radius: var(--radius); padding: 2.5rem; }
.shop-card h3 { margin-bottom: 0.75rem; }
.shop-card p  { color: var(--grey); font-size: 0.92rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}
.btn:hover { background: transparent; color: var(--black); }
.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; display: block; }
.footer-logo small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 2px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.45); padding: 3px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { max-width: 340px; }
  .contact-wrap, .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .home-intro-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .carousel { aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  #primary-nav { display: none; }
  #primary-nav.open {
    display: block;
    position: fixed;
    top: var(--nav-height);
    left: 0; width: 100%;
    background: var(--white);
    border-top: 1px solid var(--light);
    z-index: 300;
    padding: 1rem 0;
  }
  #primary-nav.open ul { flex-direction: column; }
  #primary-nav.open a { padding: 12px 24px; }
  #primary-nav.open a::after { display: none; }
  .menu-toggle { display: flex; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .carousel { aspect-ratio: 4/3; }
}
