/* Areeb Digital — site styles (no framework, no build step) */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-arabic.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: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #0b2a4a;
  --primary-strong: #071c33;
  --primary-soft: #e6eef7;
  --accent: #c9a227;
  --accent-ink: #7a5f0c;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14212e;
  --muted: #55667a;
  --border: #dde4ec;
  --link: #0f4c81;
  --focus: #1d6fd1;
  --hero-bg: #0b2a4a;
  --hero-text: #f4f7fb;
  --shadow: 0 1px 2px rgba(11, 42, 74, 0.06), 0 8px 24px rgba(11, 42, 74, 0.06);
  --radius: 14px;
  --gutter: 16px;
  --font: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #17416d;
    --primary-strong: #0b2a4a;
    --primary-soft: #16283b;
    --accent: #dcb646;
    --accent-ink: #e6c65c;
    --bg: #0c1622;
    --surface: #132234;
    --text: #e7edf4;
    --muted: #a3b2c3;
    --border: #23364c;
    --link: #8fc1f5;
    --focus: #8fc1f5;
    --hero-bg: #081c31;
    --hero-text: #f1f5fa;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: #1a1400;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: var(--primary-soft); }
.site-nav a[aria-current="page"] { color: var(--link); background: var(--primary-soft); }
.lang-switch {
  border: 1px solid var(--border) !important;
  margin-inline-start: 0.5rem;
  font-family: var(--font);
}

@media (max-width: 860px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
  }
  html.js .site-nav.open { display: block; }
  html.js .site-nav ul { flex-direction: column; align-items: stretch; }
  html.js .site-nav a { display: block; padding: 0.7rem 0.8rem; }
  html.js .lang-switch { margin: 0.5rem 0 0; text-align: center; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: 0.6em; }
.hero p { font-size: 1.1rem; max-width: 42rem; color: var(--hero-text); opacity: 0.92; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.75rem; font-size: 0.95rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.page-hero { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.page-hero p { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.3;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #1a1400; }
.btn-primary:hover { background: #d9b23a; }
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17824a; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.25rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
@media (prefers-color-scheme: dark) { .card .icon { color: var(--accent); } }
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: inline-block; margin-top: 0.5rem; font-weight: 600; }

/* Feature (project) block */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .feature { grid-template-columns: 1.1fr 0.9fr; } }
.feature-visual {
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(201, 162, 39, 0.35), transparent 45%);
}
.feature-visual > * { position: relative; }
.feature-visual .pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}
.feature-visual .wordmark { font-size: 2rem; font-weight: 700; margin: 0; }
.feature-visual .tagline { opacity: 0.9; margin: 0.25rem 0 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-ink); margin-top: 0.2rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band h2 { color: #fff; margin: 0 0 0.25rem; }
.cta-band p { margin: 0; opacity: 0.9; }

/* Prose pages (legal, about) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.note {
  background: var(--primary-soft);
  border-inline-start: 4px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin: 1.25rem 0;
}
.note p:last-child { margin-bottom: 0; }
.review-flag {
  background: #fff3c4;
  color: #5c4300;
  padding: 0.05em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .review-flag { background: #4a3a05; color: #ffe38a; } }

/* Services detail */
.service {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 800px) { .service { grid-template-columns: 1fr 1.4fr; gap: 2.5rem; } }
.service .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
@media (prefers-color-scheme: dark) { .service .icon { color: var(--accent); } }
.service .icon svg { width: 30px; height: 30px; }
.service ul { margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }
.contact-card .row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}
.contact-card .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-card .row svg { width: 24px; height: 24px; flex: none; color: var(--accent-ink); margin-top: 0.2rem; }
.contact-card .row strong { display: block; }
.contact-card .row a { word-break: break-all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* Values */
.values .card { border-top: 4px solid var(--accent); }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--primary-strong);
  color: #d5dfeb;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer a { color: #e8eef5; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer .brand small { color: #b8c6d6; }
.site-footer p { color: #c3cfdd; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #b8c6d6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* 404 */
.error-page { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.error-page .code { font-size: clamp(4rem, 15vw, 7rem); font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
@media (prefers-color-scheme: dark) { .error-page .code { color: var(--accent); } }
.error-page .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* App cards (support) */
.app-card { display: flex; gap: 1rem; align-items: flex-start; }
.app-card .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 700;
}

/* Utilities */
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Small utilities used by page content */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sub { margin: 0.25rem 0 0; }
.h-sm { font-size: 1.3rem; }
.small { font-size: 0.9rem; }
.tight { margin-bottom: 0.25rem; }
.tight-b { margin-bottom: 0.5rem; }
.inline-icon { width: 18px; height: 18px; vertical-align: middle; }
[dir="rtl"] .inline-icon, [dir="rtl"] .btn svg.dir-aware { transform: scaleX(-1); }
