@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #006c35;
  --primary-dark: #004d26;
  --primary-light: #e8f5ee;
  --accent: #1a73e8;
  --warning: #d93025;
  --warning-bg: #fce8e6;
  --text: #1a1a2e;
  --text-muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f8faf9;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans Arabic', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--primary);
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 108, 53, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  color: white;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: white; color: var(--primary); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-accent { background: var(--accent); color: white; }
.btn-warning { background: var(--warning); color: white; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; }

/* Content */
.page-content { padding: 40px 0 60px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.article-body h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 24px 0 12px;
}

.article-body p { margin-bottom: 16px; color: var(--text); }

.article-body ul, .article-body ol {
  margin: 12px 24px 20px 0;
  padding-right: 20px;
}

.article-body li { margin-bottom: 8px; }

.article-image {
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* Alert boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-right: 4px solid;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: #7f1d1d;
}

.alert-info {
  background: #e8f0fe;
  border-color: var(--accent);
  color: #1a3a6b;
}

.alert-success {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-img { height: 180px; object-fit: cover; width: 100%; }

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Sidebar */
.sidebar { position: sticky; top: 90px; }

.sidebar-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  padding: 6px 0;
}

.sidebar-links a:hover { color: var(--primary); }

/* Cities section */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.city-card {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: background 0.2s;
}

.city-card:hover { background: #d4edda; }

.city-card a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 16px 20px;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question:hover { background: var(--primary-light); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-item.open .faq-answer {
  padding: 16px 20px;
  max-height: 500px;
}

/* Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: right;
}

.info-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.info-table tr:nth-child(even) { background: var(--bg-alt); }

/* Footer */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #aaa; font-size: 0.9rem; }
.footer-grid a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.disclaimer {
  background: #2a2a3e;
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Section titles */
.section-title {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: -16px 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  padding: 60px 0;
  background: var(--bg-alt);
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 12px;
  }

  .hero { min-height: 320px; }
  .hero-content { padding: 40px 20px; }

  .whatsapp-float { width: 56px; height: 56px; font-size: 1.6rem; }
  .doctor-card { flex-direction: column; text-align: center; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: white;
}

/* Doctor contact card */
.doctor-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.doctor-avatar {
  width: 100px;
  height: 100px;
  min-width: 100px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
}

.doctor-info h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.doctor-specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.doctor-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-2px);
}

.footer-contact {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Product price badge */
.price-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 12px 0;
}

.order-steps {
  counter-reset: step;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.order-steps li {
  counter-increment: step;
  padding: 16px 20px 16px 16px;
  margin-bottom: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-right: 4px solid var(--primary);
  position: relative;
  padding-right: 50px;
}

.order-steps li::before {
  content: counter(step);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
