/* ============================================================
   Mandy Moon — style.css
   ============================================================ */

/* ============================================================
   1) Fonts + Theme Variables (PRIORITY)
   - One place to change site-wide colors
   ============================================================ */

@font-face {
  font-family: SourceSerifPro;
  src: url(../fonts/SourceSerif4_18pt-Regular.ttf);
}

:root {
  /* Header */
  --header-bg: rgba(18, 27, 34, 0.9);
  --header-border: #121b22;

  /* Section cards */
  --card-bg: rgba(149, 72, 29, 0.75);
  --card-solid: #95481d;

  /* Buttons */
  --btn-bg: #121b22;
  --btn-border: #d6c8b8;

  /* Button hover (warm copper) */
  --btn-hover-bg: #b86a3a;
  --btn-hover-border: #b86a3a;

  /* Nav hover (dark/nav color) */
  --nav-hover-bg: rgba(18, 27, 34, 0.92);
}

/* ============================================================
   2) Base Reset + Global Defaults (PRIORITY)
   ============================================================ */

html,
body,
h1,
h2,
h3,
h4,
h5,
p,
div,
a,
button,
nav,
section,
footer,
label,
input,
textarea,
form {
  margin: 0;
  padding: 0;
}

/* ============================================================
   PERF: Background image (simple WebP + JPG fallback)
   - Primary: WebP (smaller, faster)
   - Fallback: JPG for older browsers
   - Uses a single background rule, no HTML changes required
   ============================================================ */

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;

  /* Fallback first (older browsers will keep this) */
  background: url(../images/parthenon.jpg) no-repeat center center fixed;
  background-size: cover;
}

/* Browsers that support WebP will override the JPG */
@supports (background-image: url("../images/parthenon.webp")) {
  html {
    background-image: url(../images/parthenon.webp);
  }
}

body {
  font-family: SourceSerifPro;
  line-height: 1.5;
  font-size: 16px;
  color: white;

  /* Header is fixed */
  margin-top: 4em;
  padding-top: 20px;

  height: 100%;
  width: 100%;
}

h2 {
  font-size: 2.5em;
}

a {
  text-decoration: none;
  color: white;
}

img {
  border: solid white 2px;
}

/* ============================================================
   3) Utility Classes (LOW RISK)
   ============================================================ */

.text-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.italic {
  font-style: italic;
}

/* ============================================================
   4) Section Card + Buttons (PRIORITY)
   ============================================================ */

.section-card {
  background: var(--card-bg);
  border-top: solid var(--header-border) 5px;
  border-bottom: solid var(--header-border) 5px;
}

.btn {
  appearance: none;
  border: solid var(--btn-border) 1px;
  background: var(--btn-bg);
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 120ms ease;

  text-decoration: none;
}

.btn:hover,
.btn:focus {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border);
  outline: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 7px;
}

/* ============================================================
   5) Header Layout (PRIORITY)
   ============================================================ */

/* ============================================================
   Header: center nav, pin socials right, hide title
   ============================================================ */

div#header {
  background: var(--header-bg);
  border-top: solid var(--header-border) 5px;
  border-bottom: solid var(--header-border) 5px;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;

  width: 100vw;
  height: 4em;

  box-sizing: border-box;
  padding: 0 12px;

  /* ✅ Center the nav to the page */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ Hide the Mandy Moon text in header if it exists anywhere */
#mandy-moon,
.site-title {
  display: none !important;
}

/* ✅ Keep desktop nav centered */
nav#header-menu.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}

/* ✅ Pin socials to the far right (desktop only) */
.header-social {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ✅ Pin hamburger to the far right (mobile only) */
#hamburger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

div.header-sections {
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
}

#mandy-moon {
  justify-content: flex-start;
}

.header-social,
#hamburger {
  justify-content: flex-end;
}

.site-title {
  border: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 6px;
  white-space: nowrap;
}

