@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #061a2f;
  --navy-2: #0b2941;
  --teal: #087f86;
  --blue: #127fd1;
  --cyan: #36b8d3;
  --ink: #0b2135;
  --muted: #5d7080;
  --bg: #ffffff;
  --bg-soft: #f3f8fa;
  --surface: #ffffff;
  --surface-2: #eaf3f6;
  --line: rgba(8, 62, 86, .14);
  --shadow: 0 24px 70px rgba(3, 29, 49, .11);
  --header: rgba(255, 255, 255, .84);
  --focus: #f3a51f;
  --radius: 1.35rem;
  --container: min(1180px, calc(100% - 2rem));
  font-family: 'Tajawal', system-ui, sans-serif;
  scroll-behavior: smooth;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #edf8fc;
  --muted: #acc0cc;
  --bg: #061521;
  --bg-soft: #0a2132;
  --surface: #0c293c;
  --surface-2: #103247;
  --line: rgba(123, 196, 217, .16);
  --shadow: 0 28px 78px rgba(0, 0, 0, .25);
  --header: rgba(6, 21, 33, .86);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed; inset-block-start: .75rem; inset-inline-start: .75rem; z-index: 200;
  transform: translateY(-180%); padding: .7rem 1rem; background: #fff; color: #071b2f; border-radius: .7rem;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 100; min-height: 5rem;
  background: var(--header); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 78px; height: 78px; object-fit: contain; }
