/* Prototype IT Services - stylesheet */

:root {
  --teal: #1E9A8A;
  --teal-2: #2AA398;
  --teal-3: #146A5F;
  --font-scale: 1;
  --radius-pill: 999px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

html[data-theme="light"] {
  --bg: #FAFAF9;
  --header-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --text: #12211F;
  --muted: #5B6B68;
  --border: #E4E7E5;
}

html[data-theme="dark"] {
  --bg: #0E1917;
  --header-bg: #132420;
  --card-bg: #152826;
  --text: #EAF5F3;
  --muted: #9FB8B3;
  --border: #1F3430;
}

html[data-theme="night"] {
  --bg: #070C0B;
  --header-bg: #0D1615;
  --card-bg: #0F1B19;
  --text: #DCEFEC;
  --muted: #8AA6A1;
  --border: #17241F;
}

* { box-sizing: border-box; }

html { font-size: calc(16px * var(--font-scale)); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

button { font-family: inherit; cursor: pointer; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  padding: 0;
}
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--teal); }
.nav-link.active { color: var(--teal); }

.header-controls { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--teal-2); }
.btn-secondary {
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}
.btn-outline {
  background: none;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Layout */
main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 80px; }
.page { padding-top: 56px; }

.eyebrow {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.1; margin: 0 0 20px; max-width: 760px; }
h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 620px; margin: 0 0 16px; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 56px; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 320px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-graphic { flex-shrink: 0; }

.trusted { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
.trusted-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-head { padding: 56px 0 24px; max-width: 720px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--card-bg);
}
.service-icon { margin-bottom: 14px; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 8px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--card-bg); }
.stat-value { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.stat-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.stat-source { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0; }

.view-all-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--teal);
  font-weight: 700;
  margin-top: 20px;
  padding: 0;
  font-size: 0.95rem;
}

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0; }
.testimonial { border-left: 3px solid var(--teal); padding-left: 18px; margin: 0; }
.quote { font-size: 1rem; margin: 0 0 10px; }
.attribution { color: var(--muted); font-size: 0.85rem; margin: 0; }

.capability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  background: var(--card-bg);
  flex-wrap: wrap;
}
.capability-text h2 { margin-bottom: 6px; }
.capability-text p { color: var(--muted); margin: 0; max-width: 480px; }

.certs { padding: 56px 0 24px; text-align: center; }
.cert-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cert-chip {
  border: 1px dashed var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 8px 0 40px; }
.fact { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--card-bg); }
.fact-value { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; color: var(--teal); }
.fact-label { color: var(--muted); font-size: 0.85rem; margin: 0; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.leadership-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 8px 0 40px; }
.leader-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: var(--card-bg); text-align: center; }
.leader-photo { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: var(--bg); }
.leader-name { font-weight: 800; margin: 0 0 2px; }
.leader-title { color: var(--teal); font-size: 0.85rem; font-weight: 700; margin: 0 0 10px; }
.leader-bio { color: var(--muted); font-size: 0.85rem; margin: 0; }
.value-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--card-bg); }
.value-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.service-pills { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0 40px; }
.pill-link {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.pill-link:hover { border-color: var(--teal); color: var(--teal); }

.service-detail {
  display: flex;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.service-detail-icon { flex-shrink: 0; }
.service-detail p { color: var(--muted); margin: 0 0 14px; max-width: 560px; }
.service-detail-bullets { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.service-detail-bullets li::before { content: "•"; color: var(--teal); margin-right: 6px; }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 8px 0 40px; }
.pillar-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--card-bg); }
.pillar-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 8px 0 40px; }
.step-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--card-bg); }
.step-number { color: var(--teal); font-weight: 800; font-size: 1.2rem; margin: 0 0 8px; }
.step-card p:last-child { color: var(--muted); font-size: 0.9rem; margin: 0; }

.cta-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}
.cta-block p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0 32px; }
.filter-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  color: var(--text);
}
.filter-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 40px; }
.portfolio-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card-bg); }
.portfolio-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--border), var(--border) 10px, transparent 10px, transparent 20px);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.portfolio-card > p { padding: 0 18px; margin: 0; }
.portfolio-category { color: var(--teal); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; margin-top: 18px !important; }
.portfolio-card .stat-value { padding: 0 18px; font-size: 1.15rem; margin: 6px 0; }
.portfolio-desc { color: var(--muted); font-size: 0.85rem; }
.portfolio-client { font-weight: 700; font-size: 0.85rem; margin-bottom: 18px !important; padding-bottom: 18px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 60px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-submit { align-self: flex-start; margin-top: 8px; }
.form-note { color: var(--teal); font-weight: 600; font-size: 0.9rem; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.map-placeholder {
  height: 140px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.office-block p, .sla-block p { color: var(--muted); }
.office-block a { color: var(--teal); text-decoration: none; }
.sla-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.sla-list li::before { content: "•"; color: var(--teal); margin-right: 8px; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.copyright { margin-top: 4px; }

@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner.open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
  }
  .services-grid, .stats-grid, .testimonials, .facts-grid, .values-grid, .pillars-grid, .steps-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .services-grid, .stats-grid, .testimonials, .facts-grid, .values-grid, .pillars-grid, .steps-grid, .portfolio-grid, .leadership-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero-graphic { display: none; }
  .hero-content { min-width: 0; }
  .hero-actions { justify-content: center; }
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .service-card { text-align: center; }
  .service-icon {
    display: block;
    margin: 0 auto 14px;
    width: 52px;
    height: 52px;
    padding: 13px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50%;
  }
  .header-inner { flex-wrap: wrap; row-gap: 8px; padding: 12px 16px; }
  .brand img { width: 26px; height: 26px; }
  .brand span { font-size: 1rem; }
  .header-controls { width: 100%; justify-content: flex-end; flex-wrap: wrap; row-gap: 8px; }
  .header-controls .btn-primary { display: none; }
  .ctrl-btn { padding: 6px 10px; font-size: 0.75rem; }
  .topbar-inner { padding: 6px 16px; }
  .capability { flex-direction: column; align-items: flex-start; }
}

.topbar { background: var(--teal-3); color: #fff; font-size: 0.8rem; }
.topbar-inner { max-width: var(--max-width); margin: 0 auto; padding: 6px 24px; display: flex; gap: 24px; justify-content: flex-end; align-items: center; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar-link img { filter: brightness(0) invert(1); }
.topbar-link:hover { text-decoration: underline; }
.footer-contact { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.footer-contact a { color: var(--text); font-weight: 700; text-decoration: none; }
.footer-contact a:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; gap: 16px; flex-wrap: wrap; padding: 6px 16px; }
  .topbar-link span { font-size: 0.72rem; }
}


/* RTL overrides for Arabic (/ar/) version */
[dir="rtl"] .skip-link {
  left: auto;
  right: -999px;
}
[dir="rtl"] .skip-link:focus {
  left: auto;
  right: 8px;
}
[dir="rtl"] .testimonial {
  border-left: none;
  padding-left: 0;
  border-right: 3px solid var(--teal);
  padding-right: 18px;
}
[dir="rtl"] .sla-list li::before,
[dir="rtl"] .service-detail-bullets li::before {
  margin-right: 0;
  margin-left: 8px;
}
