/* Atomic-age inspired style */
:root {
  --atomic-teal: #7fd3c8;
  --atomic-red: #dd3130;
  --atomic-yellow: #ffcc66;
  --space-black: #0a0a0a;
  --off-white: #f6f6f6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--space-black) url('../img/mls-bg.png') repeat fixed;
  color: var(--off-white);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  background: var(--atomic-yellow);
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}

.wrapper {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Semi-transparent content container */
.content-surface {
  width: min(1200px, 94%);
  margin: 14px auto 40px auto;
  background: rgba(255,255,255,0.5);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--atomic-yellow);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.nav-toggle { display: none; }
.primary-nav { display: flex; align-items: center; }
.primary-nav a {
  color: var(--atomic-red);
  text-decoration: none;
  font-weight: 700;
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.site-header .primary-nav a { color: #c02221; }
.primary-nav a:hover, .primary-nav a:focus-visible { text-decoration: underline; }
.primary-nav .home-link { margin-right: 20px; display: inline-flex; align-items: center; }
.primary-nav .home-link img { width: 18px; height: 18px; display: block; }
.social-nav a {
  color: var(--space-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  text-decoration: none;
  position: relative;
}
.social-nav a:hover, .social-nav a:focus-visible { color: var(--atomic-red); }
.social-nav svg { width: 22px; height: 22px; display: block; }
.social-nav svg path, .social-nav svg circle:not([fill="none"]) { fill: currentColor; }

/* Tooltip labels for accessibility (shown on hover/focus) */
.social-nav a::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-in-out;
}
.social-nav a:hover::after, .social-nav a:focus-visible::after { opacity: 1; }

.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(127,211,200,0.18), transparent),
              radial-gradient(800px 400px at 100% 0%, rgba(232,74,95,0.14), transparent);
  padding-bottom: 0;
}
.hero-inner {
  padding: 0 0 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(340px, 35vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
  margin-bottom: 6px;
}
.tagline {
  font-family: 'Russo One', sans-serif;
  color: var(--atomic-red);
  margin: 0;
  font-size: clamp(16px, 2.3vw, 26px);
  max-width: 40ch;
}

.hero-copy { display: flex; flex-direction: column; gap: 8px; }
.hero-copy p:not(.tagline) { font-size: clamp(1rem, 1.2vw + 0.6rem, 1.6rem); }

/* Venmo tip button */
.venmo-btn {
  align-self: center;
  display: inline-block; /* fallback */
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 10px 16px;
  font-weight: 700;
  color: #f6f6f6;
  color: var(--off-white);
  background: #e84a5f;
  background: var(--atomic-red);
  border: 2px solid #e84a5f;
  border: 2px solid var(--atomic-red);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
}
.venmo-btn .icon-dollar {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.venmo-btn:hover {
  background: #cf3f54;
  background: color-mix(in srgb, var(--atomic-red), #000 10%);
  border-color: #cf3f54;
}
.venmo-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}
.venmo-btn .icon-dollar { margin-right: 10px; }

.starfield {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff, rgba(255,255,255,0)),
                    radial-gradient(1px 1px at 50% 70%, #fff, rgba(255,255,255,0)),
                    radial-gradient(1.5px 1.5px at 80% 40%, #fff, rgba(255,255,255,0));
  opacity: 0.45;
  pointer-events: none;
}

section { padding: 48px 0; }
/* Prevent sticky header from covering anchored sections */
section { scroll-margin-top: 70px; }
section h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 28px;
  color: var(--atomic-red);
  margin: 0 0 18px 0;
  display: block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--atomic-red);
  position: relative;
}
section h2 .section-top-link {
  position: absolute;
  right: 0;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
}
section h2 .section-top-link img {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  display: block;
}

/* Paragraph text color */
p { color: var(--space-black); }

.bandcamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.album-embed iframe { width: 100%; border: 0; }
.album-embed.placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 2px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
}

.instagram-feed {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.instagram-feed .ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.ig-placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 2px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
}

.site-footer {
  border-top: 2px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Responsive navigation */
@media (max-width: 800px) {
  .header-inner { position: relative; display: flex; flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 40px;
    margin-left: 0;
    margin-right: 8px;
    background: transparent;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    color: var(--space-black);
    cursor: pointer;
    order: 1;
  }
  .nav-toggle:focus-visible { outline: 3px solid rgba(0,0,0,0.4); outline-offset: 2px; }
  .nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--space-black);
    margin: 3px 0;
    transition: transform .2s ease, opacity .2s ease;
  }

  /* Collapse layout (nav sits within header flow) */
  .primary-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .2s ease;
  }
  .primary-nav a { margin: 0; padding: 10px 16px; height: auto; }
  .primary-nav .home-link { display: none; }
  .social-nav { order: 2; display: inline-flex; margin-left: auto; }

  /* Expanded */
  .site-header.is-open .primary-nav { max-height: 320px; padding: 8px 0; }

  /* Animate hamburger to X when open */
  .site-header.is-open #nav-toggle .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header.is-open #nav-toggle .bar:nth-child(2) { opacity: 0; }
  .site-header.is-open #nav-toggle .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* Elfsight Instagram feed: hide widget title */
