/* شركة أنسام المحبة لاستيراد المواد الغذائية والمواشي واللحوم
   تصميم معماري فريد باللون الأزرق الملكي وخلفية عامة متكاملة | تصميم </> wijhadev */
:root {
  --royal-950: #061530;
  --royal-900: #0a224d;
  --royal-800: #113575;
  --royal-700: #1a4ba3;
  --royal-600: #2563eb;
  --royal-100: #e7f0ff;
  --royal-50: #f3f7ff;
  --gold-600: #b08819;
  --gold-500: #d4af37;
  --gold-400: #f0cf65;
  --gold-100: #fdf7e3;
  --emerald-accent: #0f5132;
  --surface: rgba(255, 255, 255, 0.93);
  --surface-solid: #ffffff;
  --glass-dark: rgba(6, 21, 48, 0.80);
  --glass-royal: rgba(17, 53, 117, 0.84);
  --ink-900: #0b172a;
  --ink-700: #2c3e59;
  --ink-500: #556885;
  --border: rgba(17, 53, 117, 0.14);
  --border-gold: rgba(212, 175, 55, 0.42);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 8px 24px rgba(6, 21, 48, 0.08);
  --shadow-md: 0 16px 42px rgba(6, 21, 48, 0.14);
  --shadow-lg: 0 26px 64px rgba(6, 21, 48, 0.24);
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--royal-950);
  color: var(--ink-900);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Global Site-Wide Ambient Background Image with Royal Blue Veil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('../images/hero-shipping.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.26;
  filter: saturate(1.1) contrast(1.05);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.26) 0%, rgba(10, 34, 77, 0.82) 52%, rgba(6, 21, 48, 0.94) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all var(--transition); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Floating Detached Royal Navigation Bar */
.header-shell {
  position: sticky;
  top: 14px;
  z-index: 900;
  padding: 0 16px;
  margin-top: 14px;
}
.site-header {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(6, 21, 48, 0.28);
}
.header-top-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 22px;
  background: linear-gradient(90deg, var(--royal-950), var(--royal-800));
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  border-radius: 21px 21px 0 0;
}
.header-top-strip strong { color: var(--gold-400); font-weight: 800; }
.header-top-group { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: auto; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-title { font-size: 1.06rem; font-weight: 900; color: var(--royal-900); }
.brand-sub { font-size: 0.76rem; font-weight: 700; color: var(--gold-600); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a, .nav-link-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-700);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active,
.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--royal-800);
  background: var(--royal-100);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--royal-700), var(--royal-950));
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(17, 53, 117, 0.28);
}
.nav-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

.menu-toggle {
  display: none;
  background: var(--royal-50);
  border: 1px solid var(--border);
  color: var(--royal-900);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Asymmetric Split Editorial Hero */
.hero-split {
  padding: 46px 0 64px;
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 38px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border-gold);
  color: var(--gold-400);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-split h1 {
  font-size: clamp(2rem, 3.9vw, 3.25rem);
  font-weight: 900;
  line-height: 1.24;
  margin-bottom: 18px;
}
.hero-split h1 span {
  background: linear-gradient(135deg, #fff 0%, var(--gold-400) 65%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-split p {
  font-size: 1.08rem;
  color: rgba(235, 243, 255, 0.9);
  margin-bottom: 26px;
  max-width: 600px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.92);
}
.hero-pill strong { color: var(--gold-400); margin-right: 4px; direction: ltr; unicode-bidi: embed; display: inline-block; }

/* Layered Visual Showcase Frame (Left Column) */
.hero-collage {
  position: relative;
  padding-bottom: 34px;
}
.collage-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--royal-900);
}
.collage-main img { width: 100%; height: 100%; object-fit: cover; }
.collage-inset {
  position: absolute;
  bottom: 0;
  right: -16px;
  width: 50%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.collage-inset img { width: 100%; height: 100%; object-fit: cover; }
.collage-badge {
  position: absolute;
  top: 16px;
  left: -12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--royal-950);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-right: 4px solid var(--gold-500);
  text-align: right;
}
.collage-badge small { display: block; font-size: 0.74rem; color: var(--ink-500); font-weight: 700; }
.collage-badge strong { font-size: 0.98rem; font-weight: 900; color: var(--royal-800); }

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--royal-950);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.34);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-royal {
  background: linear-gradient(135deg, var(--royal-700), var(--royal-900));
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 53, 117, 0.28);
}
.btn-royal:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* Glassmorphic Content Panels */
.section { padding: 52px 0; }
.glass-band {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 46px 38px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-lg);
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 34px;
}
.section-tag {
  display: inline-block;
  color: var(--royal-700);
  background: var(--royal-100);
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 900;
  color: var(--royal-950);
}
.section-header p { color: var(--ink-500); max-width: 560px; font-size: 0.98rem; }

