/* =========================================================
   OnTime Consultancy — production CSS
   LTR is the base. RTL rules are grouped under [dir="rtl"].
   ========================================================= */

:root {
  --navy:   #0B2545;
  --navy-2: #10305C;
  --brand:      #002F87;   /* OnTime Consultancy logo blue — primary accent */
  --brand-dark: #00246A;   /* hover / pressed */
  --brand-2:    #4F7FD6;   /* lighter tint for accents on navy backgrounds */
  --brand-tint: #EEF3FB;   /* very light tint for backgrounds */
  --gold:   #D4A017;       /* kept only for the word "Golden" in the hero headline */
  --ink:    #1D2939;
  --muted:  #667085;
  --bg:     #F8FAFC;
  --band:   #EEF2F7;
  --line:   #E4E7EC;
  --notice: #EEF3FB;
  --card:   #FFFFFF;
  --danger: #C0392B;

  --font-sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ar:    'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-ar-serif: 'Amiri', 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow:    0 8px 24px rgba(16, 24, 40, .06);

  --header-h:  72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-rtl { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-family: inherit;
  transition: background .2s, border-color .2s, transform .05s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(0,47,135,.3); outline-offset: 2px; }
.btn .arrow { width: 14px; height: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline{ background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-pill   { border-radius: 999px; padding: 10px 20px; }
.btn-block  { width: 100%; justify-content: center; padding: 14px 22px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 20px;
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; height: 48px; width: auto; }
/* The PNG logo (2917x1750, transparent) carries empty space above and below
   the mark, so it is shown taller than the tight-cropped SVG and that space is
   cancelled with negative margins: the mark renders at the same size and the
   header height is unchanged. */
.brand-logo--png { height: 64px; margin: -8px 0; }

.site-nav { display: flex; gap: 28px; margin-inline-start: auto; margin-inline-end: 24px; }
.site-nav a { color: var(--navy); font-weight: 500; font-size: 14px; }
.site-nav a:hover { color: var(--brand); }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switcher {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.lang-opt { padding: 4px 6px; border-radius: 6px; color: var(--muted); transition: color .15s; }
.lang-opt:hover { color: var(--navy); }
.lang-opt.is-active { color: var(--navy); background: var(--brand-tint); }
.lang-sep { color: var(--line); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px; padding: 8px; color: var(--navy);
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor;
  margin: 3px 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%);
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start;
}
.eyebrow {
  color: var(--muted); font-size: 11px;
  letter-spacing: 2px; font-weight: 600;
  text-transform: uppercase; margin: 0 0 18px;
}
body.is-rtl .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.display {
  font-family: var(--font-serif); color: var(--navy);
  font-weight: 600; font-size: 54px; line-height: 1.08; margin: 0 0 20px;
}
body.is-rtl .display { font-family: var(--font-ar-serif); line-height: 1.2; }
.display .gold { color: var(--gold); font-style: italic; }
body.is-rtl .display .gold { font-style: normal; }
.lead { color: #3C4A5E; font-size: 16px; max-width: 520px; margin: 0 0 28px; }
.lead strong { color: var(--navy); font-weight: 700; }

.feature-chips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.chip-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--brand); }
.chip-title { margin: 0; font-weight: 600; font-size: 13px; color: var(--navy); line-height: 1.35; }

.notice {
  background: var(--notice); border: 1px solid #C9D8F0;
  border-radius: var(--radius); padding: 14px 16px;
  color: #1E3A6B; font-size: 13px; line-height: 1.55; margin: 6px 0 24px;
}
.notice strong { color: var(--brand); margin-inline-end: 4px; }
.hero-notes { display: grid; gap: 12px; margin: 6px 0 24px; }
.hero-notes .notice { margin: 0; }

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

/* ---------- Form ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(16, 24, 40, .08);
  padding: 28px; border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-title {
  font-family: var(--font-serif); color: var(--navy);
  font-weight: 600; font-size: 26px; margin: 0 0 6px;
}
body.is-rtl .form-title { font-family: var(--font-ar-serif); }
.form-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

.form .field { margin-bottom: 14px; }
.form label {
  display: block; color: var(--navy);
  font-size: 12px; font-weight: 600; margin-bottom: 6px;
}
.form input, .form select {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,47,135,.15);
}
.form input.has-error, .form select.has-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field-err { margin: 6px 0 0; color: var(--danger); font-size: 12px; }

.field-row { display: block; }  /* mobile (code + number) and email each get a full-width row */
.input-prefix { display: flex; }
.input-prefix .prefix {
  padding: 11px 12px; border: 1px solid var(--line);
  background: #F8FAFC; font-size: 14px; color: var(--ink);
  border-radius: 8px 0 0 8px; border-inline-end: 0;
}
/* Country-code selector used as the prefix.
   .prefix-dial is the visible box ("+971" + chevron); the real <select> is laid
   over it with opacity 0, so it still opens the native list on click / keyboard
   but never paints its own text — no overlap in any browser. */
.input-prefix .prefix-select { position: relative; display: inline-flex; flex: 0 0 auto; }
.input-prefix .prefix-dial {
  display: flex; align-items: center; box-sizing: border-box;
  width: 104px; padding: 11px 30px 11px 12px;
  border: 1px solid var(--line); border-inline-end: 0; border-radius: 8px 0 0 8px;
  background-color: #F8FAFC; font-size: 14px; color: var(--ink); direction: ltr; white-space: nowrap;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
  transition: border-color .15s, box-shadow .15s;
}
.form .input-prefix select.prefix {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; border: 0; border-radius: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none;
}
.form .input-prefix select.prefix:focus { outline: none; box-shadow: none; }
.input-prefix .prefix-select:focus-within .prefix-dial {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,47,135,.15); position: relative; z-index: 1;
}
.input-prefix input { border-radius: 0 8px 8px 0; flex: 1; min-width: 0; }

/* RTL: swap prefix side */
[dir="rtl"] .input-prefix .prefix { border-radius: 0 8px 8px 0; border-inline-end: 1px solid var(--line); border-inline-start: 0; }
[dir="rtl"] .input-prefix .prefix-dial {
  border-radius: 0 8px 8px 0; border-inline-end: 1px solid var(--line); border-inline-start: 0;
  padding: 11px 12px 11px 30px; background-position: left 12px center;
}
[dir="rtl"] .input-prefix input   { border-radius: 8px 0 0 8px; direction: ltr; text-align: right; }

.form-fine { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.form-success {
  background: #E8F4EA; border: 1px solid #B8DDBF; color: #1D5B2A;
  padding: 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--navy); color: #fff; padding: 22px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-value { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.stat-label { margin: 0; color: #B6C2D6; font-size: 13px; }

/* ---------- Intro ---------- */
.intro { padding: 64px 0 24px; }
.section-title {
  font-family: var(--font-serif); color: var(--navy);
  font-weight: 600; font-size: 34px; margin: 0 0 12px; line-height: 1.2;
}
body.is-rtl .section-title { font-family: var(--font-ar-serif); }
.section-lead { color: var(--muted); font-size: 15px; max-width: 780px; margin: 0; }
.section-sub  { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* ---------- Documents ---------- */
.need-section { padding: 32px 0 64px; }
.need-wrap {
  border: 1px solid var(--line);
  border-top: 3px solid #D6BCE0;
  border-radius: var(--radius-lg);
  padding: 32px; background: #fff;
}
.doc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 20px;
}
.doc-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff;
  min-height: 128px; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.doc-icon svg { width: 34px; height: 34px; }
.doc-title { margin: 0 0 4px; font-weight: 600; color: var(--navy); font-size: 14px; }
.doc-desc { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- Process ---------- */
.process-section { padding: 24px 0 72px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 22px;
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 13px; margin-bottom: 14px;
}
.step-title { margin: 0 0 6px; color: var(--navy); font-size: 14.5px; font-weight: 700; }
.step-desc  { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-section { padding: 56px 0 72px; }
.faq-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 22px;
  color: #fff; font-weight: 600; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  color: var(--brand-2); font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 22px 18px; color: #C7D0DE; font-size: 13.5px; }
.faq-body p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 32px 0 40px; }
.footer-brand {
  font-family: var(--font-serif); font-weight: 700;
  letter-spacing: 1px; margin: 0 0 10px; font-size: 14px;
}
body.is-rtl .footer-brand { font-family: var(--font-ar-serif); letter-spacing: 0; }
.footer-desc { margin: 0 0 10px; color: #C7D0DE; font-size: 13px; max-width: 780px; }
.footer-fine { margin: 0; color: #8B9BB4; font-size: 12px; max-width: 900px; line-height: 1.55; }

/* Footer: about + office contact card side by side, fine print underneath */
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 28px 48px; align-items: start;
  padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-contact {
  font-style: normal; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 16px 18px;
}
.footer-contact-title {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #C7D0DE;
}
body.is-rtl .footer-contact-title { letter-spacing: 0; text-transform: none; font-size: 13px; }
.footer-contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 8px; margin: 0 -8px; border-radius: var(--radius-sm);
  color: #fff; text-decoration: none; transition: background .15s;
}
.footer-contact-row:hover, .footer-contact-row:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.footer-contact-row:hover .footer-directions { color: #fff; text-decoration: underline; }
.footer-ico { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: var(--brand-2); }
.footer-ico-sm { width: 12px; height: 12px; vertical-align: -1px; margin-inline-start: 3px; }
.footer-contact-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.footer-address, .footer-phone { font-size: 14px; line-height: 1.45; color: #fff; }
.footer-phone { font-weight: 600; letter-spacing: .3px; }
.footer-directions { font-size: 12.5px; color: var(--brand-2); font-weight: 500; }

/* Working hours: compact 3-row list under the brand blurb */
.footer-hours { margin-top: 16px; }
.footer-hours .footer-contact-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.footer-hours .footer-ico-sm { width: 14px; height: 14px; margin: 0; color: var(--brand-2); }
.footer-hours-list { margin: 0; display: grid; gap: 3px; max-width: 320px; }
.footer-hours-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 1.45; }
.footer-hours-row dt { color: #C7D0DE; margin: 0; }
.footer-hours-row dd { color: #fff; margin: 0; font-weight: 500; white-space: nowrap; }
.footer-hours-row dd.is-closed { color: #8B9BB4; font-weight: 400; }
body.is-rtl .footer-hours-row dd { direction: rtl; }

/* ---------- Floating bubbles ----------
   Raised above the Zoho SalesIQ "LIVE CHAT" launcher (about 125x60px in the
   bottom corner) so the WhatsApp button sits directly above the chatbot
   with a clear gap and never overlaps it. */
.floaters {
  position: fixed; bottom: 104px; right: 20px;   /* stays bottom-right in RTL too */
  display: flex; flex-direction: column; gap: 12px; z-index: 50;
}
.float-bubble {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .15s, box-shadow .15s;
}
.float-bubble:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.float-bubble:focus-visible { outline: 3px solid rgba(255,255,255,.5); outline-offset: 3px; }
.float-bubble svg { width: 28px; height: 28px; }
.bubble-wa   { background: #25D366; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .site-nav { gap: 20px; }
  .display { font-size: 46px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .display { font-size: 40px; }
  .doc-grid  { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0;  /* flush with the header at any height */
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    margin: 0; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-block; }

  .brand-logo { height: 44px; }
  .brand-logo--png { height: 58px; margin: -7px 0; }
  .header-right .btn-pill { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 560px) {
  .display { font-size: 32px; }
  .feature-chips { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .need-wrap { padding: 20px; }
  .section-title { font-size: 26px; }
  .form-card { padding: 22px; }

  /* Keep the header "Check Eligibility" pill on phones: tighten spacing so
     logo + language switcher + pill + menu fit on one row. */
  .header-inner { padding: 10px 12px; gap: 8px; }
  .header-right { gap: 6px; }
  .header-right .btn-pill { padding: 7px 11px; font-size: 12px; }
  .header-right .btn-pill .arrow { display: none; }   /* compact pill on phones */
  .brand-logo { height: 36px; }
  .brand-logo--png { height: 48px; margin: -6px 0; }
  .lang-switcher { font-size: 12px; gap: 3px; }
  .lang-opt { padding: 4px 4px; }

  .floaters { bottom: 100px; right: 14px; gap: 10px; }
  .float-bubble { width: 48px; height: 48px; }
  .float-bubble svg { width: 24px; height: 24px; }
}

@media (max-width: 360px) {
  .header-right .btn-pill { padding: 6px 9px; font-size: 11px; }
}

@media (max-width: 340px) {
  .header-right .btn-pill { display: none; }  /* no room on very narrow phones; button is present in hero */
}
