/* moonslayers.ro — site-wide look, loaded by mu-plugins/moonslayers-site.php.
   Colours and fonts of the page content live in Elementor → Site Settings (global colours
   and fonts); this file only dresses what the theme draws around the content
   (header, mobile menu, 404, back-to-top) and keeps every page on black. */

:root {
  --ms-black: #050304;
  --ms-surface: #130a0e;
  --ms-wine-deep: #3d0613;
  --ms-wine: #8c0d2e;
  --ms-wine-neon: #c8123d;
  --ms-wine-glow: #ff2d55;
  --ms-wine-light: #ff6b86;
  --ms-text: #f3ecef;
  --ms-muted: #a8999f;
}

/* ---------- Every page on black ---------- */
html,
body,
body #qodef-page-wrapper,
body #qodef-page-outer,
body #qodef-page-inner { background-color: var(--ms-black); }
body { color: var(--ms-text); }
::selection { background: var(--ms-wine-neon); color: #fff; }

/* The theme hides overflow on body and #qodef-page-wrapper. "hidden" turns them into scroll
   containers that never scroll, and every scroll-driven animation (parallax, neon lines) binds
   to them and freezes. "clip" clips the same way without that; older Safari keeps "hidden". */
html body { overflow-x: clip; }
body #qodef-page-wrapper { overflow: clip; }
body a:focus-visible,
body button:focus-visible { outline: 2px solid var(--ms-wine-light); outline-offset: 3px; }

/* Theme-drawn text on pages that are not built in Elementor (404, archives, titles) */
body .qodef-page-title,
body .qodef-page-title .qodef-m-title,
body #qodef-404-page .qodef-404-title,
body #qodef-404-page .qodef-404-text { color: var(--ms-text); }
body .qodef-page-title { background-color: var(--ms-black); }

/* ---------- Desktop header: symmetric divided menu around a centred logo ---------- */
@media (min-width: 1025px) {
  body.qodef-header--divided #qodef-page-header .qodef-divided--left,
  body.qodef-header--divided #qodef-page-header .qodef-divided--right,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--left,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--right {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-left: 0;
    display: flex;
    align-items: center;
  }
  body.qodef-header--divided #qodef-page-header .qodef-divided--left,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--left { justify-content: flex-end; }
  body.qodef-header--divided #qodef-page-header .qodef-divided--right,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--right { justify-content: flex-start; }
  body.qodef-header--divided #qodef-page-header .qodef-divided--right nav,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--right nav { flex: 0 0 auto; }

  /* Same padding on every item — the theme trims the last left item to 1px,
     which pushed everything ~27px off-centre */
  body.qodef-header--divided #qodef-page-header .qodef-divided--left nav > ul > li,
  body.qodef-header--divided #qodef-page-header .qodef-divided--right nav > ul > li,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--left nav > ul > li,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--right nav > ul > li,
  body.qodef-header--divided #qodef-page-header .qodef-divided--left nav > ul > li:last-child,
  body.qodef-header--divided .qodef-header-sticky .qodef-divided--left nav > ul > li:last-child { padding: 0 28px; }

  /* The hamburger opens a leftover theme-demo panel (QodeInteractive social links) */
  body.qodef-header--divided #qodef-page-header .widget_tristero_core_side_area_opener,
  body.qodef-header--divided .qodef-header-sticky .widget_tristero_core_side_area_opener { display: none; }

  /* Menu links: Inter caps with a neon line that lights up on hover / current page */
  body #qodef-page-header .qodef-header-navigation > ul > li > a,
  body .qodef-header-sticky .qodef-header-navigation > ul > li > a {
    position: relative;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ms-text);
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  body #qodef-page-header .qodef-header-navigation > ul > li > a::after,
  body .qodef-header-sticky .qodef-header-navigation > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* the theme stretches each menu link to the full header height with the text centred,
       so the line is placed from the middle, not from the (much lower) bottom of the link */
    top: calc(50% + 14px);
    height: 2px;
    background: var(--ms-wine-glow);
    box-shadow: 0 0 12px var(--ms-wine-glow);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body #qodef-page-header .qodef-header-navigation > ul > li > a:hover,
  body .qodef-header-sticky .qodef-header-navigation > ul > li > a:hover {
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 45, 85, 0.65);
  }
  body #qodef-page-header .qodef-header-navigation > ul > li > a:hover::after,
  body .qodef-header-sticky .qodef-header-navigation > ul > li > a:hover::after,
  body #qodef-page-header .qodef-header-navigation > ul > li.current-menu-item:not(.menu-item-type-custom) > a::after,
  body .qodef-header-sticky .qodef-header-navigation > ul > li.current-menu-item:not(.menu-item-type-custom) > a::after { transform: scaleX(1); }

  /* Sticky header: dark glass with a thin wine line */
  body .qodef-header-sticky {
    background-color: rgba(5, 3, 4, 0.86) !important;
    border-bottom: 1px solid rgba(200, 18, 61, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
  }
}

