/*
 * Homepage hero — one headline, two equal "paths":
 *   ابحث عن مصنع (search listed factories)  |  إطلب مصنعك (request a factory)
 * Brand blue (#0063dd) for search, warm amber for the request service.
 */
.home-hero{
    --hh-blue:#0063dd;
    --hh-blue-light:#2f86ff;
    --hh-blue-dark:#0050b8;
    --hh-amber:#ffa22e;
    --hh-amber-dark:#f2690c;
    --hh-ink:#0f1b2d;
    --hh-text:#4a5568;
    --hh-muted:#7a8597;
    --hh-line:#e1e7ef;
    --hh-field:#f5f7fb;
    --hh-green:#12b76a;
    overflow:visible !important;          /* .ken-burns clips; the background layer clips itself so menus can overflow */
    background:#07142b;
    text-align:right;
}
.home-hero__bg{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;z-index:0}
.home-hero__overlay{
    position:absolute;top:0;right:0;bottom:0;left:0;
    background:
        radial-gradient(900px 520px at 88% 4%, rgba(0,99,221,.42), transparent 62%),
        radial-gradient(760px 460px at 6% 100%, rgba(255,162,46,.20), transparent 60%),
        linear-gradient(180deg, rgba(5,13,30,.82) 0%, rgba(5,13,30,.60) 42%, rgba(5,13,30,.92) 100%);
}
.home-hero .home-hero__body{position:relative;z-index:1;padding:100px 16px 84px !important} /* the theme header is absolutely positioned over the hero */
.home-hero__inner{width:100%;max-width:1200px;margin:0 auto}

/* headline */
.home-hero__head{max-width:860px;margin:0 auto 44px;text-align:center;color:#fff}
.home-hero__eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    padding:7px 18px;border-radius:999px;
    background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
    color:#e9f1ff;font-size:14px;
}
.home-hero__eyebrow i{color:var(--hh-amber)}
.home-hero .home-hero__head .home-hero__title{
    margin:20px 0 14px;color:#fff;
    font-family:sky-bold,Poppins,sans-serif;font-weight:normal;
    font-size:44px;font-size:clamp(2rem,4.3vw,3.4rem);line-height:1.3;
    text-transform:none;text-shadow:0 6px 30px rgba(0,0,0,.35);
}
/* neutralise the theme's hero paragraph styling (inline-block, letter-spacing, uppercase, 50% white) */
.home-hero.hero .hero-body p{display:block;width:auto;letter-spacing:0;text-transform:none;text-shadow:none;font-weight:normal}
.home-hero.hero .home-hero__head .home-hero__lead{margin:0 auto;max-width:720px;color:rgba(255,255,255,.86);font-size:17px;line-height:1.9;text-align:center}
.home-hero .hero-path li, .home-hero .hero-path label, .home-hero .hero-path span{text-align:inherit}