[data-theme='dark'] .brand { background: #fff; border-radius: 1rem; padding-inline: .25rem; }
.nav-links { display: none; align-items: center; gap: 1.65rem; font-size: .95rem; font-weight: 600; }
.nav-links a { position: relative; padding-block: .4rem; }
.nav-links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-button, .language-link, .menu-button {
  width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: .85rem; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700;
}
.language-link { font-size: .85rem; }
.theme-icon { width: 1.2rem; height: 1.2rem; }
.moon { display: none; }
[data-theme='dark'] .sun { display: none; }
[data-theme='dark'] .moon { display: block; }
.menu-button { position: relative; }
.menu-button span, .menu-button::before, .menu-button::after {
  content: ''; width: 1.25rem; height: 2px; background: currentColor; position: absolute; transition: .2s ease;
}
.menu-button::before { transform: translateY(-.4rem); }
.menu-button::after { transform: translateY(.4rem); }
.menu-button[aria-expanded='true'] span { opacity: 0; }
.menu-button[aria-expanded='true']::before { transform: rotate(45deg); }
.menu-button[aria-expanded='true']::after { transform: rotate(-45deg); }
.nav-actions .nav-cta { display: none; }
.mobile-menu {
  position: fixed; inset: 5rem 0 0; z-index: 90; background: var(--bg); padding: 2rem 1rem;
  transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .25s ease;
}
.mobile-menu[data-open='true'] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu .container { display: grid; gap: .5rem; }
.mobile-menu a { padding: 1rem; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-weight: 600; }

.button {
  min-height: 3.15rem; padding: .75rem 1.35rem; border-radius: .9rem; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; cursor: pointer;
  font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; box-shadow: 0 12px 30px rgba(18, 127, 209, .24); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-light { background: #fff; color: #06213a; }
.button-outline-light { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.06); }

.hero {
  min-height: calc(100vh - 5rem); display: grid; align-items: center; position: relative; isolation: isolate;
  background: radial-gradient(circle at 15% 15%, rgba(54,184,211,.12), transparent 30%), var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-grid { display: grid; gap: 2.5rem; padding-block: 4rem; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; color: var(--teal); font-weight: 700; font-size: .92rem; }
.eyebrow .location { color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.eyebrow .location::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.55rem, 8vw, 5.6rem); line-height: 1.07; letter-spacing: -.055em; margin: 1.2rem 0 1.4rem; max-width: 14ch; }
.hero-copy > p { max-width: 630px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-visual { min-height: 360px; position: relative; display: grid; place-items: center; }
.visual-core {
  width: min(76vw, 390px); aspect-ratio: 1; position: relative; display: grid; place-items: center;
  filter: drop-shadow(0 30px 60px rgba(8, 127, 134, .2));
}
.hex { position: absolute; inset: 0; border: 1px solid rgba(8,127,134,.34); clip-path: polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%); }
.hex::before { content: ''; position: absolute; inset: 18px; background: linear-gradient(145deg, rgba(8,127,134,.14), rgba(18,127,209,.08)); clip-path: inherit; }
.hex-mid { inset: 14%; border-color: rgba(18,127,209,.42); animation: drift 9s ease-in-out infinite; }
.hex-small { inset: 29%; background: linear-gradient(145deg, var(--teal), var(--blue)); border: 0; box-shadow: 0 0 60px rgba(54,184,211,.28); }
.visual-mark { position: relative; z-index: 3; color: #fff; text-align: center; font-weight: 800; line-height: 1; }
.visual-mark strong { display: block; font-size: clamp(2rem, 8vw, 4rem); }
.visual-mark span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.orbit { position: absolute; width: .8rem; height: .8rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.orbit-a { top: 8%; inset-inline-end: 17%; }
.orbit-b { bottom: 12%; inset-inline-start: 12%; width: .5rem; height: .5rem; }
@keyframes drift { 50% { transform: translateY(-10px) rotate(2deg); } }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-heading { max-width: 700px; margin-bottom: 2.5rem; }
.section-kicker { color: var(--teal); font-weight: 800; font-size: .88rem; letter-spacing: .05em; margin-bottom: .5rem; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; line-height: 1.35; }
.section-heading p, .section-copy p { color: var(--muted); font-size: 1.05rem; }
.about-grid { display: grid; gap: 2rem; align-items: stretch; }
.about-card {
  position: relative; overflow: hidden; padding: clamp(1.6rem, 5vw, 3rem); border-radius: var(--radius);
  background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: var(--shadow);
}
.about-card::after { content: ''; position: absolute; width: 15rem; aspect-ratio: 1; inset-inline-end: -5rem; bottom: -6rem; border: 1px solid rgba(54,184,211,.35); clip-path: polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%); }
.about-point { display: flex; align-items: center; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 700; }
.about-point:last-child { border-bottom: 0; }
.point-index { width: 2rem; height: 2rem; border-radius: .65rem; display: grid; place-items: center; background: rgba(54,184,211,.16); color: #8de3ef; font-size: .8rem; }
.cards-grid { display: grid; gap: 1rem; }
.business-card {
  padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 10px 35px rgba(6, 33, 53, .04); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.business-card:hover { transform: translateY(-6px); border-color: rgba(18,127,209,.4); box-shadow: var(--shadow); }
.icon-box { width: 3.4rem; height: 3.4rem; border-radius: 1rem; display: grid; place-items: center; color: var(--blue); background: var(--surface-2); margin-bottom: 1.4rem; }
.icon-box svg, .serve-icon svg { width: 1.55rem; height: 1.55rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.business-card p, .why-item p { color: var(--muted); margin-bottom: 0; }
.serve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.serve-item { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); font-weight: 700; }
.serve-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--teal); margin-bottom: .7rem; }
.why-grid { display: grid; gap: 1rem; }
.why-item { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.why-index { color: var(--teal); font-weight: 800; font-size: .85rem; }

.cta-band { padding-block: 4rem; background: linear-gradient(135deg, #061a2f, #0b3049); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 24rem; aspect-ratio: 1; inset-inline-end: -8rem; top: -9rem; border: 1px solid rgba(54,184,211,.24); clip-path: polygon(25% 5%,75% 5%,100% 50%,75% 95%,25% 95%,0 50%); }
.cta-content { position: relative; display: grid; gap: 1.5rem; align-items: center; }
.cta-content h2 { max-width: 720px; margin-bottom: .7rem; }
.cta-content p { color: #bdd0da; max-width: 680px; margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.contact-grid { display: grid; gap: 2rem; align-items: start; }
.contact-list { display: grid; gap: .8rem; }
.contact-detail { display: grid; grid-template-columns: 2.7rem 1fr; gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail .icon-box { width: 2.7rem; height: 2.7rem; margin: 0; border-radius: .8rem; }
.contact-detail span { display: block; color: var(--muted); font-size: .88rem; }
.contact-detail strong { display: block; line-height: 1.5; }
.contact-form { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3.2rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .75rem;
  background: var(--bg); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid='true'] { border-color: #c73535; box-shadow: 0 0 0 3px rgba(199,53,53,.12); }
.required { color: #c73535; }
.form-note { color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.form-status { min-height: 1.5rem; color: #b62929; font-weight: 600; }
.quick-grid { display: grid; gap: .8rem; margin-top: 2rem; }
.quick-card { padding: 1.2rem; background: var(--bg-soft); border-radius: 1rem; border: 1px solid var(--line); }
.quick-card span { display: block; color: var(--muted); font-size: .88rem; }
.quick-card strong { display: block; }

dialog { width: min(560px, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(2, 15, 26, .72); backdrop-filter: blur(5px); }
.dialog-content { padding: 1.5rem; }
.dialog-content textarea { width: 100%; min-height: 11rem; padding: .8rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--bg-soft); color: var(--ink); resize: vertical; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

.site-footer { background: #041522; color: #fff; padding-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
.footer-brand img { width: 120px; padding: .4rem; border-radius: 1rem; background: #fff; margin-bottom: 1rem; }
.footer-brand p, .footer-contact p { color: #aabfc9; max-width: 420px; }
.footer-links { display: grid; gap: .5rem; align-content: start; }
.footer-links a:hover { color: #75d9e6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; color: #aabfc9; font-size: .9rem; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal][data-visible='true'] { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid, .contact-grid { grid-template-columns: 1.05fr .95fr; }
  .serve-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .cta-content { grid-template-columns: 1fr auto; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-button { display: none; }
  .nav-actions .nav-cta { display: inline-flex; }
  .mobile-menu { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 5rem); padding-block: 3rem; }
  [dir='ltr'] .hero-copy { order: 1; }
  [dir='ltr'] .hero-visual { order: 2; }
  [dir='rtl'] .hero-copy { order: 1; }
  [dir='rtl'] .hero-visual { order: 2; }
}

@media (min-width: 1440px) { :root { --container: min(1280px, calc(100% - 5rem)); } }
@media (max-width: 360px) {
  :root { --container: calc(100% - 1.25rem); }
  h1 { font-size: 2.25rem; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
  .serve-grid { grid-template-columns: 1fr; }
  .brand img { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .hero-visual, .contact-form, .cta-band { display: none; }
  body { color: #000; background: #fff; }
  .section { padding-block: 2rem; }
}
