/*
Theme Name: ArraCode
Description: Multilingual corporate WordPress theme for ArraCode.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: arracode
*/

:root {
  color-scheme: light;
  --night: #081426;
  --night-2: #0c203c;
  --day: #f4f7fb;
  --ink: #0d2038;
  --muted: #47586f;
  --light: #bfcde0;
  --blue: #174cd3;
  --blue-dark: #0f39a7;
  --azure: #82c1ff;
  --cyan: #7fe0fa;
  --line: #d9e2ee;
  --white: #fff;
  --layout: 1320px;
  --gutter: clamp(1.1rem, 4.15vw, 4rem);
  --font: Manrope, Aptos, "Segoe UI", system-ui, sans-serif;
  font: 100%/1.65 var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--white); }
body[dir="rtl"], html[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, "Segoe UI", sans-serif; }
body { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #1882fa; outline-offset: 4px; }
::selection { background: #cce6ff; color: #081426; }
h1, h2, h3 { margin: 0; line-height: 1.11; letter-spacing: -.042em; font-weight: 745; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; }
button, summary { cursor: pointer; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--layout)); margin-inline: auto; }
.section { padding-block: clamp(3.8rem, 7.4vw, 7.3rem); }
.section--pale { background: var(--day); }
.section--midnight { background: var(--night); color: var(--white); }
.skip-link {
  position: absolute;
  z-index: 30;
  inset-block-start: .5rem;
  inset-inline-start: .5rem;
  transform: translateY(-150%);
  background: var(--white);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: none; }
.vhidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header { z-index: 10; position: relative; background: #071222; color: #fff; border-block-end: 1px solid #24334a; }
.header-row { min-height: 78px; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: #fff; font-size: 1.6rem; font-weight: 780; letter-spacing: -.055em; white-space: nowrap; line-height: 1.1; }
.brand img { width: 31px; height: 32px; }
.header-row .brand { flex-shrink: 0; }
.site-nav, .header-actions { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.65rem); }
.header-actions { gap: .8rem; }
.site-nav a, .site-nav summary, .language summary { color: #dce7f6; font-size: .9rem; font-weight: 640; white-space: nowrap; text-decoration: none; }
.site-nav a[aria-current], .site-nav a:hover, .site-nav summary:hover, .language summary:hover { color: #99cdff; }
.menu-item { position: relative; }
.menu-item summary, .mobile-menu summary { list-style: none; display: flex; align-items: center; gap: .4rem; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
.drop svg { color: var(--azure); width: .7em; height: .7em; }
.language summary { border: 1px solid #48627f; border-radius: 5px; padding-inline: .7rem; color: #fff; }
.language summary > .globe { width: 17px; height: 17px; }
.flyout { position: absolute; inset-block-start: calc(100% + .55rem); inset-inline-start: -.8rem; padding: .55rem; width: max-content; max-width: min(24rem, calc(100vw - 2 * var(--gutter))); border-radius: 8px; border: 1px solid #3a526e; background: #10233d; box-shadow: 0 18px 35px #030b1b50; z-index: 12; }
.language .flyout { inset-inline: auto 0; }
.flyout a, .flyout strong { display: block; padding: .54rem .7rem; border-radius: 4px; text-decoration: none; color: #e7f2ff; font-size: .9rem; font-weight: 650; }
.flyout a:hover, .flyout strong { color: #b9deff; background: #1b3c61; }
.mobile-menu { display: none; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: .62rem; padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 5px; background: var(--blue); color: #fff; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; transition: background .16s ease, border-color .16s ease; }
.button:hover { background: var(--blue-dark); text-decoration: none; }
.button--primary-dark { background: #deefff; color: #0b2444; border-color: #deefff; }
.button--primary-dark:hover { color: #0b2444; background: #b9dfff; border-color: #b9dfff; }
.button--outline { border-color: #57718f; background: transparent; color: #e3efff; }
.button--outline:hover { border-color: var(--azure); background: #173657; }
.header-quote { min-height: 43px; white-space: nowrap; padding-inline: .9rem; font-size: .87rem; }
.arrow { flex: 0 0 auto; width: 1.04em; height: 1.04em; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-block-start: 1.85rem; }

.hero { position: relative; isolation: isolate; background: var(--night); color: #fff; min-height: clamp(590px, 54vw, 790px); display: grid; align-items: center; overflow: clip; }
.hero::after { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#081426 8%,#081426 31%,#081426ef 40%,#08142670 57%,#08142605 85%); }
[dir="rtl"] .hero::after { background: linear-gradient(270deg,#081426 8%,#081426 31%,#081426ef 40%,#08142670 57%,#08142605 85%); }
.hero-media { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; }
[dir="rtl"] .hero-media { inset: 0 auto 0 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.hero-inner { padding-block: clamp(4rem, 8vw, 9rem); }
.hero-copy { width: min(62%, 760px); }
.kicker { color: var(--blue-dark); font: 720 .77rem/1.5 var(--font); letter-spacing: .13em; text-transform: uppercase; margin-block-end: .9rem; }
.section--midnight .kicker, .hero .kicker, .mast .kicker, .cta .kicker { color: var(--cyan); }
.hero h1 { font-size: clamp(3.25rem, 6.7vw, 6.9rem); letter-spacing: -.07em; line-height: .99; }
.hero h1 span { display: block; color: var(--azure); }
.hero .lede { max-width: 32rem; font-size: clamp(1.03rem,1.48vw,1.25rem); color: #d2def0; margin-block-start: 1.4rem; }
.hero .kicker { letter-spacing: .1em; }
.proof-strip { background: #0d1c32; color: #cddded; border-block: 1px solid #2b4059; }
.proof-strip .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; min-height: 66px; padding-block: .72rem; font-size: .92rem; font-weight: 620; }
.proof-strip .wrap span { display: inline-flex; align-items: center; gap: .55rem; }
.proof-strip .wrap span::before { content: ""; width: 6px; height: 6px; border: 1px solid #88ceff; transform: rotate(45deg); }
.section h2, .cta h2 { font-size: clamp(2rem, 4.1vw, 3.85rem); max-width: 18ch; }
.section .prose h2 { font-size: clamp(1.5rem, 2.25vw, 2.2rem); max-width: none; }
.section-head { margin-block-end: clamp(1.5rem, 3.25vw, 2.7rem); }
.section-head > p:not(.kicker), .lede { max-width: 62ch; margin-block-start: 1rem; color: var(--muted); }
.section--midnight .section-head > p:not(.kicker), .section--midnight .lede { color: var(--light); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.15rem, 2.3vw, 2rem); background: #fff; min-width: 0; }
.card h3 { font-size: clamp(1.18rem, 1.6vw, 1.55rem); }
.card p { color: var(--muted); margin-block-start: .7rem; }
.card .icon { width: 35px; height: 35px; color: var(--blue); margin-block-end: .9rem; }
.card--service { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-height: 222px; transition: border-color .16s ease, box-shadow .16s ease; }
.card--service:hover { border-color: #6292f1; box-shadow: 0 10px 24px #143a7d18; }
.card--service .text-link { margin-block-start: auto; padding-block-start: .9rem; }
.text-link { display: inline-flex; gap: .45rem; align-items: center; color: var(--blue-dark); font-weight: 725; }
.section--midnight .text-link { color: #a8d6ff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(2rem, 5.5vw, 6rem); align-items: center; }
.editorial-photo { overflow: hidden; border-radius: 10px; background: #172c47; }
.editorial-photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.two-titles { max-width: 35rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.15rem; }
.steps li { padding-block: 1rem .3rem; border-block-start: 2px solid #3973ac; }
.steps h3 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.steps p { margin-block-start: .65rem; color: var(--light); }
.inline-list { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .1rem 1.4rem; list-style: none; }
.inline-list li { border-block-start: 1px solid var(--line); padding: .75rem .2rem; font-weight: 655; }
.inline-list li::before { content: ""; display: inline-block; width: .42rem; height: .42rem; background: var(--blue); margin-inline-end: .65rem; vertical-align: .15em; }
.mast { color: #fff; background: linear-gradient(125deg,#081426 20%,#112d4d); padding-block: clamp(2.4rem, 6vw, 6rem); }
.mast h1 { font-size: clamp(2.55rem, 5vw, 5.45rem); line-height: 1.02; }
.mast .lede { color: #d5e1f0; font-size: clamp(1.02rem,1.65vw,1.27rem); }
.mast--plain .mast-copy { max-width: 58rem; }
.mast .editorial-photo img { aspect-ratio: 5 / 3.2; }
.breadcrumbs { margin-block-end: 1.4rem; color: #dce8f8; font-size: .84rem; }
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; list-style: none; }
.breadcrumbs a { color: #b1d7ff; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .65rem; color: #879cb6; }
.prose { max-width: 74ch; }
.prose > * + * { margin-block-start: 1.14rem; }
.prose > h2:not(:first-child) { margin-block-start: 2.2rem; }
.prose ul, .prose ol { padding-inline-start: 1.45rem; }
.prose p { overflow-wrap: break-word; }
.list-steps { list-style: decimal; padding-inline-start: 1.4rem; }
.list-steps li { padding-block: .5rem; padding-inline-start: .4rem; }
.list-steps li::marker { color: var(--blue-dark); font-weight: 750; }
.questions { max-width: 58rem; }
.questions details { border-block-end: 1px solid var(--line); }
.questions details:first-child { border-block-start: 1px solid var(--line); }
.questions summary { list-style: none; display: flex; gap: 1.15rem; justify-content: space-between; align-items: center; min-height: 56px; padding: 1rem .12rem; font-weight: 725; }
.questions summary::after { content: "+"; flex: 0 0 auto; font-size: 1.48rem; line-height: 1; color: var(--blue-dark); }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding-block-end: 1.1rem; padding-inline-end: 2.1rem; color: var(--muted); }
.faq-index { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin-block: 1.25rem 1.9rem; }
.faq-index a, .topic { padding: .45rem .7rem; display: block; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-weight: 650; text-decoration: none; }
.story-card { display: flex; flex-direction: column; color: var(--ink); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.story-card:hover { border-color: #6596e7; }
.story-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.story-card .card-content { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; gap: .7rem; }
.story-card p { color: var(--muted); margin-block-end: .5rem; }
.story-card .text-link { margin-block-start: auto; }
.cta { background: linear-gradient(110deg,#0d2240,#143660); color: #fff; padding-block: clamp(2.8rem,5.4vw,5.9rem); }
.cta .wrap { display: flex; justify-content: space-between; gap: 1.7rem; align-items: center; }
.cta h2 { max-width: 23ch; }
.cta p { max-width: 61ch; color: #d4e4f5; margin-block-start: .7rem; }
.cta .button { flex-shrink: 0; }
.site-footer { background: #081426; color: #bdcde0; padding-block: 3.4rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.1fr .8fr 1fr; gap: 1.25rem 2rem; }
.site-footer .brand { margin-block-end: .85rem; }
.site-footer p { font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: -.008em; margin-block-end: .8rem; }
.site-footer ul { list-style: none; display: grid; gap: .36rem; }
.site-footer li a, .site-footer p a { color: #d9e6f3; text-decoration: none; font-size: .89rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-block-start: 1px solid #304259; margin-block-start: 2rem; padding-block-start: 1rem; display: flex; justify-content: space-between; gap: .65rem 1.5rem; }
.footer-bottom p { font-size: .81rem; }
.footer-bottom .status { max-width: 60ch; }
.form-panel { max-width: 58rem; padding: clamp(1.2rem,3.2vw,2.15rem); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form-panel .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .95rem 1.25rem; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.form-panel :where(input:not([type="checkbox"]),textarea,select) { display: block; width: 100%; padding: .63rem .72rem; border-radius: 5px; border: 1px solid #8c9eb3; background: #fff; color: var(--ink); min-height: 44px; }
.form-panel textarea { min-height: 8rem; resize: vertical; }
.form-panel [type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: .17rem 0 0; flex: 0 0 auto; }
.form-panel label { display: grid; gap: .31rem; font-weight: 650; font-size: .94rem; }
.form-panel .full { grid-column: 1/-1; }
.form-panel .agree { display: flex; gap: .6rem; align-items: flex-start; }
.form-panel fieldset:disabled :is(input,select,textarea) { background: #f0f3f8; }
.form-panel .button:disabled { background: #52637c; cursor: default; }
.form-panel .button { justify-self: start; }
.form-message { border-inline-start: 3px solid var(--blue); padding: .75rem .9rem; background: #eef5ff; color: var(--ink); margin-block-end: 1rem; }
.form-message--error { background: #fff3f1; border-color: #ac392c; }
.form-mail { margin-block-start: 1.2rem; }

[dir="rtl"] :where(h1,h2,h3,.kicker,.hero h1) { letter-spacing: 0; line-height: 1.23; }
[dir="rtl"] .brand { letter-spacing: -.055em; }
[dir="rtl"] .kicker { font-size: .92rem; }

@media (max-width: 1030px) {
  .site-nav, .header-actions { gap: .8rem; }
  .header-row { gap: .8rem; }
  .header-row .brand { font-size: 1.42rem; }
  .header-quote { display: none; }
  .hero-copy { width: min(68%,680px); }
}
@media (max-width: 790px) {
  .header-row { min-height: 66px; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { border: 1px solid #48627f; border-radius: 5px; padding-inline: .69rem; font-size: .86rem; }
  .mobile-menu .flyout { inset-inline: auto 0; width: min(21rem,calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 37rem); overflow-y: auto; }
  .mobile-menu .flyout a { white-space: normal; }
  .grid, .inline-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split { gap: 2rem; }
  .steps, .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { width: min(88%,620px); }
  .hero-media { width: 83%; }
  .mast h1 { font-size: clamp(2.2rem,6.4vw,4.3rem); }
}
@media (max-width: 560px) {
  .header-row { gap: .5rem; }
  .header-row .brand { gap: .35rem; }
  .header-row .brand img { width: 26px; height: 27px; }
  .header-actions { gap: .38rem; }
  .header-actions summary { padding-inline: .55rem; min-height: 42px; }
  .language .flyout { inset-inline: auto -3rem; }
  .hero { display: block; min-height: 0; }
  .hero-copy { width: 100%; }
  .hero-inner { padding-block: 3.2rem 2.2rem; }
  .hero h1 { font-size: clamp(2.85rem,10.8vw,4.2rem); }
  .hero-media, [dir="rtl"] .hero-media { position: relative; width: 100%; height: 250px; inset: auto; right: auto; left: auto; display: block; }
  .hero-media img { object-position: 58% 58%; }
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(180deg,#081426 0%,#081426 53%,#08142630 72%,#08142600 100%); }
  .grid, .split, .form-panel .form-grid { grid-template-columns: minmax(0,1fr); }
  .inline-list { grid-template-columns: minmax(0,1fr); }
  .card--service { min-height: 180px; }
  .proof-strip .wrap { column-gap: .9rem; font-size: .81rem; }
  .steps { gap: 1.15rem; }
  .cta .wrap, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mast .editorial-photo img { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
