/* ============================================
   Site-wide Design System — Cytotec KSA
   Design + responsive only (no content edits)
   Load AFTER style.css on every page
   ============================================ */

:root {
  --brand: #1e4d8c;
  --brand-deep: #143a6b;
  --brand-soft: #e8f0fa;
  --brand-mid: #2c5aa0;
  --accent: #0f9f6e;
  --accent-deep: #0b7a55;
  --accent-soft: #e6f7f0;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: rgba(30, 77, 140, 0.12);
  --surface: #ffffff;
  --page: #f3f6fb;
  --shadow-sm: 0 4px 16px rgba(20, 58, 107, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 58, 107, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 58, 107, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --primary-blue: #1e4d8c;
  --medical-teal: #0f9f6e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", "Cairo", sans-serif !important;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(44, 90, 160, 0.1), transparent 55%),
    radial-gradient(900px 500px at -10% 40%, rgba(15, 159, 110, 0.07), transparent 50%),
    var(--page) !important;
  color: var(--ink) !important;
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Header / Nav ---------- */
.header {
  background: rgba(16, 42, 77, 0.97) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(16, 42, 77, 0.22) !important;
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: visible !important;
}

.nav-container {
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 0 16px !important;
  min-height: 72px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.header .logo,
.header .logo span,
.logo,
.logo span {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header .logo i {
  color: #7ddea8 !important;
  font-size: 1.05em;
}

.header .logo:hover,
.header .logo:hover span,
.logo:hover,
.logo:hover span {
  color: #b8f0d4 !important;
}

.logo img {
  height: 40px !important;
  width: auto;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a,
.header .nav-menu a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px !important;
  border-radius: 10px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  display: inline-block;
}

.nav-menu a:hover,
.header .nav-menu a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.nav-menu a.active,
.header .nav-menu a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
}

/* ---------- Main / Heroes ---------- */
.main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.hero-section,
.city-hero,
.city-header,
.cities-hero,
.delivery-hero,
.pricing-hero,
.haraj-hero,
.product-hero,
.about-hero,
.contact-hero,
.faq-hero,
.blog-hero,
.article-header {
  position: relative;
  isolation: isolate;
  margin-top: 0 !important;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) clamp(16px, 4vw, 28px) clamp(48px, 7vw, 80px) !important;
  text-align: center;
  color: #fff !important;
  background: linear-gradient(155deg, #0f2f58 0%, #1a4a86 48%, #1e5f78 100%) !important;
  overflow: hidden;
  border-radius: 0 !important;
}

.hero-section::before,
.city-hero::before,
.city-header::before,
.cities-hero::before,
.delivery-hero::before,
.haraj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 211, 168, 0.16), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1), transparent 32%);
  z-index: 0;
  pointer-events: none;
}

.hero-section > *,
.city-hero > *,
.city-header > *,
.cities-hero > *,
.delivery-hero > *,
.haraj-hero > *,
.hero-content,
.city-hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1,
.city-hero h1,
.city-header h1,
.cities-hero h1,
.delivery-hero h1,
.pricing-hero h1,
.haraj-hero h1,
.product-hero h1,
.about-hero h1,
.contact-hero h1,
.faq-hero h1,
.blog-hero h1,
.article-header h1,
.hero-content h1 {
  color: #ffffff !important;
  font-size: clamp(1.7rem, 4.5vw, 3rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25) !important;
  margin-bottom: 16px !important;
}

.hero-section p,
.city-hero p,
.city-header p,
.cities-hero p,
.delivery-hero p,
.pricing-hero p,
.haraj-hero p,
.hero-content p {
  color: #ffffff !important;
  font-size: clamp(0.98rem, 2.2vw, 1.15rem) !important;
  line-height: 1.85 !important;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-section a,
.city-hero a,
.city-header a,
.cities-hero a,
.delivery-hero a,
.pricing-hero a,
.haraj-hero a,
.hero-content a {
  color: #d7ffe9 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-section a:hover,
.city-hero a:hover,
.hero-content a:hover {
  color: #ffffff !important;
}

/* ---------- Sections / Cards ---------- */
.section,
.features-section,
.cities-section,
.product-section,
.faq-section,
.price-comparison,
.delivery-section,
.about-section,
.contact-section,
.blog-section,
.content-section {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.section h2,
.features-section h2,
.cities-section h2,
.faq-section h2,
.price-comparison h2,
.delivery-section h2,
.section-title,
.city-section h2 {
  color: var(--brand) !important;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.35;
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px) !important;
}

.city-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

/* Homepage cards where the whole card is one link */
.city-card > a:only-child {
  display: block !important;
  padding: 22px 16px !important;
  color: var(--brand) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  width: 100%;
  height: 100%;
}

.feature-card,
.product-card,
.info-card,
.area-card,
.faq-item,
.article-card,
.related-link-card,
.city-price-card,
.pricing-card,
.service-card,
.contact-card,
.blog-card,
.delivery-card,
.process-step {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

/* Stats cards — readable on dark heroes, centered evenly */
.cities-hero .container,
.city-hero .container,
.delivery-hero .container {
  width: min(1100px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
  max-width: 1100px !important;
  padding-inline: 0 !important;
  text-align: center !important;
}

.stat-card {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  color: #fff !important;
  text-align: center !important;
  padding: clamp(18px, 3vw, 28px) !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.stat-number {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
  margin-bottom: 8px !important;
}

.stat-label {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600 !important;
  font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
}

.city-stats,
.cities-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2.2vw, 22px) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: clamp(28px, 4vw, 48px) 0 0 !important;
  padding: 0 !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  place-content: stretch !important;
  float: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .city-stats,
  .cities-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .city-stats,
  .cities-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

.feature-card:hover,
.city-card:hover,
.product-card:hover,
.info-card:hover,
.area-card:hover,
.article-card:hover,
.city-price-card:hover,
.pricing-card:hover,
.service-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(44, 90, 160, 0.28) !important;
}

.feature-card h3,
.city-card h3,
.info-card h3,
.faq-item h3,
.article-card h3,
.pricing-card h3,
.service-card h3,
.blog-card h3 {
  color: var(--brand) !important;
}

.feature-card p,
.city-card p,
.info-card p,
.faq-item p,
.article-card p,
.blog-card p {
  color: var(--muted) !important;
  line-height: 1.75;
}

/* ---------- Buttons / CTAs ---------- */
.cta-button,
.btn,
.btn-primary,
.btn-whatsapp,
a.cta-button,
button.cta-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  color: #fff !important;
  padding: 13px 24px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: clamp(0.92rem, 2vw, 1.05rem) !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(15, 159, 110, 0.28) !important;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
  cursor: pointer;
}

.cta-button:hover,
.btn:hover,
.btn-primary:hover,
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 159, 110, 0.4) !important;
  color: #fff !important;
}

