/* NEOVISTA — shared styles for the Arabic (RTL) and English (LTR) sites.
   Logical properties (inline-start/end) keep one stylesheet working in both directions. */

:root {
  --navy: #1D365C;
  --navy-900: #12233D;
  --navy-700: #26446F;
  --orange: #E07019;
  --orange-600: #C55F10;
  --ink: #1B2430;
  --muted: #5B6675;
  --line: #E3E7ED;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 35, 61, .08);
  --container: 1180px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
:lang(en) { --font: "Poppins", "Segoe UI", Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy-900); font-weight: 800; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.5em; border-radius: 10px; font-weight: 700; font-family: inherit;
  font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .2s;
  line-height: 1.4; text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EB257; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: "Poppins", sans-serif; font-size: 1.25rem; letter-spacing: .06em; color: var(--navy); }
.brand-text small { color: var(--orange); font-size: .78rem; font-weight: 600; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav .nav-cta a { color: #fff; padding: 9px 18px; margin-inline-start: 6px; }
.site-nav .nav-cta a:hover { color: #fff; }
.site-nav .lang a { font-family: "Poppins", "Cairo", sans-serif; border: 1px solid var(--line); margin-inline-start: 6px; padding: 6px 12px; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: 8px; vertical-align: 3px; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; }
.sub a:hover { background: var(--bg-alt); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; background: #fff; overflow-y: auto;
    padding: 12px 16px 40px; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 14px 6px; font-size: 1.05rem; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 10px; min-width: 0; }
  .sub a { padding: 9px 6px; font-size: .97rem; color: var(--muted); }
  .site-nav .nav-cta, .site-nav .lang { border: 0; padding-top: 14px; }
  .site-nav .nav-cta a, .site-nav .lang a { margin: 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-900) center/cover no-repeat;
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,35,61,.94) 0%, rgba(18,35,61,.78) 55%, rgba(18,35,61,.45) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(-100deg, rgba(18,35,61,.94) 0%, rgba(18,35,61,.78) 55%, rgba(18,35,61,.45) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 680px; color: #DCE4EF; margin-bottom: 1.6em; }
.eyebrow { display: inline-block; color: var(--orange); font-weight: 700; font-size: .92rem; letter-spacing: .04em; margin-bottom: .7em; }
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.hero .eyebrow { background: rgba(224,112,25,.16); padding: 4px 12px; border-radius: 30px; }

.page-hero { position: relative; color: #fff; background: var(--navy-900) center/cover no-repeat; padding: clamp(56px, 8vw, 90px) 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18,35,61,.86); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #DCE4EF; max-width: 720px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .9rem; color: #AFC0D6; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 12px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-inline-start: 0; }
.stat strong { display: block; font-family: "Poppins", sans-serif; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--orange); line-height: 1.1; }
.stat span { color: #DCE4EF; font-size: .98rem; }
@media (max-width: 700px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #DCE4EF; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #AFC0D6; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: .2s; display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 1em; }
.card .more { margin-top: auto; color: var(--orange); font-weight: 700; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(224,112,25,.12); color: var(--orange);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 30px; height: 30px; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section-dark .card p { color: #AFC0D6; }
.section-dark .card h3 { color: #fff; }

/* Clients */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.logos > .logo-tile { flex: 0 0 calc((100% - 56px) / 5); }
@media (max-width: 960px) { .logos > .logo-tile { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 700px) { .logos > .logo-tile { flex-basis: calc((100% - 14px) / 2); } }
.logo-tile {
  height: 110px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 12px;
}
.logo-tile img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile.dark { background: var(--navy-900); border-color: var(--navy-900); }
.logo-tile.ink { background: #212830; border-color: #212830; }
.logo-tile.ink img { max-height: 86px; }
.logos.malls > .logo-tile { flex-basis: 200px; }
@media (max-width: 700px) { .logos.malls > .logo-tile { flex-basis: calc((100% - 14px) / 2); } }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients span {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 40px; background: #fff;
  font-weight: 700; color: var(--navy); font-size: .98rem;
}

/* Projects */
.project { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.project figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover img { transform: scale(1.04); }
.project .body { padding: 18px 20px 20px; }
.project h3 { font-size: 1.1rem; margin-bottom: .2em; }
.project p { color: var(--muted); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--orange); background: rgba(224,112,25,.1); padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.note { font-size: .85rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button {
  font-family: inherit; font-size: .95rem; font-weight: 700; padding: 8px 18px; border-radius: 30px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.project-list strong { display: block; color: var(--navy-900); }
.project-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .project-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-list { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* Split / features */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 520px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-inline-start: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.steps li::before { content: counter(step); font-family: "Poppins", sans-serif; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: clamp(48px, 7vw, 76px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #DCE4EF; margin: 0; }

/* Values */
.quote-box { border-inline-start: 4px solid var(--orange); background: var(--bg-alt); padding: 20px 24px; border-radius: 0 12px 12px 0; font-size: 1.12rem; font-weight: 600; color: var(--navy-900); }
[dir="rtl"] .quote-box { border-radius: 12px 0 0 12px; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy-900); font-size: .97rem; }
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #CBD3DD; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid rgba(29,54,92,.15); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #CBD3DD; border-radius: 30px; padding: 7px 14px; font-weight: 600; cursor: pointer; margin: 0; font-size: .95rem; }
.chips input { width: auto; accent-color: var(--orange); }
.chips label:has(input:checked) { border-color: var(--orange); background: rgba(224,112,25,.08); }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-msg { margin-top: 18px; padding: 16px 18px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #E8F7EE; color: #11603A; }
.form-msg.err { display: block; background: #FDECEC; color: #8A1F1F; }
.form-msg .btn { margin-top: 10px; }

/* Contact */
.contact-cards { display: grid; gap: 16px; }
.contact-cards .card { padding: 22px; }
.contact-cards h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-cards p { margin: 0; color: var(--ink); }
.map { border: 0; width: 100%; min-height: 380px; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--navy-900); color: #AFC0D6; padding-top: 60px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid img { width: 90px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE4EF; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 20px 0 90px; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp float */
.wa { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.menu-open .wa { display: none; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25D366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s; }
.wa-btn:hover { transform: scale(1.06); }
.wa-panel { background: #fff; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: 14px; min-width: 230px; }
.wa-panel p { margin: 0 0 8px; font-weight: 700; color: var(--navy-900); }
.wa-panel a { display: block; padding: 10px 12px; border-radius: 10px; background: #F1FBF5; color: #11603A; font-weight: 700; margin-top: 6px; font-family: "Poppins", sans-serif; }
.wa-panel a:hover { background: #DDF5E7; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; }
