/* ============================================================
   HERO SLIDER (CLEANED + CENTERED IMAGE FRAME)
   ============================================================ */

.hero-slider {
    position: relative;
    height: 541px;
    overflow: hidden;
    background: #d7cd00 !important;
    margin-bottom: 0 !important;

    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease-in-out;
}

.hero-slider.ready {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   SLIDES
   ============================================================ */

.hero-slider .slide {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 70%;          /* controls side padding */
    height: 84%;         /* controls top/bottom padding */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 1s ease;

    border-radius: 12px;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* ============================================================
   OVERLAY
   ============================================================ */

.hero-slider .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ============================================================
   CONTENT
   ============================================================ */

.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--space-4);
    z-index: 2;
    bottom: var(--space-6);
}

/* ============================================================
   TEXT STYLING
   ============================================================ */

.hero-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;

    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.95),
         1px -1px 0 rgba(0,0,0,0.95),
        -1px  1px 0 rgba(0,0,0,0.95),
         1px  1px 0 rgba(0,0,0,0.95),
        0 4px 8px rgba(0,0,0,0.7),
        0 0 12px rgba(255,255,255,0.55),
        0 0 24px rgba(255,255,255,0.35);

    margin-bottom: var(--space-3);

    visibility: hidden;
    display: none;
}

.hero-content p {
    max-width: 440px;
    font-size: var(--fs-lg);
    color: var(--chrome-white);
    text-align: center;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */

.hero-content .btn {
    box-shadow:
        0 0 12px rgba(212,160,23,0.55),
        0 0 28px rgba(212,160,23,0.35);
}

/* ============================================================
   NAV ARROWS
   ============================================================ */

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    background: rgba(0,0,0,0.45);
    border: none;
    color: var(--chrome-white);

    width: 44px;
    height: 44px;
    border-radius: 50%;

    font-size: 24px;
    cursor: pointer;

    transition: background 0.3s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(0,0,0,0.75);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

/* ============================================================
   DOTS
   ============================================================ */

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
    visibility: hidden;
    display: none;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots button.active {
    background: #FFED00;
    border-color: #FFED00;
}

/* ============================================================
   BOTTOM FADE
   ============================================================ */

.hero-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        #f3f2f0
    );
    z-index: 3;
    pointer-events: none;
}

/* ============================================================
   LOADER
   ============================================================ */

#heroLoader{
  position:fixed;
  inset:0;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#heroLoader .spinner{
  width:60px;
  height:60px;
  border:6px solid #444;
  border-top-color:#FFED00;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .hero-slider {
        height: 240px;
    }

    .hero-slider .slide {
        
        border-radius: 0;
    }

    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .testimonial-carousel{
        visibility:hidden;
        display:none;
    }
}

.hero-slider .slide{
border-radius:14px;
box-shadow:0 12px 40px rgba(0,0,0,.35);
}