/* ============================================================
   الكادر البرمجي — style.css
   Single stylesheet · Arabic RTL · Editorial layout
   ============================================================ */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg: #f7f4ee;
  --bg-soft: #f1ede5;
  --ink: #15120f;
  --ink-soft: #3b342d;
  --muted: #6b645b;
  --line: rgba(21, 18, 15, 0.12);
  --line-strong: rgba(21, 18, 15, 0.22);
  --accent: #a8492b;
  --accent-soft: rgba(168, 73, 43, 0.16);
  --dark: #12100d;
  --cream: #efe9df;

  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- 2. Scroll progress ---------- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ---------- 3. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(247, 244, 238, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 238, 0.94);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  padding-block: 4px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(60px, 9vh, 110px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset-inline-start: -12%;
  top: -18%;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 66%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: clamp(20px, 3vh, 30px);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
}

.hero-title .l1 {
  display: block;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 1.02;
}

.hero-title .l2 {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-lede {
  max-width: 640px;
  margin-top: clamp(22px, 3.4vh, 34px);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.9;
  color: var(--muted);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(38px, 7vh, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: gap 0.3s var(--ease), color 0.3s ease;
}

.cue:hover {
  gap: 20px;
  color: var(--accent);
}

.cue-line {
  width: 40px;
  height: 1px;
  background: currentColor;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.9rem;
}

.hero-meta a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.hero-meta a:hover {
  color: var(--accent);
}

/* ---------- 5. Marquee band ---------- */
.band {
  direction: ltr;
  overflow: hidden;
  padding-block: 18px;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.band-track {
  display: flex;
  width: max-content;
  animation: band-scroll 42s linear infinite;
}

.band-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-inline-end: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  color: rgba(21, 18, 15, 0.5);
  white-space: nowrap;
}

.band-group i {
  font-style: normal;
  font-size: 0.62em;
  color: var(--accent);
}

@keyframes band-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 6. Generic section ---------- */
.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) var(--gutter);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px clamp(18px, 3vw, 32px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(36px, 6vh, 64px);
}

.sec-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.1vw, 2.4rem);
  line-height: 1.25;
}

.sec-note {
  grid-column: 2;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

/* ---------- 7. Activities (accordion rows, no cards) ---------- */
.acts {
  border-top: 1px solid var(--line);
}

.act {
  border-bottom: 1px solid var(--line);
}

.act-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  padding: clamp(22px, 3.4vh, 34px) 0;
  text-align: start;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.act-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.act-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.act-head:hover .act-title {
  color: var(--accent);
}

.act-head:hover .act-num {
  color: var(--accent);
}

.act-plus {
  position: relative;
  flex: none;
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.45s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.act-plus::before,
.act-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.act-plus::before {
  width: 12px;
  height: 1.5px;
}

.act-plus::after {
  width: 1.5px;
  height: 12px;
}

.act.open .act-plus {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.act.open .act-plus::before,
.act.open .act-plus::after {
  background: var(--cream);
}

.act.open .act-num,
.act.open .act-title {
  color: var(--accent);
}

/* animated expansion */
.act-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.act.open .act-body {
  grid-template-rows: 1fr;
}

.act-body-inner {
  overflow: hidden;
}

.act-body-inner p {
  max-width: 72ch;
  padding-bottom: clamp(22px, 3vh, 34px);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.95;
  color: #4a443c;
}

/* ---------- 8. Statement (dark) ---------- */
.statement {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
  padding: clamp(80px, 14vh, 150px) var(--gutter);
}

.statement::after {
  content: "";
  position: absolute;
  inset-inline-end: -15%;
  bottom: -30%;
  width: min(70vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 73, 43, 0.18) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.statement .wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.statement .sec-index {
  color: rgba(239, 233, 223, 0.5);
  margin-bottom: clamp(28px, 5vh, 48px);
}

.statement-lines {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.6vh, 38px);
}

.statement-lines .line {
  position: relative;
  max-width: 62ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  line-height: 1.6;
  color: rgba(239, 233, 223, 0.92);
  padding-inline-start: 22px;
}

.statement-lines .line::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

/* ---------- 9. Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.steps li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.35;
  margin-bottom: 8px;
}

.steps p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 10. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.contact-info > .sec-index {
  margin-bottom: 14px;
}

.contact-info .sec-title {
  margin-bottom: 18px;
}

.contact-lede {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.9;
}

.contact-list {
  margin-top: clamp(30px, 5vh, 44px);
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cl-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-list a {
  font-size: 1.05rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.contact-list a:hover {
  color: var(--accent);
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.8;
}

.field select {
  cursor: pointer;
  padding-inline-end: 26px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236B645B' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: left 4px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  background-color: rgba(168, 73, 43, 0.035);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(107, 100, 91, 0.55);
}

.submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 15px 28px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, gap 0.3s var(--ease), transform 0.2s ease;
}

.submit .arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.submit:hover {
  background: var(--accent);
  gap: 22px;
}

.submit:hover .arrow {
  transform: translateX(-4px);
}

.submit:active {
  transform: translateY(1px);
}

/* ---------- 11. Footer ---------- */
.footer {
  padding: 44px var(--gutter) 52px;
  border-top: 1px solid var(--line);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 32px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.f-name {
  max-width: 62ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.6;
}

.f-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.9rem;
}

.f-meta a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.f-meta a:hover {
  color: var(--accent);
}

.f-copy {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: rgba(107, 100, 91, 0.85);
}

/* ---------- 12. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    align-items: flex-start;
  }

  .act-head {
    gap: 14px;
  }

  .act-plus {
    width: 30px;
    height: 30px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .statement-lines .line {
    padding-inline-start: 18px;
  }

  .submit {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .sec-head {
    grid-template-columns: 1fr;
  }

  .sec-note {
    grid-column: 1;
  }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .band-track {
    animation: none;
  }

  .act-body,
  .act-plus,
  .submit,
  .submit .arrow {
    transition: none;
  }

  .progress span {
    transition: none;
  }
}