/* Practical Solutions — site styles
   Brand: #A0D2EB sky · #E5EAF5 mist · #D0BDF4 lavender · #8458B3 purple · #494D5F slate
   Roles: paper (ground) · ink · one accent field (purple). Surfaces split by tone, never by lines. */
:root {
  --sky: #A0D2EB;
  --mist: #E5EAF5;
  --lavender: #D0BDF4;
  --purple: #8458B3;
  --purple-deep: #6B4196;
  --ink: #2E3140;
  --slate: #494D5F;
  --paper: #F5F7FC;
  --white: #FFFFFF;
  --soft: #4F5468;

  --gutter: clamp(18px, 2.2vw, 32px);
  --gap: clamp(88px, 12vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --t-small: 16px;
  --t-body: clamp(17px, 1.3vw, 20px);
  --t-lead: clamp(20px, 1.7vw, 26px);
  --t-head: clamp(40px, 6vw, 96px);
  --t-display: clamp(40px, 11vw, 180px);
}
html[lang="en"] { --t-display: clamp(32px, 8.6vw, 150px); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Cairo", "Tajawal", system-ui, sans-serif; line-height: 1.75; }
h1, h2, h3 { margin: 0; font-weight: 600; color: inherit; }
h1, h2 { line-height: .98; letter-spacing: -.03em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.12; letter-spacing: 0; }
h3 { font-size: var(--t-lead); line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
img { display: block; max-width: 100%; }

.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; max-width: 1680px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
::selection { background: var(--lavender); color: var(--ink); }

/* Buttons: one shape, square, one fill */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border: 0; border-radius: 0;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: var(--t-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--purple-deep); }
.btn:active { transform: translateY(2px); }
.btn-light { background: var(--lavender); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-accent { background: var(--ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header: wordmark and a few links, no bar */
.site-header { position: absolute; inset-inline: 0; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; flex-wrap: wrap; }
.logo { font-family: "Inter", sans-serif; font-weight: 600; font-size: var(--t-body); color: var(--ink); text-decoration: none; margin: 0; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-body); padding-block: 6px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

/* Hero */
.hero { min-height: 88svh; display: flex; flex-direction: column; padding-block: 120px 28px; }
.hero h1 { font-size: var(--t-display); font-weight: 700; letter-spacing: -.05em; line-height: .96; }
html[lang="ar"] .hero h1 { letter-spacing: -.01em; line-height: 1.02; }
.hero h1 .line { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.hero h1 .line > span { display: block; }
.hero h1 .line:nth-child(2) { text-align: end; }
.hero-foot { margin-top: auto; padding-top: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-foot p { text-wrap: balance; font-size: var(--t-lead); max-width: 44ch; line-height: 1.45; }
html[lang="ar"] .hero-foot p { line-height: 1.7; }

/* Sections */
.section { padding-block: var(--gap) 0; }
.statement { font-size: var(--t-lead); line-height: 1.4; max-width: 26em; }
html[lang="ar"] .statement { line-height: 1.7; }

/* About: facts + paragraph + street picture */
.about-grid { display: grid; grid-template-columns: minmax(160px, 22%) 1fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 22px; margin: 0; order: -1; }
.facts dt { font-size: 15px; color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }

/* Melo: inverted field with the live counter */
.melo { background: var(--ink); color: var(--mist); margin-top: var(--gap); padding-block: clamp(72px, 9vw, 140px); }
.melo-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.melo h2 { font-size: var(--t-head); color: #fff; }
.melo-top p { font-size: var(--t-lead); line-height: 1.5; }
.melo-link { display: inline-flex; gap: 10px; align-items: center; color: var(--lavender); font-weight: 600; text-decoration: none; }
.melo-link:hover { color: #fff; }
.counter { margin-top: clamp(40px, 6vw, 96px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.counter-num { font-family: "Inter", sans-serif; font-weight: 700; font-size: clamp(180px, 34vw, 560px); line-height: .8; letter-spacing: -.06em; color: var(--lavender); font-variant-numeric: tabular-nums; transition: color .3s; margin: 0; }
.counter-num.low { color: var(--sky); }
.counter-side { display: grid; gap: 20px; justify-items: start; padding-bottom: .4em; }
.counter-label { font-size: var(--t-lead); color: #fff; }
.counter-side .btn { background: var(--lavender); color: var(--ink); }
.counter-side .btn:hover { background: #fff; }
.counter-note { font-size: var(--t-small); color: var(--mist); max-width: 26ch; }

/* How it works: one bar, three stages */
.how h2 { font-size: var(--t-head); max-width: 14em; }
.bar { display: flex; gap: 6px; height: clamp(180px, 24vh, 260px); margin-top: 64px; }
.bar > div { flex: 1; padding: 20px; font-size: var(--t-lead); font-weight: 600; transition: flex-grow .5s var(--ease); }
.bar > div:nth-child(1) { background: var(--lavender); color: var(--ink); }
.bar > div:nth-child(2) { background: var(--sky); color: var(--ink); }
.bar > div:nth-child(3) { background: var(--purple); color: #fff; }
.bar:hover > div { flex-grow: .8; }
.bar > div:hover { flex-grow: 1.6; }
.stages { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 6px; }
.stages li { flex: 1; font-size: var(--t-body); max-width: 26ch; }

/* Why: a list set large beside a picture */
.why-grid { display: block; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.why-list h3 { font-size: clamp(28px, 3.2vw, 52px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin-bottom: 10px; }
html[lang="ar"] .why-list h3 { letter-spacing: 0; line-height: 1.2; }
.why-list p { max-width: 36ch; color: var(--slate); }

/* CTA: the whole band is one link */
.cta { display: block; position: relative; background: var(--purple); color: #fff; text-decoration: none; min-height: 60svh; margin-top: var(--gap); padding: 28px var(--gutter) 0; overflow: hidden; transition: background .25s, color .25s; }
.cta:hover, .cta:focus-visible { background: #fff; color: var(--purple-deep); outline-offset: -6px; }
.cta-sentence { position: relative; z-index: 2; font-size: var(--t-lead); max-width: 22ch; line-height: 1.4; }
.cta-arrow { position: absolute; top: 28px; inset-inline-end: var(--gutter); width: 48px; height: 48px; stroke-width: 1.6; transition: transform .3s var(--ease); }
[dir="rtl"] .cta-arrow { transform: scaleX(-1); }
.cta:hover .cta-arrow { transform: translate(6px, -6px); }
[dir="rtl"] .cta:hover .cta-arrow { transform: scaleX(-1) translate(6px, -6px); }
.cta-word { z-index: 1; position: absolute; inset-inline: var(--gutter); bottom: 14px; font-size: clamp(120px, 27vw, 460px); font-weight: 700; line-height: .85; letter-spacing: -.05em; white-space: nowrap; }
html[lang="en"] .cta-word { font-size: clamp(80px, 19vw, 320px); }
html[lang="ar"] .cta-word { letter-spacing: 0; line-height: 1; bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); padding: 40px 0 28px; min-height: 90svh; display: flex; flex-direction: column; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: var(--t-small); }
.footer-top .logo { color: #fff; font-size: var(--t-small); }
.footer-notes { display: grid; gap: 4px; }
.site-footer a { text-decoration: none; }
.footer-contact { margin-top: auto; padding-top: 96px; display: grid; gap: 4px; }
.footer-big { font-family: "Inter", sans-serif; font-size: clamp(30px, 6.6vw, 130px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; display: block; text-decoration: none; transition: color .2s; word-break: break-word; }
.footer-big:hover { color: var(--lavender); }
.footer-small { margin-top: 28px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: var(--t-small); color: var(--mist); }
.footer-small a:hover { color: #fff; }
.footer-small > div { display: flex; gap: 20px; flex-wrap: wrap; }

/* Inner pages: contact, legal */
.page-head { padding: 160px 0 0; }
.page-head h1 { font-size: var(--t-head); }
.page-head .lead { margin-top: 28px; font-size: var(--t-lead); max-width: 30em; }
.inner { padding-block: clamp(56px, 8vw, 120px) var(--gap); }
.prose > * { max-width: 46em; }
.page-head + .section { padding-block: 64px var(--gap); }
.prose h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; margin-top: 2em; }
.prose p { margin-top: .8em; }
.company { margin-top: 3em; }
.company dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; }
.company dt { color: var(--soft); }
.company dd { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; align-items: center; background: var(--mist); padding: 18px 20px; }
.contact-list li:nth-child(even) { background: #fff; }
.icon { display: inline-flex; color: var(--purple-deep); }
.contact-list .label { display: block; font-size: var(--t-small); color: var(--soft); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--purple-deep); }
.card { background: #fff; padding: clamp(24px, 3vw, 44px); }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 30px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid var(--soft); border-radius: 0; background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--purple); background: #fff; outline: 3px solid var(--lavender); outline-offset: 0; }
.form button { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; }
.status { padding: 14px 16px; margin: 0; }
.status.ok { background: var(--sky); }
.status.bad { background: var(--lavender); }

/* Motion: entrances only when script runs; nothing stays hidden */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js.ready .hero h1 .line > span { transform: none; }
.js .hero-foot { opacity: 0; transform: translateY(16px); transition: opacity .7s ease .55s, transform .7s var(--ease) .55s; }
.js.ready .hero-foot { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .hero h1 .line > span, .js .hero-foot { transition: none; transform: none; opacity: 1; }
}

/* Phone */
@media (max-width: 820px) {
  :root { --t-display: 10.4vw; --gap: 88px; }
  html[lang="en"] { --t-display: 8.4vw; }
  .hero { padding-top: 150px; min-height: 70svh; }
  .hero h1 .line:nth-child(2) { text-align: start; }
  .hero-foot { flex-direction: column; align-items: stretch; padding-top: 48px; gap: 20px; }
  .hero-foot p { font-size: var(--t-body); }
  .hero-foot .btn { justify-content: center; }
  .why-list { grid-template-columns: 1fr; }
  .about-grid, .melo-top, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; order: 0; }
  .counter { grid-template-columns: 1fr; gap: 16px; }
  .counter-side { padding-bottom: 0; }
  .bar { flex-direction: column; height: 70svh; margin-top: 40px; }
  .bar > div { flex: 1; min-height: 72px; }
  .bar:hover > div, .bar > div:hover { flex-grow: 1; }
  .stages { display: none; }
  .bar-clause { display: block; font-weight: 400; font-size: var(--t-body); margin-top: 6px; }
  .cta { min-height: 46svh; }
  .cta-word { font-size: 26vw; }
  html[lang="en"] .cta-word { font-size: 19vw; }
  .site-footer { min-height: 80svh; }
  .company dl { grid-template-columns: 1fr; gap: 2px; }
  .company dd { margin-bottom: 12px; }
  .page-head { padding-top: 120px; }
  .nav a { font-size: var(--t-body); }
}
@media (min-width: 821px) { .bar-clause { display: none; } }
