/* ============================================================
   FONTS – ITC NOVARESE (SELF-HOSTED)
   ============================================================ */

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Std-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Ultra.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   ROOT VARIABLES
   ============================================================ */

:root {
    --chrome-white: #f9f9f9;
    --clean-white: #ffffff;
    --deep-black: #040202;
    --asphalt-grey: #3b3331;
    --steel-grey: #918f90;
    --ember-orange: #ff6400;
    --burnt-rust: #ad452e;

    --bg-dark: var(--deep-black);
    --bg-light: #f6f4f2;

    --font-main: 'Roboto', sans-serif;
    --font-headline: 'Oswald', sans-serif;
    --font-section: 'Inter', sans-serif;
    --font-serif: 'ITC Novarese', serif;

    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.75rem;
    --fs-xxl: 2.6rem;

    --radius: 8px;
    --shadow-soft: 0 6px 20px rgba(0,0,0,0.35);

    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    --max-width: 1440px;
}
 
/* ============================================================
   HERO SLIDER (FINAL, STRUCTURE-SAFE)
   ============================================================ */

.hero-slider {
    position: relative;
    height: 491px;
    overflow: hidden;
    background: #000 !important; /* fallback */
    margin-top: 88px !important;
    margin-bottom: 0 !important;
}
 
/* SLIDES */

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

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

/* OVERLAY (readability layer) */

.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);
    /*
    visibility: hidden;
    display: none;
    */
}

/* TEXT STYLING */
.hero-slider {
    display: flex;
    align-items: center;     /* vertical align */
    justify-content: center; /* horizontal align (optional) */
    min-height: 76vh;        /* or 100vh if full screen */
}
.slide {
    min-height: 76vh;        /* or 100vh if full screen */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
     line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    /* Outline + glow magic */
    text-shadow:
        /* black outline (tight strokes) */
        -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),

        /* thicker soft black fallback depth */
        0 4px 8px rgba(0,0,0,0.7),

        /* subtle white outer glow */
        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 */

.hero-content .btn {
    box-shadow:
        0 0 12px rgba(239,108,60,0.45),
        0 0 28px rgba(173,69,46,0.25);
}

/* 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;
}

.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: var(--ember-orange);
    border-color: var(--ember-orange);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
 

/* Mobile */
@media (max-width: 768px) {
    .slideshow{max-height: 240px; overflow: hidden;}
    .slide {
    width: 100%;
     background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
        overflow: hidden;
}

}

@media (max-width: 768px) {
  
    .hero-content h1 {
        font-size: 1.9rem;
    } 

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

    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .testimonial-carousel{
        visibility:hidden;
        display: none;
    }
}


 
.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;
}
 #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:#ff6600;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

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

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

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

.slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Desktop default */
.slide {
    background-image: attr(data-desktop url);
}

/* Mobile override */
@media (max-width: 768px) {
    .slide {
        background-image: attr(data-mobile url);
    }
}
.hero-slider {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slider.ready {
  opacity: 1;
}