.cta-section {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(16px, 3vw, 28px) auto;
  padding: clamp(36px, 5vw, 56px) clamp(18px, 4vw, 36px) !important;
  text-align: center;
  color: #fff !important;
  border-radius: calc(var(--radius) + 6px) !important;
  background: linear-gradient(145deg, #143a6b 0%, #1e4d8c 55%, #1a6b55 130%) !important;
  box-shadow: var(--shadow-lg);
}

.cta-section h2,
.cta-section h3 {
  color: #fff !important;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ---------- Forms ---------- */
input,
textarea,
select {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--brand-mid) !important;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15) !important;
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep)) !important;
  color: #fff !important;
  padding: 14px 12px !important;
}

td {
  padding: 14px 12px !important;
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px !important;
  background: linear-gradient(165deg, #0d2342 0%, #143a6b 55%, #124a58 100%) !important;
  color: #fff !important;
  padding: clamp(40px, 5vw, 60px) 20px 24px !important;
  border-top: none !important;
  position: relative !important;
  overflow: hidden !important;
}

.footer::before,
.footer::after {
  display: none !important;
  content: none !important;
}

.footer > .container {
  max-width: 1120px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.footer-content {
  display: block !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(22px, 3vw, 36px) !important;
  align-items: start;
}

.footer-brand h3,
.footer-col h4,
.footer-section h3,
.footer-section h4,
.footer .contact-info strong,
.social-media h4 {
  color: #fff !important;
  margin: 0 0 14px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.footer-brand h3 {
  font-size: 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand h3 i {
  color: #7ddea8;
}

.footer-brand p,
.footer p,
.footer-bottom,
.footer-bottom p,
.footer .contact-info p {
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
}

.footer-brand p {
  max-width: 320px;
}

.footer-col ul,
.footer ul.footer-links,
.footer-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.footer a,
.footer-links a,
.footer-section a,
.footer-col a {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none !important;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer a:hover,
.footer-links a:hover,
.footer-section a:hover,
.footer-col a:hover {
  color: #b8f0d4 !important;
}

.footer-links {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  justify-content: start !important;
}

.footer .contact-info {
  display: block !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
}

.footer .contact-info a,
.footer-phone {
  color: #ffe08a !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

.footer-social a,
.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
  text-decoration: none !important;
}

.footer-social a:hover,
.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.footer-social a span,
.social-link span {
  display: none;
}

.footer-bottom {
  margin-top: 28px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  text-align: center !important;
}

.footer-bottom-content {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px 18px !important;
  align-items: center;
}

.footer-bottom-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  justify-content: center;
}

.footer-bottom-links a {
  font-size: 0.88rem !important;
  opacity: 0.9;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed !important;
  bottom: 22px !important;
  left: 22px !important;
  right: auto !important;
  z-index: 9999 !important;
}

.whatsapp-float a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #fff !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4) !important;
  min-width: auto !important;
  animation: waPulse 2.4s ease-out infinite;
}

.whatsapp-float a:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.5) !important;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Blog ---------- */
.blog-article,
.article-content,
.featured-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.blog-article h2,
.article-content h2,
.featured-article h2 {
  color: var(--brand) !important;
}

/* Soften product boxed layouts */
.product-details,
.product-info,
.product-images,
.main-image {
  border-radius: var(--radius) !important;
}

.product-details {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.main-content > .container,
.product-section .container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.not-found h1 {
  color: var(--brand) !important;
  font-size: clamp(2rem, 6vw, 4rem) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cities-grid,
  .features-grid,
  .products-grid,
  .areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    z-index: 1002;
  }

  .nav-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 4px !important;
    background: rgba(20, 58, 107, 0.98) !important;
    backdrop-filter: blur(16px);
    padding: 14px !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1001;
    width: auto !important;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block !important;
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 10px;
  }

  .cities-grid,
  .features-grid,
  .products-grid,
  .areas-grid,
  .city-prices,
  .articles-grid {
    grid-template-columns: 1fr !important;
  }

  .cta-buttons {
    flex-direction: column !important;
    align-items: center;
  }

  .cta-button,
  .btn {
    width: 100%;
    max-width: 320px;
  }

  .whatsapp-float {
    bottom: 16px !important;
    left: 16px !important;
  }

  .whatsapp-float a {
    padding: 11px 14px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 34px !important;
  }

  .hero-section,
  .city-hero,
  .city-header,
  .cities-hero,
  .delivery-hero,
  .haraj-hero {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .section,
  .features-section,
  .cities-section,
  .faq-section,
  .cta-section {
    width: min(100%, calc(100% - 20px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
