/*
 * Hero Slider — Cinematic Dark
 * Loaded on front page only via functions.php
 */

/* ─── WRAPPER ─── */
.hs-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #001515;
    /* z-index: 1 allows next section's rounded top corners to overlay cleanly */
    z-index: 1;
}

/* ─── SLIDES ─── */
.hs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s cubic-bezier(.4, 0, .2, 1);
}
.hs-slide.is-on {
    opacity: 1;
    visibility: visible;
}

/* Background image — Ken Burns zoom in on activate */
.hs-bg {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 8s ease-out;
    will-change: transform;
}
.hs-slide.is-on .hs-bg {
    transform: scale(1);
}

/* Multi-layer overlay — deep teal darkness, not flat black */
.hs-ov {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 8, 8, .96) 0%, rgba(0, 20, 20, .54) 42%, rgba(0, 28, 28, .18) 100%),
        linear-gradient(112deg, rgba(0, 10, 10, .55) 0%, transparent 60%);
}

/* ─── SLIDE CONTENT ─── */
.hs-body {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    /* RTL: padding-right = start side breathing room, padding-left = end side limit */
    padding: 0 6% 108px 22%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* flex-start في RTL = يمين (بداية القراءة العربية) */
    text-align: right;
    z-index: 5;
}

/* Tag badge */
.hs-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s .6s, transform .6s .6s;
}
.hs-slide.is-on .hs-tag {
    opacity: 1;
    transform: translateY(0);
}
.hs-tag-bar {
    width: 30px;
    height: 1px;
    background: var(--brand-gold);
}
.hs-tag-txt {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--brand-gold);
}

/* Main title */
.hs-title {
    font-size: clamp(2rem, 5.5vw, 4.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s .85s, transform .8s .85s;
}
.hs-slide.is-on .hs-title {
    opacity: 1;
    transform: translateY(0);
}

/* Description */
.hs-desc {
    font-size: clamp(.9rem, 1.3vw, 1.1rem);
    font-weight: 300;
    color: rgba(245, 240, 232, .58);
    line-height: 1.9;
    max-width: 500px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s 1.1s, transform .7s 1.1s;
}
.hs-slide.is-on .hs-desc {
    opacity: 1;
    transform: translateY(0);
}

/* CTA button — يطابق تصميم أزرار الموقع (rounded-2xl + bg-brand-dark) */
.hs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: 1rem;           /* rounded-2xl — نفس شكل أزرار الموقع */
    padding: 14px 32px;
    font-family: 'Tajawal', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s 1.3s, transform .6s 1.3s, background .3s, box-shadow .3s, color .3s;
}
.hs-slide.is-on .hs-btn {
    opacity: 1;
    transform: translateY(0);
}
.hs-btn:hover {
    background: var(--brand-gold);
    color: var(--brand-dark);
    box-shadow: 0 10px 30px rgba(212, 175, 55, .3);
}
.hs-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* ─── VERTICAL COUNTER (physical left side) ─── */
.hs-ctr {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.hs-ctr-n {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 100;
    color: #fff;
    line-height: 1;
}
.hs-ctr-n sup {
    font-size: .85rem;
    font-weight: 300;
    color: var(--brand-gold);
    vertical-align: top;
    margin-top: .4em;
    display: inline-block;
    margin-right: 2px;
}
.hs-ctr-rule {
    width: 1px;
    height: 52px;
    margin: 10px 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, .6), transparent);
}
.hs-ctr-t {
    font-family: 'Outfit', sans-serif;
    font-size: .68rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .22);
    letter-spacing: 2.5px;
}

/* ─── DOT NAVIGATION (bottom center) ─── */
.hs-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}
.hs-dot-i {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.hs-dot-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 300;
    color: rgba(255, 255, 255, .22);
    letter-spacing: 2px;
    transition: color .3s;
}
.hs-dot-i.is-on .hs-dot-lbl {
    color: var(--brand-gold);
}
.hs-dot-tr {
    position: relative;
    overflow: hidden;
    height: 1px;
    width: 16px;
    background: rgba(255, 255, 255, .14);
    transition: width .35s;
}
.hs-dot-i.is-on .hs-dot-tr {
    width: 42px;
}
.hs-dot-fl {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--brand-gold);
}

/* ─── PROGRESS BAR (bottom edge — drives auto-advance timer) ─── */
.hs-prog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .06);
    z-index: 10;
}
.hs-prog-bar {
    height: 100%;
    background: linear-gradient(to left, #e8c94a, var(--brand-gold));
    width: 0%;
}

/* ─── NAV ARROWS ─── */
.hs-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 10;
    transition: border-color .3s, background .3s;
}
.hs-arr:hover {
    border-color: var(--brand-gold);
    background: rgba(212, 175, 55, .08);
}
.hs-arr svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(255, 255, 255, .6);
    stroke-width: 1.5;
    transition: stroke .3s;
}
.hs-arr:hover svg {
    stroke: var(--brand-gold);
}
/* RTL: previous = right side (start), next = left side (end) */
.hs-arr-p { right: 6%; }
.hs-arr-n { left: 6%; }

/* ─── GRAIN TEXTURE OVERLAY ─── */
.hs-grain {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: .022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hs-ctr { display: none; }
    .hs-body { padding: 0 6% 100px 6%; }
}

@media (max-width: 768px) {
    .hs-body {
        padding: 0 5% 90px 5%;
        align-items: flex-start; /* flex-start في RTL = يمين */
        text-align: right;
    }
    .hs-title { font-size: clamp(1.9rem, 8vw, 3rem); max-width: 100%; }
    .hs-desc { font-size: .9rem; max-width: 100%; }
    .hs-arr { width: 38px; height: 38px; }
    .hs-arr-p { right: 3%; }
    .hs-arr-n { left: 3%; }
    .hs-dots { gap: 14px; }
}


/* ═══════════════════════════════════════════════════════════════
   BRAND STATEMENT SECTION — القسم الأبيض بعد الهيرو
   (يعيد إنتاج محتوى hero-content-inside القديم كقسم مستقل)
════════════════════════════════════════════════════════════════ */

.hbs-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    z-index: 10; /* يسمح للـ spotlight التالي بالتراكب */
}

/* المحتوى المركزي */
.hbs-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hbs-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, #004d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hbs-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: rgba(0, 43, 43, .52);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

/* الزر — يطابق أزرار الموقع تماماً */
.hbs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-dark);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 1rem;  /* rounded-2xl */
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s, transform .25s, box-shadow .3s;
}
.hbs-btn:hover {
    background: var(--brand-gold);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, .28);
}

@media (max-width: 768px) {
    .hbs-title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .hbs-subtitle { font-size: 1rem; }
}
