/* Landing page, built to "Landing Page V4.pdf": at a 1366px wide window every size and position below is the design's (in px). */
@font-face { font-family: "Kufi"; src: url("../fonts/NotoKufiArabic-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("../fonts/NotoKufiArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("../fonts/NotoKufiArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("../fonts/NotoKufiArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kufi"; src: url("../fonts/NotoKufiArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --green: #a9f70c; --accent: #bbf64f; --ink: #1a2834; --about-green: #60b058;
  --text: #fff; --muted: #9aa4ab; --line: rgba(169,247,12,.33);
  --font: "Kufi", system-ui, sans-serif;
  --wrap: 949px; --slide: -1;
}
:root[lang="en"] { --dir: ltr; --font: "Manrope", "Kufi", system-ui, sans-serif; --slide: 1; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; background: #000; }   /* nothing may widen the page on phones */
/* the page glow: a wide soft ellipse of #192733 centred half way down the page, black at the top and bottom */
body { font-family: var(--font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background: radial-gradient(212% 41% at 50% 49.3%, #192733, #000 100%) no-repeat #000; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.accent { color: var(--accent); }
::selection { background: var(--green); color: #000; }
/* the LINKAR chevron: points to the reading direction */
.chev { width: 24px; height: 29px; flex: none; display: block; }
:root[dir="ltr"] .chev { transform: scaleX(-1); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav (52px, a green-tinted line under it) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #000; }
.nav .wrap { position: relative; direction: ltr; display: flex; align-items: flex-start; justify-content: space-between; height: 53px; }
.nav .wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, #192e17, #314114); }
.nav .logo { margin-top: 17.9px; }
.nav .logo img, footer img { height: 17.1px; width: auto; }
.nav ul { direction: var(--dir, rtl); position: absolute; left: 50%; top: 19.3px; transform: translateX(-50%); display: flex; gap: 48px; list-style: none; font: 400 14px/22px var(--font); color: #e5e6e7; white-space: nowrap; }
.nav ul a:hover { color: #fff; }
.nav ul a.cta { color: var(--accent); }
/* language switch: the other language is the filled half (as drawn in the design) */
.lang { margin-top: 18.4px; display: grid; grid-template-columns: 1fr 1fr; width: 98.6px; height: 17px; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; background: #000; overflow: hidden; direction: ltr; }
.lang button { border: 0; background: none; color: #fff; font: 400 9px/15px "Kufi", sans-serif; border-radius: 8.5px; cursor: pointer; }
.lang button:not(.on) { background: #e5e6e7; color: var(--ink); }
.btn { display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; font-family: var(--font); }
.btn-primary { background: var(--green); color: #000; transition: filter .2s; }
.btn-primary:hover { filter: brightness(1.06); }

/* ---------- hero + form ---------- */
.hero { padding: 52.7px 0 54.2px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 365.1px; align-items: start; }
.hero-txt { margin-top: 135.9px; }
.hero h1 { font: 700 58.3px/70px var(--font); color: var(--green); padding-inline-start: 45px; }
.hero h2 { font: 600 34px/44px var(--font); color: var(--green); padding-inline-start: 45px; margin-top: 5.1px; }
.hero .lead { display: flex; gap: 15px; margin-top: 9.6px; }
.hero .lead p { font: 400 18.5px/31px var(--font); max-width: 430px; }

.form-card { background: #000; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; padding: 13.1px 13.3px 36px 18.4px; }
.form-card h3 { font: 400 27.7px/40px var(--font); text-align: center; }
.form-card .fsub { font: 400 18.5px/28px var(--font); text-align: center; margin-top: 1px; }
@media (min-width: 1001px) { :root[lang="ar"] .form-card .fsub { white-space: nowrap; } }   /* one line, as in the design (desktop only) */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 36.9px; margin-top: 10.5px; background: #fff; border-radius: 18.45px; }
.seg button { position: relative; z-index: 1; background: none; border: 0; color: var(--ink); font: 600 15px/36.9px var(--font); cursor: pointer; }   /* larger than the design's 9px (customer feedback) */
.seg .knob { position: absolute; inset-block: 0; inset-inline-start: 0; width: 50%; background: var(--green); border-radius: 18.45px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.seg[data-mode="provider"] .knob { transform: translateX(calc(100% * var(--slide))); }
form { display: grid; gap: 13.5px; margin-top: 9.4px; }
form .extra { display: none; }
form[data-mode="provider"] .extra { display: block; }
input { width: 100%; height: 36.9px; font: 300 13.8px var(--font); padding: 0 7.6px; border-radius: 4.1px; border: 1px solid #c3c4c5; background: #fff; color: #111; outline: none; text-align: start; }
input::placeholder { color: #bcbdbf; opacity: 1; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(169,247,12,.3); }
input.bad { border-color: #ff5a5a; box-shadow: 0 0 0 3px rgba(255,90,90,.25); }
form .btn { height: 36.9px; margin-top: 7.3px; border-radius: 4.1px; border: 1px solid #8a8c8d; font: 600 18.5px/1 var(--font); }
.form-err { color: #ff6b6b; font-size: 14px; text-align: center; }
.done { display: none; text-align: center; padding: 26px 0 6px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; background: var(--green); display: grid; place-items: center; }
.done .tick svg { width: 30px; stroke: #000; stroke-width: 3; fill: none; }
.done b { display: block; font-size: 22px; }
.done p { color: var(--muted); }
.form-card.ok form, .form-card.ok .seg { display: none; }
.form-card.ok .done { display: block; }

/* a service tile (the form's small ones and the big ones under "what we offer" are the same drawing at two sizes):
   icon placed where the design has it, name at 81% of the height */
.tile { position: relative; display: block; aspect-ratio: 1; container-type: inline-size; background: var(--green); color: #000; }
.tile > img { position: absolute; height: auto; max-width: none; }
.tile .nm { position: absolute; inset-inline: 0; top: 67.4cqw; font: 500 13.9cqw/18.5cqw var(--font); text-align: center; white-space: nowrap; }
.pick { border: 0; min-width: 0; margin-top: -3.3px; }
.pick legend { padding: 0 2.6px; font: 400 15px/22px var(--font); color: #d6d8da; }
.svc-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9.5px; margin-top: 10.8px; }
.svc-opt { position: relative; display: block; padding-bottom: 38px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* in the form the service names are too small inside the tiles (6.6px in the design): they sit under the tile at a readable size */
.svc-opt .tile > img { top: 50% !important; transform: translateY(-50%); }
.svc-opt .tile .nm { top: calc(100% + 6px); font: 600 12px/1.35 var(--font); color: #fff; white-space: normal; }
.svc-opt input:checked + .tile .nm { color: var(--green); }
.svc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.svc-opt .tile { border-radius: 5.3px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.svc-opt input:checked + .tile { transform: translateY(-2px); box-shadow: 0 0 0 2px #fff, 0 12px 30px -12px rgba(169,247,12,.75); }
.svc-opt input:focus-visible + .tile { outline: 2px solid var(--green); outline-offset: 4px; }
.svc-opt .chk { position: absolute; top: -7px; inset-inline-end: -7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.45); transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.svc-opt .chk svg { width: 13px; stroke: #000; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc-opt input:checked + .tile .chk { transform: scale(1); }

/* customers: car brand, searchable list with logos (no icons until a brand is picked, as in the design) */
.brand { display: grid; gap: 13.5px; }
form[data-mode="provider"] .brand { display: none; }
.brand-combo { position: relative; }
.brand.has-brand #brandCombo input { padding-inline-start: 46px; }
.bl { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.bl img { max-width: 30px; max-height: 26px; object-fit: contain; }
.bl b { width: 26px; height: 26px; border-radius: 50%; background: #e7ecef; color: #3a4348; display: grid; place-items: center; font: 700 13px/1 "Manrope", var(--font); }
.brand-ico { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.brand-combo ul { display: none; position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); max-height: 290px; overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 4px; background: #fff; color: #111; border-radius: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.brand-combo.open ul { display: block; }
.brand-combo li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.brand-combo li small { margin-inline-start: auto; color: #8a9297; font-size: 12px; }
.brand-combo li.act { background: #eefad9; }
.brand-combo li.oth { border-top: 1px solid #e7ecef; margin-top: 4px; padding-top: 9px; }
.city { display: grid; gap: 13.5px; }
.city .other { display: none; }
.city.other-on .other { display: block; }
input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="tel"] { text-align: right; }
[dir="rtl"] input[type="tel"]::placeholder { direction: rtl; }
.brand .other { display: none; }
.brand.other-on .other { display: block; }
/* the model picker shows once a brand is chosen; "Other" brand or model -> free text */
.brand .model-combo, .brand .other-model { display: none; }
.brand.has-brand:not(.other-on) .model-combo { display: block; }
.brand.model-other-on .other-model, .brand.other-on .other-model { display: block; }

/* ---------- about: white card, the LINKAR chevron art and the app on the far side ---------- */
.about-card { position: relative; height: 309.2px; border-radius: 21.6px; overflow: hidden; background: #fff; }
.about-card .art { position: absolute; top: 0; inset-inline-end: 0; width: 337px; height: 309.2px; }
:root[dir="ltr"] .about-card .art { transform: scaleX(-1); }
.about-card .shot { position: absolute; top: 23px; inset-inline-end: 78.5px; width: 250px; height: auto; filter: drop-shadow(0 0 5px rgba(0,0,0,.14)); }
.about-card .txt { position: absolute; top: 0; inset-inline-start: 73px; width: 464px; }
.about-card h2 { font: 700 60px/80px var(--font); color: var(--green); text-align: end; margin-top: 41.6px; }
.about-card .row { display: flex; gap: 21px; margin-top: 16.2px; }
.about-card .row .chev { height: 30px; margin-top: -5.2px; }
.about-card .row p { font: 400 16px/23px var(--font); color: var(--ink); }
.about-card .row b { color: var(--about-green); font-weight: 700; }

/* ---------- section headings ---------- */
h2.big { font: 700 60px/80px var(--font); }
.svc { padding-top: 44.4px; }
.svc h2.big, .svc .kicker { padding-inline-start: 45px; }
.svc .kicker { font: 600 16px/24px var(--font); margin-top: .7px; }
.svc .lead { display: flex; gap: 22px; margin-top: 16.5px; }
.svc .lead .chev { margin-top: -3.2px; }
.svc .lead p { font: 400 16px/23px var(--font); max-width: 746px; }
/* the design justifies these two paragraphs by stretching letters (kashida, written into the Arabic text) */
@media (min-width: 1001px) { .kashida { text-align: justify; } }   /* on narrow screens justifying leaves wide gaps between words */
.svc-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 27.4px; margin-top: 66.9px; }
.svc-tiles .tile { border-radius: 14.6px; }

/* steps + "why" cards: dark glass, black in the lower left corner fading to #192733 */
.card { position: relative; height: 187px; border: 1px solid rgba(255,255,255,.07); border-radius: 22px; background: linear-gradient(70deg, #000 0%, #192733 75%); }
.steps { padding-top: 82.7px; }
.steps3 { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: center; margin-top: 27px; }
.step { padding: 10px 12px 0 24px; padding-inline: 11px 23px; }
.step b { display: block; font: 600 27px/36px "Kufi", sans-serif; color: var(--green); }
.step h3 { font: 600 35.5px/48px var(--font); color: var(--green); margin-top: 31.2px; }
.step p { font: 400 10.9px/16px var(--font); margin-top: 5.2px; }
.steps3 .arrow { width: 22px; height: 27px; justify-self: start; margin-inline-start: 18px; }

.why { padding-top: 95px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8.3px; margin-top: 23px; }
.pillar { padding-top: 11.5px; padding-inline: 11px 11px; }
.pillar .ic { position: relative; display: block; width: 35px; height: 35px; border-radius: 6.9px; background: var(--green); margin-inline-start: 3.1px; }
.pillar .ic img { position: absolute; height: auto; max-width: none; }
.pillar h3 { font: 600 35.5px/48px var(--font); color: var(--green); margin-top: 28.2px; white-space: nowrap; }
.pillar p { font: 400 10.9px/16px var(--font); margin-top: 8.7px; padding-inline: 4px 0; }

/* ---------- faq + footer ---------- */
.faq-sec { padding-top: 117.7px; padding-bottom: 105px; }
.faq-sec h2.big { font-size: 52px; line-height: 70px; text-align: center; }
.faq { width: min(646.4px, 100%); margin: 18.8px auto 0; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18.7px 0 22.3px; font: 700 14.3px/22px var(--font); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary .chev { width: 15px; height: 19px; margin-top: 4.8px; margin-inline-end: 4.3px; transition: transform .3s; }
:root[dir="rtl"] details[open] summary .chev { transform: rotate(-90deg); }
:root[dir="ltr"] details[open] summary .chev { transform: scaleX(-1) rotate(-90deg); }
details p { color: var(--muted); font-size: 14px; padding-bottom: 22px; }
footer { position: relative; padding: 27px 0 33px; }
footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, #192e17, #314114); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer .foot-r { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font: 400 16px/17px var(--font); }
footer .foot-r a { color: var(--muted); font-size: 12px; }
footer .foot-r a:hover { color: var(--green); }
/* WhatsApp 0530380227: a round button that stays in the corner, and the number in the footer */
.wa-float { position: fixed; z-index: 60; bottom: 20px; inset-inline-start: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }
footer .foot-r a.wa-foot { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; text-decoration: none; }
footer .foot-r a.wa-foot svg { width: 18px; height: 18px; color: #25d366; }
footer .foot-r a.wa-foot:hover { color: var(--green); }
/* privacy notice page */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 16px 70px; line-height: 1.8; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); color: var(--green); line-height: 1.25; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { color: #d3dade; font-size: 16px; }
.legal ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.legal .upd { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.legal a { color: var(--green); }

/* ---------- smaller screens: the same parts, stacked ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap > * { min-width: 0; }
  .form-card { padding-inline: 16px; }
  .form-card .fsub { white-space: normal; }
  .hero-txt { margin-top: 0; }
  .form-card { width: min(420px, 100%); justify-self: center; }
  .about-card { height: auto; display: flex; flex-direction: column; }
  .about-card .txt { position: static; width: auto; padding: 0 24px 30px; }
  .about-card h2 { text-align: start; margin-top: 24px; }
  .about-card .art { top: auto; bottom: 0; width: 290px; height: 266px; }
  .about-card .shot { position: relative; order: 2; inset: auto; width: 230px; margin: 0 auto -170px; }
  .svc-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps3 { grid-template-columns: 1fr; gap: 12px; }
  .steps3 .arrow { justify-self: center; margin: 0; transform: rotate(-90deg); }
  :root[dir="ltr"] .steps3 .arrow { transform: rotate(-90deg); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .card { height: auto; min-height: 187px; padding-bottom: 18px; }
}
@media (max-width: 760px) {
  .nav ul { display: none; }
  .wa-float { bottom: 16px; inset-inline-start: 16px; width: 52px; height: 52px; }
  footer { padding-bottom: 84px; }   /* the footer text stays clear of the WhatsApp button */
  .hero { padding-top: 34px; }
  .hero h1, .hero h2, .svc h2.big, .svc .kicker { padding-inline-start: 0; }
  .hero h1 { font-size: 48px; line-height: 60px; }
  .hero h2 { font-size: 27px; line-height: 38px; }
  h2.big { font-size: 44px; line-height: 62px; }
  .faq-sec h2.big { font-size: 40px; line-height: 56px; }
  .about-card h2 { font-size: 48px; line-height: 66px; }
  .svc-tiles { gap: 12px; }
  .svc-pick { grid-template-columns: repeat(3, 1fr); gap: 12px; }   /* phones: three services per row, like the tiles below */
  .svc-opt { padding-bottom: 44px; }   /* room for names that take two lines (e.g. "PPF protection", "نانو سيراميك" on small phones) */
  .svc-opt .tile .nm { font-size: 14px; }
  .step p, .pillar p { font-size: 13px; line-height: 20px; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
