/**
 * Hero Section Styles
 * Optimized responsive hero slider for all devices
 *
 * @package Nashrah
 */

/* =====================================================
   HERO ANIMATIONS
   ===================================================== */
@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   HERO SLIDER BASE STYLES
   ===================================================== */
.alaw-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.alaw-hero__slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.alaw-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.alaw-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.alaw-hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.alaw-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 249, 250, 0.75) 100%);
    z-index: 1;
}

.alaw-hero__content {
    position: relative;
    z-index: 3;
}

/* =====================================================
   HERO CONTENT - TYPOGRAPHY
   ===================================================== */
.alaw-hero__badge {
    margin-bottom: 1.5rem;
}

.alaw-hero__badge .badge {
    background: var(--ct-accent-gradient) !important;
    color: var(--ct-text) !important;
    border: 2px solid var(--ct-accent);
    box-shadow: 0 4px 15px rgba(12, 114, 162, 0.3);
    font-weight: 700 !important;
    padding: clamp(0.65rem, 1.5vw, 0.75rem) clamp(1.25rem, 3vw, 1.5rem) !important;
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    border-radius: 0.5rem;
    letter-spacing: 0.5px;
}

.alaw-hero__title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.alaw-hero__title-main {
    display: block;
    font-size: clamp(1.875rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--ct-text);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: -1.5px;
    line-height: 1.25;
    position: relative;
    padding-bottom: 0.5rem;
}

.alaw-hero__title-accent {
    display: block;
    font-size: clamp(1.375rem, 4vw, 2.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0c72a2 0%, #0a5a82 50%, #0c72a2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    text-shadow: none;
    line-height: 1.45;
    margin-top: 0.75rem;
    position: relative;
}

.alaw-hero__title-sub {
    display: block;
    font-size: clamp(1.125rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--ct-text);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    margin-top: 0.25rem;
}

.alaw-hero__description {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--ct-text);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 650px;
    font-weight: 400;
    text-shadow: none;
}

.alaw-hero__actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.alaw-hero__actions .btn {
    min-height: 50px;
    padding: 0.875rem 2rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* =====================================================
   HERO NAVIGATION
   ===================================================== */
.alaw-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--ct-accent);
    color: var(--ct-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alaw-hero__nav:hover {
    background: var(--ct-accent);
    color: var(--ct-text);
    box-shadow: var(--ct-accent-glow);
}

.alaw-hero__nav--prev {
    right: 2rem;
}

.alaw-hero__nav--next {
    left: 2rem;
}

/* =====================================================
   HERO DOTS NAVIGATION
   ===================================================== */
.alaw-hero__dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.alaw-hero__dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(4px);
}

.alaw-hero__dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.alaw-hero__dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.alaw-hero__dot.active {
    width: 40px;
    height: 14px;
    border-radius: 7px;
    background: var(--ct-accent);
    border-color: var(--ct-accent);
    box-shadow: 0 0 20px rgba(12, 114, 162, 0.8), 0 4px 12px rgba(12, 114, 162, 0.4);
    transform: scale(1);
}

/* =====================================================
   RESPONSIVE - TABLET (768px - 991px)
   ===================================================== */
