/* ============================================================================
   site-chrome.css — topbar, header, mobile drawer, features, footer, floats
   Classic, minimal: solid colors, thin borders, no gradients, blur, lift
   effects or decorative shapes. Hover states change color only.
   ========================================================================== */

/* ---------- Topbar ticker ------------------------------------------------- */
.topbar {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  font-size: .85rem;
  font-weight: 600;
}
.ticker { display: flex; justify-content: center; padding: .45rem 0; margin: 0; }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 40s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 2.25rem; padding-inline-end: 2.25rem; white-space: nowrap; }
.ticker__group span { display: inline-flex; align-items: center; gap: .4rem; }
.ticker__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .6); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .ticker__track { animation-duration: 28s; }
}

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.25rem);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.brand__name {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.main-nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.main-nav__link {
  position: relative;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.main-nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 50% 50%;
  bottom: .1rem;
  height: 2px;
  background: var(--ink);
  transition: inset-inline var(--speed) var(--ease);
}
.main-nav__link:hover { color: var(--ink); background: var(--primary-soft); }
.main-nav__link.is-active { color: var(--ink); }
.main-nav__link.is-active::after { inset-inline: .9rem; }

.site-header__actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

/* ---------- Mobile drawer ------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 290;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  width: min(85vw, 330px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s var(--ease), visibility .25s var(--ease);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: var(--primary);
  color: #fff;
}
.drawer__brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.drawer__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, .4); }
.drawer__brand strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.drawer__nav { display: flex; flex-direction: column; gap: .15rem; padding: .75rem; }
.drawer__nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.drawer__nav a .icon { color: var(--text-muted); }
.drawer__nav a:hover { background: var(--primary-soft); }

.drawer__phone {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Features ("لماذا نحن") ---------------------------------------- */
.features { background: var(--bg-soft); padding-block: clamp(2.5rem, 6vw, 4rem); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.feature-card h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, .88);
  padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
}
.site-footer__intro { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 2.5rem); }
.site-footer__intro h2 { color: #fff; margin-bottom: .75rem; }
.site-footer__intro p { color: rgba(255, 255, 255, .78); margin: 0; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-col__title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a {
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  width: fit-content;
  transition: color var(--speed) var(--ease);
}
.footer-links a:hover { color: #fff; }
.footer-links__empty { color: rgba(255, 255, 255, .55); font-size: .9rem; }

.footer-contact, .footer-social { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact li, .footer-social a {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  font-size: .95rem;
  word-break: break-word;
  transition: color var(--speed) var(--ease);
}
.footer-contact a:hover, .footer-social a:hover { color: #fff; }
.footer-contact .icon, .footer-social .icon { color: rgba(255, 255, 255, .65); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
}
.site-footer__bottom p { margin: 0; }
.site-footer__promise { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* ---------- Floating WhatsApp -------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 20px;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: background var(--speed) var(--ease);
}
.whatsapp-float:hover { background: #178a45; }

@media (max-width: 560px) {
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; inset-inline-end: 14px; }
  /* Keep it clear of the sticky order bar on the product page. */
  body:has(.mobile-order-bar) .whatsapp-float { bottom: 86px; }
}