/*
Theme Name: Texas Sounds
Theme URI: https://texassounds.org
Author: East Texas Performing Arts
Description: Ticket-sales theme for the Texas Sounds International Country Music Awards Festival — October 1–4, 2026 in Marshall, Texas.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: texassounds
License: GNU General Public License v2 or later
*/

:root {
  --bg: #100e0c;
  --fg: #f3ebe0;
  --card: #1c1814;
  --muted: #241f1a;
  --dust: #a89a88;
  --primary: #b8452f;
  --primary-fg: #faf6f0;
  --secondary: #2a241e;
  --border: rgba(243, 235, 224, 0.14);
  --shadow: 0 0 0 1px rgba(243, 235, 224, 0.1);
  --shadow-hover: 0 0 0 1px rgba(243, 235, 224, 0.18);
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--fg); }
body.ts-body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  min-height: 100dvh;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; outline: 1px solid rgba(243,235,224,.1); outline-offset: -1px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.1; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
::selection { background: rgba(184, 69, 47, 0.4); color: var(--fg); }

.ts-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ts-wrap { padding: 0 1.5rem; } }

.ts-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(16,14,12,.95);
}
.ts-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4.5rem;
}
.ts-logo { display: flex; flex-direction: column; line-height: 1; }
.ts-logo a { color: inherit; }
.ts-logo strong, .ts-logo .js-site-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.ts-logo span { display: none; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--dust); margin-top: .25rem; }
.ts-logo .custom-logo-link { display: flex; align-items: center; }
.ts-logo .custom-logo { height: 40px; width: auto; max-width: 220px; outline: none; }
@media (min-width: 640px) { .ts-logo span { display: block; } }
.ts-nav { display: none; align-items: center; gap: 1.75rem; }
.ts-nav a { font-size: .875rem; letter-spacing: .02em; color: var(--dust); }
.ts-nav a:hover, .ts-nav a.is-active { color: var(--fg); }
@media (min-width: 768px) { .ts-nav { display: flex; } }
.ts-header-actions { display: flex; align-items: center; gap: .25rem; }
.ts-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; color: var(--fg);
}
.ts-cart-count {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--primary); color: var(--primary-fg);
  font-size: 10px; font-weight: 600; display: none; align-items: center; justify-content: center;
}
.ts-cart-count.is-on { display: flex; }
.ts-menu-toggle { display: flex; }
@media (min-width: 768px) { .ts-menu-toggle { display: none; } }
.ts-mobile-nav { display: none; border-top: 1px solid var(--border); padding: .75rem 1rem 1rem; }
.ts-mobile-nav.is-open { display: block; }
.ts-mobile-nav a { display: block; padding: .75rem 0; font-size: 1rem; }
.ts-desktop-cta { display: none; }
@media (min-width: 640px) { .ts-desktop-cta { display: inline-flex; } }

.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 1.25rem; border-radius: 8px; border: 0;
  font-size: .875rem; font-weight: 500; background: var(--primary); color: var(--primary-fg);
  transition: transform .15s ease, background .15s ease;
}
.ts-btn:hover { background: #a53e2a; }
.ts-btn:active { transform: scale(.96); }
.ts-btn-lg { height: 48px; padding: 0 1.75rem; font-size: 1rem; }
.ts-btn-sm { height: 36px; padding: 0 .75rem; font-size: .75rem; }
.ts-btn-outline {
  background: transparent; color: var(--fg); border: 1px solid var(--border);
}
.ts-btn-outline:hover { background: var(--secondary); }
.ts-btn-cream { background: var(--fg); color: var(--bg); }
.ts-btn-cream:hover { background: #e8dfd0; }
.ts-btn-block { width: 100%; }

.ts-kicker { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dust); }
.ts-muted { color: var(--dust); }
.ts-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.ts-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .2rem .65rem; font-size: .75rem; font-weight: 500;
}
.ts-badge-cream { background: var(--fg); color: var(--bg); }
.ts-badge-outline { border: 1px solid var(--border); }
.ts-badge-primary { background: var(--primary); color: var(--primary-fg); }

