/* ==========================================================================
   الأسيوطي — التصميم
   مبني على نفس هوية الموقع الأصلي:
     أبيض + ورق  #f7f5f1 + أحمر #f21d2f
     خط Segoe UI / Tahoma (نفس خط الموقع الأصلي)
   ========================================================================== */

:root {
  --red: #f21d2f;
  --red-dark: #c9091b;
  --ink: #161616;
  --charcoal: #202020;
  --paper: #f7f5f1;
  --warm: #ede8df;
  --muted: #6d6b67;
  --line: #dedad2;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(23, 17, 14, .12);
  --shadow-sm: 0 6px 22px rgba(23, 17, 14, .07);
  --maxw: 1180px;
  --font: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  clip: auto;
  overflow: visible;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 700;
  text-decoration: none;
}

/* أرقام التليفون والأسعار: نمنع انقلاب ترتيب المجموعات في سياق RTL */
.num,
.contact-list .v,
.stat b,
.footer-phone {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* ------------------------------- الأزرار ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 26px rgba(242, 29, 47, .26);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-wa { background: #25d366; color: #06301a; }
.btn-wa:hover { background: #1ebe5b; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* زر شفاف على خلفية داكنة (الهيرو والفوتر) */
.hero .btn-ghost,
.hero-ghost-light {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.hero .btn-ghost:hover,
.hero-ghost-light:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }

/* ------------------------------- الهيدر ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  transition: transform .2s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.05);
}
.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .5px;
  white-space: nowrap;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 10px;
  line-height: 1.2;
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-logo { height: 42px; }
}

.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--red); }
.header-cta { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .header-cta .btn { padding: 10px 16px; font-size: 14px; }
}

/* ------------------------------- الهيرو ------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #17110e 0%, #241a14 55%, #17110e 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 380px at 88% 0%, rgba(242, 29, 47, .30), transparent 62%),
    radial-gradient(620px 340px at 6% 100%, rgba(242, 29, 47, .16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 68px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.4px;
}
.hero h1 .accent { color: #ff6470; }
.hero-lede {
  max-width: 640px;
  color: rgba(255, 255, 255, .80);
  font-size: clamp(15.5px, 2vw, 18px);
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  font-weight: 600;
}
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line span::before { content: "✓"; color: #ff6470; font-weight: 800; }

/* ------------------------------- شريط الأرقام ------------------------------- */
.stats {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat {
  padding: 26px 16px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat b {
  font-size: clamp(23px, 3.6vw, 34px);
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
}
.stat span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------- الأقسام ------------------------------- */
.section { padding: 74px 0; }
.section.tint { background: var(--paper); }
.section-head { margin-bottom: 34px; max-width: 720px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* ------------------------------- المزايا ------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 24px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.benefit:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.benefit .num { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.benefit h3 { margin: 10px 0 8px; font-size: 17.5px; font-weight: 800; }
.benefit p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 940px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .benefits { grid-template-columns: 1fr; } }

/* ------------------------------- البحث ------------------------------- */
.search-bar { margin-bottom: 28px; position: relative; max-width: 560px; }
.search-bar input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(242, 29, 47, .10);
}
.search-bar input::placeholder { color: #9c9a96; }

/* ------------------------------- الكتالوج ------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 940px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }

.cat-media {
  position: relative;
  /* الصور كولاجات مربعة، فبنحتاج ارتفاع أكبر من العرض العريض */
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.cat-media-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #cfc9bf;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 2px;
}
.cat-tag {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.cat-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { margin: 0 0 7px; font-size: 21px; font-weight: 800; }
.cat-body .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

.items { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.items li {
  background: var(--warm);
  border: 1px solid #e2ddd3;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  color: #45423e;
}
.items li .note { color: var(--muted); font-size: 12.5px; }
.items li .price {
  color: var(--red);
  font-weight: 700;
  font-size: 12.5px;
}

.cat-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cat-foot .btn { padding: 10px 18px; font-size: 14px; }

.empty-state {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.empty-state.on { display: block; }
.empty-state a { color: var(--red); font-weight: 700; }

/* ------------------------------- الكتالوج PDF ------------------------------- */
.catalog-cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .catalog-cta { grid-template-columns: 1fr; padding: 26px; } }

.catalog-cta h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.catalog-cta p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.catalog-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.catalog-meta b { color: var(--ink); font-weight: 700; }

.catalog-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.catalog-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(23, 17, 14, .09);
  transition: transform .22s ease, box-shadow .22s ease;
  background: var(--warm);
}
.catalog-preview img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(23, 17, 14, .16);
}

/* ------------------------------- الآراء ------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 0;
  position: relative;
}
.quote::before {
  content: "\201D";
  position: absolute;
  inset-inline-end: 20px;
  top: 2px;
  font-size: 54px;
  color: var(--warm);
  line-height: 1;
  font-family: Georgia, serif;
}
.quote p { margin: 0 0 14px; font-size: 15.5px; position: relative; }
.quote .who { color: var(--red); font-size: 13.5px; font-weight: 700; }

/* ------------------------------- التواصل ------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.panel .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(242, 29, 47, .10);
}
.field input[type="tel"] { direction: ltr; text-align: right; }

.contact-list { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { color: var(--muted); font-size: 13.5px; min-width: 76px; flex: none; font-weight: 700; }
.contact-list .v { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.contact-list a.v:hover { color: var(--red); }

/* ------------------------------- الفوتر ------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .66);
  padding: 40px 0;
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; font-weight: 800; font-size: 16px; }
.footer-col-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 34px; width: auto; object-fit: contain; display: block; opacity: .95; }

/* ------------------------------- واتساب عائم ------------------------------- */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .40);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }

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

@media print {
  .site-header, .wa-float, .hero-actions, .cat-foot, .search-bar, .catalog-actions { display: none !important; }
  .hero { background: none !important; color: #000 !important; }
  .cat-card { break-inside: avoid; }
}

/* ------------------------------- حكاية البراند ------------------------------- */
.brand-section {
  background:
    radial-gradient(680px 340px at 92% 8%, rgba(242, 29, 47, .07), transparent 62%),
    var(--white);
}

.brand-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
@media (max-width: 940px) {
  .brand-grid { grid-template-columns: 1fr; gap: 30px; }
}

.brand-copy .eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.brand-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.4px;
}
.brand-lead {
  margin: 0 0 18px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: var(--ink);
}
.brand-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.brand-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.brand-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
}
.brand-points li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(242, 29, 47, .10);
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.brand-figure {
  margin: 0;
  position: relative;
}
.brand-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.brand-figure::after {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  bottom: -18px;
  width: 130px;
  height: 130px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  opacity: .12;
  z-index: -1;
}