/* the two paths */
.home-hero__paths{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.hero-path{
    position:relative;display:flex;flex-direction:column;
    padding:30px 28px 28px;border-radius:22px;background:#fff;
    box-shadow:0 34px 70px -28px rgba(0,8,24,.75), 0 2px 0 rgba(255,255,255,.4) inset;
    color:var(--hh-text);text-align:right;
    animation:hh-rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.hero-path--request{animation-delay:.08s}
.hero-path::before{
    content:'';position:absolute;top:0;right:30px;left:30px;height:4px;border-radius:0 0 6px 6px;
    background:linear-gradient(90deg, var(--hh-blue-light), var(--hh-blue));
}
.hero-path--request::before{background:linear-gradient(90deg, var(--hh-amber), var(--hh-amber-dark))}

.hero-path__head{display:flex;align-items:flex-start;gap:16px;margin-bottom:14px}
.hero-path__icon{
    flex:0 0 56px;height:56px;border-radius:16px;
    display:flex;align-items:center;justify-content:center;
    background:#eaf2ff;color:var(--hh-blue);font-size:22px;
}
.hero-path--request .hero-path__icon{background:#fff2e1;color:#ec7a00}
.home-hero .hero-path .hero-path__title{
    display:flex;flex-wrap:wrap;align-items:center;gap:8px;
    margin:2px 0 6px;color:var(--hh-ink);
    font-family:sky-bold,Poppins,sans-serif;font-weight:normal;font-size:1.45rem;line-height:1.4;
    text-align:right;text-transform:none;
}
.hero-path__badge{
    font-family:sky,Poppins,sans-serif;font-size:12px;font-weight:bold;
    color:#a85400;background:#fff2e1;border:1px solid #ffd7a3;border-radius:999px;padding:2px 10px;
}
.home-hero.hero .hero-path .hero-path__desc{margin:0;color:var(--hh-text);font-size:14.5px;line-height:1.85;text-align:right}

.home-hero.hero .hero-path .hero-path__stat{
    align-self:flex-start;display:inline-flex;align-items:center;gap:8px;
    margin:0 0 16px;padding:5px 12px;border-radius:999px;
    background:#eafaf1;color:#0b7a43;font-size:13px;font-weight:600;
}
.hero-path__pulse{width:8px;height:8px;border-radius:50%;background:var(--hh-green);animation:hh-pulse 2s infinite}

.hero-path__points{list-style:none;display:grid;gap:8px;margin:2px 0 18px;padding:0}
.home-hero .hero-path__points li{
    display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;
    background:#fff8ef;color:#5a4630;font-size:14px;font-weight:600;
}
.hero-path__points i{
    flex:0 0 22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:#fff;color:#ec7a00;font-size:12px;box-shadow:0 1px 2px rgba(236,122,0,.25);
}

/* request card: the button opens the form dialog; pushed down so both call-to-actions line up */
.hero-path__cta{margin-top:auto}
.home-hero a.hero-btn{text-decoration:none !important;color:#fff}
.home-hero.hero .hero-path .hero-path__note{margin:10px 0 0;text-align:center;color:var(--hh-muted);font-size:13px}
.hero-path__note i{margin-left:6px;color:var(--hh-green)}

/* forms: pushed to the bottom so both call-to-actions line up */
.hero-path__form{margin-top:auto;display:flex;flex-direction:column;gap:14px}
.hero-path__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.hero-field{min-width:0}
.hero-field--wide{grid-column:1 / -1}
.hero-field__label{display:block;margin:0 0 6px;color:#344054;font-size:13px;font-weight:600;text-align:right}

.hero-control{
    width:100%;height:52px;padding:0 14px;
    border:1px solid var(--hh-line);border-radius:12px;background:var(--hh-field);
    color:var(--hh-ink);font-size:15px;font-family:inherit;text-align:right;
    transition:border-color .2s, background-color .2s, box-shadow .2s;
}
.hero-control::placeholder{color:#9aa4b2}
.hero-control:hover{border-color:#c6d1df}
.hero-control:focus, .hero-control[aria-expanded="true"]{outline:none;border-color:var(--hh-blue);background:#fff;box-shadow:0 0 0 4px rgba(0,99,221,.14)}

/* native select (request card) */
.hero-select{position:relative}
.hero-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-left:40px;cursor:pointer}
.hero-select > i, .hero-dropdown__toggle > i{color:var(--hh-muted);font-size:12px;pointer-events:none}
.hero-select > i{position:absolute;left:16px;top:50%;transform:translateY(-50%)}

/* number + unit */
.hero-unit{position:relative}
.hero-unit .hero-control{padding-left:56px;text-align:left;font-variant-numeric:tabular-nums}
.hero-unit__suffix{
    position:absolute;top:1px;bottom:1px;left:1px;width:46px;border-radius:11px 0 0 11px;
    display:flex;align-items:center;justify-content:center;
    border-right:1px solid var(--hh-line);color:var(--hh-muted);font-size:13px;font-weight:bold;
}

/* checkbox dropdowns (search card); Bulma makes .dropdown inline-flex */
.home-hero .hero-dropdown{position:relative;display:block;width:100%}
.home-hero .hero-dropdown .hero-dropdown__toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:normal;cursor:pointer}
/* assets/css/custom.css sets `#header-bottom-inner button{padding:10px 0}` — match its ID to win */
#header-bottom-inner .home-hero .hero-dropdown__toggle{padding:0 14px}
#header-bottom-inner .home-hero .hero-btn{padding:0 20px}
.hero-dropdown__toggle::after{display:none}
.hero-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9aa4b2}
.hero-dropdown__toggle.has-value .hero-dropdown__value{color:var(--hh-ink);font-weight:600}
.hero-dropdown__toggle[aria-expanded="true"] > i{transform:rotate(180deg)}
.home-hero .hero-dropdown__menu{
    width:100%;min-width:220px;max-height:310px;overflow:auto;
    margin-top:8px;padding:6px;border:0;border-radius:14px;
    box-shadow:0 22px 50px -12px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.06);
    text-align:right;
}
.home-hero .checkbox-menu li label{
    display:flex;align-items:center;justify-content:flex-start;gap:10px;
    padding:10px 12px;border:0;border-radius:10px;
    color:var(--hh-ink);font-size:15px;cursor:pointer;
}
.home-hero .checkbox-menu li input{margin:0;top:0;width:17px;height:17px;accent-color:var(--hh-blue)}
.home-hero .checkbox-menu li label:hover{background:#f2f6fc}
.home-hero .checkbox-menu li.active label, .home-hero .checkbox-menu li.active label:hover{background:#eaf2ff;color:var(--hh-blue-dark);font-weight:bold}

/* city multi-select (selectize) */
.hero-city .selectize-control{width:100%}
.hero-city .selectize-input{
    display:flex;flex-wrap:wrap;align-items:center;gap:6px;
    min-height:52px;padding:9px 14px;
    border:1px solid var(--hh-line);border-radius:12px;background:var(--hh-field);
    box-shadow:none;font-size:15px;text-align:right;
}
.hero-city .selectize-input.focus{border-color:var(--hh-blue);background:#fff;box-shadow:0 0 0 4px rgba(0,99,221,.14)}
.hero-city .selectize-input > input{font-size:15px !important}
.hero-city .selectize-control.multi .selectize-input > div{
    margin:0;padding:3px 10px;border:0;border-radius:8px;background:#eaf2ff;color:var(--hh-blue-dark);font-weight:600;
}
.hero-city .selectize-dropdown{
    margin-top:8px;border:0;border-radius:14px;overflow:hidden;text-align:right;
    box-shadow:0 22px 50px -12px rgba(15,27,45,.35), 0 0 0 1px rgba(15,27,45,.06);
}
.hero-city .selectize-dropdown .optgroup-header{color:var(--hh-blue);font-weight:bold;background:#f7f9fc}
.hero-city .selectize-dropdown .active{background:#eaf2ff;color:var(--hh-blue-dark)}
.hero-city select[multiple]{width:100%;height:52px;border:1px solid var(--hh-line);border-radius:12px;background:var(--hh-field)} /* before/without JS */

/* buttons */
.hero-btn{
    display:flex;align-items:center;justify-content:center;gap:10px;
    width:100%;height:54px;padding:0 20px;border:0;border-radius:12px;
    color:#fff;font-family:sky-bold,Poppins,sans-serif;font-size:17px;cursor:pointer;
    transition:transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-btn--search{background:linear-gradient(135deg, #2581ff, #0052c2);box-shadow:0 14px 26px -12px rgba(0,82,194,.75)}
.hero-btn--request{background:linear-gradient(135deg, #ffab3d, #f2690c);box-shadow:0 14px 26px -12px rgba(242,105,12,.75)}
.hero-btn:hover{transform:translateY(-2px);filter:brightness(1.05);color:#fff}
.hero-btn:active{transform:translateY(0)}
.hero-btn:focus-visible{outline:none;box-shadow:0 0 0 3px #fff, 0 0 0 6px rgba(0,99,221,.55)}
.hero-btn i{transition:transform .2s ease}
.hero-btn--request:hover i{transform:translateX(-4px)}

/* "أو" between the two paths */
.home-hero__or{display:flex;align-items:center;gap:14px;color:rgba(255,255,255,.75);font-size:14px;font-weight:bold}
.home-hero__or::before, .home-hero__or::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.22)}

@media (min-width:992px){
    .home-hero__paths{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:stretch}
    .home-hero__or{
        position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%);
        width:52px;height:52px;border-radius:50%;justify-content:center;
        background:#0b1a33;border:1px solid rgba(255,255,255,.25);color:#fff;
        box-shadow:0 10px 30px rgba(0,0,0,.45);
    }
    .home-hero__or::before, .home-hero__or::after{display:none}
}
@media (max-width:991px){
    .home-hero .home-hero__body{padding:84px 16px 56px !important}
    .home-hero__head{margin-bottom:32px}
}
@media (max-width:575px){
    .home-hero .home-hero__body{padding:78px 14px 44px !important}
    .home-hero__lead{font-size:15px}
    .hero-path{padding:24px 18px 20px;border-radius:18px}
    .hero-path::before{right:22px;left:22px}
    .hero-path__head{gap:12px}
    .hero-path__icon{flex-basis:46px;height:46px;border-radius:14px;font-size:18px}
    .home-hero .hero-path .hero-path__title{font-size:1.25rem}
}
@media (max-width:379px){
    .hero-path__grid{grid-template-columns:minmax(0,1fr)}
}

@keyframes hh-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes hh-pulse{0%{box-shadow:0 0 0 0 rgba(18,183,106,.55)}70%{box-shadow:0 0 0 8px rgba(18,183,106,0)}100%{box-shadow:0 0 0 0 rgba(18,183,106,0)}}
@media (prefers-reduced-motion: reduce){
    .hero-path, .hero-path__pulse{animation:none}
    .hero-btn, .hero-btn i{transition:none}
}
