/*
Theme Name:  SPiN
Theme URI:   https://spinrocks.com
Description: Custom single-page theme for the SPiN band website. No page builder required.
Version:     1.0.0
Author:      SPiN
Text Domain: spin
*/

/* ─────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────── */
:root {
  --black:     #000000;
  --white:     #ffffff;
  --red:       #c94332;
  --gray-bg:   #f5f5f5;
  --gray-text: #666666;
  --max-w:     1160px;
  --header-h:  70px;
  --pad:       5%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1em;
  line-height: 1.7;
  color: var(--gray-text);
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
p   { margin-bottom: 1.2em; }
ul  { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--black);
  font-weight: 300;
}

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

.section-pad { padding: 60px 0; }

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  height: var(--header-h);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
#site-logo { flex-shrink: 0; }
#site-logo img { height: 44px; width: auto; }
#site-logo .spin-text-logo {
  color: #fff;
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: -.02em;
}

/* Right-side wrapper: locks dropdown menu origin context */
.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Social icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: 20px;
  transition: background .2s, color .2s;
}
.header-social a:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Menu toggle button */
#menu-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 3px;
  cursor: pointer;
  color: rgba(255,255,255,.85);
  font-size: .82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 12px;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s;
  line-height: 1;
}
#menu-toggle i { font-size: 1.1em; }
#menu-toggle:hover,
#menu-toggle[aria-expanded="true"] {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Dropdown navigation menu frame layout values */
#main-nav {
  display: none;
  position: absolute;
  top: calc(var(--header-h) / 2 + 18px);
  right: 0;
  min-width: 220px;
  background: var(--black);
  border-top: 3px solid var(--red);
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 8px 28px rgba(0,0,0,.65);
  z-index: 199;
}
#main-nav.is-open { display: block; }

#main-nav ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
#main-nav li { display: block; margin: 0; padding: 0; }

#main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  color: rgba(255,255,255,.78);
  font-size: .88em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: none;
  border-bottom: 1px solid #1c1c1c;
  transition: color .15s, background .15s, padding-left .15s;
}
#main-nav li:last-child a     { border-bottom: none; }
#main-nav a:hover             { color: #fff; background: #111; padding-left: 28px; }
#main-nav li.current > a      { color: #fff; background: #111; }

#main-nav li.current > a::before {
  content: '';
  display: block;
  width: 3px;
  height: 1em;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   HERO SECTION  #home
───────────────────────────────────────────── */
#home {
  position: relative;
  background-color: var(--black);
  padding: 60px 0;
}

#home .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  width: 100%;
}
.hero-left .hero-artwork {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-right .hero-label {
  color: rgba(255,255,255,.6);
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-family: 'Verdana', Geneva, sans-serif;
}

.hero-right .release-title {
  color: #fff;
  font-size: 3em;
  font-weight: 400;
  font-family: 'Fugaz One', 'Lato', sans-serif;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-right iframe {
  border-radius: 8px;
  border: none;
}

/* ─────────────────────────────────────────────
   EMAIL SIGNUP BAR (Edge-to-Edge, Inline Black Spacer)
───────────────────────────────────────────── */
#email-separator-section {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  border-bottom: 2px solid var(--red);
  padding: 24px 0;
  width: 100%;
}

.email-signup-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.email-signup-box h3 {
  color: var(--white);
  font-size: 1.05em;
  font-family: 'Verdana', Geneva, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-bottom: 0;
}

.email-signup-box .spin-email-form,
.email-signup-box .form-row-shortcode,
.email-signup-box form {
  flex: 1;
  max-width: 650px;
}

.email-signup-box .form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.email-signup-box input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  font-size: .95em;
  background: #111;
  color: var(--white);
}

.email-signup-box input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  cursor: pointer;
  font-size: .95em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color .2s;
  white-space: nowrap;
}

.email-signup-box input[type="submit"]:hover {
  background-color: #aa3425;
}

.email-signup-box .success-msg {
  color: var(--white);
  font-size: .9em;
}

/* ─────────────────────────────────────────────
   NEWS SECTION  #news
───────────────────────────────────────────── */
#news {
  background-color: var(--red);
  padding: 60px 0;
}