.ts-hero {
  position: relative;
  min-height: var(--hero-h, 88dvh);
  overflow: hidden;
  background: var(--bg);
}
.ts-hero-media {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
.ts-hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 0;
  transition: opacity 1s ease;
}
.ts-hero-slide.is-on { opacity: 1; }
.ts-hero img.ts-hero-img,
.ts-hero video.ts-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: var(--hero-fit, cover);
  object-position: var(--hero-pos, center);
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-pos, center);
}
.ts-hero img.ts-hero-img { filter: brightness(1.1) contrast(1.1); }
.ts-hero-yt {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.ts-hero-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(var(--hero-zoom, 1));
  border: 0;
}
.ts-hero-fit-contain .ts-hero-yt iframe {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
}
.ts-hero-fit-stretch {
  --hero-fit: fill;
}
.ts-hero-fit-stretch .ts-hero-yt iframe {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  top: 0; left: 0; transform: scale(var(--hero-zoom, 1));
}
@media (max-width: 640px) {
  .ts-hero-mobile-image .ts-hero-slide[data-kind="video"],
  .ts-hero-mobile-image .ts-hero-slide[data-kind="youtube"],
  .ts-hero-mobile-image .ts-hero-slide[data-kind="vimeo"] {
    display: none;
  }
  .ts-hero-mobile-image .ts-hero-slide[data-kind="image"] {
    opacity: 1;
  }
}
.ts-hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, var(--bg), rgba(16,14,12,.45), transparent);
}
.ts-hero-scrim-side {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, rgba(16,14,12,.55), transparent);
}
.ts-hero-inner {
  position: relative; z-index: 3;
  min-height: var(--hero-h, 88dvh); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 7rem 1rem 4rem;
}
@media (min-width: 640px) { .ts-hero-inner { padding: 7rem 1.5rem 5rem; } }
.ts-hero h1 { max-width: 48rem; font-size: clamp(2.75rem, 8vw, 4.5rem); line-height: .95; margin-top: 1rem; }
.ts-hero .lead { max-width: 36rem; margin-top: 1.25rem; font-size: 1.05rem; color: rgba(243,235,224,.85); }
.ts-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.ts-count { display: flex; gap: 1rem; margin-top: 2rem; }
.ts-count > div { min-width: 3.5rem; text-align: center; }
.ts-count strong { display: block; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.ts-count span { display: block; margin-top: .25rem; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }

.ts-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ts-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
@media (min-width: 640px) { .ts-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.ts-stat { display: flex; align-items: center; gap: .75rem; background: var(--bg); padding: 1.25rem 1.5rem; font-size: .875rem; }
.ts-stat svg { width: 16px; height: 16px; color: var(--dust); flex-shrink: 0; }

.ts-section { padding: 5rem 0; }
.ts-section-head { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; }
@media (min-width: 640px) {
  .ts-section-head { flex-direction: row; align-items: flex-end; }
}
.ts-section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .5rem; }
.ts-section-head p { max-width: 32rem; margin-top: .75rem; color: var(--dust); }

.ts-grid-2 { display: grid; gap: 1.25rem; }
.ts-grid-3 { display: grid; gap: 1.25rem; }
.ts-grid-4 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ts-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .ts-grid-2 { grid-template-columns: 1fr 1fr; }
  .ts-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) { .ts-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ts-ticket { display: flex; flex-direction: column; padding: 1.5rem; }
.ts-ticket.is-featured { box-shadow: 0 0 0 1px rgba(243,235,224,.3); }
.ts-ticket-top { display: flex; justify-content: space-between; gap: .75rem; }
.ts-ticket h3 { font-size: 1.5rem; }
.ts-price { text-align: right; }
.ts-price del { display: block; font-size: .875rem; color: var(--dust); }
.ts-price strong { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-perks { list-style: none; padding: 0; margin: 1.25rem 0 0; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.ts-perks li { display: flex; gap: .5rem; font-size: .875rem; color: var(--dust); }
.ts-perks svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--fg); }
.ts-remain { margin-top: 1.25rem; }
.ts-remain-row { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: .5rem; }
.ts-remain-row .crit { color: var(--primary); }
.ts-bar { height: 4px; background: var(--muted); border-radius: 999px; overflow: hidden; }
.ts-bar > span { display: block; height: 100%; background: rgba(243,235,224,.7); border-radius: 999px; }
.ts-bar.is-crit > span { background: var(--primary); }
.ts-ticket-actions { margin-top: 1.25rem; display: flex; align-items: center; gap: .5rem; }

.ts-qty { display: inline-flex; height: 44px; align-items: center; border: 1px solid var(--border); border-radius: 8px; }
.ts-qty button { width: 44px; height: 44px; border: 0; background: none; color: var(--dust); }
.ts-qty button:hover { color: var(--fg); }
.ts-qty span { min-width: 2rem; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }

.ts-artist {
  display: flex; flex-direction: column; overflow: hidden; text-align: left;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  border: 0; color: inherit; padding: 0; width: 100%;
}
.ts-artist:hover { box-shadow: var(--shadow-hover); }
.ts-artist-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--muted); }
.ts-artist-media img { width: 100%; height: 100%; object-fit: cover; }
.ts-play {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(16,14,12,.85); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
}
.ts-artist-body { padding: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.ts-artist-body h3 { font-size: 1.25rem; }
.ts-artist-country { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dust); }

