/* ═══════════════════════════════════════════════════════════
   في الرياض — in-riyadh.com | نظام التصميم v1
   كحلي #001639 · أحمر #d6002e · أزرق #34538d · كريمي #f6efe3
   خط Tajawal · RTL · صفحات داخلية بخلفية بيضاء نقية
═══════════════════════════════════════════════════════════ */
:root {
  --primary-blue: #001639;
  --orange:       #d6002e;
  --orange-dark:  #b30026;
  --dark-blue:    #34538d;
  --cream:        #f6efe3;
  --white:        #ffffff;
  --dark-text:    #313131;
  --muted:        #6b7280;
  --line:         #e8e6e1;
  --wa:           #1fa855;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 6px 24px rgba(0, 22, 57, .10);
  --shadow-lg:    0 14px 44px rgba(0, 22, 57, .16);
  --nav-h:        70px;
  --max-w:        1180px;
  --font:         'Tajawal', Tahoma, Arial, sans-serif;
  --trans:        .2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark-text);
  font-size: 16px;
  line-height: 1.85;
  direction: rtl;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-right: 1.2em; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; top: -48px; right: 16px; z-index: 1000;
  background: var(--primary-blue); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700;
  transition: top var(--trans);
}
.skip-link:focus { top: 0; }

/* ══ HEADER ══════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary-blue);
  box-shadow: 0 2px 14px rgba(0, 22, 57, .25);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: #fff; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--orange); }
.brand-light .brand-name { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  padding: 9px 13px; border-radius: 9px;
  color: rgba(255, 255, 255, .82); font-size: 14.5px; font-weight: 700;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-link.active { color: #fff; background: var(--orange); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px; cursor: pointer;
}
.nav-burger span { width: 20px; height: 2.4px; background: #fff; border-radius: 2px; }

/* ══ DRAWER (جوال) ═══════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 22, 57, .55); opacity: 0; transition: opacity .22s ease;
}
.drawer-overlay.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 201;
  width: min(320px, 86vw); background: var(--white);
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  height: var(--nav-h); padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-blue);
}
.drawer-close {
  width: 40px; height: 40px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.drawer-nav { padding: 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-nav a {
  padding: 13px 15px; border-radius: 9px;
  font-size: 15.5px; font-weight: 700; color: var(--primary-blue);
}
.drawer-nav a:hover { background: var(--cream); }
.drawer-nav a.active { background: var(--orange); color: #fff; }

/* ══ HERO (الرئيسية) ═════════════════════════════ */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(52, 83, 141, .55), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(214, 0, 46, .22), transparent 55%),
    var(--primary-blue);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  color: var(--cream); font-size: 13.5px; font-weight: 700;
  padding: 7px 16px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.25;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub {
  max-width: 760px; margin: 0 auto 30px;
  font-size: clamp(15px, 1.8vw, 17.5px); color: rgba(255, 255, 255, .85);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-points {
  margin-top: 38px; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700;
}
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--orange); flex-shrink: 0; }

/* ══ الأزرار ═════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 11px; cursor: pointer;
  font-family: var(--font); font-size: 15.5px; font-weight: 800;
  border: 2px solid transparent; transition: all var(--trans);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-blue { background: var(--dark-blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.1); }

/* ══ المقاطع ═════════════════════════════════════ */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--primary-blue);
  margin-bottom: 10px; line-height: 1.35;
}
.section-head h2 em { font-style: normal; color: var(--orange); }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ══ فتات الخبز ══════════════════════════════════ */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13.5px; color: var(--muted); padding: 16px 0 0;
}
.breadcrumbs a { color: var(--dark-blue); font-weight: 700; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { opacity: .55; }

/* ══ رأس الصفحات الداخلية (خلفية بيضاء نقية) ═════ */
.page-head { padding: 22px 0 8px; background: var(--white); }
.page-head h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--primary-blue);
  line-height: 1.3; margin: 10px 0 6px;
}
.page-head .page-lede { color: var(--muted); font-size: 15.5px; max-width: 820px; }

/* ══ صورة الغلاف ═════════════════════════════════ */
.page-cover { margin: 18px 0 4px; }
.page-cover img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ══ صندوق الإجابة المباشرة (AEO) ════════════════ */
.answer-box {
  background: var(--cream);
  border-right: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0;
  font-size: 16.5px; line-height: 1.95; color: var(--dark-text);
}
.answer-box strong { color: var(--primary-blue); }

