/*
Theme Name: Crosshead Band
Theme URI: https://crossheadmusic.com
Author: OpenAI
Description: Custom WordPress theme for the Crosshead Music band site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: crosshead-band
*/

:root {
  --bg: #f7fbff;
  --bg-soft: #edf4fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(245, 249, 255, 0.98);
  --text: #0d2f63;
  --muted: #34588e;
  --accent: #114eb0;
  --accent-2: #2a74e4;
  --line: rgba(17, 78, 176, 0.14);
  --max: 1180px;
  --shadow: 0 24px 80px rgba(17, 78, 176, 0.08);
  --headline: "Trebuchet MS", "Helvetica Neue", sans-serif;
  --body: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(42, 116, 228, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(17, 78, 176, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 54%, #eef5ff 100%);
  font-family: var(--body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.site-shell::before {
  top: -12vw;
  right: -8vw;
  background: rgba(42, 116, 228, 0.12);
}

.site-shell::after {
  bottom: -18vw;
  left: -12vw;
  background: rgba(17, 78, 176, 0.09);
}

.site-header,
.site-footer,
.content-area,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner,
.hero-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark img {
  width: 220px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(17, 78, 176, 0.14);
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy h1,
.section-heading h2,
.cards h3,
.merch-card h3,
.archive-title,
.entry-title {
  font-family: var(--headline);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--text);
}

.nav-banner {
  width: 100%;
  aspect-ratio: 2048 / 718;
  min-height: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-banner-inner {
  width: min(calc(100% - 2rem), var(--max));
  text-align: center;
  padding: 3.5rem 1rem;
}

.nav-banner-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-banner-title {
  margin: 0;
  color: #fff;
  font-family: var(--headline);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(24, 10, 64, 0.45);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-media,
.section-panel,
.archive-grid article,
.post-card,
.merch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy,
.section-panel,
.post-card,
.merch-card,
.archive-grid article {
  background-image: linear-gradient(180deg, rgba(42, 116, 228, 0.05), rgba(255, 255, 255, 0));
}

.hero-copy {
  padding: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.hero-copy h1 {
  margin: 1rem 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
}

.hero-copy .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2a74e4 0%, var(--accent) 52%, #0d2f63 100%);
  color: #ffffff;
  font-family: var(--headline);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button.is-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(17, 78, 176, 0.18);
  color: var(--text);
}

.hero-media {
  overflow: hidden;
  min-height: 540px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 1rem 0 3rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading p {
  max-width: 36rem;
  color: var(--muted);
  margin: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cards,
.gallery-grid,
.merch-grid,
.archive-grid {
  display: grid;
  gap: 1.2rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.post-card,
.merch-card {
  padding: 1.4rem;
}

.card p,
.post-card p,
.merch-card p,
.entry-content p,
.entry-content li {
  color: var(--muted);
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid figure,
.merch-card .merch-image {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(237, 244, 251, 0.95);
}

.gallery-grid img,
.merch-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.audio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.2rem;
}

.audio-card {
  padding: 1.5rem;
}

.audio-card audio {
  width: 100%;
  margin-top: 1rem;
}

audio::-webkit-media-controls-download-button,
audio::-webkit-media-controls-overflow-button {
  display: none;
}

.section-panel {
  padding: 1.6rem;
}

.merch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.merch-card {
  display: flex;
  flex-direction: column;
}

.merch-card .button {
  margin-top: auto;
}

.product-card-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.product-card-cart-form {
  margin: 0;
}

.product-card-cart-form .button {
  width: 100%;
}

.product-card-actions .button {
  width: 100%;
}

.product-card-actions .view-cart-link {
  justify-content: center;
}

.merch-page-grid .merch-card h3 {
  min-height: 2.8em;
}

.merch-page-grid .merch-card p {
  min-height: 4.8em;
}

.price {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--accent-2);
  font-family: var(--headline);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.content-area {
  padding: 3rem 0 4rem;
}

.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-grid article,
.post-card {
  overflow: hidden;
}

.archive-grid img,
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.entry-content,
.post-card .copy {
  padding: 1.4rem;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.social-list {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  clear: both;
  width: 100%;
  align-items: stretch;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce-page div.product,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout,
.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty,
.woocommerce input,
.woocommerce textarea {
  color: var(--text);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto;
  float: none;
  clear: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce-page ul.products li.product.first,
.woocommerce-page ul.products li.product.last {
  clear: none;
}

.woocommerce ul.products li.product a:first-child,
.woocommerce-page ul.products li.product a:first-child {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(237, 244, 251, 0.95);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.2em;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  min-height: 1.8em;
  margin-top: 0.6rem;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  margin-top: auto;
}

.page-id-39 .section-inner,
.page-id-39 .section-panel,
.page-id-39 .woocommerce,
.page-id-39 .woocommerce-page,
.page-id-39 .woocommerce ul.products,
.page-id-39 .woocommerce-page ul.products {
  max-width: none;
}

.woocommerce span.onsale {
  background: var(--accent-2);
  color: #ffffff;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: linear-gradient(135deg, #2a74e4 0%, var(--accent) 52%, #0d2f63 100%);
  color: #ffffff;
}

.contact-form-wrap {
  margin-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  font-family: var(--headline);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.28);
}

.contact-form textarea {
  resize: vertical;
}

.field-error {
  min-height: 1.15rem;
  margin: -0.35rem 0 0.15rem;
  color: #ff8f8f;
  font-size: 0.88rem;
}

.contact-form-turnstile {
  margin-top: 0.25rem;
}

.form-notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.form-notice.success {
  background: rgba(23, 90, 56, 0.28);
}

.form-notice.error {
  background: rgba(110, 24, 24, 0.3);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.video-placeholder,
.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 22px;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #000;
  color: #fff;
  cursor: pointer;
  padding: 2rem;
}

.video-placeholder-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.video-placeholder-title,
.video-placeholder-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--headline);
  text-align: center;
}

.video-placeholder-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
}

.video-placeholder-subtitle {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 300;
}

.video-placeholder-rule {
  width: min(85%, 760px);
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
}

.video-placeholder-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--headline);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1080px) {
  .hero-panel,
  .audio-panel,
  .cards,
  .gallery-grid,
  .merch-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2rem;
  }

  .nav-banner {
    aspect-ratio: 16 / 7;
  }

  .nav-banner-inner {
    padding: 2.4rem 1rem;
  }

  .hero-panel,
  .audio-panel,
  .cards,
  .gallery-grid,
  .merch-grid,
  .archive-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .card,
  .post-card,
  .merch-card,
  .section-panel,
  .audio-card {
    padding: 1.2rem;
  }

  .hero-media {
    min-height: 320px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
  }

  .primary-nav {
    width: 100%;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.8rem;
  }
}