/* ---------- Mobile / tablet header ---------- */
body #qodef-page-mobile-header,
body #qodef-page-mobile-header-inner { background-color: var(--ms-black); }
body #qodef-page-mobile-header { border-bottom: 1px solid rgba(200, 18, 61, 0.28); }
body #qodef-page-mobile-header .qodef-mobile-header-logo-link img { max-height: 46px; width: auto; }
body #qodef-mobile-header-opener { color: #fff; }
body #qodef-mobile-header-opener .qodef-line { background-color: #fff; }

/* The open mobile menu: dark, big rows, wine accent */
body #qodef-mobile-header-navigation {
  background-color: #0b0608;
  border-top: 1px solid rgba(200, 18, 61, 0.28);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
body #qodef-mobile-header-navigation ul li a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-text);
}
body #qodef-mobile-header-navigation ul li a:hover,
body #qodef-mobile-header-navigation ul li.current-menu-item:not(.menu-item-type-custom) > a { color: var(--ms-wine-light); }

/* ---------- Back to top: wine, kept clear of the WhatsApp button, desktop only ---------- */
body #qodef-back-to-top { bottom: 104px; }
body #qodef-back-to-top .qodef-back-to-top-icon {
  background-color: rgba(5, 3, 4, 0.8);
  border-color: rgba(200, 18, 61, 0.6);
  color: #fff;
}
@media (max-width: 1024px) {
  body #qodef-back-to-top { display: none; }
}

/* ---------- Homepage: no white strip between the hero and "Din operele noastre" ---------- */
body .elementor-4395 .elementor-element.elementor-element-af305b8 {
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  gap: 0;
}

/* ---------- Elementor buttons follow the global colours (Site Settings → Global Colors) ----------
   Styled here rather than in the kit's "Buttons" settings, which would restyle every <button>
   and link on the page, including the ones inside custom widgets. A colour set on a single
   button in Elementor still wins over this. */
