/* =========================================================
   DigiSmart Technologies
   Colours come from the logo: navy #1E3E75 and ocean #0C7DB1.
   ========================================================= */

/* Readex Pro (SIL Open Font License), self-hosted variable font */
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/readex-arabic.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 Pro"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/readex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/readex-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --ink: #0B1F3F;          /* deep navy: hero, bands, footer */
  --navy: #1E3E75;         /* logo house */
  --ocean: #0C7DB1;        /* logo swoosh: primary action */
  --ocean-strong: #09648E; /* hover / pressed */
  --teal: #22C4C0;         /* highlights on dark only */

  /* Neutrals */
  --text: #0B1F3F;
  --muted: #475A76;
  --surface: #FFFFFF;
  --mist: #EEF4FA;
  --line: #D7E2EE;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B9C8DE;
  --error: #B42318;
  --wa: #128C7E;

  /* Type */
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* Space (8pt) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -22px rgba(11, 31, 63, 0.45);
  --focus: var(--ocean);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 260ms;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--ocean-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s2); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; }
h3, .h3 { font-size: var(--fs-h3); }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header, .hero, .band, .site-footer, .page-hero { --focus: var(--teal); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 1000;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-strong); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.55); min-height: 44px; }
.btn-outline-light:hover { color: var(--ink); background: #fff; border-color: #fff; }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.site-header.is-scrolled { background: rgba(11, 31, 63, 0.96); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.6); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s3); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { display: grid; place-items: center; width: 66px; height: 48px; border-radius: 12px; background: #fff; }
.brand-mark img { width: 56px; height: auto; }
.brand-name { display: flex; flex-direction: column; font-weight: 600; font-size: 1.0625rem; line-height: 1.1; }
.brand-name small { font-weight: 300; font-size: 0.8125rem; color: var(--on-dark-muted); margin-top: 2px; }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s3); }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--on-dark); text-decoration: none; font-weight: 400; font-size: 0.9375rem;
}
.site-nav ul a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: var(--s1); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  background: none; border: 0; color: var(--on-dark); font: inherit; font-size: 0.9375rem; cursor: pointer; border-radius: var(--radius-sm);
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: var(--s2);
    padding: var(--s2) 16px var(--s3); background: var(--ink); box-shadow: 0 24px 30px -20px rgba(0, 0, 0, 0.6);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1rem; }
  .nav-actions { justify-content: space-between; }
  .site-header { background: rgba(11, 31, 63, 0.96); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(12, 125, 177, 0.45), transparent 70%),
    var(--ink);
  padding: calc(var(--header-h) + var(--s5)) 0 var(--s7);
}
[dir="rtl"] .hero { background: radial-gradient(60% 70% at 22% 45%, rgba(12, 125, 177, 0.45), transparent 70%), var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--s5); position: relative; z-index: 1; }
.hero .hero-kicker { color: var(--teal); font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; margin-bottom: var(--s2); max-width: 40ch; }
.hero-title { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; max-width: 15ch; margin-bottom: var(--s3); color: #fff; }
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.35; }
.hero-lead { font-size: var(--fs-lead); color: var(--on-dark-muted); max-width: 52ch; margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.hero-brands { font-size: var(--fs-sm); color: var(--on-dark-muted); margin: 0; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-visual picture { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-visual img { position: relative; width: min(330px, 70vw); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.45)); }
/* Rings are wider than the column, so centre them on the column's midpoint (not its start edge) */
.signal { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(640px, 120%); max-width: none; aspect-ratio: 1; overflow: visible; pointer-events: none; }
.signal circle { fill: none; stroke: var(--teal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: signal-in 900ms var(--ease-out) forwards; }
.signal circle:nth-child(1) { stroke-opacity: 0.55; animation-delay: 150ms; }
.signal circle:nth-child(2) { stroke-opacity: 0.35; animation-delay: 300ms; }
.signal circle:nth-child(3) { stroke-opacity: 0.22; animation-delay: 450ms; }
.signal circle:nth-child(4) { stroke-opacity: 0.12; stroke-dasharray: 3 9; animation-delay: 600ms; }
@keyframes signal-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

.hero-wave { position: absolute; inset: auto 0 -1px; width: 100%; height: 110px; fill: var(--surface); }
[dir="rtl"] .hero-wave, [dir="rtl"] .footer-wave { transform: scaleX(-1); }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + var(--s4)); padding-bottom: var(--s6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .hero-visual { min-height: 230px; order: -1; }
  .hero-visual img { width: min(150px, 40vw); }
  .signal { width: 380px; }
  .hero-wave { height: 60px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--on-dark); background: var(--ink);
  padding: calc(var(--header-h) + var(--s5)) 0 var(--s6); overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: 40px; width: 420px; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid rgba(34, 196, 192, 0.35);
  box-shadow: 0 0 0 60px rgba(34, 196, 192, 0.05), 0 0 0 61px rgba(34, 196, 192, 0.2), 0 0 0 130px rgba(34, 196, 192, 0.03), 0 0 0 131px rgba(34, 196, 192, 0.12);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero p { color: var(--on-dark-muted); font-size: var(--fs-lead); max-width: 60ch; margin: 0; }
.page-hero .hero-wave { height: 70px; z-index: 1; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--s2); color: var(--on-dark-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--on-dark); }
.page-hero .hero-actions { margin: var(--s3) 0 0; }
.lang-note {
  position: fixed; z-index: 80; bottom: 0; inset-inline: 0; margin: 0; padding: 12px 88px 12px 16px;
  background: #FFF6DB; color: #5A4300; text-align: center; font-size: var(--fs-sm); box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, 0.4);
}

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: var(--s5); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin: 0; }
.section-head.on-dark p { color: var(--on-dark-muted); }
@media (max-width: 700px) { .section { padding: var(--s6) 0; } .section-head { margin-bottom: var(--s4); } }