@media (max-width: 991.98px) {
    .alaw-hero {
        min-height: 85vh;
    }

    .alaw-hero__slider {
        height: 85vh;
    }

    .alaw-hero__title {
        margin-bottom: 1.5rem;
    }

    .alaw-hero__actions {
        margin-top: 1.75rem;
    }

    .alaw-hero__nav {
        width: 45px;
        height: 45px;
        font-size: 1.35rem;
    }

    .alaw-hero__nav--prev {
        right: 1.5rem;
    }

    .alaw-hero__nav--next {
        left: 1.5rem;
    }

    .alaw-hero__dots {
        bottom: 2rem;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE (≤767px)
   ===================================================== */
@media (max-width: 767.98px) {
    .alaw-hero {
        min-height: 100vh;
    }

    .alaw-hero__slider {
        height: 100vh;
    }

    .alaw-hero__badge {
        margin-bottom: 1.25rem;
    }

    .alaw-hero__title {
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }

    .alaw-hero__title-main {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        letter-spacing: -0.5px;
        padding-bottom: 0.25rem;
    }

    .alaw-hero__title-accent {
        font-size: clamp(1.25rem, 5.5vw, 1.75rem);
        margin-top: 0.5rem;
    }

    .alaw-hero__title-sub {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .alaw-hero__description {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        line-height: 1.65;
        max-width: 100%;
        margin-bottom: 0;
    }

    .alaw-hero__actions {
        margin-top: 1.75rem;
        margin-bottom: 1.5rem;
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .alaw-hero__actions .btn {
        flex: 1;
        min-width: 0;
        min-height: 50px;
        padding: 0.875rem 0.75rem;
        font-size: 0.9rem;
        justify-content: center;
        white-space: nowrap;
    }

    /* Hide arrow navigation on mobile */
    .alaw-hero__nav {
        display: none !important;
    }

    .alaw-hero__dots {
        bottom: 2rem; /* Increased from 1.5rem for better clearance */
        gap: 0.75rem;
    }

    .alaw-hero__dot {
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
    }

    .alaw-hero__dot.active {
        width: 32px;
        height: 12px;
    }
}

/* =====================================================
   RESPONSIVE - SMALL MOBILE (≤575px)
   ===================================================== */
@media (max-width: 575.98px) {
    .alaw-hero {
        min-height: 100vh;
    }

    .alaw-hero__slider {
        height: 100vh;
    }

    .alaw-hero__badge {
        margin-bottom: 1rem;
    }

    .alaw-hero__badge .badge {
        padding: 0.6rem 1.125rem !important;
        font-size: 0.825rem !important;
    }

    .alaw-hero__title {
        margin-bottom: 1.25rem;
        gap: 0.5rem;
    }

    .alaw-hero__title-main {
        font-size: clamp(1.625rem, 8vw, 2rem);
        padding-bottom: 0.25rem;
    }

    .alaw-hero__title-accent {
        font-size: clamp(1.15rem, 6vw, 1.5rem);
        margin-top: 0.375rem;
    }

    .alaw-hero__description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.6;
        margin-bottom: 0;
    }

    .alaw-hero__actions {
        margin-top: 1.5rem;
        margin-bottom: 1.25rem; /* Extra spacing for small mobile */
        gap: 0.75rem;
    }

    .alaw-hero__actions .btn {
        min-height: 50px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .alaw-hero__dots {
        bottom: 1.25rem;
        gap: 0.625rem;
    }

    .alaw-hero__dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }

    .alaw-hero__dot.active {
        width: 28px;
        height: 10px;
    }
}

/* =====================================================
   RESPONSIVE - EXTRA SMALL (≤375px)
   ===================================================== */
@media (max-width: 375px) {
    .alaw-hero {
        min-height: 100vh;
    }

    .alaw-hero__slider {
        height: 100vh;
    }

    .alaw-hero__title {
        margin-bottom: 1rem;
    }

    .alaw-hero__title-main {
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .alaw-hero__title-accent {
        font-size: 1.125rem;
    }

    .alaw-hero__description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .alaw-hero__actions {
        margin-top: 1.25rem;
    }

    .alaw-hero__actions .btn {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .alaw-hero__dots {
        bottom: 1rem;
    }
}

/* =====================================================
   TOUCH DEVICES - IMPROVED UX
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
    .alaw-hero__dot {
        min-width: 16px;
        min-height: 16px;
        width: 16px;
        height: 16px;
    }

    .alaw-hero__dot.active {
        width: 40px;
        height: 16px;
    }

    .alaw-hero__actions .btn {
        min-height: 50px;
    }
}

/* =====================================================
   LANDSCAPE MOBILE - OPTIMIZED
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .alaw-hero {
        min-height: 100vh;
    }

    .alaw-hero__slider {
        height: 100vh;
    }

    .alaw-hero__title {
        margin-bottom: 0.75rem;
        gap: 0.35rem;
    }

    .alaw-hero__description {
        margin-bottom: 0;
    }

    .alaw-hero__actions {
        margin-top: 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .alaw-hero__actions .btn {
        width: auto;
        min-height: 44px;
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    .alaw-hero__dots {
        bottom: 1rem;
    }
}
