:root {
  --bg: #fbf8ef;
  --surface: #ffffff;
  --cream: #f5efdf;
  --ink: #18352d;
  --muted: #65756f;
  --line: #e4ddcc;
  --primary: #1f3d34;
  --primary-2: #153029;
  --gold: #c79738;
  --gold-ink: #17322b;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 50px rgba(24, 53, 45, .12);
  --radius: 18px;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body[dir="rtl"], [dir="rtl"] { font-family: "Noto Kufi Arabic", "Tahoma", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; color: transparent; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.08; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 82px); }
h2 { font-size: clamp(34px, 4.4vw, 54px); }
h3 { font-size: 28px; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: 18px; max-width: 680px; color: rgba(255,255,255,.86); }
.text-gold { color: var(--gold); }

.skip-link { position: absolute; inset-inline-start: 18px; top: -60px; z-index: 1000; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,239,.88); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(24, 53, 45, .08); }
.header-row { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; font-size: 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--primary); color: white; display: grid; place-items: center; flex: 0 0 auto; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 700; color: rgba(24,53,45,.82); }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 800; display: inline-grid; place-items: center; }
.menu-btn { display: none; }
.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; animation: slideDown .2s ease-out; }
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(228,221,204,.7); font-weight: 750; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 850; transition: transform .2s, filter .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 1px solid var(--line); background: var(--surface); color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }

.hero { position: relative; min-height: min(780px, calc(100vh - 68px)); overflow: hidden; color: #fff; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 900ms ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(31,61,52,.92), rgba(31,61,52,.72) 48%, rgba(31,61,52,.28)); }
[dir="rtl"] .hero::after { background: linear-gradient(-110deg, rgba(31,61,52,.92), rgba(31,61,52,.72) 48%, rgba(31,61,52,.28)); }
.hero-content { padding: 126px 0 104px; max-width: 720px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(199,151,56,.45); background: rgba(199,151,56,.12); color: var(--gold); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { margin-top: 18px; max-width: 780px; }
.hero p { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; margin-top: 44px; max-width: 650px; font-size: 14px; color: rgba(255,255,255,.9); }
.hero-facts span { display: flex; align-items: center; gap: 8px; }
.hero-dots { position: absolute; bottom: 24px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 18px; height: 7px; border: 0; border-radius: 999px; background: rgba(255,255,255,.42); padding: 0; }
.hero-dots button.active { width: 34px; background: var(--gold); }

.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 38px 0; text-align: center; }
.trust strong { display: block; font-family: Georgia, serif; font-size: 40px; color: var(--primary); line-height: 1; }
.trust span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 42px; }
.section-head p { max-width: 660px; color: var(--muted); margin-top: 14px; }
.grid { display: grid; gap: 24px; }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 3px 16px rgba(24,53,45,.05); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(199,151,56,.65); box-shadow: var(--shadow); }
.service-img { position: relative; aspect-ratio: 5/4; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-img img { transform: scale(1.04); }
.service-badge { position: absolute; top: 14px; inset-inline-start: 14px; max-width: 84%; background: var(--primary); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 850; line-height: 1.25; }
.sub-list { list-style: none; padding: 14px 18px 0; margin: 0; flex: 1; }
.sub-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(228,221,204,.75); font-size: 14px; font-weight: 750; }
.sub-list li:last-child a { border-bottom: 0; }
.card-actions { padding: 16px 18px 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.image-frame { overflow: hidden; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.feature-list strong { display: block; margin-bottom: 4px; }
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
.step .num { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 34px; line-height: 1; margin-bottom: 12px; }
.reviews { background: var(--primary); color: #fff; }
.reviews .muted { color: rgba(255,255,255,.72); }
.review-grid { grid-template-columns: repeat(3, 1fr); }
.review { border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.06); padding: 24px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-card { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 18px; background: var(--line); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-card:hover img { transform: scale(1.05); }
.caption { position: absolute; inset-inline: 16px; bottom: 16px; background: rgba(255,255,255,.92); border-radius: 13px; padding: 13px 15px; backdrop-filter: blur(10px); }
.caption small { color: var(--gold); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band p { color: rgba(255,255,255,.76); max-width: 650px; margin: 16px auto 0; }

.page-hero { background: var(--cream); padding: 82px 0; }
.page-hero p { max-width: 760px; margin-top: 16px; color: var(--muted); }
.detail-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(31,61,52,.93), rgba(31,61,52,.72), rgba(31,61,52,.28)); }
.detail-hero .container { padding: 90px 0; }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.highlight-grid { grid-template-columns: repeat(2, 1fr); }
.highlight { display: flex; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px; }
.check { width: 24px; height: 24px; border-radius: 999px; background: rgba(199,151,56,.18); color: var(--gold); display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; }
.aside-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 850; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; color: var(--muted); }

.contact-grid { grid-template-columns: 1fr 1fr; }
.contact-card { display: flex; align-items: start; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(31,61,52,.06); color: var(--primary); display: grid; place-items: center; }
.form-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,151,56,.16); }
.notice { margin-top: 12px; border-radius: 12px; padding: 12px 14px; font-size: 14px; display: none; }
.notice.show { display: block; }
.notice.ok { background: rgba(8,116,67,.1); color: var(--success); }
.notice.err { background: rgba(180,35,24,.1); color: var(--danger); }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 46px; margin-bottom: 8px; }
.prose h2 { font-size: 28px; margin-top: 34px; margin-bottom: 8px; }
.prose p, .post-content p { color: var(--muted); margin-top: 12px; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); transition: box-shadow .25s, transform .25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--line); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 20px; }
.empty { border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); padding: 34px; text-align: center; color: var(--muted); }