.site-title:hover {
  opacity: 0.95;
}

/* ============================================================
   6) Desktop Navigation + Listen Dropdown
   ============================================================ */

nav#header-menu.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  font-size: 1.2em;
  white-space: nowrap;
}

nav#header-menu.desktop-nav a,
nav#header-menu.desktop-nav button {
  color: white;
  cursor: pointer;
}

/* Desktop nav hover (orange/copper) */
nav#header-menu.desktop-nav > a:hover,
nav#header-menu.desktop-nav > a:focus,
nav#header-menu.desktop-nav .nav-btn:hover,
nav#header-menu.desktop-nav .nav-btn:focus {
  color: var(--btn-hover-bg);
}

.nav-btn {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0;
}

.nav-item.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);

  background: var(--card-solid);
  border: solid var(--header-border) 3px;
  border-radius: 8px;

  display: none;
  flex-direction: column;

  min-width: 190px;
  overflow: hidden;
  opacity: 0.98;
  z-index: 11000;
}

.nav-dropdown a {
  padding: 12px 14px;
  border-bottom: solid rgba(255, 255, 255, 0.18) 1px;
  text-align: center;
  transition: background 180ms ease;
}

.nav-dropdown a:last-child {
  border-bottom: 0;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: flex;
}

/* Desktop dropdown hover uses the same dark/nav hover as mobile */
nav#header-menu .nav-dropdown a:hover,
nav#header-menu .nav-dropdown a:focus {
  background: var(--nav-hover-bg);
}

/* ============================================================
   7) Header Social Icons (Desktop)
   ============================================================ */

.header-social {
  display: flex;
  gap: 10px;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: solid rgba(255, 255, 255, 0.12) 1px;
}

.header-social-link img {
  border: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.header-social-link:hover img {
  opacity: 1;
}

/* ============================================================
   8) Mobile Hamburger + Dropdown Menu (PRIORITY)
   ============================================================ */

#hamburger {
  display: flex;
  align-items: center;
}

.hamburger-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

/* CSS hamburger icon (no image dependency) */
.hamburger-lines {
  width: 34px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 34px;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.hamburger-lines::before {
  top: 3px;
  box-shadow: 0 9px 0 rgba(255, 255, 255, 0.92);
}

.hamburger-lines::after {
  top: 21px;
}

.header-dropdown {
  position: absolute;
  top: 4em;
  right: 10px;
  left: auto;
  transform: none;

  width: min(90vw, 320px);
  max-width: 320px;

  background: var(--card-solid);
  border: solid var(--header-border) 3px;
  border-radius: 8px;

  display: none;
  flex-direction: column;

  overflow: hidden;
  opacity: 0.98;
  z-index: 12000;
}

.header-dropdown.is-open {
  display: flex;
}

.header-dropdown a,
.header-dropdown button {
  padding: 12px 14px;
  border-bottom: solid rgba(255, 255, 255, 0.18) 1px;

  background: transparent;
  color: white;

  text-align: center;
  font: inherit;
  cursor: pointer;

  transition: background 180ms ease;
}

.header-dropdown a:last-child {
  border-bottom: 0;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  background: rgba(18, 27, 34, 0.35);
}

.mobile-submenu.is-open {
  display: flex;
}

.mobile-submenu a {
  padding-left: 0;
  text-align: center;
  transition: background 180ms ease;
}

.mobile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  justify-content: center;
}

/* ============================================================
   9) Nav Hover States (PRIORITY)
   ============================================================ */

.header-dropdown a:hover,
.header-dropdown a:focus,
.header-dropdown button:hover,
.header-dropdown button:focus,
.mobile-submenu a:hover,
.mobile-submenu a:focus {
  background: var(--nav-hover-bg);
}

/* ============================================================
   10) Main Layout Anchors
   ============================================================ */

div#main {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
}

#shows-scroll,
#bio-scroll,
#contact-scroll,
#singles-scroll {
  position: relative;
  top: -4em;
}

