/* OmCar marketing site — shared stylesheet.
   Brand colors match the product app: teal #0E8A7A, orange accent.
   Plain CSS, no build step, mobile-first, RTL-aware via [dir="rtl"]. */

:root {
  --teal: #0E8A7A;
  --teal-dark: #0A6D61;
  --teal-light: #E7F5F2;
  --orange: #F2994A;
  --ink: #1B2430;
  --ink-soft: #52606D;
  --border: #E3E8EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F9F9;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(14, 138, 122, 0.08);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}

body { line-height: 1.6; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.lang-btn:hover { border-color: var(--teal); color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- hero ---- */
.hero {
  background: linear-gradient(180deg, var(--teal-light) 0%, #fff 100%);
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero {
  background: linear-gradient(180deg, var(--teal-light) 0%, #fff 100%);
  padding: 56px 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
  font-weight: 800;
}

.page-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- stats ---- */
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-num { font-size: 30px; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 14px; color: var(--ink-soft); }

/* ---- sections ---- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.bg-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 10px; font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.card-icon svg { width: 26px; height: 26px; display: block; }

.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* service category card with image */
.cat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--teal-light); }
.cat-card .cat-body { padding: 20px; }
.cat-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.cat-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* how it works steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 16px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--teal);
  color: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 10px; font-weight: 800; }
.cta-band p { margin: 0 0 26px; opacity: 0.92; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--teal); }
.cta-band .btn-primary:hover { background: var(--teal-light); }

/* ---- values / list items ---- */
.value-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.value-dot {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.value-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.value-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.check-list { list-style: none; margin: 16px 0 0; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 15px; color: var(--ink-soft);
}
.check-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- service blocks ---- */
.service-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.service-block h2 { font-size: 26px; margin: 0 0 10px; font-weight: 800; }
.service-block > div > p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 8px; }
.service-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
.service-block.reverse .service-media { order: 2; }

/* ---- blog / careers cards ---- */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card .blog-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.blog-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.blog-meta { font-size: 13px; color: var(--ink-soft); opacity: 0.8; margin-bottom: 8px; }
.blog-link { color: var(--teal); font-weight: 700; font-size: 14px; }

.notice-banner {
  background: #FFF8EC;
  border: 1px solid #F2D9A3;
  color: #8A6416;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  margin-bottom: 32px;
  text-align: center;
}

.job-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.job-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.job-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; max-width: 520px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.job-tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.filter-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---- contact page ---- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.contact-icon svg { width: 22px; height: 22px; display: block; }
.contact-info-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.contact-info-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---- footer ---- */
.site-footer {
  background: var(--ink);
  color: #C9D2D8;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: #98A6AF; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #98A6AF; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7C8A93;
}
.footer-bottom a { color: #98A6AF; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; }

/* ---- utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block .service-media, .service-block.reverse .service-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-row { justify-content: space-between; gap: 20px; }
  .cta-band { padding: 36px 24px; }
  .job-card { flex-direction: column; align-items: flex-start; }
}

/* ---- forms: file upload, hints, full-width button, status ---- */
.btn-block { width: 100%; }

.field-hint { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; display: block; }

.form-field input[type="file"] {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-soft);
  background: var(--bg-soft);
  cursor: pointer;
}
.form-field input[type="file"]:focus { outline: none; border-color: var(--teal); background: #fff; }
.form-field input[type="file"]::file-selector-button {
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 13px;
  margin-inline-end: 12px;
  cursor: pointer;
}
.form-field input[type="file"]::file-selector-button:hover { background: var(--teal-light); }

/* honeypot — visually hidden but present in the DOM for bots */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* form status message (both forms) */
.form-status { margin: 14px 0 0; font-size: 14px; font-weight: 600; min-height: 1px; }
.form-status.is-pending { color: var(--ink-soft); font-weight: 500; }
.form-status.is-success {
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid #BFE3DC;
  border-radius: 10px;
  padding: 12px 14px;
}
.form-status.is-error {
  color: #9A2A2A;
  background: #FDECEC;
  border: 1px solid #F3C9C9;
  border-radius: 10px;
  padding: 12px 14px;
}

/* ---- modal (careers application) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(27, 36, 48, 0.55);
  backdrop-filter: blur(2px);
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg);
  border-radius: 18px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.18s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.modal .modal-role {
  margin: 0 0 20px;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  min-height: 1px;
}
.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-close:hover { background: var(--border); color: var(--ink); }

@media (max-width: 480px) {
  .modal { padding: 26px 20px 22px; }
  .modal-overlay { padding: 20px 12px; }
}

/* ---- RTL adjustments ----
   Grid and flex containers already mirror automatically under [dir="rtl"]
   (both Grid and Flexbox lay out tracks/items according to the inline
   direction), so no explicit order overrides are needed here — this rule
   just fixes the one spot where a purely visual (not logical) tweak reads
   better in Arabic: right-aligning the mobile hamburger menu panel text. */
[dir="rtl"] .site-header.nav-open .nav-links { text-align: right; }
