/* Markistra website. Layout uses logical properties so Arabic RTL works. */
:root {
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: var(--mk-font-en);
  --muted: #A8A8A8;
  --line: #2A2A2A;
  --panel: #151515;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --glow: radial-gradient(70% 90% at 92% 0%, #FD1D28 0%, #ED1B24 26%, #4A080D 68%, #0B0B0B 100%);
  color-scheme: dark;
}
:root[lang="ar"] { --head: var(--mk-font-ar); --body: var(--mk-font-ar); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mk-black); color: var(--mk-white); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--mk-white); outline-offset: 3px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.stack { display: grid; gap: 18px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--mk-white); }
.h-xl, .h-l { font-family: var(--head); font-weight: 800; text-transform: uppercase; text-wrap: balance; }
.h-xl { font-size: clamp(64px, 11vw, 142px); line-height: .94; }
.h-l { font-size: clamp(46px, 7vw, 84px); line-height: .98; }
.h-m { font-size: 24px; font-weight: 800; line-height: 1.25; }
.red { color: var(--mk-red); }
:root[lang="ar"] .h-xl, :root[lang="ar"] .h-l { text-transform: none; line-height: 1.2; }
.lead { font-size: clamp(19px, 2.2vw, 23px); max-width: 38em; }
.intro { display: grid; gap: 16px; max-width: 780px; margin-block-end: 48px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding-inline: 28px; border-radius: 40px; font-weight: 800; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--mk-white); color: var(--mk-black); }
.btn-red { background: var(--mk-red); color: var(--mk-white); }
.btn-red:hover { background: var(--mk-red-depth); }
.btn-line { border-color: rgba(255,255,255,.5); color: var(--mk-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(11,11,11,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--mk-red-glow); }
.nav .btn { min-height: 44px; padding-inline: 20px; }
.menu-btn { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--mk-white); font: inherit; font-size: 13px; font-weight: 800; }

.hero { background: var(--glow); position: relative; overflow: hidden; }
.hero-in { padding-block: clamp(70px, 11vw, 150px); display: grid; gap: 28px; position: relative; }
.hero .mark { position: absolute; inset-inline-end: -120px; bottom: -160px; width: min(620px, 70vw); opacity: .16; }
.hero-in > :not(.mark) { position: relative; }
.page-hero { background: var(--glow); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card a.more { font-weight: 800; text-decoration: none; }
.card.red { background: var(--mk-red); border-color: var(--mk-red); color: var(--mk-white); }
.check li { padding-block: 10px; border-top: 1px solid var(--line); }
.glass { border: 1.5px solid rgba(255,255,255,.3); background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(184,29,35,.34)); backdrop-filter: blur(26px); border-radius: 24px; padding: 28px; min-width: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; color: var(--mk-red); }

.ph { background: #1E1E1E; border: 1px dashed #4A4A4A; color: var(--muted); border-radius: 18px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 700; min-height: 280px; }
.ph.logo-ph { min-height: 90px; border-radius: 14px; font-size: 15px; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: 1; }

.band { background: var(--mk-red); }
.band .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: 15px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer img { width: 150px; height: auto; }
.footer ul { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 700; }
.footer a { text-decoration: none; }

.brand-panel { min-height: 380px; border-radius: 22px; display: flex; align-items: center; justify-content: center; padding: 40px; border: 1px solid var(--line); }
.brand-panel img, .brand-panel svg { max-width: 100%; }
.type-sample { font-size: clamp(40px, 5vw, 60px); line-height: 1.1; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.swatch { min-height: 130px; border-radius: 16px; padding: 14px; display: flex; align-items: flex-end; font-weight: 800; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 76px; background: var(--mk-black); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; }
  .nav .btn { margin-block-start: 8px; }
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .steps, .logos, .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } .h-xl { font-size: clamp(40px, 12.5vw, 64px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