#top-scroll {
  position: absolute;
  top: 0;
}

/* ============================================================
   11) Hero
   ============================================================ */

#hero {
  min-height: calc(100vh - 4em);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: transparent;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.hero-inner {
  width: min(1100px, 92vw);
  display: flex;
  justify-content: center;
  padding-top: 38px;

  border: 0 !important;
  outline: 0 !important;
}

.hero-logo {
  border: 0 !important;
  width: min(720px, 90vw);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
}

/* ============================================================
   12) Scroll Reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1500ms ease,
    transform 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   13) Videos
   ============================================================ */

.video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 10px 0 25px 0;
}

.video-wrap {
  width: min(1000px, 92vw);
  border: 0;
  display: flex;
  justify-content: center;
}

.responsive-16x9 {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding-top: 56.25%;
  border: solid #95ac77 2px;
  box-sizing: border-box;
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   14) Showcase Blocks (Shows / Singles / Contact wrapper)
   ============================================================ */

.showcase {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  font-size: 1.5em;
  margin: 15px 0;
  text-align: center;
}

.showcase-image img {
  width: 25vw;
  margin: 20px 5vw;
}

.showcase-info a {
  margin: 0 10px;
}

.showcase-info-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-subtitle {
  margin-top: 20px;
  font-style: italic;
  text-align: center;
}

#ticket-link {
  margin-left: 10px;
}

.stream-links {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
}

/* Showcase responsive behavior */
#break1,
#break2 {
  display: none;
}

.mobile-showcase-title {
  display: none;
}

@media screen and (max-width: 975px) {
  .showcase-image img {
    width: 30vw;
    margin: 20px;
  }
}

@media screen and (max-width: 800px) {
  #break2 {
    display: initial;
  }

  .showcase-image img {
    width: 35vw;
  }
}

@media screen and (max-width: 600px) {
  .showcase {
    flex-direction: column;
  }

  .showcase-image img {
    width: 70vw;
  }

  .mobile-showcase-title {
    display: initial;
  }

  .showcase-info h2 {
    display: none;
  }
}

@media screen and (max-width: 525px) {
  #break1 {
    display: initial;
  }

  .showcase {
    font-size: 1.2em;
  }
}

/* ============================================================
   15) Bio Section + Gallery
   ============================================================ */

section#bio.section-card {
  width: 100%;
  margin: 20px 0;
  padding: 18px 0 18px 0;
  box-sizing: border-box;
}

section#bio h2 {
  font-size: 3.5em;
  text-align: left;
  width: min(1200px, 90%);
  margin: 0 auto 10px auto;
}

.bio-text {
  width: min(1200px, 90%);
  margin: auto;
}

.bio-image {
  float: right;
  margin: 10px 0 10px 20px;
  width: 30%;
  max-width: 420px;

  border: none;
  border-radius: 999px;

  display: block;
  shape-outside: circle();
}

@media screen and (max-width: 900px) {
  section#bio h2 {
    text-align: center;
  }

  .bio-image {
    width: 45%;
    margin: 10px auto 15px auto;
    float: none;
    shape-outside: none;
  }
}

@media screen and (max-width: 550px) {
  .bio-image {
    width: 80%;
  }
}

#hidden-gallery {
  display: none;
}

div#scroll-arrows {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  align-items: center;
}

div#bio-gallery {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  align-items: center;
}

div#bio-gallery img {
  width: 29%;
  margin: 10px 25px;
  animation: fadeIn ease 1.3s;
}

span.gallery-scroller {
  background: #ffffff20;
  display: inline-block;
  text-align: center;

  width: 1.3em;
  height: 1.2em;
  line-height: 1.2em;

  font-size: 3.5em;
  font-weight: 950;

  padding-right: 10px;
  padding-left: 10px;

  cursor: pointer;
  border-radius: 10px;
  transition: background 0.7s;

  margin: 20px 5vw;
  user-select: none;
}

