:root {
  --primary: #00a6d6;
  --secondary: #071c2f;
  --accent: #c8a24a;
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbe5ef;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(7, 28, 47, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 229, 239, 0.75);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 212px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0, 166, 214, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--secondary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 166, 214, 0.24);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--secondary);
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: rgba(0, 166, 214, 0.10);
  border: 1px solid rgba(0, 166, 214, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 28, 47, 0.94), rgba(7, 28, 47, 0.80)),
    url("../../images/activity-supermarket.jpg") center/cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(0deg, var(--bg), rgba(245, 248, 251, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 104px;
}

.hero h1 {
  margin: 18px 0;
  max-width: 760px;
  font-size: 54px;
  line-height: 1.22;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-logo {
  width: 100%;
  height: 82px;
  object-fit: contain;
  margin-bottom: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-title {
  margin: 10px 0 0;
  color: var(--secondary);
  font-size: 34px;
  line-height: 1.35;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(7, 28, 47, 0.06);
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--secondary);
  line-height: 1.45;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: rgba(0, 166, 214, 0.10);
  color: var(--primary);
  font-weight: 900;
}

.activity-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.activity-card .media {
  aspect-ratio: 794 / 1123;
  height: auto;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-thumb {
  position: relative;
  height: 156px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 166, 214, 0.34), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(200, 162, 74, 0.28), transparent 28%),
    linear-gradient(135deg, #071c2f, #0b3a5b);
  display: flex;
  align-items: end;
  padding: 18px;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.article-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb span {
  position: relative;
  z-index: 1;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: rgba(7, 28, 47, 0.72);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.article-body p {
  color: var(--text);
  font-size: 18px;
}

.contact-band {
  background: var(--secondary);
  color: #fff;
}

.contact-band .section-title,
.contact-band .section-desc {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.form textarea {
  min-height: 122px;
  resize: vertical;
}

.site-footer {
  padding: 34px 0;
  background: #061827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 23, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  width: min(760px, 100%);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-media {
  height: min(76vh, 860px);
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  overflow: hidden;
}

.lightbox-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(76vh - 24px);
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.lightbox-title {
  font-weight: 900;
  color: var(--secondary);
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
}

.page-hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(90deg, rgba(7, 28, 47, 0.93), rgba(7, 28, 47, 0.74)),
    url("../../images/activity-hospital.jpg") center/cover no-repeat;
  color: #fff;
}

.page-hero .section-title,
.page-hero .section-desc {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: center;
}

.image-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.image-frame img {
  width: 100%;
  height: 330px;
  object-fit: contain;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.maintenance-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  background: var(--secondary);
  color: #fff;
}

.maintenance-screen img {
  width: min(320px, 80vw);
  max-height: 110px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
}

.maintenance-screen h1 {
  max-width: 720px;
  margin: 0;
  font-size: 32px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    padding: 14px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    width: 170px;
    height: 38px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section-title {
    font-size: 28px;
  }

  .section {
    padding: 58px 0;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .metrics {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}
