/* Smart Hero Slider Pro — Frontend CSS v1.0.0 */

/* Base reset for slider only */
.shsp-wrap, .shsp-wrap * {
  box-sizing: border-box;
}

/* ── Outer container ── */
.shsp-wrap {
  position: relative;
  width: 100%;
  /* height set by dynamic CSS */
  overflow: hidden;
  background: #0A0205;
}

/* ── Track ── */
.shsp-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════
   SLIDE BASE — STACKED
══════════════════════════════ */
.shsp-slide {
  /* Hidden by default — always */
  display: none !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.shsp-slide.shsp-active {
  display: flex !important;
  align-items: center;
}

/* ── Background image ── */
.shsp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.06);
  transition: transform 7s ease;
  will-change: transform;
}
.shsp-slide.shsp-active .shsp-bg {
  transform: scale(1);
}

/* Gradient fallbacks */
.shsp-bg-gradient {
  background-image:
    radial-gradient(ellipse 75% 65% at 72% 48%, rgba(122,0,34,.50) 0%, transparent 68%),
    radial-gradient(ellipse 50% 70% at 18% 55%, rgba(201,168,76,.10) 0%, transparent 60%),
    linear-gradient(130deg, #0D0308 0%, #180610 52%, #4D0016 100%);
}
.shsp-slide.shsp--maroon .shsp-bg-gradient {
  background-image:
    radial-gradient(ellipse 85% 70% at 28% 42%, rgba(122,0,34,.65) 0%, transparent 60%),
    linear-gradient(148deg, #4D0016 0%, #12040C 58%, #0A0205 100%);
}
.shsp-slide.shsp--deep .shsp-bg-gradient {
  background-image:
    radial-gradient(ellipse 65% 75% at 62% 35%, rgba(201,168,76,.14) 0%, transparent 58%),
    linear-gradient(158deg, #1E0813 0%, #0D0308 45%, #180610 100%);
}

/* ── Overlay ── */
.shsp-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* opacity + color set inline per slide */
}

/* ── Decorative orb ── */
.shsp-orb {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 34vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201,168,76,.16) 0%,
    rgba(122,0,34,.09) 45%,
    transparent 70%
  );
  filter: blur(52px);
  pointer-events: none;
  z-index: 2;
  animation: shsp-orb 10s ease-in-out infinite alternate;
}
@keyframes shsp-orb {
  from { transform: translateY(-54%) scale(1);    }
  to   { transform: translateY(-46%) scale(1.05); }
}

/* Corner marks removed */

/* ══════════════════════════════
   CONTENT SAFE AREA
   — constrained by dynamic CSS —
══════════════════════════════ */
.shsp-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  /* padding + align-items set by dynamic CSS */
}

.shsp-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* max-width + text-align + align-items set by dynamic CSS */
}

/* ── Label ── */
/* ── Shared easing ── */
:root {
  --shsp-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Label / eyebrow — fade + rise ── */
.shsp-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--shsp-body-font, sans-serif);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #C9A84C;
  overflow-wrap: break-word;
  /* animation */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s .05s var(--shsp-ease),
              transform .55s .05s var(--shsp-ease);
}
.shsp-label::before,
.shsp-label::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #7A0022, #C9A84C);
  flex-shrink: 0;
  transition: width .6s .3s var(--shsp-ease);
}
.shsp-slide.shsp-active .shsp-label {
  opacity: 1;
  transform: translateY(0);
}
.shsp-slide.shsp-active .shsp-label::before,
.shsp-slide.shsp-active .shsp-label::after {
  width: 1.6rem;
}

/* ── Heading — clip reveal from bottom ── */
.shsp-heading {
  font-family: var(--shsp-heading-font, serif);
  color: var(--shsp-heading-color, #FDF8F0);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  margin-top: 0;
  /* clip reveal */
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  transition: clip-path .7s .18s var(--shsp-ease),
              transform .7s .18s var(--shsp-ease);
}
.shsp-slide.shsp-active .shsp-heading {
  clip-path: inset(0 0 0% 0);
  transform: translateY(0);
}

/* ── Subheading — clip reveal, slightly delayed ── */
.shsp-subheading {
  font-family: var(--shsp-heading-font, serif);
  font-style: italic;
  color: var(--shsp-sub-color, #C9A84C);
  font-weight: 300;
  line-height: 1.2;
  margin-top: 0;
  overflow-wrap: break-word;
  /* clip reveal */
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  transition: clip-path .7s .32s var(--shsp-ease),
              transform .7s .32s var(--shsp-ease);
}
.shsp-slide.shsp-active .shsp-subheading {
  clip-path: inset(0 0 0% 0);
  transform: translateY(0);
}

/* ── Body text — fade + rise ── */
.shsp-body {
  font-family: var(--shsp-body-font, sans-serif);
  color: var(--shsp-body-color, rgba(253,248,240,.78));
  font-weight: 300;
  margin-top: 0;
  max-width: 520px;
  overflow-wrap: break-word;
  word-break: break-word;
  /* animation */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s .48s var(--shsp-ease),
              transform .6s .48s var(--shsp-ease);
}
.shsp-slide.shsp-active .shsp-body {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons — fade + rise ── */
.shsp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  /* animation */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s .62s var(--shsp-ease),
              transform .6s .62s var(--shsp-ease);
}
.shsp-slide.shsp-active .shsp-btns {
  opacity: 1;
  transform: translateY(0);
}

.shsp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--shsp-body-font, sans-serif);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, transform .2s;
  white-space: nowrap;
  /* padding, font-size, border-radius — dynamic CSS */
}
.shsp-btn:hover { transform: translateY(-1px); }