/* Services */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s5); }
.feature { display: flex; flex-direction: column; }
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.feature-body { padding: var(--s3) 0 0; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; }
.feature h3 .icon { color: var(--ocean); width: 28px; height: 28px; }
.feature p { color: var(--muted); max-width: 52ch; }

.service-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s4); }
.service-list li { display: flex; gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.service-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--mist); color: var(--navy); }
.service-list h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.service-list p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
@media (max-width: 900px) {
  .feature-pair { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }

/* Split + timeline */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-copy h2 { max-width: 18ch; margin-bottom: var(--s4); }
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--navy), var(--ocean)); opacity: 0.25; }
.timeline li { position: relative; display: flex; gap: var(--s3); padding-bottom: var(--s4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; }
.timeline-dot .icon { width: 22px; height: 22px; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; max-width: 50ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s4); } .split-media { max-width: 420px; } }

/* Process band */
.band { background: var(--ink); color: var(--on-dark); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); counter-reset: step; }
.step {
  counter-increment: step; position: relative; padding: var(--s4) var(--s3);
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14);
}
.step::after {
  content: counter(step); position: absolute; top: var(--s3); inset-inline-end: var(--s3);
  font-size: 2.75rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(34, 196, 192, 0.55);
}
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(34, 196, 192, 0.14); color: var(--teal); margin-bottom: var(--s3); }
.step-icon .icon { width: 26px; height: 26px; }
.step p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: var(--s2); }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: var(--s4) var(--s2) var(--s2);
  color: #fff; font-weight: 500; background: linear-gradient(transparent, rgba(11, 31, 63, 0.85));
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .g-tall { grid-row: span 1; }
  .g-wide { grid-column: span 1; }
}

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: stretch; }
.package {
  display: flex; flex-direction: column; padding: var(--s4); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.package h3 { font-size: 1.5rem; margin-bottom: 4px; }
.package-for { color: var(--muted); margin-bottom: var(--s3); }
.package .btn { margin-top: auto; align-self: flex-start; }
.package-featured { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.package-featured .package-for { color: var(--on-dark-muted); }
.package-featured { --focus: var(--teal); }
.package-badge { align-self: flex-start; font-size: var(--fs-sm); font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--teal); color: var(--ink); margin-bottom: var(--s2); }

.ticks { list-style: none; margin-bottom: var(--s4); }
.ticks li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 18px; height: 18px; background: var(--ocean);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.package-featured .ticks li::before { background: var(--teal); }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }


/* Trust */
.trust { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); }
.trust > div > p { color: var(--muted); font-size: var(--fs-lead); }
.brand-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }
.brand-chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; color: var(--navy); }
.clients ul { list-style: none; margin-bottom: var(--s4); }
.clients li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.mission { margin: 0; padding: var(--s3); border-radius: var(--radius); background: var(--mist); border-inline-start: 4px solid var(--ocean); }
.mission p { font-size: 1.0625rem; margin-bottom: var(--s1); }
.mission footer { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; gap: var(--s4); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 20px 0; font-weight: 500; font-size: 1.0625rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; border-inline-end: 2px solid var(--ocean); border-bottom: 2px solid var(--ocean);
  transform: rotate(45deg) translateY(-4px); transition: transform var(--t-med) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 64ch; }

/* Contact + form */
.contact { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); }
.contact-form > p { color: var(--muted); font-size: var(--fs-lead); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field { margin: 0 0 var(--s2); border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9375rem; padding: 0; }
.req { color: var(--error); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  transition: border-color var(--t-fast);
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #A9BBD0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(12, 125, 177, 0.35); outline-offset: 0; border-color: var(--ocean); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: var(--fs-sm); margin: 4px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-status { margin: 0; font-weight: 500; color: var(--navy); }
.form-status:not(:empty) { margin-bottom: var(--s2); padding: 12px 16px; border-radius: 10px; background: var(--mist); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--ocean); background: #E6F2F9; }
.checks input { width: 18px; height: 18px; accent-color: var(--ocean); margin: 0; }

.contact-info { padding: var(--s4); border-radius: var(--radius-lg); background: var(--mist); align-self: start; }
.contact-list { list-style: none; margin-bottom: var(--s3); }
.contact-list li { display: flex; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--ocean); margin-top: 4px; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 400; }
.contact-list a:hover { color: var(--ocean-strong); text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 600px) { .field-row, .checks { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--on-dark-muted); }
.footer-wave { position: absolute; bottom: calc(100% - 1px); inset-inline: 0; width: 100%; height: 90px; fill: var(--ink); }
.footer-cta-band { position: relative; margin-top: 90px; background: var(--ink); color: var(--on-dark-muted); padding: var(--s4) 0 var(--s5); border-bottom: 1px solid rgba(255, 255, 255, 0.12); --focus: var(--teal); }
/* Pages without the call-to-action band still get the curved top edge */
main + .site-footer { margin-top: 90px; }
main + .site-footer::before {
  content: ""; position: absolute; bottom: calc(100% - 1px); inset-inline: 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%230B1F3F' d='M0,70 C220,10 460,0 720,40 C980,80 1220,110 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
[dir="rtl"] main + .site-footer::before { transform: scaleX(-1); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.footer-cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); margin-bottom: 6px; }
.footer-cta-band p { margin: 0; }
.social { list-style: none; display: flex; gap: 8px; margin-top: var(--s2); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.legal-links { list-style: none; display: flex; gap: var(--s3); flex-wrap: wrap; }
.legal-links li { margin: 0; }
.footer-cta-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s4); padding: var(--s5) 0; }
.footer-about p { margin-top: var(--s2); max-width: 36ch; font-size: 0.9375rem; }
.footer-about .brand { color: #fff; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: var(--s2); font-weight: 500; letter-spacing: 0; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 0.9375rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-sm); }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-fast) var(--ease-out);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Products page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 0.9375rem; color: var(--text); cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s3); }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.product-media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--mist); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: var(--s2); }
.product-media .icon { width: 64px; height: 64px; color: var(--navy); stroke-width: 1.25; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: var(--s3); }
.product-cat { font-size: var(--fs-sm); color: var(--ocean); font-weight: 500; margin-bottom: 4px; }
.product h2 { font-size: 1.0625rem; margin-bottom: 8px; letter-spacing: 0; }
.product p { color: var(--muted); font-size: 0.9375rem; }
.product .btn { margin-top: auto; align-self: stretch; }
.disclosure { font-size: var(--fs-sm); color: var(--muted); padding: 14px 18px; border-radius: 10px; background: var(--mist); margin-bottom: var(--s4); }
.empty-state { color: var(--muted); padding: var(--s4) 0; }

/* ---------- Blog ---------- */
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.post-card { display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s2); }
.post-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.post-card h2 { font-size: 1.25rem; letter-spacing: 0; margin-bottom: 8px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--ocean); text-decoration: underline; }
.post-card p { color: var(--muted); }

