/* Levanta Technologies — company + product marketing site
   Navy + gold brand system, Arabic RTL, Cairo. Shared by index.html & levantalex.html. */

:root {
  --navy-900: #0E1B38;   /* hero / footer / dark blocks */
  --navy-800: #14244C;   /* raised dark cards */
  --navy-ink: #0B1730;   /* deepest */
  --gold:      #C8A96B;
  --gold-soft: #D4B87F;
  --paper:     #F4F0E9;  /* cream section background */
  --paper-2:   #FBF9F5;
  --white:     #FFFFFF;
  --ink:       #1F2430;
  --ink-2:     #3A4152;
  --muted:     #6B7280;
  --muted-on-navy: #A9B4CC;
  --line:      #E7E1D6;
  --line-navy: rgba(255,255,255,0.12);
  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 78px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--navy-900); }
.nav a.active { color: var(--gold); }
.btn-login {
  background: var(--navy-900); color: #fff; padding: 10px 22px;
  border-radius: 10px; font-weight: 700; font-size: 15px; transition: background .15s;
}
.btn-login:hover { background: var(--navy-800); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy-900); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 11px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: none; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid var(--line-navy); }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- section scaffolding ---------- */
section { padding: 84px 0; }
.eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 13px;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-head { max-width: 720px; }
.section-head .bar { width: 46px; height: 3px; background: var(--gold); margin-bottom: 18px; border-radius: 2px; }
h1, h2, h3 { color: var(--navy-900); line-height: 1.35; }
h2 { font-size: 30px; font-weight: 800; }
.lead { color: var(--ink-2); font-size: 18px; margin-top: 12px; }

