/* Strive Jouvert homepage: Cosmic Mayhem theme (Jouvert 2027)
 *
 * Loaded only by index.php, after homepage.css. It replaces the 2026
 * orange/cream/olive look with the 2027 palette: night purple, the core
 * brand purple (#5B21B6 / #3B0764), violet and magenta from the Cosmic
 * Mayhem flyer, and the icy cyan of the logo glow.
 * Account and checkout pages also use homepage.css but do not load this
 * file, so they are unchanged.
 */

:root {
  --cm-night:      #0B0720;
  --cm-night-2:    #110A2C;
  --cm-purple:     #5B21B6;
  --cm-purple-dk:  #3B0764;
  --cm-violet:     #7C3AED;
  --cm-violet-lt:  #C4B5FD;
  --cm-magenta:    #D946EF;
  --cm-cyan:       #A6D4FF;
  --cm-text:       #E9E5FF;
  --cm-muted:      #B3AAD6;
  --cm-card:       rgba(255,255,255,.045);
  --cm-card-hover: rgba(255,255,255,.07);
  --cm-line:       rgba(196,181,253,.16);
  --cm-btn:        linear-gradient(120deg, #7C3AED 0%, #A436E8 50%, #D946EF 100%);
  --cm-btn-glow:   0 12px 30px rgba(168,54,232,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
}

body {
  background: var(--cm-night);
  color: var(--cm-text);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ---------- Buttons ---------- */
.se-cta-primary,
.se-btn-primary,
header .se-header-cta {
  text-decoration: none !important;
  background: var(--cm-btn) !important;
  color: #ffffff !important;
  box-shadow: var(--cm-btn-glow) !important;
}
.se-cta-primary:hover,
.se-btn-primary:hover,
header .se-header-cta:hover {
  filter: brightness(1.1);
}

/* ---------- Header ---------- */
.se-header {
  background: rgba(11,7,32,.72);
  border-bottom: 1px solid var(--cm-line);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.se-logo img {
  height: 44px;
}
@media (max-width: 640px) {
  .se-logo img { height: 46px; }
}

/* ---------- Hero ---------- */
/* Night-purple fade instead of the orange haze, so the footage keeps its
   real colours and the hero melts into the dark page below. */
.se-hero-video::after {
  background:
    linear-gradient(to bottom,
      rgba(11,7,32,.55) 0%,
      rgba(11,7,32,.25) 30%,
      rgba(11,7,32,.35) 60%,
      rgba(11,7,32,.92) 92%,
      var(--cm-night) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(91,33,182,.28), transparent 65%);
}
.se-hero-paint,
.se-hero-particles {
  display: none;
}
.se-hero-eyebrow {
  background: rgba(59,7,100,.55);
  border-color: rgba(196,181,253,.35);
  color: #F3EEFF;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  padding: .3rem .85rem;
}
.se-hero-when {
  margin: .9rem 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.se-hero-benefits {
  margin: 0 auto .9rem;
  max-width: 560px;
  font-size: .9rem;
  color: var(--cm-text);
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.se-hero-note {
  color: var(--cm-muted);
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.se-audio-toggle {
  background: rgba(59,7,100,.6);
  border: 1px solid rgba(196,181,253,.35);
}
.se-audio-toggle:hover {
  background: rgba(91,33,182,.75);
}

/* ---------- Page sections ---------- */
main {
  position: relative;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 68% 9%,  rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 42%, rgba(196,181,253,.6), transparent 60%),
    radial-gradient(1px 1px at 33% 61%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 52% 83%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 7% 77%, rgba(166,212,255,.5), transparent 60%),
    radial-gradient(ellipse at 15% 0%, rgba(91,33,182,.22), transparent 55%),
    radial-gradient(ellipse at 90% 55%, rgba(217,70,239,.10), transparent 55%),
    var(--cm-night);
  background-size: 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 100% 100%, 100% 100%, auto;
  color: var(--cm-text);
}
.se-section {
  padding: 3.2rem 0 3.4rem;
}
.se-section + .se-section {
  border-top: 1px solid var(--cm-line);
}
.se-section-kicker {
  color: var(--cm-cyan);
  font-weight: 700;
  letter-spacing: .22em;
}
.se-section-title {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.se-section-sub {
  color: var(--cm-muted);
}

/* Origins */
.se-origins-text p {
  color: var(--cm-text);
  line-height: 1.7;
}
.se-pill {
  background: rgba(124,58,237,.16);
  border-color: rgba(196,181,253,.3);
  color: #EDE7FF;
}
.se-shot {
  box-shadow: 0 0 0 1px var(--cm-line), 0 18px 40px rgba(0,0,0,.5);
}
.se-view-gallery {
  background: transparent;
  color: #EDE7FF;
  border: 1px solid rgba(196,181,253,.4);
  box-shadow: none;
}
.se-view-gallery:hover {
  background: rgba(124,58,237,.22);
}

/* Tribute */
.se-tribute-card {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.se-tribute-photo::after {
  background: radial-gradient(circle at top, rgba(166,212,255,.18), transparent 70%);
}
.se-tribute-text h3 {
  color: #ffffff;
}
.se-tribute-text h4 {
  color: var(--cm-violet-lt);
}
.se-tribute-text p {
  color: var(--cm-text);
  line-height: 1.7;
}
.se-tribute-tagline {
  color: var(--cm-cyan);
}

/* Upcoming events */
.se-event-card {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  box-shadow: none;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.se-event-card:hover {
  background: var(--cm-card-hover);
  border-color: rgba(196,181,253,.32);
  transform: translateY(-2px);
}
.se-event-thumb {
  background: var(--cm-night-2);
}
.se-event-title {
  color: #ffffff;
}
.se-event-date {
  color: var(--cm-violet-lt);
  font-weight: 600;
}
.se-event-location,
.se-event-copy {
  color: var(--cm-muted);
}

/* Contact */
.se-contact-intro p {
  color: var(--cm-text);
  margin: .3rem 0;
}
.se-contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 1.2rem;
}
.se-contact .se-contact-card {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  box-shadow: none;
  color: var(--cm-text);
}
.se-contact .se-contact-card:hover {
  background: var(--cm-card-hover);
  border-color: rgba(196,181,253,.32);
  box-shadow: none;
}
.se-contact .se-contact-label {
  color: var(--cm-muted);
  opacity: 1;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.se-contact .se-contact-value {
  color: #ffffff;
}
.se-contact .se-contact-primary {
  background:
    linear-gradient(var(--cm-night-2), var(--cm-night-2)) padding-box,
    var(--cm-btn) border-box;
  border: 1px solid transparent;
}

/* Footer */
footer {
  background: #07041A;
  color: var(--cm-muted);
  border-top: 1px solid var(--cm-line);
  margin-top: 0;
}

/* Gallery lightbox accents */
.se-modal-back:hover,
.se-modal-back:focus-visible {
  border-color: var(--cm-magenta);
  color: var(--cm-magenta);
}
.se-album-label {
  color: var(--cm-cyan);
}
.se-album-card:focus-visible {
  outline-color: var(--cm-magenta);
}

/* ---------- Hero text sizes (readable over video) ---------- */
.se-hero-eyebrow {
  font-size: .78rem;
}
.se-hero-when {
  font-size: 1.2rem;
}
.se-hero-benefits {
  font-size: .98rem;
  font-weight: 500;
}
.se-hero-price {
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(120deg, rgba(124,58,237,.55), rgba(217,70,239,.55));
  padding: .1rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .se-hero-when     { font-size: 1rem; margin-top: .6rem; }
  .se-hero-benefits { font-size: .86rem; line-height: 1.6; }
}

/* ---------- Origins: story beside the photos on wide screens ---------- */
@media (min-width: 900px) {
  .se-origins-body {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 2.4rem;
  }
}

/* ---------- Tribute tagline ---------- */
.se-tribute-text .se-tribute-tagline {
  color: var(--cm-cyan);
  text-align: center;
}

/* ---------- Events: larger artwork, tidy locations ---------- */
.se-event-thumb {
  flex: 0 0 104px;
  cursor: zoom-in;
}
.se-event-location {
  text-transform: capitalize;
}

/* ---------- Footer ---------- */
.se-home-footer {
  text-align: left;
  padding: 2.6rem 0 1.4rem;
  font-size: .9rem;
}
.se-home-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) {
  .se-home-footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}
.se-home-footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: .6rem;
}
.se-home-footer-brand p {
  margin: 0;
  color: var(--cm-muted);
}
.se-home-footer-h {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cm-cyan);
  margin-bottom: .6rem;
}
.se-home-footer-col {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.se-home-footer-col a {
  color: var(--cm-text);
  text-decoration: none;
}
.se-home-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.se-home-footer-col span {
  color: var(--cm-muted);
}
.se-home-footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cm-line);
  color: var(--cm-muted);
  font-size: .8rem;
  text-align: center;
}

/* ---------- Polish ---------- */
/* Keep each "what's included" item on one line */
.se-hero-benefits span {
  white-space: nowrap;
}
/* Section subtitle sits under its heading */
.se-section-header {
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
.se-section-sub {
  max-width: 640px;
}
/* Tribute text left-aligned (justified text leaves uneven gaps) */
.se-tribute-text p {
  text-align: left;
}
@media (max-width: 640px) {
  main {
    padding-bottom: 0;
  }
  .se-section {
    padding: 2.4rem 0 2.6rem;
  }
  .se-home-footer {
    padding-top: 2rem;
  }
}

/* ---------- Jouvert 2027 costumes strip (links into the shop) ---------- */
.se-costume-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.se-costume-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cm-night-2);
  box-shadow: 0 0 0 1px var(--cm-line), 0 16px 36px rgba(0,0,0,.45);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.se-costume-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .5s ease;
}
.se-costume-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,7,32,.85) 0%, rgba(11,7,32,0) 45%);
}
.se-costume-name {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.se-costume-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(11,7,32,.8);
  color: var(--cm-muted);
}
.se-costume-tile.is-out img {
  opacity: .45;
}
.se-costume-tile:hover,
.se-costume-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(196,181,253,.45), 0 20px 44px rgba(124,58,237,.35);
}
.se-costume-tile:hover img {
  transform: scale(1.04);
}
.se-costumes-foot {
  margin-top: 1.4rem;
  text-align: center;
}
#jouvert-2027 {
  scroll-margin-top: 90px;
}
@media (max-width: 640px) {
  .se-costume-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .se-costume-name {
    font-size: .95rem;
    left: 10px;
    bottom: 9px;
  }
}