.eui-widget-title.es-widget-title.eapps-instagram-feed-title { display: none !important; }

/* Contact section tweaks (inherits global section styles) */
.contact p, .contact a { color: var(--space-black); }
.contact a { color: var(--atomic-red); text-decoration: none; font-weight: 700; }
.contact a:hover, .contact a:focus-visible { text-decoration: underline; }
.contact-email { text-align: center; padding-top: 15px; }

/* Contact form */
.contact-form {
  margin-top: 18px;
  background: rgba(255,255,255,0.7);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-form .form-field { display: flex; flex-direction: column; }
.contact-form .form-field--full { grid-column: 1 / -1; }
.contact-form label {
  font-weight: 700;
  color: var(--space-black);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  font: inherit;
  color: var(--space-black);
  background: #fff;
}
.contact-form .error-text {
  min-height: 16px;
  color: #b00020;
  font-size: 13px;
  margin-top: 4px;
}
.contact-form .has-error input,
.contact-form .has-error textarea { border-color: #b00020; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}
.contact-submit {
  margin-top: 12px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--off-white);
  background: var(--atomic-red);
  border: 2px solid var(--atomic-red);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.contact-submit:hover { background: color-mix(in srgb, var(--atomic-red), #000 10%); border-color: color-mix(in srgb, var(--atomic-red), #000 10%); }

@media (max-width: 700px) {
  .contact-form .form-grid { grid-template-columns: 1fr; }
}

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.is-open { display: block; }
.modal[aria-hidden="true"] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal-dialog {
  position: relative; z-index: 1;
  width: min(520px, 92%);
  margin: 12vh auto;
  background: #fff;
  color: var(--space-black);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.modal-dialog h3 { margin: 0 0 8px 0; color: var(--atomic-red); font-family: 'Russo One', sans-serif; }
.modal-dialog p { margin: 0 0 12px 0; }
.modal-close {
  display: inline-block;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--off-white);
  background: var(--atomic-red);
  border: 2px solid var(--atomic-red);
  border-radius: 999px;
  cursor: pointer;
}
.modal-close:hover { background: color-mix(in srgb, var(--atomic-red), #000 10%); border-color: color-mix(in srgb, var(--atomic-red), #000 10%); }

/* Large contact social icons */
.contact-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  justify-items: center;
  margin: 18px 0 12px 0;
}
.contact-socials-item { display: grid; place-items: center; gap: 10px; }
.contact-socials-item a {
  color: var(--space-black);
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.6);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.contact-socials-item a:hover, .contact-socials-item a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.2);
  outline: none;
  filter: brightness(1.06);
}
.contact-socials-item svg { width: 44px; height: 44px; display: block; }
.contact-socials-item svg path, .contact-socials-item svg rect, .contact-socials-item svg circle:not([fill="none"]) { fill: currentColor; }
.contact-socials-item .label { font-weight: 700; color: var(--space-black); }

/* Brand colors for full-color icons */
.contact-socials-item:nth-child(1) a { /* Instagram */
  background: linear-gradient(45deg, #F58529, #FEDA77 25%, #DD2A7B 50%, #8134AF 75%, #515BD4);
  color: #fff;
  border-color: transparent;
}
.contact-socials-item:nth-child(2) a { /* Facebook */
  background: #1877F2;
  color: #fff;
  border-color: transparent;
}
.contact-socials-item:nth-child(3) a { /* Bandcamp */
  background: #1DA0C3;
  color: #fff;
  border-color: transparent;
}
.contact-socials-item:nth-child(4) a { /* YouTube */
  background: #FF0000;
  color: #fff;
  border-color: transparent;
}

@media (max-width: 700px) {
  .contact-socials { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

