/* Al-Rasikha Software: a standalone static site served by Caddy at /alrasikha and on ALRASIKHA_DOMAIN (not part of Tahweesha). */
@font-face {
  font-family: 'Camel';
  src: url('camel.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --paper: #f3eee6;
  --ink: #2b2118;
  --body: #4a3f35;
  --muted: #8c7f72;
  --line: #e4dccf;
  --accent: #9a6b2f;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; }
h1, h2 { font-family: 'Camel', 'IBM Plex Sans Arabic', serif; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: 'Camel', serif; font-weight: 400; font-size: 1.45rem; line-height: 1; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: .95rem; color: var(--ink); padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; inset-inline-end: 0; top: 44px; z-index: 10; min-width: 200px; display: grid; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; }
.menu nav a { text-decoration: none; padding: 10px 18px; color: var(--ink); }
.menu nav a[aria-current='page'] { color: var(--accent); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: .98rem; }
.btn:hover { background: var(--accent); }
.more { color: var(--accent); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; }
.more:hover { color: var(--ink); }

/* Intro (top of every page) */
.intro { padding-block: 96px 72px; }
.intro .kicker { color: var(--accent); font-size: .92rem; }
.intro h1 { margin-top: 10px; max-width: 12em; }
.intro p { margin-top: 20px; max-width: 36em; font-size: 1.12rem; }
.intro .acts { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* Home hero: text and the fields we work in */
.hero { padding-block: 88px 72px; }
.hero .kicker { color: var(--accent); font-size: .95rem; }
.hero h1 { margin-top: 12px; max-width: 14em; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.25; }
.hero p { margin-top: 20px; max-width: 34em; font-size: 1.12rem; }
.hero .acts { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.chips { max-width: 720px; list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .88rem; }
.chips li.etc { background: none; border-style: dashed; color: var(--accent); }
@media (max-width: 860px) {
  .hero { padding-block: 40px 48px; }
}

/* Sections */
.sec { padding-block: 72px; border-top: 1px solid var(--line); }
.sec.tint { background: var(--paper); border-top: 0; }
.sec-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.sec-grid > h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.prose p + p { margin-top: 16px; }
.prose p { max-width: 38em; }
.prose .more { display: inline-block; margin-top: 20px; }

/* Numbered list (services, steps, values) */
.list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.list li { counter-increment: n; display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li::before { content: counter(n); grid-row: span 2; color: var(--accent); font-family: 'Camel', serif; font-size: 1.5rem; line-height: 1.3; }
.list p { color: var(--muted); font-size: .98rem; }
.list.plain li::before { content: none; }
.list.plain li { grid-template-columns: 1fr; }
.cols2 { columns: 2; column-gap: 56px; }
.cols2 li { break-inside: avoid; }

/* Facts */
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* Closing line */
.close { padding-block: 80px; border-top: 1px solid var(--line); text-align: center; }
.close h2 { margin-bottom: 24px; }

/* Footer */
.foot { background: #2b2118; color: #cdbfae; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.foot-brand b { font-family: 'Camel', serif; font-weight: 400; font-size: 1.7rem; color: #f3eee6; }
.foot-brand p { margin-top: 10px; max-width: 24em; }
.foot h3 { color: #d3a35f; font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot p + p { margin-top: 6px; }
.foot a { color: #f3eee6; text-decoration: none; }
.foot a:hover { color: #d3a35f; }
.foot-bar { border-top: 1px solid rgba(243, 238, 230, .14); font-size: .85rem; color: #a89a8a; }
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-block: 18px; }

@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; gap: 24px; }
  .cols2 { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu { display: block; }
  .top .wrap { min-height: 64px; }
  .intro { padding-block: 56px 48px; }
  .sec, .close { padding-block: 52px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
}

/* Commercial register card */
.cr { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px 4px 10px 10px; background: var(--bg); padding: 24px 28px 26px; max-width: 640px; }
.sec.tint .cr { background: #fffdf9; }
.cr-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.cr-head span:first-child { color: var(--ink); font-weight: 600; }
.cr-num { padding-block: 18px; border-bottom: 1px dashed var(--line); display: grid; gap: 2px; }
.cr-num small { color: var(--muted); font-size: .85rem; }
.cr-num b { font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: .08em; line-height: 1.2; font-variant-numeric: tabular-nums; justify-self: start; }
.cr-fields { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding-top: 18px; }
.cr-fields .wide { grid-column: 1 / -1; }
.cr-fields dt { color: var(--muted); font-size: .85rem; }
.cr-fields dd { margin: 0; color: var(--ink); font-weight: 500; }
.cr-doc { display: inline-block; margin-top: 20px; }
@media (max-width: 640px) {
  .cr { padding: 20px; }
  .cr-num b { font-size: 1.6rem; }
  .cr-fields { grid-template-columns: 1fr; }
}

/* Technologies */
.tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.tech-group h3 { font-size: .95rem; color: var(--muted); font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tech-group ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.tech-group li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .95rem; }
.tech-group svg { width: 24px; height: 24px; flex: none; fill: var(--body); }
.tech-note { margin-top: 32px; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) {
  .tech { grid-template-columns: 1fr; gap: 28px; }
}

/* Moving logo belt (home). Two copies of the list slide by one copy's width, so the loop is seamless. */
.belt { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.belt-track { display: flex; width: max-content; animation: belt 60s linear infinite; }
.belt:hover .belt-track { animation-play-state: paused; }
.belt ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; padding-inline-end: 40px; }
.belt li { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--body); font-size: .95rem; }
.belt svg { width: 24px; height: 24px; flex: none; fill: var(--body); }
@keyframes belt { to { transform: translateX(50%); } }
[dir='ltr'] .belt-track { animation-name: belt-ltr; }
@keyframes belt-ltr { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .belt-track { animation: none; } .belt { overflow-x: auto; } }

/* "Any idea" line */
.any { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 6px; background: var(--bg); }
.any b { color: var(--ink); font-weight: 600; display: block; }
.any p { margin-top: 4px; }
.belt + .sec { border-top: 0; }

/* Featured areas (VR, AI, Odoo, students): text and picture, alternating sides */
.feats-head { margin-bottom: 32px; }
.feats-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.feats-sec { padding-top: 72px; border-top: 1px solid var(--line); }
.band { background: #fff; }
.band:nth-child(even) { background: var(--paper); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 56px; }
.band:nth-child(even) .feat img { order: -1; }
.feats-cta { padding-block: 40px 72px; }
.feat .kicker { color: var(--accent); font-size: .92rem; }
.feat h2 { margin-top: 6px; }
.feat p { margin-top: 14px; max-width: 34em; }
.feat img { width: 100%; height: auto; max-width: 460px; justify-self: center; }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
  /* Phones: every picture sits above its text, in the same framed box. */
  .feat img, .band:nth-child(even) .feat img { order: -1; }
  .feat img { width: 100%; max-width: 340px; height: 220px; object-fit: contain; justify-self: center; }
  .feats .feat img.logo-img { max-width: 220px; height: 90px; }
}
.feat img.logo-img { max-width: 300px; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.cert { margin-top: 16px; padding: 12px 16px; border-inline-start: 3px solid var(--accent); background: var(--bg); border-radius: 6px; color: var(--ink); font-weight: 500; }
.ticks li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateY(-2px); }

/* Smart solutions: what automation gives the business */
.smart .kicker { color: var(--accent); font-size: .92rem; }
.smart h2 { margin-top: 6px; max-width: 18em; }
.smart .lead { margin-top: 14px; max-width: 40em; font-size: 1.08rem; }
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 24px; position: relative; }
.pillars li::before { content: ''; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.pillars h3 { font-size: 1.08rem; }
.pillars p { margin-top: 6px; color: var(--muted); font-size: .96rem; line-height: 1.8; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; gap: 12px; } .pillars li { padding: 18px; } }
.pillars.four { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .pillars.four { grid-template-columns: 1fr; } }
