/* Manafid — one-screen landing page
   Shared by index.html (Arabic) and en.html (English). */

:root {
  --yellow: #F5C40A;
  --ink: #1F1F1F;
  --ink-2: #3B3B3B;
  --muted: #4A4A4A;
  --muted-2: #5C5C5C;
  --line: #E2E2E2;
  --line-2: #D6D6D6;
  --echo: #CFCFCF;
  --bg: #FFFFFF;
  --pad-x: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Readex Pro', 'Segoe UI', Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ---------- One-screen frame ---------- */
.page {
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad-x); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 24px;
  padding-top: 26px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: background-color .2s ease;
}
.nav-lang:hover { background: #F2F2F2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { flex-shrink: 0; transition: transform .2s ease; }
.btn-dark { min-height: 44px; padding: 0 22px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 500; }
.btn-dark:hover { background: #000000; }
.btn-primary { min-height: 54px; padding: 0 28px; background: var(--yellow); color: var(--ink); font-size: 17px; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(31, 31, 31, .5); }
.btn-primary:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn-primary:hover svg { transform: translateX(-4px); }
.btn-outline { min-height: 54px; padding: 0 24px; border: 1.5px solid var(--ink); color: var(--ink); font-size: 17px; font-weight: 500; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-outline .num { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding-block: clamp(12px, 2.5vh, 32px);
  min-height: 0;
}
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.6vh, 28px); }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--muted-2); }
.dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

.headline { margin: 0; font-size: min(5.4vw, 8.6vh, 92px); font-weight: 700; line-height: 1.25; color: var(--ink); }
:lang(en) .headline {
  font-family: 'Montserrat', 'Readex Pro', Arial, sans-serif;
  font-size: min(5.6vw, 9vh, 96px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
}
.hl { box-shadow: inset 0 -.3em 0 var(--yellow); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:lang(en) .hl { box-shadow: inset 0 -.28em 0 var(--yellow); padding: 0 .04em; }

.lead { margin: 0; max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.85; color: var(--muted); }
:lang(en) .lead { line-height: 1.7; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.channels { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted-2); }

/* ---------- Service mark (the logo's five shapes) ---------- */
.markwrap { align-self: stretch; min-height: 0; display: flex; align-items: center; justify-content: center; }
.mark { position: relative; width: min(100%, 62vh); aspect-ratio: 460 / 471; }
@supports (container-type: size) {
  .markwrap { container-type: size; }
  .mark { width: min(100cqw, 97.6cqh); container-type: inline-size; }
}

.echo { position: absolute; inset: 0; transform: translate(-4cqw, -4cqw); pointer-events: none; }
.echo i { position: absolute; display: block; border: 1.25px solid var(--echo); }

.services { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.svc {
  position: absolute; background: var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4cqw; padding: 0 8cqw; text-align: center;
  transition: transform .35s var(--ease);
}
.svc:hover { transform: scale(1.035); }
.svc .n { font-size: clamp(11px, 2.5cqw, 15px); font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.svc .t { font-size: clamp(15px, 4.3cqw, 26px); font-weight: 600; line-height: 1.35; color: var(--ink); }
:lang(en) .svc .t { font-size: clamp(15px, 4.1cqw, 25px); line-height: 1.25; }

/* Geometry taken from the logo mark (460 x 471 units) */
.s-c1, .e-c1 { left: 0; top: 0; width: 49.57%; height: 48.41%; border-radius: 50%; }
.s-c2, .e-c2 { left: 0; top: 51.59%; width: 49.57%; height: 48.41%; border-radius: 50%; }
.s-c3, .e-c3 { left: 51.3%; top: 26.11%; width: 48.7%; height: 47.56%; border-radius: 50%; }
.s-bowl, .e-bowl { left: 51.3%; top: 0; width: 48.7%; height: 23.78%; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.s-dome, .e-dome { left: 51.3%; top: 76.22%; width: 48.7%; height: 23.78%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.s-bowl { justify-content: flex-start; gap: 1cqw; padding: 3.6cqw 6cqw 0; transform-origin: 50% 0; }
.s-dome { justify-content: flex-end; gap: 1cqw; padding: 0 6cqw 3.6cqw; transform-origin: 50% 100%; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 32px;
  padding-top: 8px; padding-bottom: 14px;
  font-size: 14px; color: var(--ink-2);
}
.contact {
  list-style: none; margin: 0; padding: 12px 0 0;
  display: flex; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line); flex: 1 1 auto;
}
.contact li { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.contact li:not(:last-child) { padding-inline-end: 18px; margin-inline-end: 18px; border-inline-end: 1px solid var(--line-2); }
.contact svg { flex-shrink: 0; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; align-items: center; gap: 20px; padding-top: 12px; }
.social p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 44px; }
.handle { font-weight: 600; letter-spacing: .04em; }
.tri { display: flex; align-items: center; gap: 3px; direction: ltr; }
.tri i { display: block; height: 26px; }
.tri i:nth-child(1) { width: 13px; border-radius: 0 13px 13px 0; background: var(--echo); }
.tri i:nth-child(2) { width: 26px; border-radius: 50%; background: var(--yellow); }
.tri i:nth-child(3) { width: 13px; border-radius: 13px 0 0 13px; background: var(--ink); }

/* ---------- Motion ---------- */
@keyframes mf-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes mf-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mf-echo { from { opacity: 0; transform: translate(0, 0); } }
.svc { animation: mf-pop .7s var(--ease) backwards; }
.svc:nth-child(1) { animation-delay: .05s; }
.svc:nth-child(2) { animation-delay: .13s; }
.svc:nth-child(3) { animation-delay: .21s; }
.svc:nth-child(4) { animation-delay: .29s; }
.svc:nth-child(5) { animation-delay: .37s; }
.echo { animation: mf-echo 1s .55s var(--ease) backwards; }
.intro > * { animation: mf-rise .6s var(--ease) backwards; }
.intro > :nth-child(2) { animation-delay: .06s; }
.intro > :nth-child(3) { animation-delay: .12s; }
.intro > :nth-child(4) { animation-delay: .18s; }
.intro > :nth-child(5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tablet portrait, phones, very short windows: stack and allow scrolling ---------- */
@media (max-width: 900px), (max-height: 560px) {
  .page { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 12px 8px; }
  .markwrap { align-self: auto; padding: 16px 0 28px; }
  .mark { width: min(100%, 460px); }
  @supports (container-type: size) { .markwrap { container-type: inline-size; } }
  .headline { font-size: clamp(38px, 10vw, 64px); }
  :lang(en) .headline { font-size: clamp(40px, 11vw, 68px); }
}
@media (max-width: 640px) {
  .site-header { padding-top: 18px; }
  .brand img { height: 38px; }
  .contact { display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact li:not(:last-child) { padding-inline-end: 0; margin-inline-end: 0; border-inline-end: 0; }
  .social { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .nav .btn-dark { display: none; }
  .tri { display: none; }
  .social p { gap: 4px 12px; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