.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-navy { background: var(--navy-900); }
.bg-navy * { color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lead, .bg-navy p { color: var(--muted-on-navy); }
.bg-navy .eyebrow { color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 80px; text-align: right; }
.hero h1 { font-size: 46px; font-weight: 800; max-width: 780px; }
.hero .lead { max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* Levantalex product-page hero (2-col on desktop, stacks on mobile) */
.lx-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nav-backdrop { display: none; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .15s, transform .12s, border-color .15s;
}
.card:hover { box-shadow: 0 12px 34px rgba(14,27,56,0.08); transform: translateY(-2px); border-color: var(--gold); }
.card .num { color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.card h3 { font-size: 20px; margin: 8px 0 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .more { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 14px; display: inline-block; }

/* ---------- product feature block on homepage ---------- */
.product-split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 44px;
}
.product-split .logo-side {
  background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px;
}
.product-split .logo-side img { max-height: 150px; }
.product-split .info-side { background: var(--navy-900); padding: 48px; }
.product-split .info-side .eyebrow { color: var(--gold); }
.product-split .info-side h3 { color: #fff; font-size: 30px; font-weight: 800; margin: 8px 0 14px; }
.product-split .info-side p { color: var(--muted-on-navy); margin-bottom: 24px; }

/* ---------- audience list ---------- */
.aud-list { margin-top: 40px; border-top: 1px solid var(--line); }
.aud-list .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-900);
  font-size: 18px; transition: padding .15s, color .15s;
}
.aud-list .row:hover { color: var(--gold); padding-inline-end: 14px; }
.aud-list .row .chev { color: var(--gold); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { background: var(--navy-900); border-color: var(--navy-900); transform: scale(1.03); }
.plan.featured * { color: #fff; }
.plan .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plan.featured .tag { color: var(--gold); }
.plan .badge {
  position: absolute; top: -12px; inset-inline-start: 24px; background: var(--gold); color: var(--navy-900);
  font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 20px;
}
.plan h3 { font-size: 24px; margin: 6px 0 4px; }
.plan.featured h3 { color: #fff; }
.plan .who { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan.featured .who { color: var(--muted-on-navy); }
.plan .price { font-size: 30px; font-weight: 800; color: var(--navy-900); margin-bottom: 4px; }
.plan.featured .price { color: #fff; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan.featured .price small { color: var(--muted-on-navy); }
.plan ul { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { font-size: 15px; color: var(--ink-2); padding-inline-start: 26px; position: relative; }
.plan.featured li { color: #E4E9F4; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }
.plan .btn { width: 100%; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--paper); }
.cta-strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-strip h2 { font-size: 26px; }

/* ---------- footer ---------- */
footer { background: var(--navy-ink); color: var(--muted-on-navy); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: #fff; font-size: 14px; letter-spacing: .05em; margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a { color: var(--muted-on-navy); font-size: 14.5px; transition: color .15s; }
footer a:hover { color: var(--gold); }
.foot-brand img { height: 58px; margin-bottom: 16px; }
/* Footer sits on dark navy — render the (navy+gold) logo as a clean white silhouette. */
.foot-brand img.footer-logo { filter: brightness(0) invert(1); }
.foot-brand p { font-size: 14px; line-height: 1.7; }
.foot-brand .contact { margin-top: 14px; font-size: 14px; color: var(--gold); }
.foot-bottom {
  border-top: 1px solid var(--line-navy); margin-top: 44px; padding-top: 22px;
  text-align: center; font-size: 13px; color: var(--muted-on-navy);
}

/* ---------- inner-page header ---------- */
.page-hero { padding: 72px 0 40px; text-align: right; border-bottom: 1px solid var(--line); }
.page-hero .bar { width: 46px; height: 3px; background: var(--gold); margin-bottom: 16px; border-radius: 2px; }
.page-hero h1 { font-size: 38px; font-weight: 800; }
.page-hero .lead { max-width: 640px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 8px 0 0; }
.tab-btn {
  padding: 14px 22px; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--muted);
  background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--navy-900); }
.tab-btn.active { color: var(--navy-900); border-bottom-color: var(--gold); }
.tab-panel { display: none; padding-top: 8px; }
.tab-panel.active { display: block; }

/* ---------- item rows (expertise / services) ---------- */
.rows { border-top: 1px solid var(--line); }
.rows .row {
  display: flex; align-items: center; gap: 18px; padding: 22px 4px;
  border-bottom: 1px solid var(--line); transition: padding .15s, background .15s;
}
.rows .row:hover { background: var(--paper-2); padding-inline: 12px; }
.rows .row .mark { color: var(--gold); font-size: 20px; font-weight: 800; flex-shrink: 0; }
.rows .row .body { flex: 1; }
.rows .row .kicker { color: var(--muted); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.rows .row .title { color: var(--navy-900); font-size: 18px; font-weight: 700; margin-top: 2px; }
.rows .row .desc { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- contact layout + form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.contact-info { border-top: 3px solid var(--gold); padding-top: 22px; }
.contact-info h3 { font-size: 15px; letter-spacing: .05em; margin-bottom: 18px; color: var(--navy-900); }
.contact-info .item { margin-bottom: 16px; }
.contact-info .item .lbl { color: var(--muted); font-size: 13px; }
.contact-info .item .val { color: var(--navy-900); font-weight: 700; font-size: 15px; }
.contact-info .note {
  margin-top: 22px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; font-size: 14px; color: var(--ink-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; direction: rtl;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(14,27,56,0.07);
}
.field input::placeholder, .field textarea::placeholder { color: #A8AEBC; }
.form-consent { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.form-actions { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E7F0E9; color: #1E5C3A; border: 1px solid #C4DCC9; }
.form-msg.err { background: #FBEAEA; color: #B33A3A; border: 1px solid #EBC9C9; }
.btn[aria-busy="true"] { opacity: .65; cursor: wait; }

/* ---------- master-detail (expertise / sectors) ---------- */
.md-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; margin-top: 16px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.md-detail { background: var(--paper); padding: 40px; }
.md-detail .kick { color: var(--gold); font-weight: 700; letter-spacing: .12em; font-size: 12.5px; text-transform: uppercase; }
.md-detail h3 { font-size: 26px; margin: 8px 0 14px; }
.md-detail .hr { width: 46px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 0 18px; }
.md-detail .sub { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 18px; }
.md-detail p { color: var(--ink-2); font-size: 15px; margin-top: 5px; line-height: 1.8; }
.md-detail .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--navy-900); font-weight: 600; }
.md-list { background: #fff; }
.md-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 24px; border: none; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; text-align: right; font-family: inherit; transition: background .15s;
}
.md-item:last-child { border-bottom: none; }
.md-item:hover { background: var(--paper-2); }
.md-item.active { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--gold); }
.md-item .kicker2 { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.md-item .t { color: var(--navy-900); font-size: 18px; font-weight: 700; margin-top: 2px; }
.md-item .plus { color: var(--gold); font-size: 20px; font-weight: 700; flex-shrink: 0; }

/* ---------- upcoming products grid ---------- */
.upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.up-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.up-card .up-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.up-card h4 { color: var(--navy-900); font-size: 17px; font-weight: 700; }
.up-card .tagpill { background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.up-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }

/* sectors-by-service summary card (left column of sectors tab) */
.svc-summary .blk { border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.svc-summary .blk.dark { background: var(--navy-900); }
.svc-summary .blk.dark * { color: #fff; }
.svc-summary .blk.light { background: var(--paper); border: 1px solid var(--line); }
.svc-summary .blk .lbl { color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.svc-summary .blk.light .lbl { color: var(--navy-900); }
.svc-summary .blk p { font-size: 14px; line-height: 1.8; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* backdrop-filter on .topbar would make it the containing block for the fixed
     drawer (confining it to the bar). Drop it on mobile so the drawer is viewport-fixed. */
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; position: relative; z-index: 310; }
  /* Mobile nav = slide-in side drawer (from the right, RTL) */
  .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 300px;
    background: #fff; box-shadow: -12px 0 44px rgba(14,27,56,0.22);
    padding: 84px 24px 28px; z-index: 300; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 18px; font-weight: 700; color: var(--navy-900); padding: 16px 2px; border-bottom: 1px solid var(--line); }
  .nav a.active { color: var(--gold); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(14,27,56,0.45); opacity: 0; visibility: hidden; transition: opacity .28s; z-index: 250; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }

  .grid-2, .grid-3, .pricing, .product-split, .foot-grid,
  .contact-grid, .form-grid, .md-grid, .upcoming, .lx-hero { grid-template-columns: 1fr; }
  .lx-hero { gap: 22px; text-align: right; }
  .lx-hero > div:first-child { order: 2; }          /* logo box below the text */
  .lx-hero img { max-height: 120px !important; }
  .plan.featured { transform: none; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  section { padding: 60px 0; }
  .tabs { overflow-x: auto; }
  /* Mobile: master-detail becomes an inline accordion. */
  .md-detail { display: none; }
  .md-item.active + .md-inline { display: block; }
}

/* Inline detail block (accordion body) — hidden on desktop, shown on mobile when active */
.md-inline { display: none; padding: 2px 24px 22px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.md-inline .sub { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 12px; }
.md-inline p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; line-height: 1.8; }
.md-inline .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
