/* ============================================================
   AJMAL PRINTING PRESS · مطبعة أجمل  — FINAL (v1 base + integrations)
   "Ink & Paper": cream paper · deep ink navy · CMYK accents
   ============================================================ */

:root {
  --ink:        #0c1a2b;
  --ink-soft:   #16293d;
  --ink-2:      #0a1622;
  --paper:      #f4efe4;
  --paper-2:    #ece4d4;
  --paper-card: #fbf8f1;
  --white:      #ffffff;
  --cyan:    #15a6cf;
  --magenta: #e0407f;
  --yellow:  #f2b705;
  --muted: #6c7785;
  --line:  rgba(12, 26, 43, 0.12);
  --line-d: rgba(244,239,228,.16);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "Space Mono", "Courier New", monospace;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--cyan); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--cyan); display: inline-block; }
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: baseline; gap: .6em; }
.label .idx { color: var(--cyan); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.display { font-size: clamp(2.6rem, 8vw, 7rem); }
h2.title { font-size: clamp(2.1rem, 5.5vw, 4.6rem); margin-block: 0.2em 0.5em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 56ch; }
.serif-em { font-family: var(--serif); font-style: italic; }
.c-cyan { color: var(--cyan); } .c-mag { color: var(--magenta); } .c-yel { color: var(--yellow); }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem; background: var(--ink); color: var(--paper); transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease); will-change: transform; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover { background: var(--cyan); color: var(--white); transform: translateY(-3px); }
.btn:hover .arrow { transform: translate(4px, -4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--cyan); color: var(--white); }

/* ============================================================
   NAV  (enlarged logo + bolder menu)
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--gutter); transition: padding .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease); }
.nav.scrolled { padding: 15px var(--gutter); background: rgba(244, 239, 228, 0.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__logo { display: flex; align-items: center; gap: 15px; font-family: var(--serif); font-size: 1.95rem; font-weight: 600; letter-spacing: -0.02em; }
.nav__mark { width: 50px; height: 50px; flex: none; }
.nav__logo small { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); display: block; line-height: 1; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: clamp(26px,2.6vw,40px); }
.nav__links a { font-size: 1.02rem; font-weight: 600; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--cyan); transition: width .35s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav:not(.scrolled) .nav__logo { color: #fff; }
.nav:not(.scrolled) .nav__logo small { color: rgba(255,255,255,.62); }
.nav:not(.scrolled) .nav__links a { color: rgba(255,255,255,.94); }
.nav:not(.scrolled) .nav__burger span { background: #fff; }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__cta .btn { font-size: 1rem; padding: 15px 26px; }
.nav__burger { display: none; flex-direction: column; gap: 6px; width: 32px; }
.nav__burger span { height: 2.5px; background: var(--ink); transition: .3s var(--ease); }

/* ============================================================
   HERO  (Version 1)
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: clamp(44px, 6vw, 84px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,26,43,.55) 0%, rgba(12,26,43,.2) 35%, rgba(12,26,43,.85) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { color: rgba(255,255,255,.7); }
.hero__eyebrow::before { background: var(--cyan); }
.hero h1 { color: var(--white); margin-block: 0.3em 0.5em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero__sub { color: rgba(255,255,255,.82); max-width: 46ch; font-size: clamp(1rem,1.4vw,1.2rem); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 26px; z-index: 3; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.hero__scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ============================================================
   MARQUEE  (straight / regular — no italics)
   ============================================================ */
.marquee { background: var(--ink); color: var(--paper); padding: 20px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; animation: scroll-x 30s linear infinite; }
.marquee span { font-family: var(--sans); font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.92rem,1.5vw,1.2rem); display: inline-flex; align-items: center; padding-inline: 30px; }
.marquee span::after { content: "✦"; color: var(--cyan); margin-left: 30px; font-size: .7em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT  (Version 1)
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; left: 24px; bottom: 24px; background: var(--paper); border-radius: 14px; padding: 16px 20px; box-shadow: 0 20px 50px rgba(12,26,43,.25); }
.about__badge b { font-family: var(--serif); font-size: 1.8rem; display: block; line-height: 1; }
.about__badge small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.about p + p { margin-top: 1.2em; }
.about__motto { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); margin-top: 1.4em; }
.about__motto b { font-style: normal; color: var(--cyan); }
.about__list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.about__list li { font-size: .85rem; font-weight: 500; padding: 9px 16px; border-radius: 100px; background: var(--paper-card); box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================
   SERVICES  (Version 1)
   ============================================================ */
.services { background: var(--ink); color: var(--paper); }
.services .eyebrow { color: rgba(244,239,228,.6); }
.services h2.title { color: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--radius); overflow: hidden; margin-top: 50px; }
.svc { background: var(--ink); padding: clamp(28px, 3.5vw, 48px); transition: background .5s var(--ease); position: relative; }
.svc:hover { background: var(--ink-soft); }
.svc__no { font-family: var(--serif); font-size: .95rem; color: var(--accent, var(--cyan)); }
.svc h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--white); margin-block: 14px 12px; }
.svc p { color: rgba(244,239,228,.7); font-size: .98rem; max-width: 44ch; }
.svc__bar { height: 3px; width: 46px; background: var(--accent, var(--cyan)); margin-top: 24px; transition: width .5s var(--ease); }
.svc:hover .svc__bar { width: 90px; }

/* ============================================================
   PRODUCTS  (Version 1)
   ============================================================ */
