﻿:root {
  --cream: #F7F6F2;
  --beige: #E8E6E1;
  --brown: #1F2F4A;
  --dark: #141E30;
  --muted: #5A6272;
  --sand: #D9D5CC;
  --light-on-brown: #D9C9A0;
  --gold: #B8935A;
  --gold-light: #D9BF8C;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Almarai", sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.9;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; }
.container { width: min(1240px, 92%); margin-inline: auto; }
.section { padding: 70px 0; }
.title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-align: center; }
.subtitle { text-align: center; color: var(--muted); margin: 6px 0 30px; font-weight: 300; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem "Almarai", sans-serif; cursor: pointer; text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-brown { background: var(--brown); color: var(--cream); }
.btn-brown:hover { background: var(--dark); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--sand); }
.btn-beige { background: var(--beige); color: var(--dark); }
.btn-beige:hover { background: var(--sand); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream); }
/* الصور */
.thumb { background: var(--sand); overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.no-img img { display: none; }
.hero-main { border-radius: 24px; }
.round { border-radius: 24px; }
/* الشريط العلوي */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.5rem; font-weight: 800; }
.brand-text small { font-size: .85rem; color: var(--muted); }
.nav-links { display: flex; gap: 4px; background: var(--beige); padding: 5px; border-radius: 999px; }
.nav-links a { display: block; padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted); transition: background .25s, color .25s; }
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { background: #fff; color: var(--dark); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions .btn { padding: 10px 24px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--beige); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--brown); stroke-width: 1.8; stroke-linecap: round; }
/* الواجهة */
.hero-card { background: var(--beige); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-block; background: #fff; padding: 4px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--brown); margin-bottom: 18px; }
.hero h1, .hero-text h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 18px; }
.lead { color: var(--muted); font-weight: 300; font-size: 1.1rem; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brown); line-height: 1.3; }
.hero-stats span { font-size: .9rem; color: var(--muted); }
.hero-visual { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; height: 480px; }
.hero-main { height: 100%; }
.hero-side { display: grid; grid-template-rows: 1fr auto; gap: 14px; min-height: 0; }
.hero-small { min-height: 0; }
.hero-note { background: var(--brown); color: var(--cream); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.hero-note .ico { width: 30px; height: 30px; color: var(--light-on-brown); }
.hero-note p { font-weight: 700; font-size: .95rem; line-height: 1.6; }
/* الأقسام */
.tabs { display: flex; width: fit-content; margin: 0 auto 36px; background: var(--beige); padding: 5px; border-radius: 999px; gap: 4px; }
.tab { border: 0; background: transparent; padding: 10px 30px; border-radius: 999px; font: 700 1rem "Almarai", sans-serif; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.tab.active { background: var(--brown); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; background: var(--sand); border: 0; border-radius: 24px; padding: 0; height: 340px; overflow: hidden; cursor: pointer; text-align: right; color: inherit; display: block; width: 100%; }
.card .thumb { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.card .thumb img { transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card-foot { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(247, 246, 242, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card-foot h3 { font-size: 1.2rem; }
.card-foot span { font-size: .88rem; color: var(--muted); }
.arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--brown); display: grid; place-items: center; flex-shrink: 0; transition: background .25s; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery-wrap { margin-top: 10px; scroll-margin-top: 20px; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-head h3 { font-size: 1.9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.item { background: #fff; border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.item .thumb { aspect-ratio: 1; border-radius: 16px; }
.item button.thumb { border: 0; padding: 0; display: block; width: 100%; cursor: zoom-in; }
.item p { font-weight: 700; padding-inline: 6px; }
.item .btn { padding: 10px 16px; font-size: .95rem; }
/* شريط الخطوات */
.steps-band { background: #E8E6E1; color: #141E30; border-top: 1px solid #D6D1C6; border-bottom: 1px solid #D6D1C6; padding: 64px 0; margin-top: 30px; }
.steps-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #141E30; }
.steps-sub { text-align: center; color: #7A6334; font-weight: 300; margin: 4px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: calc(50% + 36px); left: calc(-50% + 8px); border-top: 2px dotted #B8935A; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: #1F2F4A; color: #FFFFFF; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.4rem; font-weight: 800; }
.step h3 { font-size: 1.2rem; margin-bottom: 4px; color: #141E30; }
.step p { color: #5A6272; font-weight: 300; font-size: .95rem; }
/* زورونا */
.visit-card { background: var(--beige); border-radius: 32px; padding: 44px; }
.visit-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.visit-head .title { text-align: right; }
.hours-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.open { color: #2f7d4f; }
.status.closed { color: #b3402f; }
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.branch { background: #fff; border-radius: 28px; padding: 14px; }
.branch iframe { width: 100%; height: 260px; border: 0; border-radius: 16px; display: block; background: var(--sand); }
.branch-body { padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.branch-body h3 { font-size: 1.4rem; }
.branch-body p { color: var(--muted); font-weight: 300; }
.branch-body .map-link { color: var(--brown); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; width: fit-content; }
.branch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer { background: var(--dark); color: var(--light-on-brown); padding: 28px 0; margin-top: 70px; }
.footer-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.footer strong { font-size: 1.3rem; font-weight: 800; color: var(--cream); }
.footer p { font-weight: 300; font-size: .92rem; }
/* نافذة التكبير */
.lightbox { position: fixed; inset: 0; background: rgba(20, 30, 48, .94); z-index: 100; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { text-align: center; max-width: min(900px, 80vw); }
.lightbox img { max-height: 70vh; margin: 0 auto 16px; border-radius: 24px; background: var(--sand); min-width: 200px; min-height: 200px; object-fit: contain; }
.lightbox figcaption { color: var(--cream); margin-bottom: 16px; font-weight: 300; }
.lb-nav, .lb-close { background: var(--beige); border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; transition: background .25s; }
.lb-nav svg, .lb-close svg { width: 20px; height: 20px; fill: none; stroke: var(--brown); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover, .lb-close:hover { background: #fff; }
.lb-close { position: absolute; top: 20px; left: 20px; }
/* زر واتساب العائم */
.fab { position: fixed; bottom: 22px; left: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brown); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.fab-btn:hover { background: var(--dark); }
.fab-btn svg { width: 28px; height: 28px; }
.fab-menu { display: flex; flex-direction: column; gap: 8px; }
.fab-menu[hidden] { display: none; }
.fab-menu a { background: #fff; color: var(--brown); font-weight: 700; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--brown); transition: background .25s, color .25s; }
.fab-menu a:hover { background: var(--brown); color: #fff; }
/* اللوحي */
@media (max-width: 960px) {
  .hero-card { grid-template-columns: 1fr; padding: 32px; }
  .hero-visual { height: 420px; }
  .branches { grid-template-columns: 1fr; }
  .visit-card { padding: 28px; }
}
/* الهاتف */
@media (max-width: 720px) {
  .section { padding: 50px 0; }
  .nav-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 80px; right: 0; left: 0; z-index: 20; flex-direction: column; border-radius: 24px; padding: 8px; background: var(--beige); border: 1px solid var(--sand); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; }
  .brand-text small { display: none; }
  .tab { padding: 10px 18px; font-size: .92rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { height: 280px; }
  .card-foot h3 { font-size: 1rem; }
  .arrow { width: 36px; height: 36px; }
  .hero-card { padding: 22px; border-radius: 28px; }
  .hero-visual { height: 340px; }
  .hero-stats { gap: 22px; }
  .visit-head .title { text-align: center; width: 100%; }
  .hours-box { justify-content: center; width: 100%; }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { right: 20px; }
  .lb-next { left: 20px; }
  .lightbox figure { max-width: 100%; }
  .lightbox img { max-height: 58vh; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero-card .hero-visual { grid-template-columns: 1fr 1fr; }
  .top-actions .btn { padding: 10px 16px; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .steps { gap: 12px; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .85rem; }
  .step:not(:last-child)::after { right: calc(50% + 34px); left: calc(-50% + 22px); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: right; align-items: start; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { grid-column: 2; align-self: end; }
  .step p { grid-column: 2; }
  .step:not(:last-child)::after { top: 64px; bottom: -28px; right: 27px; left: auto; width: 0; border-top: 0; border-right: 2px dotted #B8935A; }
}


/* ===================== لمسات الفخامة ===================== */

/* الواجهة بعرض الشاشة */
.hero-full { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--dark); color: var(--cream); }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease; }
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(14, 21, 34, .88) 0%, rgba(14, 21, 34, .7) 38%, rgba(14, 21, 34, .25) 62%, rgba(14, 21, 34, 0) 80%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0 100px; }
.hero-content > * { max-width: 600px; }
.hero-content h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); color: #fff; margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.badge.gold { background: transparent; border: 1px solid var(--gold-light); color: var(--gold-light); }
.gold-rule { display: block; width: 90px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.hero-content .lead { color: #E4E6EC; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-content .hero-stats b { color: var(--gold-light); }
.hero-content .hero-stats span { color: #E4E6EC; }
.hero-made { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(217, 191, 140, .35); color: #E4E6EC; font-size: .95rem; }
.hero-made .ico { color: var(--gold-light); }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 40px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); transition: background .4s; }
.hero-dots button.active::before { background: var(--gold); }

/* زخرفة ذهبية تحت العناوين */
.title::after, .steps-title::after {
  content: ""; display: block; width: 120px; height: 12px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12'%3E%3Cline x1='0' y1='6' x2='50' y2='6' stroke='%23B8935A'/%3E%3Cline x1='70' y1='6' x2='120' y2='6' stroke='%23B8935A'/%3E%3Crect x='56.5' y='2.5' width='7' height='7' fill='%23B8935A' transform='rotate(45 60 6)'/%3E%3C/svg%3E") center / contain no-repeat;
}
.visit-head .title::after { margin-right: 0; }

/* لمسات ذهبية رفيعة */
.steps-band { border-top-color: var(--gold-light); border-bottom-color: var(--gold-light); }
.step-num { box-shadow: 0 0 0 4px #E8E6E1, 0 0 0 5px var(--gold); }
.card-foot { border: 1px solid rgba(184, 147, 90, .35); }
.card:hover .arrow { background: var(--gold); }
.visit-card { border: 1px solid rgba(184, 147, 90, .3); }
.branch { border: 1px solid rgba(184, 147, 90, .2); }
.footer { border-top: 3px solid var(--gold); }

/* حركات ناعمة */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
.item .thumb img { transition: transform .6s ease; }
.item:hover .thumb img { transform: scale(1.05); }
.branch, .item { transition: transform .4s ease, box-shadow .4s ease; }
.branch:hover, .item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 30, 48, .08); }

@media (max-width: 720px) {
  .visit-head .title::after { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img, .js-anim .reveal { transition: none; transform: none; }
}

/* الواجهة على الآيفون والآيباد: الصورة واضحة فوق، والكتابة تحتها */
@media (max-width: 1024px) {
  .hero-full { display: block; min-height: 0; }
  .hero-slides { position: relative; height: clamp(280px, 62vw, 600px); }
  .hero-slides::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, var(--dark), transparent); z-index: 1; }
  .hero-slides img { transform: none; }
  .hero-shade { display: none; }
  .hero-content { padding: 26px 0 60px; }
  .hero-content > * { max-width: 100%; }
  .hero-dots { top: calc(clamp(280px, 62vw, 600px) - 40px); bottom: auto; }
}
@media (max-width: 720px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .lead { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 140px; }
  .hero-stats { gap: 18px; justify-content: space-between; }
}

/* شعار الأمين */
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 29px; } }
