/* Al Betsama Alsfia landing page
   Lightweight, responsive, bilingual (AR/EN) */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --card: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius: 18px;

  --accent: #4cc9a7;
  --accent2: #5aa9ff;
  --danger: #ff6b6b;
  --ok: #4ade80;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  overflow-x: hidden;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(90,169,255,.25), transparent 55%),
              radial-gradient(1100px 700px at 90% 20%, rgba(76,201,167,.22), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skiplink{
  position: absolute;
  top: -50px;
  inset-inline-start: 12px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}
.skiplink:focus{ top: 12px; }

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header_inner{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 180px;
}
.brand_logo{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  object-fit: cover;
}
.brand_text{ display: grid; gap: 2px; }
.brand_name{
  font-weight: 700;
  letter-spacing: .2px;
}
.brand_tag{
  font-size: 13px;
  color: var(--muted);
}

.nav{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}
.nav_toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.nav_toggle span{
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: rgba(255,255,255,.8);
}
.nav_toggle span + span{ margin-top: 4px; }

.nav_links{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.nav_link{
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}
.nav_link:hover{
  background: rgba(255,255,255,.08);
}
.nav_cta{
  background: linear-gradient(135deg, rgba(76,201,167,.22), rgba(90,169,255,.18));
  border: 1px solid rgba(255,255,255,.16);
}


.hero{
  position: relative;
  padding: 56px 0 28px;
  overflow: hidden;
}
.hero_blur{
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}
.hero_inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.hero_title{
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: .2px;
}
.hero_sub{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 54ch;
}
.hero_actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}
.btn_primary{
  background: linear-gradient(135deg, rgba(76,201,167,.30), rgba(90,169,255,.26));
  border-color: rgba(255,255,255,.18);
}
.btn_secondary{
  background: rgba(255,255,255,.06);
}

.hero_media{
  display: grid;
  place-items: center;
}
.hero_card{
  width: min(440px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  position: relative;
}
.hero_img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero_badge{
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(11,18,32,.65);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  max-width: calc(100% - 28px);
}

.hero_meta{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.meta_item{
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.meta_k{
  font-size: 12px;
  color: var(--muted);
}
.meta_v{
  margin-top: 3px;
  font-weight: 700;
}
.meta_link{ color: rgba(255,255,255,.92); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
.meta_sep{ margin: 0 8px; color: rgba(255,255,255,.45); }

.section{
  padding: 56px 0;
}
.section_alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section_head{
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.section_title{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.section_sub{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{
  display: grid;
  gap: 14px;
}
.grid_3{ grid-template-columns: repeat(3, 1fr); }
.grid_2{ grid-template-columns: repeat(2, 1fr); }

.card{
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.card_icon{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.card_title{ margin: 10px 0 0; font-size: 16px; }
.card_text{ margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.product{
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.product_img{
  height: 210px;
  width: 100%;
  object-fit: cover;
}
.product_body{ padding: 14px; }
.product_title{ margin: 0; font-size: 16px; }
.product_text{ margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.note_icon{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.note_title{ font-weight: 900; margin: 0; }
.note_text{ margin: 6px 0 0; color: var(--muted); }

.service{
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.service_icon{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
  font-size: 18px;
}
.service_title{ margin: 2px 0 0; font-size: 16px; }
.service_text{ margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.split{
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.split_media{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.split_img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.split_copy{
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.split_title{ margin: 0; font-size: 18px; }
.split_text{ margin: 10px 0 14px; color: var(--muted); }

.gallery{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gallery_item{
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery_item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery_item:hover img{
  transform: scale(1.03);
}

/* Mobile and small screens: keep in one row with scroll without stretching the whole page */
@media (max-width: 980px){
  .gallery{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery_item{
    flex: 0 0 240px;
    scroll-snap-align: start;
  }
}

.map_wrap{
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.map_actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.map_frame iframe{
  width: 100%;
  height: 420px;
}

.contact_grid{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
  align-items: start;
}
.contact_cards{
  display: grid;
  gap: 12px;
}
.contact_card{
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.contact_card_small{ padding: 14px 16px; }
.contact_k{ color: var(--muted); font-size: 13px; }
.contact_v{ margin-top: 6px; font-weight: 800; }
.contact_link{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }

.form{
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.form_row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{ display: grid; gap: 8px; margin-bottom: 12px; }
.label{ font-size: 13px; color: rgba(255,255,255,.80); }
.input, .textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.35);
  color: rgba(255,255,255,.92);
  outline: none;
}
.input:focus, .textarea:focus{
  border-color: rgba(90,169,255,.55);
  box-shadow: 0 0 0 4px rgba(90,169,255,.15);
}
.textarea{ resize: vertical; min-height: 140px; }

.form_actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form_hint{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.form_status{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display: none;
}
.form_status.is_ok{
  display: block;
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.10);
}
.form_status.is_err{
  display: block;
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.10);
}

.footer{
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.12);
}
.footer_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer_brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer_logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2);
  object-fit: cover;
}
.footer_name{ font-weight: 900; }
.footer_note{ color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer_links{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.86);
  flex-wrap: wrap;
}
.footer_links a{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.22); }
.dot{ color: rgba(255,255,255,.45); }

/* Responsive */
@media (max-width: 980px){
  .hero_inner{ grid-template-columns: 1fr; }
  .hero_img{ height: 320px; }
  .hero_meta{ grid-template-columns: 1fr; }
  .grid_3{ grid-template-columns: 1fr; }
  .grid_2{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .split_img{ height: 260px; }
  .contact_grid{ grid-template-columns: 1fr; }
}
@media (max-width: 840px){
  .nav{ display: none !important; }
  .header_inner{ justify-content: center; }
  .brand{ min-width: auto; }
  .brand_logo{ width: 44px; height: 44px; }
  .brand_name{ font-size: 15px; }
  .brand_tag{ font-size: 12px; }

  .nav_toggle{ display: none !important; }
  .nav_links{
    display: none;
    position: absolute;
    top: 66px;
    inset-inline-end: 16px;
    width: min(420px, calc(100% - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(11,18,32,.92);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
  }
  z-index: 45;
  .nav_links.is_open{ display: flex; }
  .nav_link{ padding: 12px 14px; }
  .brand_text{ display: grid; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}

/* --- Polish pack (micro-interactions + scroll look) --- */

/* Nice scrollbar (WebKit) */
*::-webkit-scrollbar{ height: 10px; width: 10px; }
*::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); border-radius: 12px; }
*::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(11,18,32,.55);
  border-radius: 12px;
}
*::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.22); }

::selection{ background: rgba(90,169,255,.25); }

.header{
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

/* Scroll progress */
.scroll_progress{
  height: 3px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.06);
}
.scroll_bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(76,201,167,.9), rgba(90,169,255,.9));
}

/* Mobile nav backdrop */
.nav_backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 40;
}
.nav_backdrop.is_open{
  opacity: 1;
  pointer-events: auto;
}

/* Lock scroll when menu open */
body.is_locked{
  overflow: hidden;
}

/* Card glow on hover */
.card, .product, .service, .split_copy, .split_media, .contact_card, .form, .map_wrap{
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover, .product:hover, .service:hover, .split_copy:hover, .split_media:hover, .contact_card:hover, .form:hover, .map_wrap:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

/* Soft section divider */
.section_head::after{
  content: "";
  width: 120px;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(76,201,167,.65), rgba(90,169,255,.65));
  opacity: .85;
}

/* Reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal.is_visible{
  opacity: 1;
  transform: none;
}

/* Back to top */
.to_top{
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(11,18,32,.70);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 60;
}
.to_top:hover{
  background: rgba(11,18,32,.85);
}
.to_top.is_show{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Active nav link */
.nav_link.is_active{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; }
  .to_top{ transition: none; }
  .nav_backdrop{ transition: none; }
  .scroll_bar{ transition: none; }
}