.products__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-card); box-shadow: 0 1px 0 var(--line); aspect-ratio: 4/3.4; }
.pcard__img { position: absolute; inset: 0; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,26,43,0) 35%, rgba(12,26,43,.86) 100%); }
.pcard__body { position: absolute; inset: auto 0 0 0; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pcard__tag { position: absolute; top: 16px; left: 16px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--accent, var(--cyan)); padding: 6px 12px; border-radius: 100px; }
.pcard h3 { color: var(--white); font-size: 1.4rem; }
.pcard__arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; color: var(--white); flex: none; transition: background .4s var(--ease), transform .4s var(--ease); }
.pcard:hover .pcard__arrow { background: var(--accent, var(--cyan)); transform: translate(3px,-3px); }
.products__more { margin-top: 30px; color: var(--muted); font-size: .95rem; }

/* ============================================================
   CLIENTS / TRUSTED STRIP
   ============================================================ */
.trust { background: var(--paper-2); }
.trust__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px,5vw,80px); align-items: center; }
.trust h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.trust p { color: var(--ink-soft); margin-top: 16px; }
.trust__logos { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.trust__slot { aspect-ratio: 5/2.4; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-card); }

/* ============================================================
   CAPABILITIES  (from Current — kept)
   ============================================================ */
.cap { background: var(--ink); color: var(--paper); position: relative; }
.cap .label { color: rgba(244,239,228,.55); }
.cap .label .idx { color: var(--cyan); }
.cap h2 { color: var(--paper); font-size: clamp(2rem,4.4vw,3.6rem); }
.sec-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: clamp(20px,5vw,80px); align-items: end; padding-bottom: clamp(24px,2.6vw,34px); }
.cap__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); margin-top: clamp(28px,3vw,40px); }
.cap__item { background: var(--ink); padding: clamp(24px,2.6vw,38px); min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background .5s var(--ease); }
.cap__item:hover { background: var(--ink-2); }
.cap__item svg { width: 38px; height: 38px; color: var(--paper); opacity: .9; }
.cap__item h3 { color: var(--paper); font-size: 1.5rem; font-weight: 400; }
.cap__item p { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,239,228,.55); margin-top: 8px; }
.figs { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-d); margin-top: 1px; }
.fig { padding: clamp(26px,3vw,44px) clamp(18px,2vw,30px); border-right: 1px solid var(--line-d); }
.fig:last-child { border-right: 0; }
.fig b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem,4.5vw,3.6rem); display: block; line-height: 1; }
.fig b .u-accent { font-style: italic; color: var(--cyan); }
.fig small { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,228,.55); display: block; margin-top: 12px; }

/* ============================================================
   CONTACT  (05 — from Current)
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,5vw,80px); margin-top: clamp(24px,3vw,40px); }
.contact__big { font-size: clamp(2.2rem,5vw,4.4rem); line-height: 1.02; }
.contact__big .it { font-family: var(--serif); font-style: italic; color: var(--cyan); }
.dl { margin-top: 36px; }
.dl__row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.dl__row:last-child { border-bottom: 1px solid var(--line); }
.dl__row dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.dl__row dd { font-family: var(--serif); font-size: clamp(1.1rem,1.7vw,1.5rem); }
.dl__row dd a:hover { color: var(--cyan); }
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.f { position: relative; }
.f label { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.f input, .f select, .f textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; transition: border-color .35s var(--ease); }
.f input::placeholder, .f textarea::placeholder { color: rgba(108,119,133,.7); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--cyan); }
.f textarea { resize: vertical; min-height: 90px; }
.form__note { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.contact__map { margin-top: 56px; height: clamp(300px,34vw,440px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ============================================================
   FOOTER  (from Current)
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding-block: 70px 34px; }
.footer__word { font-family: var(--serif); font-size: clamp(3rem, 13vw, 12rem); line-height: .9; letter-spacing: -0.02em; color: var(--paper); display: flex; align-items: baseline; gap: .3em; justify-content: space-between; flex-wrap: wrap; }
.footer__word .ar { font-size: .42em; opacity: .7; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-d); }
.footer p { color: rgba(244,239,228,.6); max-width: 34ch; font-size: .92rem; }
.footer h4 { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,228,.45); margin-bottom: 16px; }
.footer__cols a { display: block; color: rgba(244,239,228,.85); padding: 5px 0; font-size: .95rem; transition: color .3s var(--ease); }
.footer__cols a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 48px; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(244,239,228,.5); }
.footer__cmyk { display: inline-flex; gap: 5px; }
.footer__cmyk i { width: 12px; height: 12px; border-radius: 2px; }

/* ============================================================
   REVEAL + PROGRESS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow)); z-index: 200; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16/11; order: -1; }
  .services__grid, .products__grid, .cap__grid { grid-template-columns: 1fr 1fr; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(2){ border-right: 0; }
  .trust__inner, .contact__grid, .sec-head { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 330px); background: var(--ink); flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; gap: 24px; transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav__links a { color: var(--paper); font-size: 1.5rem; }
  .nav.open .nav__links { transform: none; }
  .nav__burger { display: flex; z-index: 101; }
  .nav.open .nav__burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav.open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav__burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .nav__cta .btn { display: none; }
  .services__grid, .products__grid, .cap__grid, .figs, .form__row, .footer__cols, .trust__logos { grid-template-columns: 1fr; }
  .fig { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .dl__row { grid-template-columns: 1fr; gap: 4px; }
  .trust__logos { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none !important; }
}
