/* ============================================================
   AVIO — FIXES  (v3.0)
   Upload to: /wp-content/themes/avio-theme/avio-fixes.css
   ============================================================ */


/* ----------------------------------------------------------
   1. SHOW / HIDE DESKTOP vs MOBILE SLIDER
   ---------------------------------------------------------- */
.desktop-slider-only { display: block; width: 100%; overflow: hidden; }
.mobile-slider-only  { display: none; }

@media (max-width: 768px) {
    .desktop-slider-only { display: none; }
    .mobile-slider-only  { display: block; }
}


/* ----------------------------------------------------------
   2. HERO SLIDER — LAYOUT
   ---------------------------------------------------------- */

.avio-hero-slider-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0d1f0f;
    box-sizing: border-box;
}

/*
 * NO transform property here at all.
 * JS sets track.style.transform as an inline style.
 * If CSS declares transform with !important it overrides
 * inline styles and the slider will not move.
 */
.avio-hero-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.avio-hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box;
    aspect-ratio: 1920 / 695;
    min-height: 400px;
    max-height: 700px;
}

/*
 * Image fills slide via absolute positioning.
 * !important overrides the common theme rule:
 *   img { max-width:100%; height:auto; }
 * which would collapse a fixed-height container.
 */
.avio-hero-slide img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* ----------------------------------------------------------
   3. HERO SLIDER — OVERLAY & TEXT
   ---------------------------------------------------------- */

.avio-slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(10, 40, 15, 0.80) 0%,
        rgba(10, 40, 15, 0.45) 50%,
        rgba(10, 40, 15, 0.05) 100%
    );
    box-sizing: border-box;
}

/* Slide 1 — light illustrated background: remove dark tint */
.avio-hero-slide.avio-slide--light-bg .avio-slide-overlay {
    background: none !important;
}

.avio-slide-content {
    position: relative;
    z-index: 3;
    max-width: 580px;
    width: 100%;
    padding: 0 clamp(24px, 5vw, 72px);
    box-sizing: border-box;
}

.avio-slide-tag {
    display: inline-block;
    background: #f5a623;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Green tag on light-bg slide */
.avio-hero-slide.avio-slide--light-bg .avio-slide-tag {
    background: #1a6b2f;
    color: #fff;
}

/* Heading: white on photo slides */
.avio-slide-h2 {
    font-size: clamp(22px, 3.2vw, 50px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.18 !important;
    margin: 0 0 14px !important;
    max-width: 500px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    word-break: break-word;
}

/* Heading: dark on slide 1 */
.avio-slide-h2--dark {
    color: #162816 !important;
    text-shadow: none !important;
}

/* Paragraph: white on photo slides */
.avio-slide-p {
    font-size: clamp(13px, 1.3vw, 16px) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 430px;
    margin: 0 0 24px !important;
    line-height: 1.65 !important;
}

/* Paragraph: dark on slide 1 */
.avio-slide-p--dark {
    color: rgba(22, 40, 22, 0.82) !important;
}

.avio-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: #1a6b2f;
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.25s, transform 0.2s;
    box-shadow: 0 4px 18px rgba(26, 107, 47, 0.45);
    white-space: nowrap;
}
.avio-slide-btn:hover {
    background: #155726;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none !important;
}


/* ----------------------------------------------------------
   4. HERO SLIDER — ARROWS & DOTS
   ---------------------------------------------------------- */
.avio-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.avio-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.08);
}
.avio-slider-arrow.prev { left:  clamp(10px, 2.5vw, 32px); }
.avio-slider-arrow.next { right: clamp(10px, 2.5vw, 32px); }

.avio-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.avio-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.avio-slider-dot.active {
    background: #fff;
    transform: scale(1.35);
}


/* ----------------------------------------------------------
   5. HERO SLIDER — RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .avio-hero-slide   { min-height: 340px; }
    .avio-slide-content { max-width: 460px; }
}

@media (max-width: 600px) {
    .avio-hero-slide {
        aspect-ratio: 4 / 3;
        min-height: 260px;
        max-height: 420px;
    }
    .avio-slide-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 40, 15, 0.15) 0%,
            rgba(10, 40, 15, 0.80) 100%
        ) !important;
        align-items: flex-end !important;
        padding-bottom: 40px;
    }
    .avio-hero-slide.avio-slide--light-bg .avio-slide-overlay {
        background: rgba(255, 255, 255, 0.60) !important;
        align-items: flex-end !important;
    }
    .avio-slide-content  { max-width: 100%; padding: 0 18px; }
    .avio-slide-h2       { font-size: clamp(17px, 5.5vw, 26px) !important; margin-bottom: 8px !important; }
    .avio-slide-h2--dark { color: #162816 !important; }
    .avio-slide-p        { font-size: 13px !important; margin-bottom: 14px !important;
                           display: -webkit-box; -webkit-line-clamp: 3;
                           -webkit-box-orient: vertical; overflow: hidden; }
    .avio-slide-p--dark  { color: rgba(22, 40, 22, 0.85) !important; }
    .avio-slide-btn      { font-size: 13px; padding: 9px 16px; }
    .avio-slider-arrow   { width: 34px; height: 34px; font-size: 15px; }
}


/* ----------------------------------------------------------
   6. SCROLL TO TOP BUTTON
   ---------------------------------------------------------- */
#avio-scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a6b2f;
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 107, 47, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
#avio-scroll-top.visible      { opacity: 1; visibility: visible; transform: translateY(0); }
#avio-scroll-top:hover        { background: #155726; transform: translateY(-3px); }
#avio-scroll-top:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; }

@media (max-width: 600px) {
    #avio-scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 17px; }
}


/* ----------------------------------------------------------
   7. NAV ALIGNMENT
   ---------------------------------------------------------- */
.site-header .nav-inner,
.site-header .main-navigation ul,
.site-header .menu,
header nav ul                      { display: flex; align-items: center; }
.site-header .menu-item a,
.main-navigation .menu > li > a   { display: inline-flex; align-items: center; line-height: 1; }
.nav-cta, a.nav-cta,
.site-header .button,
.site-header a[href*="contact"]    { display: inline-flex; align-items: center;
                                     justify-content: center; line-height: 1; vertical-align: middle; }


/* ----------------------------------------------------------
   8. STAT CARD ALIGNMENT
   ---------------------------------------------------------- */
.stat-card, .counter-box, .stats-box, .stat-item {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: space-between;
}
.stat-card .stat-label, .stat-card .counter-label,
.stat-card p, .stats-box p, .counter-box p         { text-align: left; margin: 0 0 8px; line-height: 1.3; }
.stat-card .stat-number, .stat-card .counter,
.stat-card h3, .stats-box h3, .counter-box h3,
.counter-box .count                                 { text-align: left; line-height: 1; margin: 0; }
.stat-card .stat-card-top, .stat-card .card-header {
    display: flex; align-items: center;
    justify-content: space-between; width: 100%; gap: 10px;
}
@media (max-width: 1024px) { .stats-grid, .counter-row, .stats-row { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .stats-grid, .counter-row, .stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; } }
@media (max-width: 400px)  { .stats-grid, .counter-row, .stats-row { grid-template-columns: 1fr !important; } }
