/* =========================================================
   UNISSA NET — التصميم العام للموقع
   الألوان مستوحاة مباشرة من شعار الشركة (الأزرق الفيروزي/الغامق)
   ========================================================= */

:root {
  --ink: #1B222A;
  --ink-2: #252E37;
  --teal: #17D9CB;
  --teal-deep: #0FA89B;
  --teal-soft: #E3FAF7;
  --paper: #F3F6F6;
  --white: #FFFFFF;
  --text: #202A32;
  --text-soft: #5B6B74;
  --line: #E2E9EA;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-hover: 0 18px 34px rgba(19, 30, 34, 0.14);

  --container: 1160px;
  --font: 'Cairo', 'Tahoma', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; margin: 0; color: var(--ink); }

p { margin: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= رأس الصفحة ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-name {
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.site-name span { color: var(--teal-deep); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
}

.site-nav a { padding: 6px 2px; }
.site-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ================= البطل (Hero) ================= */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero-arcs {
  position: absolute;
  inset-inline-end: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  max-width: 60%;
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--teal); }

.hero p {
  color: #AFC1C6;
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 217, 203, 0.28);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

/* ================= عناوين الأقسام ================= */

.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  position: relative;
  padding-bottom: 16px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--teal);
}

.section-head p { color: var(--text-soft); max-width: 60ch; }

/* ================= الشبكات والبطاقات ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: var(--shadow-hover);
}

.card-img {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--teal-deep);
  background: linear-gradient(160deg, var(--teal-soft), var(--paper));
}

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card-body .muted {
  color: var(--text-soft);
  font-size: 14px;
}

.card-price {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* ================= صفحة رأس عادية (خدمة) ================= */

.page-header {
  background: var(--ink-2);
  padding: 48px 0;
}
.page-header h1 { color: var(--white); font-size: clamp(24px, 3.4vw, 32px); }
.page-header p { color: #AFC1C6; margin-top: 10px; max-width: 65ch; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 26px;
}
.back-link:hover { color: var(--ink); }

/* ================= صفحة تفاصيل العنصر ================= */

.item-detail { padding: 48px 0 80px; }

.item-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.75;
}
.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
  border-color: var(--teal);
  opacity: 1;
}

.badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.item-info h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }

.item-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 22px;
}

.item-description {
  color: var(--text-soft);
  max-width: 65ch;
  font-size: 15.5px;
}

/* ================= التذييل ================= */

.site-footer {
  background: var(--ink);
  color: #AFC1C6;
  padding: 44px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand strong { color: var(--white); display: block; font-size: 15px; }
.footer-brand span { font-size: 13px; }

.footer-contact { font-size: 14px; text-align: end; }
.footer-contact a { color: var(--teal); font-weight: 700; }

/* ================= استجابة الشاشات الصغيرة ================= */

@media (max-width: 860px) {
  .item-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-arcs { opacity: 0.5; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 74px;
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--paper); }

  .hero { padding: 56px 0 68px; text-align: center; }
  .hero-inner { max-width: none; }
  .hero p { margin-inline: auto; }
  .hero-arcs { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}
