/* ============================================
   Swallow the Sun — Official Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-bg-card: #1a1a1a;
  --color-text: #c8c4bc;
  --color-text-muted: #787470;
  --color-text-bright: #e7e6e2;
  --color-accent: #4d8a8d;
  --color-accent-hover: #c8c4bc;
  --color-accent-gold: #c9a96e;
  --color-border: #2a2a2a;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-heading: 'Crimson Text', Georgia, serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --section-padding: clamp(4rem, 10vh, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-bright);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
  max-width: 52em;
  margin-bottom: 1.5em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
  padding: var(--section-padding) 0;
  scroll-margin-top: 2rem;
}

.section-border {
  border-top: 1px solid var(--color-border);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background: var(--color-bg) url('../static/section-band-2024.jpg') no-repeat center center / cover;
  z-index: -1;
  will-change: transform, filter;
  transition: filter 0.1s linear, opacity 0.6s ease;
  opacity: 0;
}

.hero-bg.loaded {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.05;
  color: var(--color-bg);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 0.8rem) clamp(0.6rem, 3vw, 2.5rem);
  background: rgba(10, 10, 10, 0.65);
  border: none;
  color: var(--color-text-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: skewX(-8deg);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.hero-cta span {
  display: inline-block;
  transform: skewX(8deg);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}


/* ============================================
   Tour
   ============================================ */
#tour {
  background: var(--color-bg-elevated);
}

.tour-widget {
  max-width: 100%;
  margin: 0 auto;
  min-height: 300px;
}

/* Bandsintown widget theme overrides */
.bit-widget {
  font-family: var(--font-body) !important;
}

.bit-widget .bit-event .bit-button {
  margin: 0.4rem 0.25rem !important;
}

.bit-widget .bit-event:hover {
  background: rgba(255, 255, 255, 0.01) !important;
}



@media (min-width: 768px) {
  .tour-widget .bit-widget .bit-events {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 2rem !important;
  }
}

@media (min-width: 1024px) {
  .tour-widget .bit-widget .bit-events {
    grid-template-columns: 1fr 1fr 1fr !important;
  }

  .tour-widget {
    max-width: 100%;
  }
}

/* ============================================
   Store
   ============================================ */
#store {
  background: var(--color-bg);
}

.store-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.store-card-primary {
  width: 100%;
  padding: 2.5rem 2rem;
  font-size: 1.1em;
}

.store-card-primary .store-card-flag {
  font-size: 3rem;
}

.store-regional {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.store-regional .store-card {
  padding: 1rem 0.75rem;
  border-color: rgba(255, 255, 255, 0.06);
}

.store-regional .store-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.store-regional .store-card-flag {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.store-regional .store-card-region {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.store-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-4px);
  background: #1f1f1f;
}

.store-card-flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.store-card-region {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-bright);
  margin-bottom: 0.3rem;
}

.store-card-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   About / Biography
   ============================================ */
#about {
  background: var(--color-bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .about-layout {
    grid-template-columns: 400px 1fr;
    gap: 3rem;
  }
}

.about-embed {
  background: #181818;
  border-radius: 12px;
  min-height: 352px;
}

.about-embed iframe {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.streaming-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

.streaming-links a:hover {
  color: var(--color-text-bright);
}

.about-text p {
  color: var(--color-text);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Band members */
.band-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.band-member {
  text-align: center;
}

.band-member-name {
  font-size: 1rem;
  color: var(--color-text-bright);
  margin-bottom: 0.15rem;
}

.band-member-role {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-transform: lowercase;
}

/* ============================================
   Contact
   ============================================ */
#contact {
  background: var(--color-bg-elevated);
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.contact-social-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--color-text-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--color-accent);
  transition: color var(--transition), border-color var(--transition);
}

.contact-social-link:hover {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .contact-group-booking {
    grid-column: span 3;
  }

  .booking-entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.contact-group h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.contact-group h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--color-border);
  margin-top: 0.6rem;
}

.contact-entry {
  margin-bottom: 1.5rem;
}

.contact-entry strong {
  display: block;
  color: var(--color-text-bright);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-entry span,
.contact-entry a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: block;
}

.contact-entry a {
  color: var(--color-text);
  word-break: break-all;
}

.contact-entry a:hover {
  color: var(--color-text-bright);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: #050505;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0;
  margin: 0;
}

/* ============================================
   Utilities & Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg {
    opacity: 1;
    transition: filter 0.1s linear;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Selection */
::selection {
  background: #555;
  color: #fff;
}