.shsp-btn-primary {
  background: var(--shsp-btn-primary-bg, #7A0022);
  color: var(--shsp-btn-primary-color, #FDF8F0);
  border-color: var(--shsp-btn-primary-bg, #7A0022);
}
.shsp-btn-primary:hover {
  filter: brightness(1.15);
}
.shsp-btn-outline {
  background: transparent;
  color: var(--shsp-btn-outline-color, #C9A84C);
  border-color: var(--shsp-btn-outline-color, #C9A84C);
  opacity: .85;
}
.shsp-btn-outline:hover {
  opacity: 1;
  background: rgba(201,168,76,.08);
}
.shsp-btn-ghost {
  background: rgba(253,248,240,.08);
  color: #FDF8F0;
  border-color: rgba(253,248,240,.2);
}
.shsp-btn-ghost:hover {
  background: rgba(253,248,240,.15);
  border-color: rgba(253,248,240,.4);
}

/* Counter/numbering removed */
.shsp-tot {
  font-size: .55rem;
  letter-spacing: .22em;
  color: rgba(253,248,240,.36);
  text-transform: uppercase;
}

/* ══════════════════════
   ANIMATIONS
══════════════════════ */

/* Fade (default) */
.shsp-anim-fade .shsp-slide { opacity: 0; display: flex !important; transition: opacity var(--shsp-anim-speed, 800ms) ease; pointer-events: none; }
.shsp-anim-fade .shsp-slide.shsp-active { opacity: 1; pointer-events: auto; }
/* Override display:none for fade */
.shsp-anim-fade .shsp-slide { display: flex !important; }

/* Zoom fade */
.shsp-anim-zoom .shsp-slide { opacity: 0; display: flex !important; transform: scale(1.04); transition: opacity var(--shsp-anim-speed, 800ms) ease, transform var(--shsp-anim-speed, 800ms) ease; pointer-events: none; }
.shsp-anim-zoom .shsp-slide.shsp-active { opacity: 1; transform: scale(1); pointer-events: auto; }

/* Slide */
.shsp-anim-slide .shsp-track { overflow: hidden; }
.shsp-anim-slide .shsp-slide { display: flex !important; transform: translateX(100%); transition: transform var(--shsp-anim-speed, 800ms) cubic-bezier(.16,1,.3,1); pointer-events: none; }
.shsp-anim-slide .shsp-slide.shsp-active { transform: translateX(0); pointer-events: auto; }
.shsp-anim-slide .shsp-slide.shsp-leaving { transform: translateX(-100%); }

/* ══════════════════════
   ARROWS
══════════════════════ */
.shsp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,.25);
  background: rgba(10,2,5,.48);
  color: #C9A84C;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s, transform .25s;
}
.shsp-arrow:hover {
  background: rgba(201,168,76,.14);
  border-color: #C9A84C;
  transform: translateY(-50%) scale(1.1);
}
.shsp-prev { left: 22px; }
.shsp-next { right: 22px; }
.shsp-arrow { display: none !important; }

/* ══════════════════════
   DOTS
══════════════════════ */
.shsp-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.shsp-dot {
  width: 30px;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(201,168,76,.28);
  cursor: pointer;
  transition: background .35s, width .35s ease;
}
.shsp-dot.shsp-dot-active {
  width: 54px;
  background: #C9A84C;
}

/* ══════════════════════
   PROGRESS BAR
══════════════════════ */
.shsp-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(201,168,76,.10);
  z-index: 10;
  overflow: hidden;
}
.shsp-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7A0022, #C9A84C);
  transition: width linear;
}

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1024px) {
  /* height from dynamic CSS */
  .shsp-counter { display: none; }
  .shsp-orb { width: min(340px, 42vw); }
  .shsp-corner { display: none; }
}

@media (max-width: 768px) {
  /* height, padding from dynamic CSS */
  .shsp-content {
    align-items: flex-end !important;
    justify-content: center !important;
  }
  .shsp-inner {
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }
  .shsp-btns { justify-content: center !important; }
  .shsp-body { max-width: 100%; }
  .shsp-orb { display: none; }
  /* Mobile: simpler fade-only (no clip) for performance */
  .shsp-heading, .shsp-subheading {
    clip-path: none !important;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s .18s var(--shsp-ease),
                transform .55s .18s var(--shsp-ease);
  }
  .shsp-slide.shsp-active .shsp-heading,
  .shsp-slide.shsp-active .shsp-subheading {
    opacity: 1;
    transform: translateY(0);
  }
  .shsp-arrow { display: none; }
  .shsp-dot { width: 22px; }
  .shsp-dot.shsp-dot-active { width: 40px; }
  .shsp-overlay {
    /* Slightly heavier on mobile for readability */
    opacity: 0.72 !important;
  }
  /* Slide animation override for mobile */
  .shsp-anim-fade .shsp-slide,
  .shsp-anim-zoom .shsp-slide,
  .shsp-anim-slide .shsp-slide {
    display: none !important;
  }
  .shsp-anim-fade .shsp-slide.shsp-active,
  .shsp-anim-zoom .shsp-slide.shsp-active,
  .shsp-anim-slide .shsp-slide.shsp-active {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .shsp-btns { flex-direction: column; width: 100%; }
  .shsp-btn  { justify-content: center; width: 100%; }
  .shsp-dots { bottom: 16px; }
}
