/* MSC Elementor Widgets — base styles that Tailwind utilities can't express.
   (Layout/visuals come from Tailwind classes printed by each widget.) */

.msc-scope .font-serif {
  font-family: 'Playfair Display', ui-serif, Georgia, serif;
}
.msc-scope {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  /* Safety net: never let a section force horizontal page scroll on mobile.
     `clip` (unlike `hidden`) does not break position:sticky descendants. */
  overflow-x: clip;
  max-width: 100%;
}
.msc-scope ::selection { background: #9E1F28; color: #fff; }

/* ---- FAQ toggle: neutralise themed <button> styling so questions wrap ----
   Themes/Elementor often add white-space:nowrap, borders and accent colors to
   <button>; these resets keep the FAQ questions wrapping and on-brand. */
.msc-scope [data-faq-toggle] {
  white-space: normal;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: 100%;
  color: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
}
.msc-scope [data-faq-toggle] h3 {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #0B1F17;
}
.msc-scope [data-faq-plus],
.msc-scope [data-faq-minus] { flex: 0 0 auto; }

/* ---- Mobile nav toggle: neutralise themed <button> styling, keep clickable ---- */
.msc-scope [data-msc-nav-toggle] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.msc-scope [data-msc-nav-toggle] * { pointer-events: none; }

/* ---- Sticky header ----
   A CSS `position: sticky` widget only travels within its own (short) Elementor
   container, so we use fixed positioning + a JS-measured spacer instead. The
   header is left static inside the editor so it doesn't float over the canvas. */
.msc-header { overflow: visible; }
.msc-header.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
}
.admin-bar .msc-header.is-sticky { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .msc-header.is-sticky { top: 46px; }
}
.elementor-editor-active .msc-header.is-sticky { position: static; }
.msc-header-spacer { width: 100%; }

/* Lucide icons inherit Tailwind h-*/w-* sizing applied on the <i>/<svg>. */
.msc-scope [data-lucide],
.msc-scope svg.lucide { width: 1em; height: 1em; }

/* ---- Moving gallery marquee (replaces framer-motion x animation) ---- */
@keyframes msc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.msc-marquee {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: msc-marquee var(--msc-marquee-duration, 34s) linear infinite;
  will-change: transform;
}
.msc-marquee:hover { animation-play-state: paused; }

/* ---- Scroll reveal (replaces framer-motion fadeUp) ---- */
.msc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.msc-reveal.msc-in { opacity: 1; transform: none; }

/* Pop / zoom reveal variant — scales up with a soft spring overshoot.
   Distinct from the directional rise so it doesn't echo a sideways scroll. */
.msc-reveal-pop { transform: scale(0.9); transition: opacity .55s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.msc-reveal-pop.msc-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .msc-marquee { animation: none; }
  .msc-reveal, .msc-reveal-pop { opacity: 1; transform: none; transition: none; }
}

/* Hide horizontal scrollbars on mobile scrollers. */
.msc-no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.msc-no-scrollbar::-webkit-scrollbar { display: none; }

/* In the Elementor editor, reveal elements immediately so editing isn't hidden. */
.elementor-editor-active .msc-reveal,
.elementor-editor-active .msc-reveal-pop { opacity: 1; transform: none; }

/* ---- Photo gallery filter pills ---- */
.msc-scope .msc-filter {
  background: rgba(11, 31, 23, 0.06);
  color: #0B1F17;
  border: 0;
  cursor: pointer;
}
.msc-scope .msc-filter:hover { background: rgba(11, 31, 23, 0.12); }
.msc-scope .msc-filter.is-active { background: #9E1F28; color: #fff; }

/* ---- Lightbox (appended to <body>, so not scoped under .msc-scope) ---- */
.msc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
}
.msc-lightbox.is-open { display: flex; }
.msc-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.msc-lb-fig {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 92vw;
  text-align: center;
}
.msc-lb-img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.msc-lb-cap {
  margin-top: 0.85rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.msc-lb-close, .msc-lb-prev, .msc-lb-next {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msc-lb-close:hover, .msc-lb-prev:hover, .msc-lb-next:hover { background: rgba(255, 255, 255, 0.25); }
.msc-lb-close { top: 18px; right: 18px; }
.msc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.msc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .msc-lb-prev { left: 8px; }
  .msc-lb-next { right: 8px; }
}

/* ---- Blog post content typography (Tailwind preflight strips these) ---- */
.msc-prose { color: #33483e; font-size: 1.05rem; line-height: 1.85; }
.msc-prose h1, .msc-prose h2, .msc-prose h3, .msc-prose h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #0B1F17;
  font-weight: 700;
  line-height: 1.2;
}
.msc-prose h2 { font-size: 1.85rem; margin: 2.1rem 0 0.8rem; }
.msc-prose h3 { font-size: 1.4rem; margin: 1.7rem 0 0.6rem; }
.msc-prose h4 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.msc-prose p { margin: 0 0 1.15rem; }
.msc-prose a { color: #9E1F28; text-decoration: underline; text-underline-offset: 2px; }
.msc-prose a:hover { color: #871922; }
.msc-prose ul, .msc-prose ol { margin: 0 0 1.2rem 1.4rem; padding: 0; }
.msc-prose ul { list-style: disc; }
.msc-prose ol { list-style: decimal; }
.msc-prose li { margin: 0.4rem 0; }
.msc-prose img { max-width: 100%; height: auto; border-radius: 1rem; margin: 1.4rem 0; }
.msc-prose blockquote {
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 4px solid #9E1F28;
  color: #555;
  font-style: italic;
}
.msc-prose strong { color: #0B1F17; font-weight: 700; }
.msc-prose hr { margin: 2rem 0; border: 0; border-top: 1px solid rgba(11,31,23,0.12); }

/* ---- Blog pagination ---- */
.msc-scope .pagination, .msc-scope .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.msc-scope .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 31, 23, 0.06);
  color: #0B1F17;
  font-weight: 600;
  text-decoration: none;
}
.msc-scope .page-numbers.current { background: #9E1F28; color: #fff; }
.msc-scope a.page-numbers:hover { background: rgba(11, 31, 23, 0.14); }

/* ---- Blog header logo sizing (custom logo can be very large) ---- */
.msc-bloglogo img,
.msc-bloglogo .custom-logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; }

/* ---- Video modal player (reuses .msc-lightbox shell) ---- */
.msc-video-holder {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  aspect-ratio: 16 / 9;
}
.msc-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1rem;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

/* ---- Reviews: scrollable quote area inside fixed-height cards ---- */
.msc-review-scroll { scrollbar-width: thin; scrollbar-color: rgba(11, 31, 23, 0.25) transparent; }
.msc-review-scroll::-webkit-scrollbar { width: 6px; }
.msc-review-scroll::-webkit-scrollbar-track { background: transparent; }
.msc-review-scroll::-webkit-scrollbar-thumb { background: rgba(11, 31, 23, 0.22); border-radius: 9999px; }
.msc-review-scroll::-webkit-scrollbar-thumb:hover { background: rgba(11, 31, 23, 0.35); }
