/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f1f1f1;
  --color-text: #404040;
  --color-text-light: #737373;
  --color-heading: #545454;
  --color-accent: #a86500;
  --color-accent-dark: #8b5300;
  --color-accent-light: #c4a97d;
  --color-border: #dddddd;
  --color-white: #ffffff;
  --color-site-title: #122223;
  --color-nav-text: #383737;
  --color-footer-bg: #101010;
  --color-footer-text: #383737;
  --font-heading: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  --font-body: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.625;
  font-size: 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 2rem; margin-bottom: 1rem; margin-top: 3em; }
h2 { font-size: 1.5em; margin-bottom: 0.8rem; margin-top: 1em; font-weight: bold; }
h3 { font-size: 1.4em; margin-bottom: 0.6rem; margin-top: 2em; font-weight: bold; }
h4 { font-size: 1.2em; margin-top: 1em; }

h5 {
  font-family: var(--font-heading);
  color: var(--color-text-light);
  font-style: italic;
  font-size: 75%;
  font-weight: 400;
}

em {
  color: var(--color-text-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
}

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

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 0;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-nav-text);
  padding: 26px 15px;
  border-bottom: none;
  transition: color 0.4s ease-in-out;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-heading);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Homepage Post Thumbnail === */
.post-thumbnail {
  margin-bottom: 1.5rem;
}

.post-thumbnail .featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.homepage-content {
  padding-top: 30px;
  padding-bottom: 40px;
}

.homepage-content .container > p:first-of-type {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* === Page Content === */
.page-content {
  padding: 30px 0 40px;
}

.page-content h1 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  margin-top: 0;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin-top: 2rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.page-content th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  background-color: var(--color-bg-alt);
}

.page-content blockquote {
  border-left: 3px solid var(--color-accent-light);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background-color: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-text-light);
}

/* === Listen Page: Streaming Badges Inline === */
.page-content p > a > img[alt*="Music"],
.page-content p > a > img[alt*="Spotify"],
.page-content p > a > img[alt*="YouTube"] {
  max-height: 44px;
  width: auto;
  vertical-align: middle;
}

/* Badge paragraphs: block (stacked/centered) by default matching live WP layout */
.page-content p:has(> a > img[alt*="Music"]),
.page-content p:has(> a > img[alt*="Spotify"]),
.page-content p:has(> a > img[alt*="YouTube"]) {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

/* === Listen Page: Album Cover Grid === */
.page-content p:has(> a > img[alt*="Album Cover"]),
.page-content p:has(> a > img[alt*="CD:"]) {
  display: inline-block;
  width: 300px;
  margin-right: 16px;
  margin-bottom: 16px;
  vertical-align: top;
}

.page-content p > a > img[alt*="Album Cover"],
.page-content p > a > img[alt*="CD:"] {
  width: 300px;
  height: auto;
  border-radius: 4px;
}

/* === About Page: Float Image Right === */
.page-content p:first-of-type:has(> img) {
  float: right;
  max-width: 45%;
  margin: 0 0 1rem 2rem;
}

/* === Album Cards === */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.album-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.album-card h3 {
  margin-bottom: 0.5rem;
}

.album-card h3 a {
  color: var(--color-heading);
}

.album-card h3 a:hover {
  color: var(--color-accent);
}

.album-card .album-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* === Testimonials === */
.testimonials {
  margin: 2.5rem 0;
}

.testimonial {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent-light);
  padding: 20px 24px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial .attribution {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 400;
}

/* === Members Table === */
.members-table {
  margin: 2rem 0;
}

/* === Contact Form === */
.contact-form-wrapper {
  max-width: 600px;
  margin: 2.5rem 0;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
}

/* === Contact Info === */
.contact-info {
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

.contact-info a {
  font-weight: 400;
}

/* === Video Embed (single pages) === */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === Track List === */
.track-list {
  list-style: decimal;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.track-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.track-list li:last-child {
  border-bottom: none;
}

/* === List Items === */
.list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

/* === Footer Widget Area (Social Icons) === */
.footer-widget-area {
  background-color: var(--color-footer-bg);
  padding: 50px 0;
}

.social-icons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icons-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.social-icons-list li a:hover {
  opacity: 0.8;
  color: #ffffff;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
}

.social-icon--facebook {
  background-color: #3b5998;
}

.social-icon--youtube {
  background-color: #e02a20;
}

.social-icon--spotify {
  background-color: #7bb342;
}

.social-icon--apple-music {
  background-color: #B9BFC1;
}

/* Social icon font icons via CSS pseudo-elements */
.social-icon::before {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
}

.social-icon--facebook::before {
  content: "f";
}

.social-icon--youtube::before {
  content: "\25B6";
}

.social-icon--spotify::before {
  content: "\266B";
}

.social-icon--apple-music::before {
  content: "\266A";
}

.social-icon-label {
  font-family: var(--font-body);
  font-weight: 300;
}

/* === Footer === */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 15px 0;
  text-align: left;
}

.site-footer .container {
  line-height: 1;
}

.copyright {
  font-size: 0.5em;
  color: var(--color-footer-text);
  margin-bottom: 4px;
}

.site-info {
  font-size: 0.85rem;
  color: var(--color-footer-text);
}

.site-info a {
  color: var(--color-accent);
}

.site-info a:hover {
  color: var(--color-accent-dark);
}

/* === Scroll Reveal === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 30px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .site-nav.open {
    display: flex;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  /* Stack album covers on mobile */
  .page-content p:has(> a > img[alt*="Album Cover"]),
  .page-content p:has(> a > img[alt*="CD:"]) {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .page-content p > a > img[alt*="Album Cover"],
  .page-content p > a > img[alt*="CD:"] {
    width: 100%;
    max-width: 300px;
  }

  /* Unfloat about/weddings images on mobile */
  .page-content p:first-of-type:has(> img) {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}

/* At desktop widths, badges go inline side-by-side */
@media (min-width: 769px) {
  .page-content p:has(> a > img[alt*="Music"]),
  .page-content p:has(> a > img[alt*="Spotify"]),
  .page-content p:has(> a > img[alt*="YouTube"]) {
    display: inline-block;
    margin-right: 40px;
    text-align: left;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .page-content p:has(> a > img[alt*="Album Cover"]),
  .page-content p:has(> a > img[alt*="CD:"]) {
    width: 300px;
  }
}
