/*
 * JAY GUITAR - JAY WILCOX GUITAR
 * Global Theme Styles - EPK Aesthetic
 */

:root {
  --black:        #070b07;
  --deep:         #0c120c;
  --surface:      #111811;
  --surface-alt:  #161e16;
  --border:       #1c2c1c;
  --border-light: #243424;
  --green:        #3d7a50;
  --green-light:  #5a9e6e;
  --green-pale:   #9ecfae;
  --green-dim:    #2a5238;
  --white:        #e6efe6;
  --muted:        #6a8a72;
  --muted-light:  #8aaa92;
  --accent:       #b8a84a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: #b8ccb8;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #c8d8c8; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-pale); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: #b8ccb8;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(24px, 3vw, 38px); }
h2 { font-size: clamp(20px, 2.5vw, 28px); }
h3 { font-size: clamp(17px, 2vw, 22px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }

p { margin-bottom: 1.25rem; color: #b8ccb8; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 500; }

blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1em;
  color: var(--green-pale);
}

hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.layout-container { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3.5rem; width: 100%; }

/* STARFIELD */
.layout-container::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 4% 6%, rgba(90,158,110,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(62,122,80,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 4%, rgba(158,207,174,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 33% 15%, rgba(90,158,110,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 28%, rgba(62,122,80,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 54% 9%, rgba(158,207,174,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 63% 22%, rgba(90,158,110,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 73% 5%, rgba(62,122,80,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 82% 17%, rgba(158,207,174,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 8%, rgba(90,158,110,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 7% 40%, rgba(62,122,80,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 17% 52%, rgba(90,158,110,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 27% 38%, rgba(158,207,174,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 37% 58%, rgba(62,122,80,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 57% 32%, rgba(158,207,174,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 48%, rgba(62,122,80,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 77% 36%, rgba(90,158,110,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 87% 54%, rgba(158,207,174,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 72%, rgba(90,158,110,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(62,122,80,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 68%, rgba(90,158,110,0.6) 0%, transparent 100%);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,7,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo { flex-shrink: 0; }
.logo-link { display: flex; align-items: center; }

.site-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #b8ccb8;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1;
}

.site-name:hover { color: var(--green-pale); }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.header-social { display: flex; align-items: center; gap: 14px; }
.header-social a { color: var(--muted); display: flex; align-items: center; transition: color var(--transition); }
.header-social a:hover { color: #c8d8c8; }

/* LISTEN launcher — same row as the social icons, slightly emphasized
   with the accent color so it reads as a primary action rather than
   another social link. No background tile, no border — the icon itself
   is the affordance. */
.header-listen { color: var(--accent, #e8c760) !important; }
.header-listen:hover { color: var(--accent, #e8c760) !important; opacity: 0.8; }

.nav-wrapper { display: flex; align-items: center; }
.nav-wrapper ul, .nav-wrapper .menu { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; }
.nav-wrapper li { position: relative; }

.nav-wrapper a, .nav-wrapper .menu a {
  display: block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-light);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-wrapper a:hover, .nav-wrapper a.is-active, .nav-wrapper ul.menu a.is-active { color: var(--green-pale) !important; background: transparent !important; }

.nav-wrapper li:hover > ul { display: flex; flex-direction: column; }
.nav-wrapper ul ul, .nav-wrapper .menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--deep);
  border: 1px solid var(--border);
  min-width: 180px;
  z-index: 200;
}
.nav-wrapper ul ul a { padding: 10px 16px; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
}

.mobile-menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--muted-light); transition: all 0.3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HERO */
.hero-section {
  position: relative;
  background: var(--black);
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,122,80,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 1200px; margin: 0 auto; }

/* MAIN CONTENT */
.main-content { flex: 1; position: relative; z-index: 1; padding: 3rem 0 2rem; margin: 0 20px; }
.content-wrapper { width: 100%; }

/* BREADCRUMB */
.breadcrumb-wrapper { margin-bottom: 1.5rem; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--border-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #c8d8c8; }

/* NODES */
.node {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.node__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  color: #b8ccb8;
  margin-bottom: 0.5rem;
}

.node__title a { color: #b8ccb8; transition: color var(--transition); }
.node__title a:hover { color: var(--green-pale); }
.node__submitted { font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-bottom: 1.5rem; text-transform: uppercase; }
.node__content { margin-top: 1.5rem; }

/* FIELDS */
.field { margin-bottom: 1.5rem; }
.field__label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field__items { color: #b8ccb8; }

/* VIEWS */
.view-content { display: grid; gap: 1px; background: var(--border); }
.views-row { background: var(--deep); padding: 1.5rem 2rem; transition: background var(--transition); }
.views-row:hover { background: var(--surface-alt); }

/* BUTTONS */
.button, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  background: var(--green);
  color: #b8ccb8;
  border: none;
  padding: 12px 28px;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  border-radius: 0;
}

.button:hover, button:hover, input[type="submit"]:hover { background: var(--green-light); color: #b8ccb8; }

/* FORMS */
.form-item { margin-bottom: 1.5rem; }

label, .form-item__label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: #b8ccb8;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  border-radius: 0;
  outline: none;
}

input:focus, textarea:focus, select:focus { border-color: var(--green); }
textarea { min-height: 140px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 0.6; }

/* PAGER */
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 3rem; padding: 0; list-style: none; }
.pager__item a, .pager__item.is-active span {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted-light);
  transition: all var(--transition);
}
.pager__item a:hover { border-color: var(--green); color: var(--green-pale); }
.pager__item.is-active span { border-color: var(--green); color: var(--green-pale); }

/* TABS */
.tabs { display: flex; gap: 0; list-style: none; border-bottom: 1px solid var(--border); margin-bottom: 2rem; padding: 0; }
.tabs a { display: block; padding: 10px 18px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.tabs a:hover { color: #c8d8c8; }
.tabs .is-active a { color: var(--green-pale); border-bottom-color: var(--green); }

/* MESSAGES */
.messages { padding: 1rem 1.5rem; margin-bottom: 1.5rem; border-left: 3px solid; font-size: 14px; }
.messages--status { background: rgba(61,122,80,0.1); border-color: var(--green); color: var(--green-pale); }
.messages--warning { background: rgba(184,168,74,0.1); border-color: var(--accent); color: var(--accent); }
.messages--error { background: rgba(180,60,60,0.1); border-color: #b43c3c; color: #e09090; }

/* MAILING LIST BANNER */
.mailing-list-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 3.5rem;
  position: relative;
  z-index: 1;
  margin: 0 20px;
}

.mailing-list-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.mailing-list-text { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-light); }

.mailing-list-btn {
  background: transparent;
  color: #c8d8c8;
  border: 1px solid var(--border-light);
  padding: 9px 22px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.mailing-list-btn:hover { border-color: var(--green); color: var(--green-pale); }

/* FOOTER */
.site-footer { background: var(--deep); border-top: 1px solid var(--border); padding: 3rem 3.5rem 2rem; position: relative; z-index: 1; margin: 0 20px; margin-bottom: 20px; }

.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }

.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--muted); margin-bottom: 0; }

.social-links { display: flex; gap: 20px; align-items: center; }
.social-link { color: var(--muted); transition: color var(--transition); display: flex; align-items: center; }
.social-link:hover { color: var(--green-pale); }

.footer-bottom { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }

.copyright { font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-bottom: 0; }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.footer-nav a:hover { color: #c8d8c8; }

/* UPCOMING SHOWS */
.node--type-upcoming-shows { background: var(--deep); border: 1px solid var(--border); padding: 1.5rem 2rem; margin-bottom: 1px; transition: background var(--transition); }
.node--type-upcoming-shows:hover { background: var(--surface-alt); }

/* CARD */
.card { background: var(--deep); border: 1px solid var(--border); padding: 1.5rem; transition: background var(--transition), border-color var(--transition); }
.card:hover { background: var(--surface-alt); border-color: var(--border-light); }

/* UTILITY */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-muted { color: var(--muted); }
.text-green { color: #c8d8c8; }
.text-center { text-align: center; }

/* RESPONSIVE */
/* Mobile/tablet nav: switch to hamburger at 1024px so tablet portrait
   (768-1023px) gets the stacked menu rather than a horizontal nav that
   doesn't fit. Tablets on stage are the primary use case for the chart
   tools, so this width range is the one that matters most. */
@media (max-width: 1024px) {
  .header-container { padding: 0 1.25rem; }
  .mobile-menu-toggle { display: flex; }

  .header-right {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(7,11,7,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    z-index: 99;
  }

  .header-right.is-open { display: flex; }
  .header-social { justify-content: flex-start; }
  .nav-wrapper { width: 100%; }
  .nav-wrapper ul, .nav-wrapper .menu { flex-direction: column; gap: 0; width: 100%; }
  .nav-wrapper a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
  .nav-wrapper ul ul { position: static; display: block; background: none; border: none; padding-left: 1rem; }

  .main-content { padding: 2rem 0 3rem; margin: 0; }
  .container { padding: 0 1.25rem; }
  .mailing-list-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .mailing-list-banner { margin: 0; padding: 1.5rem 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .site-footer { padding: 2rem 1.25rem 1.5rem; margin: 0; }
  .site-header { margin: 0; }
  .node { padding: 1.5rem; }
}
/* ── Celtic Border ─────────────────────────────────────────── */
.celtic-border {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
}

/* Corners — quarter size (74→18, 77→19) */
.cb-corner {
  position: absolute;
  width: 18px;
  height: 19px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('/themes/custom/dragonfly/images/border/corner.png');
}
.cb-tl { top: 0; left: 0; }
.cb-tr { top: 0; right: 0;  transform: scaleX(-1); }
.cb-bl { bottom: 0; left: 0;  transform: scaleY(-1); }
.cb-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* Horizontal edges — quarter height (81→20) */
.cb-top,
.cb-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 20px;
  background-image: url('/themes/custom/dragonfly/images/border/strip-h.png');
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 100%;
}
.cb-top    { top: 0; }
.cb-bottom { bottom: 0; transform: scaleY(-1); }

/* Vertical edges — quarter width (80→20) */
.cb-left,
.cb-right {
  position: absolute;
  top: 19px;
  bottom: 19px;
  width: 20px;
  background-image: url('/themes/custom/dragonfly/images/border/strip-v.png');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
}
.cb-left  { left: 0; }
.cb-right { right: 0; transform: scaleX(-1); }

/* Junction ornaments — centred on (18px, 19px) from each corner */
.cb-junction {
  position: absolute;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='13' fill='%230a120a' stroke='%23aec9ae' stroke-width='1.4'/%3E%3Ccircle cx='9.5' cy='14' r='6.5' fill='none' stroke='%23aec9ae' stroke-width='1.2'/%3E%3Ccircle cx='18.5' cy='14' r='6.5' fill='none' stroke='%23aec9ae' stroke-width='1.2'/%3E%3Ccircle cx='14' cy='14' r='2.2' fill='%23aec9ae'/%3E%3C/svg%3E");
}
.cb-j-tl { top:  12px; left:  11px; }
.cb-j-tr { top:  12px; right: 11px; }
.cb-j-bl { bottom: 12px; left:  11px; }
.cb-j-br { bottom: 12px; right: 11px; }

/* Hide on mobile — too crowded */
@media (max-width: 768px) {
  .celtic-border { display: none; }
}
/* ─────────────────────────────────────────────────────────── */

/* Force active menu item visibility */
.nav-wrapper a.is-active,
.nav-wrapper ul.menu a.is-active,
header a.is-active,
ul.menu a.is-active {
  color: var(--green-pale) !important;
  background: transparent !important;
}

/* ── SITE NAME INITIALS ─────────────────────────────────────── */
.site-name__initial {
  font-size: 1.5em;
  color: #c8d8c8;
  font-style: normal;
}

/* ── SITE LOGO IMAGE ────────────────────────────────────────── */
.site-logo__img {
  height: 50px;
  width: auto;
  display: block;
}

/* ── ARCHIVE SHOW CARDS ─────────────────────────────────────── */
.show-card {
  background: var(--deep);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  overflow: hidden;
}
.show-card:hover {
  background: var(--surface-alt);
  border-color: var(--border-light);
}
.show-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.show-card__image {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.show-card__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.show-card__image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--border-light);
}
.show-card__body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.show-card__meta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.show-card__sep { color: var(--border-light); }
.show-card__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 20px);
  color: #b8ccb8;
  margin-bottom: 0;
}
.show-card:hover .show-card__title { color: var(--green-pale); }
.show-card__cta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 0.5rem;
}
.show-card:hover .show-card__cta { color: var(--green-light); }

/* Archive grid */
.view-upcoming-shows .view-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

@media (max-width: 768px) {
  .show-card__link { flex-direction: column; }
  .show-card__image { width: 100%; min-width: unset; height: auto; max-height: none; }
  .show-card__image img { width: 100%; height: auto; object-fit: contain; }
  .show-card__body { padding: 1.25rem; }
}


/* ── SHOW CARD IMAGE HEIGHT FIX ─────────────────────────────── */
.show-card__image {
  width: 100% !important;
  height: 300px !important;
  overflow: hidden !important;
}
.show-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

/* ── SHOW CARD CLEAN RESET ───────────────────────────────────── */
.show-card { overflow: hidden; }
.show-card__link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.show-card__image { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--surface); }
.show-card__image img,
.show-card__image .field__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.show-card__body { padding: 0.75rem 1rem; }

.show-card__date { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