.site-footer { margin-top: 0; background: var(--primary); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding: 62px 0; }
.site-footer p, .site-footer li { color: rgba(255,255,255,.72); }
.site-footer ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.site-footer h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; display: grid; place-items: center; color: rgba(255,255,255,.82); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 999px; background: #25d366; color: white; box-shadow: 0 12px 36px rgba(37,211,102,.38); }
[dir="rtl"] .wa-float { right: auto; left: 22px; }

.admin-body { background: #f6f6f3; color: #1f2933; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { background: #fff; border-inline-end: 1px solid #e5e7eb; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-brand { padding: 22px; border-bottom: 1px solid #e5e7eb; }
.admin-brand strong { display: block; font-size: 18px; }
.admin-brand small { display: block; margin-top: 4px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav { padding: 14px; display: grid; gap: 6px; flex: 1; }
.admin-nav button, .admin-nav a { border: 0; background: transparent; color: #374151; text-align: start; border-radius: 10px; padding: 11px 12px; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.admin-nav button.active, .admin-nav a.active { background: #111827; color: #fff; }
.admin-main { padding: 34px; max-width: 1240px; width: 100%; }
.admin-card { border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; padding: 22px; }
.admin-grid { display: grid; gap: 18px; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.stat { border: 1px solid #e5e7eb; border-radius: 15px; background: #fff; padding: 20px; }
.stat small { color: #6b7280; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.stat strong { display: block; margin-top: 7px; font-size: 34px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 15px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #f9fafb; color: #6b7280; text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
th, td { padding: 13px 15px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 850; background: #e5e7eb; color: #374151; }
.pill.ok { background: #d1fae5; color: #065f46; }
.pill.warn { background: #fef3c7; color: #92400e; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 8px 13px; font-weight: 800; }
.tabs button.active { background: #111827; color: #fff; border-color: #111827; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-card { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; overflow: hidden; }
.media-card .preview { aspect-ratio: 1; background: #f3f4f6; display: grid; place-items: center; }
.media-card .preview img { width: 100%; height: 100%; object-fit: cover; }
.media-card .media-body { padding: 12px; display: grid; gap: 9px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(430px, 100%); border: 1px solid #e5e7eb; border-radius: 18px; background: #fff; padding: 28px; box-shadow: 0 18px 50px rgba(17,24,39,.08); }
.admin-error { color: var(--danger); font-size: 14px; margin-top: 12px; }
.hidden { display: none !important; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

@media (max-width: 1080px) {
  .nav, .header-actions .phone-link, .header-actions .quote-link { display: none; }
  .menu-btn { display: inline-grid; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .admin-stats, .media-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 62px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 84px 0 74px; }
  .hero-facts, .trust-grid, .feature-list, .highlight-grid, .review-grid, .gallery-grid, .blog-grid, .contact-grid, .footer-grid, .split { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .lead { font-size: 16px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .page-hero { padding: 56px 0; }
  .footer-bottom { display: grid; }
  .admin-main { padding: 20px 14px; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
}