span.gallery-scroller:hover {
  background: #ffffff90;
}

@media screen and (max-width: 750px) {
  div#bio-gallery img:nth-of-type(1),
  div#bio-gallery img:nth-of-type(3) {
    display: none;
  }

  div#bio-gallery img:nth-of-type(2) {
    width: 90%;
  }
}

/* ============================================================
   16) Contact Form (Matches Nav Bar)
   ============================================================ */

.contact-form {
  width: min(760px, 92vw);
  margin: 18px auto 10px auto;

  background: rgba(18, 27, 34, 0.92);
  border: solid rgba(255, 255, 255, 0.12) 1px;
  border-radius: 12px;

  padding: 18px;
  box-sizing: border-box;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.95);
}

.contact-form label {
  display: block;
  text-align: center;
  font-weight: 700;
  margin: 12px 0 8px 0;
  color: rgba(255, 255, 255, 0.92);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;

  border: solid rgba(255, 255, 255, 0.18) 1px;
  border-radius: 8px;

  padding: 10px 12px;
  font: inherit;

  outline: none;
  background: rgba(255, 255, 255, 0.96);
  color: #121b22;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(184, 106, 58, 0.85);
}

.contact-form .btn {
  margin: 14px auto 0 auto;
  display: flex;
}

.contact-line {
  margin-top: 16px;
  margin-bottom: 30px;
  text-align: center;
}

/* ============================================================
   17) Footer
   ============================================================ */

div#footer-buffer {
  flex-grow: 1;
  height: 0;
  max-height: 100%;
}

footer#footer.section-card {
  width: 100%;
  margin: 20px 0 0 0;
  padding: 10px 0;
  border-bottom: 0;
}

div#social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

div#social-icons a img {
  border: 0;
  width: 28px;
  margin: 10px 10px;
  filter: hue-rotate(40deg) grayscale(92%) brightness(300%);
}

/* ============================================================
   18) Responsive Rules (PRIORITY)
   ============================================================ */

@media screen and (max-width: 900px) {
  nav#header-menu.desktop-nav {
    display: none;
  }

  .header-social {
    display: none;
  }

  #hamburger {
    display: flex;
  }
}

@media screen and (min-width: 901px) {
  nav#header-menu.desktop-nav {
    display: flex;
  }

  .header-social {
    display: flex;
  }

  #hamburger {
    display: none;
  }
}

@media screen and (max-width: 420px) {
  .site-title {
    letter-spacing: 0.06em;
  }
}
/* ============================================================
   MOBILE/DESKTOP SOCIAL OVERRIDES
   ============================================================ */

/* Mobile: socials must NOT appear in header, only inside hamburger dropdown */
@media screen and (max-width: 900px) {
  #header .header-social {
    display: none !important;
  }

  #header #hamburger {
    display: flex !important;
  }

  #header .header-dropdown .mobile-social {
    display: flex !important;
  }
}

/* Desktop: socials appear in header, NOT in hamburger dropdown */
@media screen and (min-width: 901px) {
  #header .header-social {
    display: flex !important;
  }

  #header #hamburger {
    display: none !important;
  }

  #header .header-dropdown .mobile-social {
    display: none !important;
  }
}

.spotify-container iframe {
  display: block;
  margin: 0 auto;
  max-width: 500px; /* Adjust as needed */
  width: 100%;
}
/* ============================================================
   Contact form helpers
   - Honeypot hidden
   - Status feedback styling
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 1.3em;
}

.contact-status.is-loading {
  opacity: 0.9;
}

.contact-status.is-success {
  font-weight: 600;
}

.contact-status.is-error {
  font-weight: 600;
}
/* ============================================================
   Contact Form — Honeypot (anti-spam)
   - Visually hidden
   - Removed from layout
   - Still readable by bots
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   End of style.css
   ============================================================ */