#news .section-heading {
  color: #fff;
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-item {
  background: rgba(0,0,0,.4);
  padding: 16px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.news-item .news-thumb img {
  width: 160px;
  height: 95px;
  object-fit: cover;
}

.news-item h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}
.news-item h3 a { color: #fff; }
.news-item h3 a:hover { text-decoration: underline; }

.news-item p {
  color: rgba(255,255,255,.85);
  font-size: .9em;
  margin-bottom: .5em;
}

/* ─────────────────────────────────────────────
   MUSIC / ALBUMS SECTION  #music
───────────────────────────────────────────── */
#music {
  background: var(--white);
  padding: 60px 0;
}

#music .section-heading {
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--black);
}
#music .section-heading a { color: var(--black); }

.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.album-item { text-align: center; }

.album-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 10px;
}

.album-placeholder {
  width: 150px;
  height: 150px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 2em;
  color: #aaa;
}

.album-item h3 {
  font-size: .92em;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.album-item .album-meta {
  font-size: .8em;
  color: var(--gray-text);
}

/* ─────────────────────────────────────────────
   VIDEOS SECTION  #videos
───────────────────────────────────────────── */
#videos {
  background: #111;
  padding: 60px 0;
}

#videos .section-heading {
  color: #fff;
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  margin-bottom: 40px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-item a {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.video-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s;
}
.video-item a:hover img { transform: scale(1.04); }

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 2.4em;
  opacity: 0;
  transition: opacity .3s;
}
.video-item a:hover .play-icon { opacity: 1; }

.video-item h3 {
  color: #fff;
  font-size: .92em;
  font-weight: 400;
  text-align: center;
  margin-top: 10px;
}

/* ─────────────────────────────────────────────
   PHOTOS SECTION  #photos
───────────────────────────────────────────── */
#photos {
  background: var(--gray-bg);
  padding: 60px 0;
}

#photos .section-heading {
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity .25s;
}

.gallery-item h3 {
  font-size: .88em;
  text-align: center;
  margin-top: 8px;
  color: var(--black);
  font-weight: 400;
}

/* ─────────────────────────────────────────────
   STORE SECTION  #store
───────────────────────────────────────────── */
#store {
  background: var(--black);
  padding: 60px 0;
  text-align: center;
}

#store .section-heading {
  color: #fff;
  font-size: 3em;
  font-weight: 300;
  margin-bottom: 10px;
}

#store .store-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.1em;
  margin-bottom: 6px;
}

#store .store-link {
  color: #fff;
  font-size: 1.05em;
  margin-bottom: 36px;
}

.store-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.store-images img {
  max-height: 300px;
  width: auto;
}

/* ─────────────────────────────────────────────
   BIO SECTION  #bio
───────────────────────────────────────────── */
#bio {
  background: var(--white);
  padding: 60px 0;
}

#bio .section-heading {
  text-align: center;
  font-size: 3em;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 30px;
}

.bio-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05em;
  line-height: 1.85;
  color: var(--gray-text);
}

/* ─────────────────────────────────────────────
   CONTACT / FOOTER  #contact
───────────────────────────────────────────── */
#contact {
  background: var(--black);
  padding: 50px 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1a1a1a;
  color: rgba(255,255,255,.8);
  font-size: 18px;
}

.footer-copy {
  color: rgba(255,255,255,.4);
  font-size: .85em;
  line-height: 2;
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .albums-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 768px (tablet / mobile)
───────────────────────────────────────────── */
@media (max-width: 768px) {
  #menu-toggle    { display: block; }
  .header-social  { display: none; }

  #main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--black);
    padding: 10px 0 20px;
    border-top: 1px solid #222;
    z-index: 199;
  }
  #main-nav.is-open { display: block; }
  #main-nav ul  { flex-direction: column; }
  #main-nav a   { padding: 14px 24px; border: none; }

  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 30px; 
    text-align: center;
  }
  .hero-left .hero-artwork { max-width: 320px; }
  .hero-right .release-title { font-size: 2.2em; }

  .email-signup-box {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .email-signup-box h3 { text-align: center; }
  .email-signup-box .spin-email-form,
  .email-signup-box .form-row-shortcode,
  .email-signup-box form {
    width: 100%;
  }

  .news-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .news-thumb img { width: 100%; height: auto; }
  .albums-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 480px (small mobile)
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .videos-grid { grid-template-columns: 1fr; }
  .albums-grid { grid-template-columns: repeat(2, 1fr); }

  #news .section-heading,
  #music .section-heading,
  #videos .section-heading,
  #photos .section-heading,
  #store .section-heading,
  #bio .section-heading { font-size: 2.2em; }
  
  .email-signup-box .form-row {
    flex-direction: column;
  }
}