/* ===========================================================
   ملف: app/www/css/home.css
   القسم: 8 — الصفحة الرئيسية
   الغرض: الرأس وبلاطات الإمارات والبنر وبطاقة الأقرب
   يرتبط بـ: index.html · components.css
   =========================================================== */

.home-head {
  position: relative;
  min-height: 236px;
  padding: 18px 20px 24px;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0 0 32px 32px;
  color: var(--white);
}

.orb--blue {
  width: 170px;
  height: 170px;
  top: -50px;
  left: -40px;
}

.orb--teal {
  width: 34px;
  height: 34px;
  top: 122px;
  left: 40px;
}

.home-head__bar,
.home-head__title,
.home-head__sub,
.home-search {
  position: relative;
}

.home-head__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-head__logo {
  height: 40px;
  width: auto;
}

.home-head__title {
  margin-top: 20px;
  font-size: clamp(18px, 5.6vw, 23px);
  font-weight: 700;
}

.home-head__sub {
  margin: 4px 0 16px;
  color: var(--on-navy);
}

.home-search {
  height: 52px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 8px;
  box-shadow: var(--sh-search);
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
}

.home-search__filter {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-main {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 600;
}

.emirate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
}

.emirate-tile {
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.emirate-tile img {
  width: 28px;
  height: 34px;
}

.emirate-tile strong {
  font-size: 13px;
}

.emirate-tile span {
  font-size: 11px;
  color: var(--muted);
}

.tile--navy span {
  color: var(--on-navy);
}

.banner {
  position: relative;
}

.banner__slide {
  position: relative;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 108px;
  border-radius: var(--r-card);
  padding: 18px 20px;
  color: var(--white);
}

.banner__slide::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -40px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--glass-line), transparent 70%);
}

.banner__slide.is-on {
  display: flex;
}

.banner__slide--0 {
  background: var(--navy);
  box-shadow: var(--sh-tile-navy);
}

.banner__slide--1 {
  background: var(--wa);
  box-shadow: var(--sh-btn-wa);
}

.banner__slide--2 {
  background: var(--blue);
  box-shadow: var(--sh-banner-blue);
}

.banner__text {
  position: relative;
  flex: 1;
  min-width: 0;
}

.banner__slide h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--white);
}

.banner__slide p {
  margin: 0;
  font-size: 14px;
}

.banner__art {
  position: relative;
  width: 64px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 8px 8px rgba(10, 27, 74, 0.35));
  transform: rotate(-8deg);
}

.banner__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.banner__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: var(--chip-border);
  padding: 0;
}

.banner__dots .is-on {
  width: 18px;
  background: var(--navy);
}

.nearest {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 16px;
  box-shadow: var(--sh-nearest);
  text-decoration: none;
}

.nearest__orb {
  position: absolute;
  width: 170px;
  height: 170px;
  left: -50px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--teal), var(--teal-deep));
}

.nearest__body,
.nearest__actions {
  position: relative;
}

.nearest__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nearest__top img {
  width: 46px;
  height: 50px;
}

.nearest h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.nearest a {
  color: var(--white);
  text-decoration: none;
}

/* مهم: الزر الأبيض داخل البطاقة يحتاج نصاً داكناً، وإلا طغت قاعدة .nearest a البيضاء عليه */
.nearest a.btn--white {
  color: var(--wa);
}

.nearest a.btn--white[data-call] {
  color: var(--navy);
}

.nearest__meta {
  margin-top: 6px;
  color: var(--on-teal);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nearest__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.nearest__call {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--white);
  border: 1.5px solid var(--glass-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}