.article { padding: var(--s6) 0 var(--s7); }
.article-cover { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--s5); }
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.0625rem; }
.prose h2 { font-size: 1.625rem; margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: var(--s2); }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }
.prose .callout { padding: var(--s3); border-radius: var(--radius); background: var(--mist); border-inline-start: 4px solid var(--ocean); margin: var(--s4) 0; }
.prose .callout p:last-child { margin: 0; }
html[lang="ar"] .prose [lang="en"], html[lang="en"] .prose [lang="ar"],
html[lang="ar"] [data-show="en"], html[lang="en"] [data-show="ar"] { display: none; }

/* ---------- Utilities ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--muted); }
.feature h3 a, .service-list h3 a, .hub-item h2 a { color: inherit; text-decoration: none; }
.feature h3 a:hover, .service-list h3 a:hover, .hub-item h2 a:hover { color: var(--ocean); text-decoration: underline; }

/* ---------- Service pages ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); align-items: start; }
.service-layout .prose { margin: 0; max-width: 72ch; }
.service-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--s4); }
.service-image-tall { aspect-ratio: 4 / 3; }
.prose .faq { margin-top: var(--s2); }
.prose .faq summary { font-size: 1rem; }
.notice { padding: var(--s3); border-radius: var(--radius); background: #FFF6DB; color: #4A3800; border-inline-start: 4px solid #C99A06; }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s3); }
.aside-card { padding: var(--s3); border-radius: var(--radius); background: var(--mist); }
.aside-card .h3 { font-size: 1.0625rem; }
.aside-card .ticks { margin-bottom: var(--s3); }
.aside-card .btn { width: 100%; }
.aside-call { margin: var(--s2) 0 0; font-size: var(--fs-sm); text-align: center; }
.aside-links { list-style: none; }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links li:last-child { border-bottom: 0; }
.aside-links a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.aside-links a:hover { color: var(--ocean-strong); text-decoration: underline; }
.aside-links a[aria-current="page"] { color: var(--ocean-strong); font-weight: 500; }
@media (max-width: 1000px) {
  .service-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .service-aside { position: static; }
}

.hub-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4) var(--s3); }
.hub-item { padding-top: var(--s3); border-top: 2px solid var(--line); }
.hub-item .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--mist); color: var(--navy); margin-bottom: var(--s2); }
.hub-item h2 { font-size: 1.1875rem; letter-spacing: 0; margin-bottom: 6px; }
.hub-item p { color: var(--muted); margin: 0; }

/* ---------- Form states ---------- */
.optional { font-weight: 300; color: var(--muted); }
.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.consent-label input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ocean); flex: none; }
.form-status.is-info { background: var(--mist); color: var(--navy); }
.form-status.is-success { background: #E3F6EC; color: #11593A; border-inline-start: 4px solid #1F8A5B; }
.form-status.is-error { background: #FDECEA; color: #8A1C12; border-inline-start: 4px solid var(--error); }
.form-status:focus { outline: none; }
.form-status-actions { display: flex; gap: var(--s2); margin-top: 6px; }
.form-status-actions a { color: inherit; font-weight: 500; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 800ms linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-noscript { margin-top: var(--s2); padding: 12px 16px; border-radius: 10px; background: #FFF6DB; }

.map { display: grid; place-items: center; text-align: center; padding: var(--s3); }
.map p { color: var(--muted); font-size: var(--fs-sm); max-width: 32ch; }
.map-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s1); }
.map.is-loaded { padding: 0; display: block; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .signal circle { opacity: 1; }
}
