:root {
  --g: #0f4c3a;
  --g2: #082f24;
  --gold: #d9b55b;
  --bg: #f6f7f2;
  --card: #ffffff;
  --ink: #13221b;
  --mut: #5f6f66;
  --line: #e4e7de;
  --wa: #22c55e;
  --hd: rgba(246, 247, 242, 0.92);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1812;
    --card: #12241b;
    --ink: #ebf3ee;
    --mut: #9ab0a3;
    --line: #20372b;
    --hd: rgba(11, 24, 18, 0.92);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1812;
  --card: #12241b;
  --ink: #ebf3ee;
  --mut: #9ab0a3;
  --line: #20372b;
  --hd: rgba(11, 24, 18, 0.92);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tajawal, Tahoma, Arial, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--hd);
  z-index: 10;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.w {
  max-width: 1080px;
  margin: auto;
  padding: 0 20px;
}

/* الأيقونات */
.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.i.fill {
  fill: currentColor;
  stroke: none;
}

/* الهيدر */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--hd);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

header .w {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--g), var(--g2));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 76, 58, 0.25);
  flex: none;
}

.logo .i {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.brand {
  flex: 1;
  line-height: 1.25;
}

.brand b {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.brand small {
  color: var(--mut);
  font-size: 12.5px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--mut);
}

.nav-links a:hover {
  color: var(--g);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-links a:hover {
    color: var(--gold);
  }
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    margin-left: 10px;
  }
}

.hc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--g);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(15, 76, 58, 0.22);
}

.hc .i {
  width: 18px;
  height: 18px;
}

/* الواجهة الرئيسية Hero */
.hero,
.um {
  background-color: var(--g2);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.05'%3E%3Cpath d='M30 4.5L55.5 30 30 55.5 4.5 30z'/%3E%3Crect x='12' y='12' width='36' height='36'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 85% 0%, rgba(217, 181, 91, 0.16), transparent 55%),
    linear-gradient(165deg, var(--g), var(--g2));
  color: #fff;
}

.hero {
  padding: 44px 0 54px;
}

.hero .w {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 13.5px;
  color: #f3e6be;
  font-weight: 700;
}

.badge .i {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

h1 {
  font-size: clamp(34px, 6.5vw, 52px);
  line-height: 1.22;
  margin: 18px 0 6px;
  font-weight: 800;
}

h1 span {
  color: var(--gold);
  display: block;
}

.sub {
  font-family: Amiri, serif;
  font-size: 24px;
  margin: 0 0 12px;
  color: #f7f3e3;
}

.hero p {
  color: #d6e5dc;
  margin: 0 0 24px;
  font-size: 16.5px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16.5px;
  max-width: 420px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  width: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover,
.hc:hover {
  transform: translateY(-2px);
}

.wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
}

.wa:hover {
  background: #1eb455;
}

.call {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.call:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn .i {
  width: 21px;
  height: 21px;
}

.call .i {
  color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  padding: 5px 14px;
  font-weight: 700;
  font-size: 13.5px;
}

.chip::before {
  content: "✓ ";
  color: var(--gold);
}

.hero-media img {
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats div {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 15px 12px;
  text-align: center;
}

.stats b {
  display: block;
  font-size: 17px;
  color: #fff;
}

.stats small {
  color: #c2d4ca;
  font-size: 12.5px;
  line-height: 1.5;
  display: block;
  margin-top: 2px;
}

/* الأقسام والبطاقات */
section {
  padding: 64px 0;
}

.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #e6efe9;
  color: var(--g);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 30px;
}

.tag::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag {
    background: #183628;
    color: #9ce0b7;
  }
}

h2 {
  font-size: clamp(27px, 4.8vw, 38px);
  line-height: 1.3;
  margin: 14px 0 8px;
  font-weight: 800;
}

.lead {
  color: var(--mut);
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.85;
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .grid.c3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.c2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero .w {
    grid-template-columns: 1.12fr 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(15, 76, 58, 0.06);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.js .card.rv.in:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 76, 58, 0.11);
  border-color: rgba(217, 181, 91, 0.55);
}

.sv::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--g), var(--gold));
}

.ic {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #e9f2ec;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.ic .i {
  width: 30px;
  height: 30px;
  color: var(--g);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic {
    background: #1a3829;
  }
  :root:not([data-theme="light"]) .ic .i {
    color: var(--gold);
  }
}

.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.card p {
  margin: 0 0 14px;
  color: var(--mut);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.card li {
  margin: 6px 0;
  font-size: 15px;
}

.card li::before {
  content: "✓";
  color: var(--g);
  font-weight: 800;
  margin-left: 10px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--g);
  font-weight: 800;
  font-size: 15.5px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .more,
  :root:not([data-theme="light"]) .card li::before {
    color: #82dfa6;
  }
}

/* بطاقات الفوائد */
.bn {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}

.bn i {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--g), var(--g2));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-style: normal;
  box-shadow: 0 6px 14px rgba(15, 76, 58, 0.2);
}

.bn i .i {
  width: 26px;
  height: 26px;
}

.bn h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.bn p {
  margin: 0;
  font-size: 15px;
}

.note {
  margin-top: 22px;
  border: 1.5px dashed var(--gold);
  background: rgba(217, 181, 91, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--mut);
  font-size: 15px;
}

.note b {
  color: var(--ink);
}

/* الخطوات */
.stp {
  text-align: right;
}

.n {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #c79f3e);
  color: #1f1805;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 18px;
}

/* عن المركز والمعرض */
.about {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about > img {
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(10, 40, 25, 0.18);
  width: 100%;
}

.chips.lt .chip {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.chips.lt .chip::before {
  content: "✦ ";
  color: var(--g);
}

.gal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 760px) {
  .gal {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gal figure {
  margin: 0;
  text-align: center;
  color: var(--mut);
  font-size: 14px;
  font-weight: 700;
}

.gal img {
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.gal img:hover {
  transform: scale(1.02);
}

/* قسم العمرة والحج */
.um {
  border-radius: 28px;
  padding: 36px 26px;
}

.um .tag {
  background: rgba(255, 255, 255, 0.1);
  color: #f3e6be;
  border-color: rgba(255, 255, 255, 0.22);
}

.um .tag .i {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.um .lead {
  color: #d3e3d9;
}

.um .g4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 760px) {
  .um .g4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.um .g4 div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
}

.um .g4 span {
  display: block;
}

.um .g4 .i {
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin: 0 auto 8px;
}

/* الاستمارة والتواصل */
label {
  display: block;
  font-weight: 800;
  margin: 14px 0 6px;
  font-size: 15px;
}

label:first-child {
  margin-top: 0;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.14);
}

.err {
  color: #dc2626;
  font-size: 14px;
  min-height: 20px;
  margin: 8px 0 0;
  font-weight: 700;
}

form .btn {
  margin-top: 10px;
  max-width: none;
}

.ct {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.ct i {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #e9f2ec;
  display: grid;
  place-items: center;
  font-style: normal;
  flex: none;
}

.ct i .i {
  width: 24px;
  height: 24px;
  color: var(--g);
}

.ct i.wa-ic {
  background: rgba(34, 197, 94, 0.14);
}

.ct i.wa-ic .i {
  color: #16a34a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ct i {
    background: #1a3829;
  }
  :root:not([data-theme="light"]) .ct i .i {
    color: var(--gold);
  }
  :root:not([data-theme="light"]) .ct i.wa-ic {
    background: rgba(34, 197, 94, 0.18);
  }
  :root:not([data-theme="light"]) .ct i.wa-ic .i {
    color: #4ade80;
  }
}

.ct b {
  display: block;
  font-size: 17px;
}

.ct small {
  color: var(--mut);
  font-size: 14.5px;
}

/* الأسئلة الشائعة */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.q {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(10, 40, 25, 0.04);
}

.q button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.q button::after {
  content: "+";
  color: var(--g);
  font-size: 24px;
  line-height: 1;
}

.q.open button::after {
  content: "−";
}

.q div {
  display: none;
  padding: 0 20px 18px;
  color: var(--mut);
}

.q.open div {
  display: block;
}

/* الفوتر */
footer {
  background: var(--g2);
  color: #cfe0d5;
  padding: 46px 0 32px;
}

footer h4 {
  color: #fff;
  font-size: 19px;
  margin: 0 0 12px;
}

footer .cols {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  footer .cols {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

footer a {
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold);
}

footer .fl {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .fl .i {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

footer small {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 18px;
  color: #9db8a8;
}

/* زر واتساب العائم وشريط الهاتف */
.fab {
  position: fixed;
  left: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.45);
  z-index: 8;
}

.fab .i {
  width: 30px;
  height: 30px;
  color: #fff;
}

.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pl 2.4s ease-out infinite;
}

@keyframes pl {
  to {
    transform: scale(1.55);
    opacity: 0;
  }
}

#lc {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

#lc .btn {
  max-width: none;
}

.map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 20px;
}

.bar {
  display: none;
}

@media (max-width: 759px) {
  .bar {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--hd);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 9;
  }
  .bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    color: #fff;
  }
  .bar .b1 {
    background: var(--wa);
  }
  .bar .b2 {
    background: var(--g);
  }
  .fab {
    display: none;
  }
  body {
    padding-bottom: 76px;
  }
}

/* عارض الصور Lightbox */
#lb {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 10, 0.94);
  display: none;
  place-items: center;
  z-index: 30;
  padding: 20px;
  cursor: zoom-out;
}

#lb.on {
  display: grid;
}

#lb img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 16px;
}

#lb button {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

#lb button[data-d="1"] {
  left: 14px;
}

#lb button[data-d="-1"] {
  right: 14px;
}

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fab::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}