/* EvolveTech site. One family (Readex Pro, Arabic + Latin), logical properties so RTL mirrors itself. */
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/readex-pro-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/readex-pro-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --limewash: #F6F7F4;
  --paper: #FFFFFF;
  --ink: #1F2A2E;
  --muted: #56635F;
  --sea: #0F6E6A;
  --sea-deep: #0B4F4C;
  --sea-wash: #E4EFEC;
  --brass: #A87B22;
  --line: #DCE1DD;
  --wa: #DCF4E3;          /* outgoing chat bubble */
  --measure: 62ch;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --s-1: .875rem; --s0: 1rem; --s1: 1.125rem; --s2: 1.375rem; --s3: 1.875rem; --s4: 2.625rem; --s5: 3.625rem;
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V58C0 30 22 12 50 0c28 12 50 30 50 58v82z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--limewash); color: var(--ink);
  font-family: 'Readex', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-weight: 300; font-size: var(--s0); line-height: 1.65;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sea-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--limewash); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--s1); }
.brand svg { width: 1.6rem; height: 2.2rem; flex: none; }
.brand small { display: block; font-weight: 300; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 400; font-size: var(--s-1); }
.nav ul a:hover { color: var(--sea); }
.lang { font-size: var(--s-1); font-weight: 400; color: var(--sea-deep); text-decoration: none; border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; }
.lang:hover { border-color: var(--sea); }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 400; font-size: var(--s-1); padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: block; }
.menu-panel { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
.menu-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu-panel li a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 400; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 400; font-size: var(--s0); text-decoration: none; border-radius: 999px; padding: .8rem 1.35rem; border: 1px solid transparent; line-height: 1.2; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--sea-deep); color: #fff; }
.btn-primary:hover { background: var(--sea); color: #fff; }
.btn-quiet { color: var(--sea-deep); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--sea); color: var(--sea); }
.btn-small { padding: .55rem 1rem; font-size: var(--s-1); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.08; max-width: 14ch; }
:lang(ar) .hero h1 { line-height: 1.35; max-width: 16ch; }
.hero .lead { font-size: var(--s1); color: var(--muted); max-width: 46ch; margin-top: 1.5rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.legal-strip { margin-top: 2.5rem; font-size: var(--s-1); color: var(--muted); }

/* The arch window: the one memorable element. */
.arch { -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.window { position: relative; margin: 0; aspect-ratio: 5 / 7; width: min(100%, 25rem); justify-self: end; }
.window .outline { position: absolute; top: -.75rem; left: .75rem; width: 100%; height: 100%; overflow: visible; }
[dir='rtl'] .window .outline { left: auto; right: .75rem; }
[dir='rtl'] .window { justify-self: start; }
.window-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18% 7% 7%; }
.chat { background: #EFEAE2; border-radius: .9rem; padding: .85rem; display: grid; gap: .55rem; font-size: .82rem; line-height: 1.5; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset; }
.chat-head { display: flex; align-items: center; gap: .55rem; font-weight: 400; color: var(--ink); padding-bottom: .5rem; border-bottom: 1px solid rgba(31,42,46,.1); }
.chat-head .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sea-wash); display: grid; place-items: center; font-size: .7rem; color: var(--sea-deep); font-weight: 600; }
.bubble { background: var(--paper); border-radius: .2rem .8rem .8rem .8rem; padding: .6rem .7rem; max-width: 92%; color: var(--ink); }
[dir='rtl'] .bubble { border-radius: .8rem .2rem .8rem .8rem; }
.bubble .file { display: flex; align-items: center; gap: .45rem; background: var(--sea-wash); border-radius: .45rem; padding: .45rem .55rem; margin-bottom: .45rem; color: var(--sea-deep); font-weight: 400; }
.bubble .file svg { width: 1rem; height: 1rem; }
.bubble .bank { display: block; margin-top: .45rem; color: var(--muted); font-size: .74rem; }
.bubble time { display: block; text-align: end; font-size: .66rem; color: var(--muted); margin-top: .2rem; }
.bubble.out { justify-self: end; background: var(--wa); border-radius: .8rem .2rem .8rem .8rem; }
[dir='rtl'] .bubble.out { justify-self: start; border-radius: .2rem .8rem .8rem .8rem; }
.sample { color: rgba(255,255,255,.75); font-size: .7rem; margin-top: .6rem; text-align: center; }
.window figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .bubble.in { animation: arrive .7s cubic-bezier(.2,.7,.2,1) .5s both; }
  .bubble.out { animation: arrive .6s cubic-bezier(.2,.7,.2,1) 1.9s both; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .window, [dir='rtl'] .window { justify-self: center; width: min(100%, 21rem); aspect-ratio: auto; }
  .window-fill { position: relative; padding-top: 42%; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); }
