/* Librairie Dawi — dawilibrary.com
   Mobile-first, RTL-aware (logical properties), no build step. */

:root {
  --red: #e42838;
  --red-dark: #c41f2d;
  --blue: #0878b8;
  --blue-dark: #066398;
  --green: #189848;
  --green-dark: #147a3a;
  --orange: #f08918;
  --ink: #1c2330;
  --ink-soft: #3a4354;
  --muted: #5c6574;
  --line: #eadfd4;
  --paper: #fff8f3;
  --sand: #f4ebe3;
  --card: #ffffff;
  --whatsapp: #128c7e;
  --whatsapp-dark: #0e6e63;
  --shadow: 0 10px 30px rgba(28, 22, 18, 0.08);
  --shadow-sm: 0 2px 10px rgba(28, 22, 18, 0.06);
  --radius: 1.15rem;
  --radius-sm: 0.85rem;
  --header-h: 4.15rem;
  --max: 70rem;
  --font-sans: "DM Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-display: "Nunito", "Cairo", var(--font-sans);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

html[lang="ar"] {
  --font-sans: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cairo", "Nunito", var(--font-sans);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-size: 1.125rem;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible { outline: none; box-shadow: var(--focus); }

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
}
.skip:focus { top: 0.75rem; }

/* ——— Brand stripe ——— */
.brand-stripe {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 25%,
    var(--green) 25% 50%,
    var(--orange) 50% 75%,
    var(--red) 75% 100%
  );
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}
.logo-link:hover { color: inherit; }
.logo-link img {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.logo-wordmark .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.logo-wordmark .sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.15rem;
  gap: 0;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.lang-toggle button:focus-visible { box-shadow: var(--focus); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 0.72rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: inherit; transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-wa:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-header-wa {
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
}
.btn-header-wa .btn-label { display: none; }

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.6rem;
}
.site-nav a:hover { background: var(--sand); color: var(--ink); }

/* ——— Layout ——— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 1.1rem;
}

.section {
  padding: 3.25rem 0;
}
.section-alt { background: var(--sand); }
.section-alt .card { box-shadow: var(--shadow-sm); }

.section-head {
  margin-bottom: 1.6rem;
  max-width: 40rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.section-head p { margin: 0; color: var(--ink-soft); }
html[lang="ar"] .section-head h2 { letter-spacing: 0; }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 2rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--orange) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.hero-logo {
  width: 9.5rem;
  height: 9.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(28, 22, 18, 0.12));
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.25rem;
}
html[lang="ar"] .hero-copy h1 { letter-spacing: 0; }
.hero-aka {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  font-family: var(--font-display);
}
.hero-tag {
  margin: 0 auto 0.65rem;
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero-years {
  margin: 0 auto 1.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pills li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* ——— Cards / grids ——— */
.card {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 80%, #fff);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
html[lang="ar"] .card h3 { letter-spacing: 0; }

.svc-grid {
  display: grid;
  gap: 0.9rem;
}
.svc-card header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.svc-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-icon svg { width: 1.35rem; height: 1.35rem; }
.svc-icon.blue { background: #e6f4fb; color: var(--blue-dark); }
.svc-icon.orange { background: #fff1de; color: #c56a00; }
.svc-icon.green { background: #e6f6ec; color: var(--green-dark); }
.svc-icon.red { background: #fde8ea; color: var(--red-dark); }
.svc-icon.sky { background: #eef3f8; color: #2a4a68; }

.svc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.svc-card li {
  padding-inline-start: 0.85rem;
  border-inline-start: 3px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.svc-card li strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}
.badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #fff1de;
  color: #9a4e00;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
html[lang="ar"] .badge { letter-spacing: 0; }

/* Products */
.coming-soon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px dashed color-mix(in srgb, var(--orange) 55%, var(--line));
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.coming-soon svg { color: var(--orange); flex-shrink: 0; width: 1.35rem; height: 1.35rem; }

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.prod-card {
  text-align: center;
  padding: 1.25rem 0.7rem;
}
.prod-card .svc-icon { margin: 0 auto 0.7rem; }
.prod-card h3 { margin: 0; font-size: 0.98rem; }
.prod-card p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Prices */
.price-grid {
  display: grid;
  gap: 0.9rem;
}
.price-card h3 { margin-bottom: 0.15rem; }
.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table th,
.price-table td {
  text-align: start;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 750;
}
html[lang="ar"] .price-table th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.price-table td:last-child,
.price-table th:last-child {
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-foot {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Order */
.order-grid {
  display: grid;
  gap: 0.9rem;
}
.order-card {
  display: grid;
  gap: 0.55rem;
}
.order-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.order-card .btn { justify-self: start; margin-top: 0.25rem; }
.pay-note {
  margin-top: 1.1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.pay-note svg { flex-shrink: 0; width: 1.5rem; height: 1.5rem; color: var(--red); margin-top: 0.15rem; }
.pay-note p { margin: 0; color: var(--ink-soft); }
.pay-note strong { color: var(--ink); }

/* Visit */
.visit-grid {
  display: grid;
  gap: 0.9rem;
}
.visit-card p, .visit-card address {
  margin: 0;
  font-style: normal;
  color: var(--ink-soft);
}
.visit-card .rows {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}
.visit-card .rows div strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  margin-bottom: 0.1rem;
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list .day { font-weight: 700; color: var(--ink); }
.hours-list .closed { color: var(--red-dark); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e8e4de;
  padding: 2.4rem 0 1.6rem;
}
.footer-inner {
  display: grid;
  gap: 1.2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 0.15rem;
}
.footer-brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
}
.footer-brand .sub { font-size: 0.85rem; color: #b9b3aa; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd2a8; }
.footer-meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: #b9b3aa;
}
.footer-copy {
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid #3a4150;
  font-size: 0.8rem;
  color: #8f8990;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(18, 140, 126, 0.4);
  text-decoration: none;
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; transform: none; }
.wa-float svg { width: 1.7rem; height: 1.7rem; }

/* 404 */
.page-404 {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.page-404 img { width: 8rem; height: 8rem; object-fit: contain; margin: 0 auto 1rem; }
.page-404 h1 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.page-404 p { color: var(--muted); margin: 0 0 1.2rem; }

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .btn-header-wa .btn-label { display: inline; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr 1fr 1fr; }
  .visit-grid { grid-template-columns: 1.1fr 1fr; }
  .prod-grid { gap: 0.9rem; }
  .wrap { padding-inline: 1.5rem; }
}

@media (min-width: 900px) {
  .header-inner { padding-inline: 1.5rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    margin-inline-start: auto;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  .logo-link { flex: 0 1 auto; }
  .logo-wordmark .name { font-size: 1.05rem; }

  .hero { padding: 3.2rem 0 4rem; }
  .hero-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: start;
    gap: 2.75rem;
  }
  .hero-logo { width: 15rem; height: 15rem; }
  .hero-tag, .hero-years { margin-inline: 0; }
  .hero-ctas, .pills { justify-content: flex-start; }

  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid .span-2 { grid-column: span 1; }
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: 1fr 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .section { padding: 4.25rem 0; }
}

@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Language visibility — both languages live in the HTML; one is shown at a time */
html[lang="en"] .i18n-ar,
html[lang="ar"] .i18n-en {
  display: none !important;
}

@media (max-width: 639px) {
  .logo-wordmark .sub { display: none; }
  .logo-link img { width: 2.85rem; height: 2.85rem; }
  body { padding-bottom: 4.25rem; } /* room for the floating WhatsApp button */
}

.hero-tag,
.hero-years,
.section-head p {
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .hero-tag { max-width: 44rem; }
  .svc-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .svc-card,
  .svc-grid .span-2 {
    grid-column: span 2;
  }
  .svc-grid .svc-card:nth-last-child(-n+2) {
    grid-column: span 3;
  }
}

.visit-card,
.order-card {
  display: flex;
  flex-direction: column;
}
.visit-card .btn,
.order-card .btn {
  margin-top: auto;
  justify-self: start;
}

.footer-copy span[dir="ltr"] {
  unicode-bidi: isolate;
}
