/* ahlmakkah.com — one stylesheet, no framework. Night navy and gold from the
   logo (a gold crescent and Kaaba on a dark disc). */

:root {
  --brand: #0f1a2e;
  --brand-ink: #0b1424;
  --brand-soft: #f5efe0;
  --copper: #b8892b;
  --copper-soft: #fbf6ea;
  --ink: #1b2233;
  --muted: #5d6474;
  --line: #e7e2d6;
  --bg: #ffffff;
  --alt: #faf8f3;
  --wa: #1c9d4f;
  --wa-ink: #157a3d;
  --r: 16px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 8px 22px rgb(16 24 40 / .07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.9 Cairo, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--brand-ink); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.small { font-size: .92rem; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--brand-soft); }
.nav a[aria-current] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-ink); }
.btn-ghost { background: rgb(255 255 255 / .14); color: #fff; border: 1px solid rgb(255 255 255 / .55); }
.btn-ghost:hover { background: rgb(255 255 255 / .24); }
.btn-ghost-dark { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-lg { padding: 15px 26px; font-size: 1.08rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; margin-top: 12px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgb(11 20 36 / .94) 0%, rgb(11 20 36 / .74) 55%, rgb(11 20 36 / .35) 100%); }
.hero-in { padding: clamp(56px, 10vw, 112px) 0; max-width: 760px; margin-inline-start: max(16px, calc((100% - 1120px) / 2)); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: inherit; opacity: .95; max-width: 62ch; }
.page-head .lead { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* sections */
.sec { padding: clamp(40px, 6vw, 72px) 0; }
[id] { scroll-margin-top: 84px; }
.sec-tight { padding: 22px 0; }
.sec-alt { background: var(--alt); }
.page-head { padding-bottom: 12px; }
.two { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.pic img { border-radius: var(--r); max-height: 460px; object-fit: cover; width: 100%; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.facts li { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: var(--r); padding: 14px 16px; }
.facts .ico { color: var(--brand); margin-top: 4px; }
.facts b { display: block; font-size: .9rem; color: var(--muted); font-weight: 500; }
.facts span { font-weight: 800; color: var(--brand-ink); }
.facts li { border-inline-start: 4px solid var(--copper); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-in { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); }
.more { margin-top: auto; font-weight: 700; }
.more::after { content: " ←"; }

.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding: 6px 30px 6px 0; }
.check li::before { content: ""; position: absolute; right: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check.no li::before { background: #9aa3ad url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.3 5.7 12 12l6.3 6.3-1.4 1.4L10.6 13.4 4.3 19.7 2.9 18.3 9.2 12 2.9 5.7l1.4-1.4 6.3 6.3 6.3-6.3z'/%3E%3C/svg%3E") center / 11px no-repeat; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 58px 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--copper); color: #fff; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.steps b { display: block; color: var(--brand-ink); }
.steps span { color: var(--muted); }

.seat-pair { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 24px; }
.seat-pair figure { margin: 0; text-align: center; }
.seats { width: 200px; height: auto; }
.seats rect { fill: var(--brand); }
.seats.vip rect { fill: var(--copper); }
figcaption { font-size: .92rem; color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 1.2em; }
.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--brand-soft); color: var(--brand-ink); }
.cmp tbody th { font-weight: 700; width: 30%; }
.cmp tr:last-child > * { border-bottom: 0; }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

.cta { background: radial-gradient(120% 140% at 100% 0%, #1d2c4a 0%, var(--brand-ink) 60%); border-top: 3px solid var(--copper); color: #fff; padding: clamp(40px, 6vw, 64px) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: .92; max-width: 56ch; margin-inline: auto; margin-bottom: 1.4em; }

.faq { padding: clamp(40px, 6vw, 72px) 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 18px 14px; color: var(--muted); }

.book { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.book label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.book input, .book select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd6d2; border-radius: 10px; background: #fff; min-height: 46px; }
.book button { grid-column: 1 / -1; justify-content: center; }

.prose { max-width: 75ch; }
.prose h3 { margin-top: 1.6em; color: var(--brand-ink); }
.prose ul { padding-inline-start: 1.2em; }

/* footer */
.foot { background: #0b1424; color: #d9d4c7; padding: 48px 0 24px; margin-top: 0; }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(4, 1fr); }
.foot h3 { color: #fff; font-size: 1rem; }
.foot a { color: #d9d4c7; display: block; padding: 4px 0; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .about img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px; }
.foot .about p { font-size: .95rem; }
.foot .about .btn { display: inline-flex; color: #fff; }
.copy { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 28px; padding-top: 16px; font-size: .9rem; color: #a49f92; }

.wa-float { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.wa-float .ico { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; }
  .nav { order: 3; width: 100%; margin: 0; padding-bottom: 4px; }
  .hide-sm { display: none; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .hero::after { background: linear-gradient(0deg, rgb(11 20 36 / .94) 0%, rgb(11 20 36 / .8) 60%, rgb(11 20 36 / .55) 100%); }
}

/* gold touches */
h2 { position: relative; padding-bottom: .35em; }
.sec h2::after, .faq h2::after { content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--copper); }
.cta h2::after { display: none; }
.nav a[aria-current] { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 -2px 0 var(--copper); }
.tag { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--copper); background: var(--copper-soft); border-radius: 999px; padding: 2px 12px; margin-bottom: .6em; }
.post-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); margin: 8px 0 24px; }
.prose h2 { margin-top: 1.4em; }
.prose h2::after { content: ""; position: absolute; right: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--copper); }

/* Mid widths (tablet, small laptop): with the «المدن» item the nav and the
   header WhatsApp button no longer fit on one row — the button wrapped onto
   two lines and the nav hid its last items. The floating button stays. */
.top .btn-wa { white-space: nowrap; }
@media (max-width: 1180px) {
  .top .btn-wa { display: none; }
  .nav a { padding: 8px 9px; }
}
