@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --cly-primary: #8B4513;
  --cly-accent: #1a3d2e;
  --cly-bg: #f5f0eb;
  --cly-text: #141824;
  --cly-muted: #5d667e;
  --cly-surface: #ffffff;
  --cly-font-display: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  --cly-font-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  --cly-radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--cly-font-body);
  background: var(--cly-bg);
  color: var(--cly-text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.cly-container { width: min(1140px, calc(100vw - 2rem)); margin-inline: auto; }

.cly-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cly-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--cly-text) 12%, transparent);
}
.cly-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.cly-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1; }
.cly-brand img { width: 44px; height: 44px; border-radius: var(--cly-radius); }
.cly-brand-name { font-family: var(--cly-font-display); font-weight: 700; font-size: 1.1rem; min-width: 0; }
.cly-nav { display: none; gap: .35rem; align-items: center; flex-wrap: wrap; }
.cly-nav a { padding: .45rem .75rem; border-radius: 999px; color: var(--cly-muted); font-size: .9rem; }
.cly-nav a:hover { color: var(--cly-text); background: color-mix(in srgb, var(--cly-primary) 12%, transparent); }
.cly-cta-nav {
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--cly-primary); color: #fff; font-weight: 700; font-size: .9rem;
}
.cly-menu-btn {
  position: relative;
  width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--cly-text) 15%, transparent);
  border-radius: var(--cly-radius); background: var(--cly-surface); color: var(--cly-text); cursor: pointer;
  flex: 0 0 44px;
}
.cly-menu-btn::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.cly-mobile-close::before { content: "✕"; box-shadow: none; width: auto; height: auto; font-size: 1.25rem; font-weight: 700; }
.cly-mobile-panel {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--cly-bg); padding: 1.5rem; flex-direction: column; gap: .5rem;
}
.cly-mobile-panel.is-open { display: flex; }
.cly-mobile-panel a { padding: 1rem; font-size: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--cly-text) 10%, transparent); }

.cly-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; border: none; cursor: pointer; transition: transform .2s, opacity .2s;
}
.cly-btn:hover { transform: translateY(-2px); }
.cly-btn-primary { background: var(--cly-primary); color: #fff; }
.cly-btn-ghost { background: transparent; border: 2px solid color-mix(in srgb, var(--cly-text) 20%, transparent); color: var(--cly-text); }

.cly-hero { padding: clamp(2rem, 6vw, 5rem) 0; overflow: hidden; }


.cly-hero-overlay { position: relative; min-height: 85vh; display: flex; align-items: flex-end; }
.cly-hero-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cly-hero-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--cly-bg) 15%, transparent 65%); z-index: 1; }
.cly-hero-copy { position: relative; z-index: 2; padding: 3rem 0; }
.cly-hero h1 { font-family: var(--cly-font-display); font-size: clamp(2rem, 4.5vw, 3.5rem); margin: 0 0 1rem; }




section { padding: clamp(3rem, 6vw, 5rem) 0; }
.cly-section-title { font-family: var(--cly-font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .75rem; }
.cly-section-lead { color: var(--cly-muted); max-width: 60ch; margin-bottom: 2rem; }
.cly-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cly-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cly-card {
  background: var(--cly-surface);
  border: 1px solid color-mix(in srgb, var(--cly-text) 10%, transparent);
  border-radius: var(--cly-radius); padding: 1.5rem;
}
.cly-card h3 { font-family: var(--cly-font-display); margin: 0 0 .5rem; font-size: 1.15rem; }
.cly-card p { color: var(--cly-muted); margin: 0; font-size: .95rem; }
.cly-step-num { color: var(--cly-primary); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.cly-quote { font-style: italic; border-right: 3px solid var(--cly-accent); padding-right: 1rem; margin: 0 0 1rem; }
.cly-quote cite { display: block; font-style: normal; font-size: .85rem; color: var(--cly-muted); margin-top: .5rem; }
.cly-article-list { list-style: none; padding: 0; margin: 0; }
.cly-article-list li { margin-bottom: .75rem; }
.cly-article-list a { color: var(--cly-primary); font-weight: 600; }
#lab-preview { position: static; top: auto; margin-top: 0; }

.cly-cta-band {
  background: linear-gradient(135deg, var(--cly-primary), color-mix(in srgb, var(--cly-accent) 60%, var(--cly-primary)));
  color: #fff; border-radius: calc(var(--cly-radius) * 1.5); padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cly-cta-band p { color: rgba(255,255,255,.88); margin: 0; max-width: 50ch; }

.cly-footer { border-top: 1px solid color-mix(in srgb, var(--cly-text) 12%, transparent); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.cly-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.cly-footer h4 { margin: 0 0 .75rem; font-size: 1rem; }
.cly-footer a { display: block; color: var(--cly-muted); font-size: .9rem; margin-bottom: .4rem; }
.cly-footer a:hover { color: var(--cly-primary); }
.cly-copyright { margin-top: 2rem; font-size: .8rem; color: var(--cly-muted); }

.cly-cookie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; padding: 1rem;
  background: var(--cly-surface); border-top: 1px solid color-mix(in srgb, var(--cly-text) 12%, transparent);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cly-cookie.is-hidden { display: none; }

.cly-page { padding: 4rem 0; }
.cly-page h1 { font-family: var(--cly-font-display); font-size: 2rem; }
.cly-page h2 { font-family: var(--cly-font-display); font-size: 1.25rem; margin-top: 2rem; }
.cly-page p { color: var(--cly-muted); }
.cly-form { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; }
.cly-form input, .cly-form textarea {
  padding: .75rem 1rem; border: 1px solid color-mix(in srgb, var(--cly-text) 15%, transparent);
  border-radius: var(--cly-radius); background: var(--cly-surface); font: inherit;
}
.cly-form textarea { min-height: 140px; resize: vertical; }

.cly-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.cly-reveal.is-visible { opacity: 1; transform: none; }
@keyframes cly-pulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.cly-hero-kicker, .cly-hero-editorial .cly-brand-name { animation: cly-pulse 3s ease-in-out infinite; }

@media (min-width: 768px) { .cly-nav { display: flex; } .cly-menu-btn { display: none; } }
@media (max-width: 900px) {
  .cly-hero-split, .cly-hero-asym, .cly-grid-3, .cly-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cly-header-inner { gap: .5rem; }
  .cly-brand-name {
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #lab-preview { position: static; top: auto; margin-top: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cly-reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}