.section-head p { color: var(--muted); font-size: var(--s1); margin-top: .75rem; }

/* products: alternating rows, each with its own arch */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product + .product { margin-top: clamp(3rem, 6vw, 5rem); }
.product:nth-of-type(even) .product-visual { order: -1; }
.product h3 { font-size: var(--s3); }
.product h3 span { display: block; font-size: var(--s1); font-weight: 300; color: var(--muted); margin-top: .25rem; }
.product p { margin-top: 1rem; font-size: var(--s1); max-width: 44ch; }
.product ul { margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; display: grid; gap: .55rem; max-width: 50ch; }
.product li { position: relative; padding-inline-start: 1.4rem; }
.product li::before { content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: .55rem; height: .75rem; background: var(--sea); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.product-visual { background: var(--sea-wash); aspect-ratio: 4 / 3.4; padding: 14% 9% 8%; display: flex; flex-direction: column; justify-content: flex-end; }
.ticket { background: var(--paper); border-radius: .7rem; padding: 1rem 1.1rem; display: grid; gap: .1rem; font-size: .88rem; }
.ticket .row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.ticket .row:last-child { border-bottom: 0; }
.ticket .k { color: var(--muted); }
.pill { font-size: .75rem; font-weight: 400; padding: .1rem .55rem; border-radius: 999px; background: var(--sea-wash); color: var(--sea-deep); white-space: nowrap; }
.pill.warn { background: #F6ECD6; color: #7A5612; }
.pill.done { background: var(--sea-deep); color: #fff; }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product:nth-of-type(even) .product-visual { order: 0; }
}

/* services: two plain definition lists */
.services { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.services h3 { font-size: var(--s2); padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.services dl { margin: 0; }
.services dt { font-weight: 400; font-size: var(--s1); margin-top: 1.25rem; }
.services dd { margin: .2rem 0 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* work: grouped list */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); }
.work h3 { font-size: var(--s1); color: var(--sea-deep); padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.work ul { list-style: none; margin: 0; padding: 0; }
.work li { padding-block: .85rem; border-bottom: 1px solid var(--line); }
.work li strong { font-weight: 400; display: block; }
.work li span { color: var(--muted); font-size: var(--s-1); }
.after { margin-top: 2.5rem; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* company */
.company { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.facts { margin: 0; display: grid; grid-template-columns: minmax(9rem, auto) 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding-block: .8rem; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-size: var(--s-1); padding-inline-end: 1.5rem; padding-top: 1rem; }
.facts dd { font-weight: 400; }
.team h3 { font-size: var(--s1); margin-bottom: .5rem; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { padding-block: .7rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.team li span { color: var(--muted); font-size: var(--s-1); }
@media (max-width: 760px) { .company { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* contact: dark band */
.contact { background: var(--sea-deep); color: #EAF3F1; border-top: 0; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #C9DEDA; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact .big { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 600; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .75rem; }
.contact .big svg { width: 2rem; height: 2rem; }
.contact .big:hover { color: #fff; text-decoration: underline; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; }
.contact dt { color: #A9C8C2; font-size: var(--s-1); padding-top: .15rem; }
.contact dd { margin: 0; }
.contact a { color: #fff; }
.contact .btn-primary { background: #fff; color: var(--sea-deep); margin-top: 1.75rem; }
.contact .btn-primary:hover { background: var(--sea-wash); color: var(--sea-deep); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact dl { grid-template-columns: 1fr; gap: .1rem; } .contact dd { margin-bottom: .8rem; } }

/* footer */
.site-footer { background: var(--ink); color: #C7D0CD; font-size: var(--s-1); padding-block: 2.5rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer p { max-width: 60ch; }

/* legal pages */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 48rem; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc .meta { color: var(--muted); margin-top: .5rem; font-size: var(--s-1); }
.doc h2 { font-size: var(--s2); margin-top: 2.5rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc p { margin-top: .9rem; }
.doc ul { margin: .9rem 0 0; padding-inline-start: 1.25rem; }
.doc li { margin-top: .4rem; }
.doc .box { margin-top: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; padding: 1.25rem 1.4rem; }
.doc .back { display: inline-block; margin-top: 3rem; }

@media print { .site-header, .menu, .contact .btn { display: none; } body { background: #fff; } }