body .elementor-widget-button .elementor-button {
  background-color: var(--e-global-color-primary, #c8123d);
  color: #fff;
  border-radius: 999px;
  padding: 18px 34px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
body .elementor-widget-button .elementor-button:hover,
body .elementor-widget-button .elementor-button:focus-visible {
  background-color: var(--e-global-color-accent, #ff2d55);
  color: #fff;
  box-shadow: 0 0 28px color-mix(in srgb, var(--e-global-color-accent, #ff2d55) 55%, transparent);
}
/* Outline variant: add the CSS class "ms-btn-outline" to the button (Advanced → CSS Classes) */
body .elementor-widget-button.ms-btn-outline .elementor-button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
}
body .elementor-widget-button.ms-btn-outline .elementor-button:hover {
  border-color: var(--e-global-color-accent, #ff2d55);
  background-color: color-mix(in srgb, var(--e-global-color-primary, #c8123d) 30%, transparent);
}

/* ---------- Theme title band (portfolio items, archives): dark and readable ---------- */
body .qodef-page-title {
  background-image: none !important;
  background-color: var(--ms-black) !important;
}
body .qodef-page-title .qodef-m-title,
body .qodef-page-title .qodef-breadcrumbs,
body .qodef-page-title .qodef-breadcrumbs a,
body .qodef-page-title .qodef-breadcrumbs span { color: var(--ms-text) !important; }
@media (min-width: 1025px) {
  /* the divided header sits over the top of the page, so the title band starts below it */
  body:not(.qodef-content-behind-header) .qodef-page-title { margin-top: 180px; }
}

/* =====================================================================
   Page components — used by the Elementor pages through CSS classes
   (Advanced → CSS Classes), so they keep working when content is edited.
   ===================================================================== */

/* Two-tone title: the part wrapped in <span> lights up in neon wine */
body .ms-title-split .elementor-heading-title span {
  display: block;
  color: var(--e-global-color-accent, #ff2d55);
  text-shadow:
    0 0 3px color-mix(in srgb, var(--e-global-color-accent, #ff2d55) 80%, #fff),
    0 0 20px color-mix(in srgb, var(--e-global-color-accent, #ff2d55) 70%, transparent),
    0 0 48px color-mix(in srgb, var(--e-global-color-primary, #c8123d) 55%, transparent);
}

/* Outlined words in the moving bands */
body .ms-outline .elementor-heading-title {
  color: transparent !important;
  -webkit-text-stroke: 1.2px var(--ms-wine-light);
}
body .ms-band-star .elementor-heading-title {
  color: var(--e-global-color-accent, #ff2d55) !important;
  text-shadow: 0 0 18px rgba(255, 45, 85, 0.6);
}
body .ms-band-word .elementor-heading-title { white-space: nowrap; }

/* Neon divider line */
body .ms-divider-neon .elementor-divider-separator { box-shadow: 0 0 14px color-mix(in srgb, var(--e-global-color-accent, #ff2d55) 80%, transparent); }

/* Black-on-white artwork shown as white-on-black */
body .ms-invert img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }

/* Brand logos: white, quiet until hovered */
body .ms-brand-logo img {
  width: auto;
  max-width: 170px;
  max-height: 64px;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 0.3s ease;
}
body .ms-brand-logo:hover img { opacity: 1; }

/* Hero */
@media (min-width: 1025px) {
  body .ms-hero .ms-hero-media { flex: 0 0 auto; width: min(30vw, 44vh) !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body .ms-hero .ms-hero-media { width: 380px !important; max-width: 70vw; }
}
body .ms-hero .ms-hero-media .elementor-widget-video,
body .ms-hero .ms-hero-media .elementor-wrapper { border-radius: inherit; overflow: hidden; }
/* Vertical video frames: the shape comes from the wrapper (Elementor gives it 16:9 by default) */
body .ms-ratio-916 .elementor-wrapper { position: relative; aspect-ratio: 9 / 16 !important; height: auto; }
body .ms-ratio-916 .elementor-wrapper video { position: absolute; inset: 0; width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover; }
@media (min-width: 1025px) {
  body .ms-hero-stats .elementor-counter { align-items: flex-start !important; text-align: left; }
  body .ms-hero-stats .elementor-counter-number-wrapper { justify-content: flex-start !important; }
  body .ms-hero-stats .elementor-counter-title { text-align: left; }
}
@media (max-width: 1024px) {
  body .ms-hero-stats.e-con-full { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-around; }
  body .ms-hero-stats > .e-con { width: 33.33% !important; }
}
@media (max-width: 767px) {
  body .ms-hero .ms-hero-media { border-radius: 0 !important; box-shadow: none !important; }
  body .ms-hero .ms-hero-media .elementor-wrapper { aspect-ratio: auto !important; height: min(177.78vw, calc(100svh - 70px)); }
  body .ms-hero-stats .elementor-counter { align-items: center; text-align: center; }
  body .ms-hero-stats .elementor-counter-number-wrapper,
  body .ms-hero-stats .elementor-counter-title { justify-content: center; text-align: center; }
}

/* Carousel + gallery: rounded photos, wine arrows */
body .ms-carousel .swiper-slide img,
body .ms-gallery .gallery-item img { border-radius: 14px; }
body .ms-carousel .elementor-swiper-button {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 18, 61, 0.6);
  border-radius: 50%;
  background: rgba(5, 3, 4, 0.72);
  color: #fff;
}
body .ms-carousel .elementor-swiper-button:hover { background: var(--e-global-color-primary, #c8123d); }
body .ms-gallery .gallery { margin: 0; }
body .ms-gallery .gallery img { border: 0 !important; }
body .ms-gallery .gallery-item { overflow: hidden; border-radius: 14px; }

/* Artist cards */
body .ms-artist-card .ms-card-photo img { border-radius: 0; }
body .ms-artist-card .elementor-widget-image { overflow: hidden; }

/* Testimonial cards: compact, with a neon quote mark */
body .ms-quote-card .elementor-testimonial-content::before {
  content: "\201C";
  display: block;
  margin: 0 auto 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.7;
  color: var(--e-global-color-accent, #ff2d55);
  text-shadow: 0 0 22px rgba(255, 45, 85, 0.6);
}
body .ms-quote-card .elementor-testimonial-image { display: none; }
body .ms-quote-card .elementor-testimonial-content { font-style: normal; }
body .ms-quote-card .elementor-testimonial-meta { margin-top: 14px; }
body .ms-quote-card .elementor-testimonial-details { text-align: center; }

/* On phones a row of cards becomes a swipeable strip */
@media (max-width: 767px) {
  body .ms-snap-mobile.e-con-full,
  body .ms-snap-mobile > .e-con-inner {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;  /* centred overflow would hide the first card */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 14px;
    scrollbar-width: none;
  }
  body .ms-snap-mobile::-webkit-scrollbar { display: none; }
  body .ms-snap-mobile > .elementor-element,
  body .ms-snap-mobile > .e-con-inner > .elementor-element {
    flex: 0 0 86% !important;
    scroll-snap-align: center;
  }
}

/* Accordion on dark */
body .ms-accordion .elementor-accordion-item { border-width: 0 0 1px 0 !important; }
body .ms-accordion .elementor-tab-title { padding-left: 0 !important; padding-right: 0 !important; }
body .ms-accordion .elementor-tab-content { border-top: 0 !important; padding-left: 0 !important; }

/* Map: dark tones to match the page */
body .ms-map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.55) contrast(0.95); }

/* Artist page hero: readable text over the video */
body .ms-artist-hero .elementor-heading-title,
body .ms-artist-hero .elementor-widget-text-editor { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }

/* Footer */
body .ms-footer-logo img { width: 96px; height: 96px; }
body .ms-footer-nav .elementor-button { padding: 12px 20px; font-size: 11px; }
body .ms-site-footer .elementor-widget-text-editor a { color: var(--ms-wine-light); }

/* Current homepage: the studio artwork is drawn in black on a transparent PNG — shown in white on the black page */
body .elementor-4395 .elementor-element-b14f831 img { filter: invert(1) hue-rotate(180deg); }

/* 404: the theme's button is dark-on-dark — give it the site's wine button look */
body.error404 .qodef-button,
body.error404 .qodef-button.qodef-layout--filled,
body.error404 .qodef-button.qodef-layout--outlined {
  background-color: var(--e-global-color-primary, #c8123d) !important;
  border-color: var(--e-global-color-primary, #c8123d) !important;
  border-radius: 999px;
  color: #fff !important;
  padding: 16px 34px;
}
body.error404 .qodef-button:hover { background-color: var(--e-global-color-accent, #ff2d55) !important; border-color: var(--e-global-color-accent, #ff2d55) !important; }

/* In-page anchors (Elementor "Menu Anchor") land below the fixed header, also when arriving from another page */
body .elementor-menu-anchor { scroll-margin-top: 100px; }
@media (max-width: 1024px) { body .elementor-menu-anchor { scroll-margin-top: 76px; } }

/* ---------- WhatsApp button (Click to Chat): wine neon instead of the stock green square ---------- */
body #ht-ctc-chat { bottom: 22px !important; right: 22px !important; }
body #ht-ctc-chat .ctc_s_2 { position: relative; cursor: pointer; }
body #ht-ctc-chat .ctc_s_2 svg {
  position: relative;
  z-index: 1;
  width: 60px !important;
  height: 60px !important;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff2d55 0, #c8123d 45%, #5c0a1f 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 45, 85, 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
/* drop the green rounded square, keep the white WhatsApp glyph */
body #ht-ctc-chat .ctc_s_2 svg use { fill: transparent !important; }
body #ht-ctc-chat .ctc_s_2:hover svg {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 44px rgba(255, 45, 85, 0.85);
}
/* two neon rings breathing out of the button */
body #ht-ctc-chat .ctc_s_2::before,
body #ht-ctc-chat .ctc_s_2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 45, 85, 0.7);
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  body #ht-ctc-chat .ctc_s_2::before { animation: ms-wa-ring 2.6s ease-out infinite; }
  body #ht-ctc-chat .ctc_s_2::after { animation: ms-wa-ring 2.6s ease-out 1.3s infinite; }
}
@keyframes ms-wa-ring { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
/* the "WhatsApp" label that the plugin shows on hover */
body #ht-ctc-chat .ctc_cta {
  background: rgba(5, 3, 4, 0.92) !important;
  border: 1px solid rgba(255, 45, 85, 0.55);
  border-radius: 999px !important;
  color: #fff !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px !important;
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.35);
}

/* ---------- Message band: one row, outlined and solid phrases ---------- */
body .ms-bands .ms-band-word .elementor-heading-title { padding: 0 6px; }

/* ---------- Brands strip: bigger logos, fading edges, logos that breathe one after another ---------- */
body .ms-brands-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
body .ms-brand-logo img { max-width: 230px; max-height: 92px; opacity: 0.7; }
@media (max-width: 767px) { body .ms-brand-logo img { max-width: 170px; max-height: 66px; } }
@media (prefers-reduced-motion: no-preference) {
  body .ms-brands-strip.ms-in-view .ms-brand-logo img { animation: ms-brand-breathe 3.2s ease-in-out infinite alternate; }
  body .ms-brands-strip .ms-brand-logo:nth-child(4n+2) img { animation-delay: -0.8s; }
  body .ms-brands-strip .ms-brand-logo:nth-child(4n+3) img { animation-delay: -1.6s; }
  body .ms-brands-strip .ms-brand-logo:nth-child(4n+4) img { animation-delay: -2.4s; }
}
@keyframes ms-brand-breathe { from { opacity: 0.45; } to { opacity: 1; } }
body .ms-brands-strip .ms-brand-logo:hover img { opacity: 1; animation-play-state: paused; }

/* ---------- Hero sound button: pulses and says "Sunet" until the sound is on ---------- */
body .ms-hero .ms-video__btn--sound { overflow: visible; }
body .ms-hero .ms-video__btn--sound[aria-pressed="false"]::after {
  content: "Sunet";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(5, 3, 4, 0.8);
  border: 1px solid rgba(255, 45, 85, 0.6);
  color: #fff;
  font: 600 11px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
body .ms-hero .ms-video__btn--sound { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  body .ms-hero .ms-video__btn--sound[aria-pressed="false"] { animation: ms-sound-pulse 1.8s ease-in-out infinite; }
}
@keyframes ms-sound-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0); } }
