/* ============================================================
   رواء للرعاية الطبية المنزلية - متطابق مع ksadirectory style
   ============================================================ */

:root {
  /* Brand Colors */
  --brand: #2EA89A;
  --brand-dark: #1F8579;
  --brand-darker: #156960;
  --brand-light: #E8F5F3;
  --brand-lighter: #F4FAF9;

  --navy: #1B3A6F;
  --navy-dark: #122850;
  --navy-light: #E8EDF5;

  --gold: #D4A24C;
  --gold-light: #FAF3E5;

  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text: #1A2B3D;
  --text-secondary: #5A6B7E;
  --text-muted: #94A3B5;
  --border: #E5E9ED;
  --border-light: #F0F3F5;

  --success: #2BA84A;
  --warning: #F2A341;
  --danger: #E5484D;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(27, 58, 111, 0.06);
  --shadow: 0 4px 12px rgba(27, 58, 111, 0.08);
  --shadow-lg: 0 8px 24px rgba(27, 58, 111, 0.12);
  --shadow-xl: 0 20px 50px rgba(27, 58, 111, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* ============================================================
   Top Header Bar
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.top-bar-info span { margin-left: 16px; }

/* ============================================================
   Main Navigation
   ============================================================ */
.main-nav {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 50px;
  width: auto;
}
.nav-logo-text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 11px;
  color: var(--brand-dark);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--brand-lighter);
  color: var(--brand-dark);
  text-decoration: none;
}
.nav-cta {
  background: var(--brand) !important;
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  margin-right: 8px;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
  color: white;
  padding: 70px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,162,76,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero-title .highlight {
  color: var(--gold);
}
.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
}

/* Search Box on Hero */
.hero-search {
  background: white;
  border-radius: 18px;
  padding: 14px;
  max-width: 700px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-search select,
.hero-search input {
  border: 0;
  outline: 0;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 12px;
  background: var(--brand-lighter);
  color: var(--text);
  flex: 1;
}
.hero-search input {
  flex: 2;
}
.hero-search button {
  background: var(--brand);
  color: white;
  border: 0;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: 0.2s;
}
.hero-search button:hover {
  background: var(--navy);
}
@media (max-width: 600px) {
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search select, .hero-search button { width: 100%; }
}

/* Quick category pills */
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-pill {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.2s;
}
.hero-pill:hover {
  background: white;
  color: var(--navy);
  text-decoration: none;
}

/* ============================================================
   Stats Strip
   ============================================================ */
.stats-strip {
  background: var(--surface);
  padding: 30px 24px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: -40px;
  position: relative;
  z-index: 2;
  margin-left: 24px;
  margin-right: 24px;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 600px) {
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.stat-item-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
}
.stat-item-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 70px 24px;
}
.section-light { background: var(--surface); }
.section-alt { background: var(--bg); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 44px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  background: var(--brand-lighter);
  padding: 6px 16px;
  border-radius: 999px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}
@media (max-width: 768px) {
  .section-title { font-size: 26px; }
  .section { padding: 50px 20px; }
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   Category Grid (Services)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: 1fr; }
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cat-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-lighter);
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 14px;
  transition: 0.2s;
}
.cat-card:hover .cat-icon {
  background: var(--brand);
  color: white;
  transform: scale(1.1);
}
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cat-count {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ============================================================
   Featured Cards (Specialists/Featured)
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.featured-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: 0.2s;
  position: relative;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.featured-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8861A 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}
.featured-image {
  height: 140px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}
.featured-content {
  padding: 18px;
}
.featured-cat {
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-lighter);
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}
.featured-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.featured-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-link {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   How it works (Steps)
   ============================================================ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .steps-row { grid-template-columns: 1fr; }
}
.step-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  transition: 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.step-num {
  position: absolute;
  top: -20px;
  right: 50%;
  transform: translateX(50%);
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  box-shadow: var(--shadow);
}
.step-icon {
  font-size: 44px;
  margin: 20px 0 16px;
  display: block;
}
.step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.step-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   Pricing Cards
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px;
  border: 2px solid var(--border-light);
  position: relative;
  transition: 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-lighter) 0%, white 50%);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--gold);
  color: white;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.pricing-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.pricing-price-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1;
}
.pricing-price-unit {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
}
.pricing-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.pricing-features li:last-child { border: 0; }
.pricing-features .check { color: var(--success); margin-left: 8px; font-weight: 700; }
.pricing-features .uncheck { color: var(--text-muted); margin-left: 8px; }
.pricing-cta {
  display: block;
  text-align: center;
  background: var(--brand);
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
}
.pricing-cta:hover {
  background: var(--navy);
  text-decoration: none;
  color: white;
}
.pricing-card.featured .pricing-cta {
  background: var(--gold);
}
.pricing-card.featured .pricing-cta:hover {
  background: #B8861A;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 14px;
}
.testimonial-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.testimonial-author-info strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.testimonial-author-info span {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%);
  color: white;
  text-align: center;
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  font-size: 36px;
  margin: 0 0 14px;
  font-weight: 800;
  color: white;
}
.cta-section p {
  font-size: 17px;
  opacity: 0.9;
  margin: 0 0 28px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: white;
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-white:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: white;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: 0.2s;
}
.btn-outline-white:hover {
  background: white;
  color: var(--navy);
  text-decoration: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand-row img {
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand-text strong {
  display: block;
  font-size: 18px;
  color: white;
  font-weight: 800;
}
.footer-brand-text span {
  font-size: 12px;
  color: var(--brand);
}
.footer-desc {
  font-size: 13px;
  line-height: 1.9;
  max-width: 320px;
}
.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 6px 0;
  text-decoration: none;
  transition: 0.2s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
}