/* Unique Bento Grid for Sectors (Asymmetric 12-Col) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.bento-featured { grid-column: span 7; }
.bento-side { grid-column: span 5; }
.bento-wide { grid-column: span 12; }

.bento-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--royal-950);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.6s ease;
}
.bento-card:hover img { transform: scale(1.06); }
.bento-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: linear-gradient(0deg, rgba(6, 21, 48, 0.95) 0%, rgba(10, 34, 77, 0.68) 65%, transparent 100%);
}
.bento-pill {
  display: inline-block;
  background: var(--gold-500);
  color: var(--royal-950);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.bento-overlay h3 { font-size: 1.38rem; font-weight: 900; margin-bottom: 8px; }
.bento-overlay p { font-size: 0.94rem; color: rgba(235, 243, 255, 0.9); margin-bottom: 14px; max-width: 580px; }
.bento-action {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-action:hover { background: var(--gold-500); color: var(--royal-950); border-color: var(--gold-500); }

/* Royal Glass Legal Certificate Panel */
.legal-panel {
  background: linear-gradient(135deg, rgba(6, 21, 48, 0.94), rgba(17, 53, 117, 0.90));
  backdrop-filter: blur(14px);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}
.legal-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.legal-panel-head h2 { font-size: 1.55rem; font-weight: 900; color: var(--gold-400); }
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.legal-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 18px 20px;
}
.legal-box span { display: block; font-size: 0.8rem; color: rgba(215, 230, 255, 0.78); margin-bottom: 4px; }
.legal-box strong { font-size: 1.02rem; font-weight: 800; color: #fff; }
.legal-box strong.mono { direction: ltr; unicode-bidi: embed; display: inline-block; color: var(--gold-400); letter-spacing: 0.03em; }
.copy-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { background: var(--gold-500); color: var(--royal-950); }

/* Subpage Hero Banner */
.page-hero {
  padding: 42px 0 18px;
  color: #fff;
}
.page-hero-box {
  background: linear-gradient(125deg, rgba(17, 53, 117, 0.88), rgba(6, 21, 48, 0.92));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}
.breadcrumb { font-size: 0.86rem; color: var(--gold-400); font-weight: 700; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: rgba(235, 243, 255, 0.88); max-width: 680px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--royal-50);
  border: 1px solid var(--border);
  border-top: 4px solid var(--royal-700);
  border-radius: var(--radius-md);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--royal-900);
  color: var(--gold-400);
  font-weight: 900;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--royal-950); margin-bottom: 8px; }
.step-card p { color: var(--ink-500); font-size: 0.93rem; }

/* Forms & Map */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--royal-950); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.form-control:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: 16px; }

/* Unified Royal Footer */
.site-footer {
  margin-top: 34px;
  background: rgba(6, 21, 48, 0.96);
  color: rgba(230, 239, 255, 0.86);
  padding-top: 58px;
  border-top: 3px solid var(--gold-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-logo {
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 200px;
  margin-bottom: 14px;
}
.footer-title { font-size: 1.04rem; font-weight: 800; color: var(--gold-400); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; }
.footer-links a:hover, .footer-nav-btn:hover { color: var(--gold-400); }
.footer-nav-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
  text-align: right;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
}
.wijha-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.wijha-credit:hover { background: var(--gold-500); color: var(--royal-950); }
.wijha-code { color: var(--gold-400); font-family: monospace; font-weight: 900; direction: ltr; unicode-bidi: embed; }
.wijha-credit:hover .wijha-code { color: var(--royal-950); }

/* Floating WhatsApp Icon (3 seconds on scroll up/down) */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.44);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-3px) scale(1.03); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--royal-950);
  color: #fff;
  border: 1px solid var(--gold-500);
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.28s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.page-view { display: none; animation: fadePage 0.3s ease; }
.page-view.active-view { display: block; }
@keyframes fadePage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage-inset { right: 12px; width: 44%; }
  .collage-badge { left: 12px; }
  .bento-featured, .bento-side { grid-column: span 12; }
  .legal-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-wrap {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 8px;
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 10px;
  }
  .nav-wrap.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a, .nav-link-btn { text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .glass-band, .legal-panel { padding: 26px 20px; }
}
@media (max-width: 560px) {
  .legal-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 42px; }
  .header-top-strip { font-size: 0.72rem; padding: 6px 14px; }
  .wa-float { bottom: 16px; left: 14px; padding: 11px 16px; font-size: 0.86rem; }
}
