/*
 * « Site vitrine » — the one stylesheet of the public site (AD-34).
 * Mobile first; logical properties throughout, so the Arabic pages (dir=rtl)
 * need no second stylesheet. The brand colours arrive from /assets/theme.css
 * as --brand-* custom properties; the fallbacks below are neutral.
 * No external font: the system's own, Latin and Arabic.
 */

:root {
  --brand-primary: #1f3a5f;
  --brand-on-primary: #ffffff;
  --brand-primary-ink: #1f3a5f;
  --brand-secondary: #b8893a;
  --brand-on-secondary: #14171f;
  --brand-secondary-ink: #7a5a22;

  --ink: #14171f;
  --ink-soft: #3d4452;
  --muted: #5b6475;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e7e2d8;
  --tint: #f4f1ea;
  --night: #0f1522;
  --whatsapp: #1a7f4b;
  --on-whatsapp: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(20 23 31 / 6%), 0 8px 24px rgb(20 23 31 / 6%);
  --shadow-lift: 0 2px 4px rgb(20 23 31 / 6%), 0 18px 40px rgb(20 23 31 / 10%);
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Arabic Typesetting", sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

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

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.85;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

img {
  block-size: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0;
  line-height: 1.45;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 720;
}

h3 {
  font-size: 1.125rem;
  font-weight: 680;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-primary-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  inline-size: 100%;
  max-inline-size: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-inline-size: 820px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* --- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 12px;
}

main:focus {
  outline: none;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  border-block-end: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  align-items: center;
  gap: 0.25rem 1rem;
  padding-block: 0.6rem 0.4rem;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-inline-size: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  inline-size: 44px;
  block-size: 44px;
  object-fit: contain;
  flex: none;
}

.brand-name {
  font-weight: 720;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-nav {
  grid-area: nav;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul,
.lang-switch,
.footer-links ul,
.social,
.cards,
.reasons,
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--tint);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.lang-switch {
  grid-area: lang;
  display: flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a,
.lang-current {
  display: block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.lang-switch a {
  color: var(--ink-soft);
}

.lang-switch a:hover {
  background: var(--tint);
}

.lang-current {
  background: var(--ink);
  color: #fff;
}

@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    padding-block: 0.75rem;
  }

  .site-nav ul {
    justify-content: center;
  }

  .brand-logo {
    inline-size: 52px;
    block-size: 52px;
  }

  .brand-name {
    font-size: 1.05rem;
    max-inline-size: 22ch;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.75rem;
}

.actions-center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 48px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 680;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button .icon {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
}

[dir="rtl"] .icon-arrow {
  transform: scaleX(-1);
}

.button-primary {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.button-whatsapp {
  background: var(--whatsapp);
  color: var(--on-whatsapp);
}

.button-outline {
  border-color: var(--brand-primary-ink);
  color: var(--brand-primary-ink);
  background: transparent;
}

.button-ghost {
  border-color: currentcolor;
  color: inherit;
  background: rgb(255 255 255 / 10%);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 18%);
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.button-on-dark {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--brand-on-primary);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand-secondary) 55%, transparent) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--brand-primary) 70%, #000) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand-primary) 0%, color-mix(in srgb, var(--brand-primary) 70%, #000) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 9%) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

.hero-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero-has-cover {
  background: none;
  color: #fff;
}

.hero-has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 14 24 / 35%) 0%, rgb(10 14 24 / 78%) 100%);
}

.hero-inner {
  padding-block: clamp(3.5rem, 12vw, 7.5rem) clamp(3rem, 10vw, 6.5rem);
}

.hero h1 {
  color: inherit;
  max-inline-size: 18ch;
}

.hero .eyebrow {
  color: inherit;
  opacity: 0.9;
}

.hero .eyebrow::before {
  background: var(--brand-secondary);
}