/* ---------- Compact header and footer (Nov 2026) ---------- */
.se-header-inner { height: 62px; }
.se-logo img { height: 36px; }
header .se-header-cta { padding: .45rem 1.1rem !important; font-size: .8rem !important; }
.se-hero-inner { padding-top: 62px; }
.se-hero-grid { min-height: calc(100svh - 62px); }
#origins, #jouvert-2027 { scroll-margin-top: 70px; }
@media (max-width: 768px) {
  .se-header-inner { height: 60px; }
  .se-logo img { height: 34px; }
  header .se-header-cta { padding: .45rem .95rem !important; font-size: .78rem !important; }
  .se-hero-inner { padding-top: 60px; }
}
@media (max-width: 640px) {
  .se-hero-grid { min-height: calc(100svh - 60px); }
}

.se-home-footer { padding: 1.6rem 0 .9rem; font-size: .84rem; }
.se-home-footer-inner { gap: 1.4rem; }
.se-home-footer-logo { height: 36px; margin-bottom: .4rem; }
.se-home-footer-h { margin-bottom: .4rem; }
.se-home-footer-col { gap: .25rem; }
.se-home-footer-copy { margin-top: 1.1rem; padding-top: .7rem; font-size: .75rem; }
@media (max-width: 640px) {
  .se-home-footer-inner { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .se-home-footer-brand { grid-column: 1 / -1; }
}

/* Footer phone fix (Nov 2026): give Connect its natural width so the
   phone number and handles stay on one line; single column on very small phones */
@media (max-width: 640px) {
  .se-home-footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .se-home-footer-col:last-child a { white-space: nowrap; }
  .se-home-footer-h { letter-spacing: .16em; white-space: nowrap; }
}
@media (max-width: 359px) {
  .se-home-footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================
   Header and footer redesign (Nov 2026)
   Same structure as the shop: logo, main nav, Order Now, and a
   menu button on phones. Footer: brand + social icons, Jouvert
   2027, Help, and a bottom row.
   ========================================================== */
.se-header-inner { gap: 1.5rem; }
.se-hnav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.se-hnav a {
  position: relative;
  padding: .5rem .8rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--cm-text);
  text-decoration: none;
  transition: color .15s ease;
}
.se-hnav a::after {
  content: "";
  position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; border-radius: 2px;
  background: var(--cm-cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.se-hnav a:hover { color: #ffffff; }
.se-hnav a:hover::after,
.se-hnav a[aria-current="page"]::after { transform: scaleX(1); }
.se-hnav a[aria-current="page"] { color: #ffffff; }
.se-hactions { display: flex; align-items: center; gap: .6rem; }
header .se-header-cta { border-radius: 999px; font-weight: 700; white-space: nowrap; }

.se-menu-btn {
  display: none;
  width: 40px; height: 40px;
  padding: 0; border: 1px solid var(--cm-line); border-radius: 12px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.se-menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: #ffffff;
  transition: transform .2s ease, opacity .2s ease;
}
.se-header.is-menu-open .se-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.se-header.is-menu-open .se-menu-btn span:nth-child(2) { opacity: 0; }
.se-header.is-menu-open .se-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .se-menu-btn { display: inline-flex; }
  .se-hnav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1rem;
    background: rgba(11,7,32,.97);
    border-bottom: 1px solid var(--cm-line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .se-header.is-menu-open .se-hnav { display: flex; }
  .se-hnav a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--cm-line); }
  .se-hnav a:last-child { border-bottom: 0; }
  .se-hnav a::after { display: none; }
  .se-hactions { margin-left: auto; }
}

#contact { scroll-margin-top: 70px; }

/* Footer: brand on the left, link columns grouped on the right */
.se-home-footer-inner { grid-template-columns: 1fr auto auto; column-gap: 4.5rem; align-items: start; }
.se-home-footer-col a,
.se-home-footer-col span { white-space: nowrap; }
.se-social { display: flex; gap: .55rem; margin-top: .9rem; }
.se-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--cm-line);
  background: rgba(255,255,255,.04);
  color: var(--cm-text);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.se-social a:hover { background: var(--cm-btn); border-color: transparent; color: #ffffff; }
.se-home-footer-copy { display: flex; justify-content: space-between; gap: 1rem; text-align: left; }
@media (max-width: 640px) {
  .se-home-footer-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
  .se-home-footer-col span { white-space: normal; }
  .se-home-footer-copy { flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
}
@media (max-width: 359px) {
  .se-home-footer-inner { grid-template-columns: 1fr; }
}
/* Phone menu: solid panel (a blur inside the blurred header does not render) */
@media (max-width: 860px) {
  .se-hnav { background: #0B0720; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
}
