/* Landing page styles. Dark-first, per the brand guidelines. */
:root {
  --midnight: #0B0D0C;
  --bone: #EEF0E8;
  --lime: #C8F031;
  --surface: #151917;
  --border: #262B28;
  --muted: #9AA39D;
  --font-latin: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font: var(--font-latin);
  --tracking-tight: -0.03em;
  color-scheme: dark;
}
html[lang="ar"] { --font: var(--font-arabic); --tracking-tight: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--midnight); color: var(--bone); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-size: 18px; line-height: 1.8; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
.ar { font-family: var(--font-arabic); }
.defs { position: absolute; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--lime); color: var(--midnight); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--midnight) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; color: var(--bone); direction: ltr; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--bone); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--border); color: var(--bone); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; line-height: 1.4; }
.lang:hover { border-color: var(--muted); }
.lang [lang="ar"] { font-family: var(--font-arabic); }
.lang [lang="en"] { font-family: var(--font-latin); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: 15px; line-height: 1.4; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--midnight); }
.btn-primary:hover { background: #D6F65E; }
.btn-ghost { border-color: var(--border); color: var(--bone); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-dark { background: var(--midnight); color: var(--bone); }
.btn-lg { padding: 13px 24px; font-size: 16px; }

/* Hero */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--lime); margin-bottom: 18px; }
html[lang="ar"] .eyebrow { font-family: var(--font-arabic); font-size: 15px; }
h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: var(--tracking-tight); }
html[lang="ar"] h1 { line-height: 1.3; font-size: clamp(38px, 6vw, 72px); }
h1 em { font-style: normal; color: var(--lime); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 56ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(100%, 360px); height: auto; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--border); }
.section-head { margin-bottom: 40px; max-width: 760px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: var(--tracking-tight); }
html[lang="ar"] h2 { line-height: 1.35; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
html[lang="ar"] h3 { letter-spacing: 0; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease; }
.card:hover { border-color: var(--lime); }
.card p, .steps p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--border); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li:first-child { border-top-color: var(--lime); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--lime); direction: ltr; unicode-bidi: isolate; }

/* The brand name set inline: the logo itself, sized to the surrounding text. */
.brand { display: inline-block; direction: ltr; unicode-bidi: isolate; vertical-align: -0.04em; line-height: 1; color: var(--bone); }
.brand svg { display: block; height: 0.86em; width: auto; }

/* Contact and call booking */
.contact-box { background: var(--lime); color: var(--midnight); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-box h2 { font-size: clamp(32px, 5vw, 60px); }
.contact-box p { font-size: clamp(18px, 2vw, 20px); max-width: 48ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn-outline { border-color: var(--midnight); color: var(--midnight); }
.btn-outline:hover { background: color-mix(in srgb, var(--midnight) 8%, transparent); }
.contact-box .contact-mail { font-size: 16px; margin-top: 8px; }
.contact-email { font-family: var(--font-mono); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-box :focus-visible { outline-color: var(--midnight); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 32px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer svg { color: var(--bone); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark svg { width: 132px; margin-inline-start: -20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .nav-actions .btn { display: none; }
  .contact-actions { flex-direction: column; align-self: stretch; }
  .contact-actions .btn { justify-content: center; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}