/* ══ شارات معلومات المسار ════════════════════════ */
.route-facts { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.fact-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 99px; padding: 9px 18px;
  font-size: 14px; font-weight: 800; color: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 22, 57, .05);
}
.fact-chip svg { color: var(--orange); }
.fact-chip small { font-weight: 500; color: var(--muted); }

/* ══ البطاقات ════════════════════════════════════ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: all var(--trans); position: relative;
}
.card:hover { border-color: var(--dark-blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(52, 83, 141, .10); color: var(--dark-blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card:hover .card-icon { background: var(--orange); color: #fff; }
.card h3 { font-size: 17.5px; font-weight: 800; color: var(--primary-blue); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.card .card-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 13.5px; font-weight: 800; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* بطاقة موقع/مدينة مصغّرة */
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.loc-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 16px;
  font-size: 14.5px; font-weight: 800; color: var(--primary-blue);
  transition: all var(--trans);
}
.loc-chip svg { color: var(--orange); flex-shrink: 0; transition: transform var(--trans); }
.loc-chip:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.loc-chip:hover svg { transform: translateX(-4px); }
.loc-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* ══ المحتوى التحريري ════════════════════════════ */
.prose { max-width: 860px; }
.prose h2 {
  font-size: clamp(21px, 2.8vw, 27px); font-weight: 800; color: var(--primary-blue);
  margin: 38px 0 14px; padding-right: 14px; border-right: 4px solid var(--orange);
  line-height: 1.4;
}
.prose h3 { font-size: 18.5px; font-weight: 800; color: var(--dark-blue); margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--primary-blue); }
.prose a { color: var(--dark-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: right; }
.prose th { background: var(--cream); color: var(--primary-blue); font-weight: 800; }

/* ══ جدول الأسعار ════════════════════════════════ */
.price-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(0,22,57,.06); }
.price-table th { background: var(--primary-blue); color: #fff; font-size: 14.5px; padding: 13px 16px; text-align: right; }
.price-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td.price { color: var(--orange); font-weight: 800; white-space: nowrap; }
.price-note { font-size: 13px; color: var(--muted); }

/* ══ الأسئلة الشائعة (details بدون JS) ═══════════ */
.faq-list { max-width: 860px; }
.faq-item {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-item[open] { border-color: var(--dark-blue); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; font-size: 16px; font-weight: 800; color: var(--primary-blue);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--cream); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; transition: transform var(--trans);
}
.faq-item[open] summary .faq-ic { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--dark-text); font-size: 15px; line-height: 1.9; }

/* ══ شريط دعوة داخلي (بلا أدوات اتصال) ═══════════ */
.cta-band {
  background: linear-gradient(120deg, var(--primary-blue), var(--dark-blue));
  border-radius: var(--radius); color: #fff;
  padding: 34px 30px; text-align: center;
}
.cta-band h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* ══ FOOTER ══════════════════════════════════════ */
.site-footer { background: var(--primary-blue); color: rgba(255, 255, 255, .8); margin-top: 70px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding: 52px 0 36px;
}
.footer-about p { font-size: 14px; line-height: 1.9; margin-top: 14px; color: rgba(255, 255, 255, .7); }
.footer-col h3 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.footer-col a {
  display: block; padding: 6px 0; font-size: 14px; color: rgba(255, 255, 255, .72);
  transition: color var(--trans), padding var(--trans);
}
.footer-col a:hover { color: var(--orange); padding-right: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: var(--orange); font-weight: 800; }

/* ══ الأزرار العائمة (وسيلة التواصل الوحيدة) ═════ */
.float-btn {
  position: fixed; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
  transition: transform var(--trans);
}
.float-btn:hover { transform: scale(1.08); }
.float-wa   { right: 22px; background: var(--wa); }
.float-call { left: 22px;  background: var(--orange); }
.float-btn .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  animation: floatPulse 2s ease-out infinite;
}
.float-wa .pulse   { box-shadow: 0 0 0 0 rgba(31, 168, 85, .55); }
.float-call .pulse { box-shadow: 0 0 0 0 rgba(214, 0, 46, .55); }
@keyframes floatPulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: .6; }
  100% { box-shadow: 0 0 0 18px transparent; opacity: 0; }
}

/* ══ 404 ═════════════════════════════════════════ */
.error-page { text-align: center; padding: 90px 20px; }
.error-page .code { font-size: 84px; font-weight: 800; color: var(--orange); line-height: 1; }
.error-page h1 { font-size: 26px; color: var(--primary-blue); margin: 12px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 26px; }

/* ══ استجابة ═════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 54px 0 48px; }
  .float-btn { width: 52px; height: 52px; bottom: 16px; }
  .float-wa { right: 16px; }
  .float-call { left: 16px; }
}