.ts-night-link { display: block; padding: 1.5rem; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.ts-night-link:hover { box-shadow: var(--shadow-hover); }
.ts-night-link h3 { margin-top: 1rem; font-size: 1.5rem; }

.ts-band { position: relative; overflow: hidden; }
.ts-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-band-scrim { position: absolute; inset: 0; background: rgba(16,14,12,.75); }
.ts-band-inner { position: relative; max-width: 48rem; margin: 0 auto; padding: 6rem 1.5rem; text-align: center; }
.ts-band-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ts-band-inner p { margin-top: 1rem; color: var(--dust); }

.ts-faq { border-bottom: 1px solid var(--border); }
.ts-faq button {
  width: 100%; display: flex; justify-content: space-between; gap: 1rem;
  background: none; border: 0; color: var(--fg); text-align: left;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 500;
}
.ts-faq button svg { width: 16px; height: 16px; color: var(--dust); flex-shrink: 0; transition: transform .2s; }
.ts-faq.is-open button svg { transform: rotate(180deg); }
.ts-faq-body { display: none; padding-bottom: 1.25rem; font-size: .875rem; color: var(--dust); line-height: 1.65; }
.ts-faq.is-open .ts-faq-body { display: block; }

.ts-page { padding: 3rem 0 5rem; }
.ts-page h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); margin-top: .5rem; }
.ts-lede { max-width: 40rem; margin-top: 1rem; color: var(--dust); }

.ts-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.ts-chip {
  height: 44px; padding: 0 1rem; border-radius: 999px; border: 0;
  background: var(--secondary); color: var(--fg); font-size: .875rem;
}
.ts-chip.is-on { background: var(--fg); color: var(--bg); }

.ts-schedule { max-width: 48rem; margin: 0 auto; }
.ts-schedule article { padding: 1.5rem; margin-top: 1.5rem; }
.ts-schedule ol { list-style: none; padding: 0; margin: 1rem 0 0; }
.ts-schedule li { padding: .75rem 0; border-top: 1px solid var(--border); }

.ts-venue-hero { position: relative; height: 42vh; min-height: 16rem; overflow: hidden; }
.ts-venue-hero img { width: 100%; height: 100%; object-fit: cover; }
.ts-venue-hero .scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(16,14,12,.2)); }
.ts-venue-hero .copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 2rem; }
.ts-split { display: grid; gap: 3rem; padding: 3.5rem 0; }
@media (min-width: 1024px) { .ts-split { grid-template-columns: 1fr 1fr; } }
.ts-split h2 { font-size: 1.85rem; }
.ts-split p { margin-top: .75rem; color: var(--dust); line-height: 1.7; }
.ts-dl { margin-top: 1rem; }
.ts-dl dt { color: var(--dust); font-size: .875rem; }
.ts-dl dd { margin: .25rem 0 1rem; font-size: .875rem; }

.ts-footer { border-top: 1px solid var(--border); background: var(--card); }
.ts-footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .ts-footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ts-footer ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.ts-footer li { margin: .5rem 0; font-size: .875rem; }
.ts-legal { border-top: 1px solid var(--border); padding: 1rem; text-align: center; font-size: .75rem; color: var(--dust); }

.ts-sheet-root { display: none; position: fixed; inset: 0; z-index: 50; }
.ts-sheet-root.is-open { display: block; }
.ts-sheet-bg { position: absolute; inset: 0; background: rgba(16,14,12,.7); border: 0; width: 100%; }
.ts-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 28rem;
  background: var(--card); color: var(--fg); display: flex; flex-direction: column;
}
.ts-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.ts-sheet-head h2 { font-size: 1.25rem; }
.ts-sheet-body { flex: 1; overflow: auto; padding: 1rem 1.25rem; }
.ts-sheet-foot { border-top: 1px solid var(--border); padding: 1.25rem; }
.ts-line { background: var(--bg); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }

.ts-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  border-top: 1px solid var(--border); background: rgba(16,14,12,.95);
  padding: .75rem .75rem max(.75rem, env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .ts-sticky { display: none; } }
.ts-page-pad { padding-bottom: 6rem; }
@media (min-width: 768px) { .ts-page-pad { padding-bottom: 0; } }

.ts-form { display: grid; gap: 1.5rem; }
.ts-field label { display: block; font-size: .875rem; font-weight: 500; }
.ts-field input[type="text"],
.ts-field input[type="email"],
.ts-field input[type="tel"] {
  margin-top: .5rem; width: 100%; height: 44px; padding: 0 .75rem;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font: inherit;
}
.ts-check { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; }
.ts-checkout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .ts-checkout { grid-template-columns: 1fr 22rem; } }
.ts-order-box { padding: 1.25rem; height: fit-content; }
.ts-codes { display: grid; gap: .5rem; margin-top: .75rem; }
@media (min-width: 640px) { .ts-codes { grid-template-columns: 1fr 1fr; } }
.ts-code { background: var(--bg); border-radius: 8px; padding: .5rem .75rem; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.ts-modal { display: none; position: fixed; inset: 0; z-index: 60; }
.ts-modal.is-open { display: block; }
.ts-modal-bg { position: absolute; inset: 0; background: rgba(16,14,12,.8); border: 0; width: 100%; }
.ts-modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: calc(100% - 2rem); max-width: 40rem; background: var(--card); border-radius: 16px; overflow: hidden;
}
.ts-modal-card iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.ts-modal-copy { padding: 1.5rem; }
.ts-modal-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: rgba(16,14,12,.7); color: var(--fg);
}

.ts-cta-band { padding: 1.5rem; text-align: center; margin-top: 3.5rem; }
.ts-empty { max-width: 32rem; margin: 0 auto; padding: 6rem 1rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
