:root {
  --navy: #c00452;
  --navy-dark: #f771a8;
  --gold: #74b0f5;
  --gold-light: #d6e3f1;
  --gold-lighter: #f0f0f0;
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --text: #263140;
  --text-muted: #667085;
  --border: #e7e5e0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 700; font-size: 18px; color: var(--navy); }
.logo-text span { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.03em; }
nav.site-nav { display: flex; gap: 28px; align-items: center; }
nav.site-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text); }
nav.site-nav a.active, nav.site-nav a:hover { color: var(--gold); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 10px 18px; border-radius: 7px; }
.nav-cta:hover { background: var(--navy-dark) !important; color: #fff !important; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 60px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .hero .container { grid-template-columns: 1fr; } }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.hero h1 { font-size: 40px; line-height: 1.15; color: var(--navy); margin: 0 0 18px; }
.hero p.lead { font-size: 17px; color: var(--text-muted); margin-bottom: 26px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: var(--navy); border-radius: 16px; min-height: 280px;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85);
  font-size: 14px; padding: 30px; text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; border: none; cursor: pointer;
}
.btn-primary { background: var(--gold-light); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-lighter); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 42px; }
.section-heading h2 { font-size: 30px; color: var(--navy); margin-bottom: 12px; }
.section-heading p { color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; color: var(--gold);
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.card p { color: var(--text-muted); margin: 0; font-size: 14.5px; }
.card ul { padding-left: 18px; color: var(--text-muted); font-size: 14.5px; margin: 10px 0 0; }
.card ul li { margin-bottom: 4px; }

.stats-row { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 24px; }
.stat { }
.stat .num { font-size: 32px; font-weight: 800; color: var(--gold); }
.stat .label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

blockquote.testimonial {
  font-size: 17px; font-style: italic; color: var(--navy); margin: 0 0 12px;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { color: var(--text-muted); font-size: 13px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.contact-info-item h4 { margin: 0 0 3px; color: var(--navy); font-size: 15px; }
.contact-info-item p { margin: 0; color: var(--text-muted); font-size: 14px; }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
form.contact-form label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: -8px; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px;
}
form.contact-form button { margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--text-muted); }

/* Footer */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 40px 0 24px; margin-top: 40px; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer.site-footer a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 14px; }
footer.site-footer .foot-col { min-width: 180px; }
footer.site-footer .foot-col p, footer.site-footer .foot-col a { display: block; margin-bottom: 6px; }
.foot-bottom { text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

.page-hero { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { margin: 0 0 10px; font-size: 34px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ============================================================================
   Arabic / RTL
   ============================================================================ */

/* Same face the mobile app uses, so the two products look like one brand.
   font-display:swap renders the text immediately in the fallback and swaps when the 200KB file
   arrives — better than holding the page blank on a slow connection. */
@font-face {
  font-family: "Neo Sans Arabic";
  src: url("../fonts/NeoSansArabic.ttf") format("truetype");
  font-weight: 400 800; /* single file, so every weight maps to it and the browser synthesises bold */
  font-display: swap;
}
body {
  font-family: "Neo Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* The header markup is now injected by site.js, so the layout that used to live in an inline
   style attribute on each page belongs here instead. */
header.site-header .container {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}

/* ============================================================================
   Layout fixes for RTL
   The site is Arabic-only, so direction is set on <html dir="rtl"> rather than
   toggled. These rules fix the handful of places that assumed left-to-right.
   ============================================================================ */

/* Physical padding-left would indent bullets on the wrong side in RTL. */
.card ul { padding-left: 0; padding-inline-start: 18px; }

/* The logo mark is now the company badge rather than a two-letter block. */
.logo-mark {
  background: none; border-radius: 50%; object-fit: cover;
  width: 46px; height: 46px;
}
.logo-text { font-size: 19px; }

/* Uppercase/letter-spacing are meaningless in Arabic and just distort the shapes,
   since Arabic letters join and can't be spaced apart without breaking the joins. */
.eyebrow, .stat .label, footer.site-footer .foot-bottom { text-transform: none; letter-spacing: 0; }

/* Mobile nav — the original had no small-screen treatment at all. */
.nav-toggle {
  display: none; background: none; border: none; font-size: 24px;
  color: var(--navy); cursor: pointer; line-height: 1;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  header.site-header .container { flex-wrap: wrap; }
  nav.site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 14px; padding-top: 16px;
  }
  nav.site-nav.open { display: flex; }
  .hero h1 { font-size: 30px; }
}

/* Footer simplified to a single row of links. */
footer.site-footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Workers gallery ---------- */
.worker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .worker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .worker-grid { grid-template-columns: 1fr; } }
.worker-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; text-align: center;
}
.worker-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--bg-alt);
}
.worker-photo-placeholder {
  width: 100%; aspect-ratio: 1 / 1; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--text-muted);
}
.worker-name { font-weight: 700; color: var(--navy); padding: 14px 10px 4px; }
.worker-rating { padding: 0 10px 14px; font-size: 13px; color: var(--text-muted); }
/* Stars read left-to-right even in Arabic, and the fill must clip from the same side. */
.stars { position: relative; display: inline-block; direction: ltr; color: var(--border); letter-spacing: 1px; }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }

/* ---------- Booking / auth forms ---------- */
.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; max-width: 560px; margin: 0 auto;
}
.panel h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.panel .muted { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px;
}
.form-error { color: #c0392b; font-size: 14px; margin: 10px 0 0; }
.form-success { color: #1e8e5a; font-size: 14px; margin: 10px 0 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text-muted);
}
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Worker picker inside the booking form */
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .picker-grid { grid-template-columns: repeat(2, 1fr); } }
.picker-item {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 8px; cursor: pointer;
  text-align: center; background: #fff;
}
.picker-item.selected { border-color: var(--gold); background: #fdf7ec; }
.picker-item img, .picker-item .ph {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; display: block; background: var(--bg-alt);
}
.picker-item .ph { display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-muted); }
.picker-item span { display: block; font-size: 12.5px; margin-top: 6px; color: var(--navy); }

.spinner {
  width: 30px; height: 30px; border-radius: 50%; margin: 30px auto;
  border: 3px solid var(--border); border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }
