/* ServeU company page. Plain CSS, self-hosted fonts, no inline styles.
   Plus Jakarta Sans carries Latin, IBM Plex Sans Arabic carries Arabic:
   one font stack, and unicode-range picks the right face per character. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal; font-display: swap; font-weight: 400;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "IBM Plex Sans Arabic";
  font-style: normal; font-display: swap; font-weight: 600;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "IBM Plex Sans Arabic";
  font-style: normal; font-display: swap; font-weight: 700;
  src: url("/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: "Alexandria";
  font-style: normal; font-display: swap; font-weight: 700;
  src: url("/fonts/alexandria-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* Colours taken from the ServeU logo artwork. */
  --dark: #06173D;          /* logo dark background */
  --dark-2: #0C2352;        /* a step lighter, for the vision band */
  --dark-3: #040F2B;        /* footer */
  --sky: #8CC8F0;           /* "Serve" on dark */
  --blue-bright: #39A8EA;   /* "U" on dark */
  --sub-dark: #93A9D1;      /* "Digital Solutions" on dark */
  --on-dark: #BCCBE4;       /* body text on dark */
  --navy-900: #040F2B;
  --navy-800: #06173D;
  --navy-700: #091537;      /* headings on white, as "Serve" on white */
  --blue: #1D6FC4;          /* buttons: white text stays readable */
  --blue-dark: #155AA3;
  --blue-light: #6FB0F7;
  --ground: #F5F8FC;
  --line: #E1E7F0;
  --ink: #101828;
  --muted: #4F5F7A;
  --gold: #F6C453;
  --focus: #4A97F0;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  line-height: 1.6; color: var(--ink); background: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html[lang="ar"] body { line-height: 1.9; }
/* Arabic headings: Alexandria, bold and confident for a strong first impression.
   Paragraphs and buttons stay in IBM Plex Sans Arabic for easy reading.
   Latin words inside a heading (e.g. "ServeU") still use Plus Jakarta Sans. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .vision-text {
  font-family: "Plus Jakarta Sans", "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
  background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding-inline: 26px; border-radius: 10px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s ease;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-gold { background: var(--gold); color: var(--navy-800); }
.btn-gold:hover { background: #FFD673; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { text-decoration: none; flex: none; }
.logo-lockup { display: flex; align-items: center; gap: 8px; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; }
.logo-word { font-family: "Plus Jakarta Sans", sans-serif; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--sky); }
.logo-u { color: var(--blue-bright); }
.logo-sub { margin-top: 4px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .14em; color: var(--sub-dark); }
.logo-mark { width: 36px; height: 43px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { font-weight: 600; color: var(--on-dark); text-decoration: none; }
.nav a:hover { color: #fff; }
.lang-toggle {
  min-height: 44px; padding-inline: 14px; border-radius: 10px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 640px) { .nav { display: none; } }

/* ------------------------------ Hero ------------------------------ */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid; gap: 40px; align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 280px; } }
.hero h1 {
  max-width: 17em; color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
html[lang="ar"] .hero h1 { font-weight: 700; font-size: clamp(1.8rem, 3.9vw, 2.8rem); line-height: 1.5; letter-spacing: 0; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark); }
.hero-mark { display: none; width: 280px; height: 336px; filter: drop-shadow(0 24px 48px rgba(28, 116, 218, .35)); }
@media (min-width: 900px) { .hero-mark { display: block; } }

/* ----------------------------- Sections ----------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-ground { background: var(--ground); }
.section h2 {
  color: var(--navy-700); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em;
}
html[lang="ar"] .section h2 { font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.section-lead { margin-top: 14px; max-width: 32em; font-size: 1.1rem; color: var(--muted); }

/* Why we started: one strong paragraph, set larger and narrower. */
.why { display: grid; gap: 20px; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } }
.why-text {
  max-width: 36em; font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.75; color: var(--ink);
  padding-inline-start: 22px; border-inline-start: 4px solid var(--blue-light);
}
html[lang="ar"] .why-text { line-height: 2; }

/* What we do */
.services { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
.services li { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.services svg { width: 32px; height: 32px; margin-bottom: 14px; }
.services h3 { color: var(--navy-700); font-size: 1.15rem; margin-bottom: 6px; }
.services p { color: var(--muted); }

/* Principles: parallel ideas, not steps, so no numbers. */
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; } }
.principles li { padding-top: 20px; border-top: 3px solid var(--blue); }
.principles h3 { color: var(--navy-700); font-size: 1.2rem; margin-bottom: 8px; }
.principles p { color: var(--muted); }

/* Vision: the one dark band on the page. */
.vision { background: var(--dark-2); color: #fff; padding-block: clamp(64px, 9vw, 104px); }
.vision-label { color: var(--blue-light); font-size: 1rem; font-weight: 700; }
.vision-text {
  margin-top: 14px; max-width: 22em;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance;
}
html[lang="ar"] .vision-text { font-weight: 700; line-height: 1.6; letter-spacing: 0; }
.next {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 8px 16px; border-radius: 999px; background: rgba(111, 176, 247, .12); color: #C9DDF7; font-weight: 600;
}
.next-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.contact-card:hover { border-color: var(--blue); background: var(--ground); }
.contact-card svg { flex: none; width: 30px; height: 30px; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-weight: 700; color: var(--navy-700); }
.contact-value { font-family: "Plus Jakarta Sans", sans-serif; color: var(--muted); overflow-wrap: anywhere; }
[dir="rtl"] .contact-value { text-align: right; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--dark-3); color: var(--sub-dark); padding-block: 40px; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-logo { flex-basis: 100%; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 404 page */
.notfound h1 { color: var(--navy-700); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.notfound h1 + p { margin: 8px 0 40px; }
.notfound a { color: var(--blue); font-weight: 600; }
[dir="rtl"] .footer-logo { justify-content: flex-end; }