.hero-lead {
  max-inline-size: 60ch;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  opacity: 0.92;
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

.section-tinted {
  background: var(--tint);
}

.page-top {
  padding-block-start: clamp(2.5rem, 7vw, 4.5rem);
}

.section-head {
  max-inline-size: 640px;
  margin-block-end: 2rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary-ink);
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.eyebrow::before {
  content: "";
  inline-size: 22px;
  block-size: 2px;
  border-radius: 2px;
  background: currentcolor;
}

/* --- Cards (services) --------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-icon,
.reason-mark,
.empty-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  margin-block-end: 1rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  color: var(--brand-primary-ink);
}

.card-icon .icon,
.empty-icon .icon {
  inline-size: 28px;
  block-size: 28px;
}

/* --- Offers (Phase 1: an invitation, not a list) ------------------------ */

.empty-offers {
  max-inline-size: 680px;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-offers .empty-icon {
  background: color-mix(in srgb, var(--brand-secondary) 18%, #fff);
  color: var(--brand-secondary-ink);
}

.empty-offers p {
  color: var(--muted);
}

/* --- About -------------------------------------------------------------- */

.about {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 4rem;
  }
}

.about-text p {
  font-size: 1.075rem;
  color: var(--ink-soft);
}

.about-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-card img {
  inline-size: 132px;
  block-size: 132px;
  object-fit: contain;
  margin-block-end: 1.25rem;
}

.facts {
  display: grid;
  gap: 0.9rem;
}

.facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.facts .icon {
  flex: none;
  inline-size: 20px;
  block-size: 20px;
  margin-block-start: 0.2rem;
  color: var(--brand-secondary-ink);
}

/* --- Reasons ------------------------------------------------------------ */

.reasons {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .reasons {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.reasons li {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.reason-mark {
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.reason-mark .icon {
  inline-size: 22px;
  block-size: 22px;
}

.reasons h3 {
  margin-block-end: 0.3rem;
}

.reasons p {
  margin: 0;
  color: var(--muted);
}

/* --- Contact strip ------------------------------------------------------ */

.contact-strip {
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--brand-secondary) 35%, transparent), transparent 60%),
    color-mix(in srgb, var(--brand-primary) 82%, #000);
  color: #fff;
}

.strip-inner {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.contact-strip h2 {
  color: #fff;
}

.contact-strip p {
  margin: 0;
  color: rgb(255 255 255 / 88%);
}

.contact-strip .actions {
  margin-block-start: 0.5rem;
}

@media (min-width: 900px) {
  .strip-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }

  .contact-strip .actions {
    margin: 0;
  }
}

/* --- Contact page ------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.contact-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.contact-card h2 {
  font-size: 1.15rem;
}

.contact-card address {
  font-style: normal;
  margin-block-end: 0.75rem;
}

.contact-card-whatsapp {
  border-color: color-mix(in srgb, var(--whatsapp) 35%, var(--line));
  background: color-mix(in srgb, var(--whatsapp) 5%, #fff);
}

.contact-card-whatsapp .card-icon {
  background: color-mix(in srgb, var(--whatsapp) 14%, #fff);
  color: var(--whatsapp);
}

.big-link {
  font-size: 1.15rem;
  font-weight: 650;
}

.text-link {
  font-weight: 650;
}

.contact-social {
  margin-block-start: 2.5rem;
}

.contact-social h2 {
  font-size: 1.25rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social a {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  color: inherit;
  border: 1px solid currentcolor;
  opacity: 0.85;
}

.social a:hover {
  opacity: 1;
}

.social .icon {
  inline-size: 20px;
  block-size: 20px;
}

.social-large a {
  display: inline-flex;
  inline-size: auto;
  gap: 0.5rem;
  padding-inline: 1rem;
  border-radius: 999px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

/* --- Prose (privacy, legal notice) -------------------------------------- */

.prose-page {
  background: var(--surface);
}

.prose {
  font-size: 1.05rem;
}

.prose h2 {
  margin-block-start: 2.25rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.prose li {
  margin-block-end: 0.5rem;
}

.prose-head {
  padding-block-end: 1.25rem;
  margin-block-end: 1.5rem;
  border-block-end: 1px solid var(--line);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.to-check {
  font-style: normal;
  font-weight: 650;
  color: #8a4b00;
  background: #fff4e0;
  padding-inline: 0.35em;
  border-radius: 4px;
}

.facts-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.facts-list dt {
  padding: 0.75rem 1rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.facts-list dd {
  margin: 0;
  padding: 0.1rem 1rem 0.75rem;
  border-block-end: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.facts-list dd:last-of-type {
  border-block-end: 0;
}

@media (min-width: 720px) {
  .facts-list {
    grid-template-columns: 220px 1fr;
  }

  .facts-list dt,
  .facts-list dd {
    padding: 0.8rem 1rem;
    border-block-end: 1px solid var(--line);
  }

  .facts-list dt:last-of-type,
  .facts-list dd:last-of-type {
    border-block-end: 0;
  }
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: rgb(255 255 255 / 78%);
  padding-block: 3rem 1.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block-end: 2rem;
  border-block-end: 1px solid rgb(255 255 255 / 12%);
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand img {
  inline-size: 56px;
  block-size: 56px;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  margin-block-end: 0.75rem;
}

.footer-name {
  margin: 0 0 0.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-tagline {
  margin: 0;
}

.footer-links ul {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  overflow-wrap: anywhere;
}

.footer-contact .social {
  margin-block-start: 1rem;
}

.legal-line {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 72%);
  overflow-wrap: anywhere;
}

/* One item of the legal line, kept together: it wraps as a whole, and its
   separator, which opens it, never ends a line on its own. */
.legal-item {
  display: inline-block;
  margin-inline-end: 0.35em;
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 60%);
}

/* --- The page a site with an incomplete identity answers (503) ---------- */

.unavailable {
  display: grid;
  place-content: center;
  gap: 1.5rem;
  min-block-size: 100vh;
  padding: var(--gutter);
  text-align: center;
}

.unavailable h1 {
  font-size: 1.6rem;
}

.unavailable h2 {
  font-size: 1.4rem;
  font-family: var(--font-ar);
}
