/* OLFA public site — identity: #8B0D2B, #1A1A1A, #E9E9E9, #FFFFFF; flat (no gradients, no 3D). */
:root { --wine: #8B0D2B; --ink: #1A1A1A; --mist: #E9E9E9; --white: #FFFFFF; --r: 16px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.75 'Montserrat', 'Tajawal', system-ui, sans-serif; }
[dir='rtl'] body, body:lang(ar) { font-family: 'Tajawal', 'Montserrat', system-ui, sans-serif; font-size: 18px; }
a { color: var(--wine); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sym { width: 34px; height: 34px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--wine); text-decoration: none; }
.brand.light { color: var(--white); }

.top { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--mist); }
.top .row { min-height: 68px; }
.menu { display: flex; gap: 22px; margin-inline-start: auto; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:hover { color: var(--wine); }
.langs { display: flex; gap: 4px; background: var(--mist); border-radius: 999px; padding: 4px; }
.langs a { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.langs a[aria-current] { background: var(--wine); color: var(--white); }
.menu:empty + .langs { margin-inline-start: auto; }

section { padding: 88px 0; }
.hero { padding: 110px 0 90px; }
.kicker { color: var(--wine); font-weight: 700; letter-spacing: .02em; margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; max-width: 17ch; }
.lead { font-size: 1.12em; max-width: 62ch; color: #3a3a3a; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 18px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wine); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillars { padding-top: 0; }
.card { border: 1px solid var(--mist); border-radius: var(--r); padding: 28px; }
.card .num { color: var(--wine); font-weight: 700; font-family: 'Montserrat', sans-serif; }
.card h2 { font-size: 21px; margin-top: 10px; }
.card p, .item p, .steps p { margin: 0; color: #3a3a3a; }
.title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 36px; }
.band { background: var(--mist); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--r); padding: 26px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--white); font-weight: 700; margin-bottom: 14px; font-family: 'Montserrat', sans-serif; }
.steps h3, .item h3 { font-size: 18px; }
.item { padding: 24px; border-inline-start: 3px solid var(--wine); background: var(--white); }
.dark { background: var(--ink); color: var(--white); }
.dark .lead { color: var(--mist); }
details { border-bottom: 1px solid var(--mist); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: inline-end; color: var(--wine); font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; color: #3a3a3a; }

.legal { padding: 56px 0 90px; }
.legal h1 { font-size: clamp(28px, 4vw, 42px); }
.legal h2 { font-size: 20px; margin-top: 38px; }
.legal .updated { color: #666; font-size: 14px; }
.legal ul { padding-inline-start: 22px; }
.back { display: inline-block; margin-bottom: 22px; font-weight: 600; text-decoration: none; }

.foot { background: var(--wine); color: var(--white); padding: 36px 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.foot a { color: var(--white); text-decoration: none; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
.foot small { width: 100%; opacity: .85; }

:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--white); }

@media (max-width: 900px) {
  .grid3, .grid2, .steps { grid-template-columns: 1fr; }
  .menu { display: none; }
  .langs { margin-inline-start: auto; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
